1 ##### DP_MAKE_TARGET autodetection and arch specific variables #####
13 # Command used to delete files
17 TARGETS_DEBUG=sv-debug cl-debug sdl-debug
18 TARGETS_PROFILE=sv-profile cl-profile sdl-profile
19 TARGETS_RELEASE=sv-release cl-release sdl-release
20 TARGETS_RELEASE_PROFILE=sv-release-profile cl-release-profile sdl-release-profile
21 TARGETS_NEXUIZ=sv-nexuiz cl-nexuiz sdl-nexuiz
23 ###### Optional features #####
25 .if $(DP_CDDA) == "enabled"
26 OBJ_SDLCD=$(OBJ_CD_COMMON) cd_sdl.o
27 OBJ_BSDCD=$(OBJ_CD_COMMON) cd_bsd.o
29 OBJ_SDLCD=$(OBJ_CD_COMMON) $(OBJ_NOCD)
30 OBJ_BSDCD=$(OBJ_CD_COMMON) $(OBJ_NOCD)
34 UNIX_X11LIBPATH=/usr/X11R6/lib
37 .if $(DP_MAKE_TARGET) == "bsd"
40 .if $(DP_ARCH) == "FreeBSD"
51 LDFLAGS_CL=$(LDFLAGS_BSDCL)
52 LDFLAGS_SV=$(LDFLAGS_BSDSV)
53 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
55 SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS) $(SDLCONFIG_UNIXCFLAGS_X11)
56 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS) $(SDLCONFIG_UNIXLIBS_X11)
57 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS) $(SDLCONFIG_UNIXSTATICLIBS_X11)
61 EXE_SDL=$(EXE_UNIXSDL)
62 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
63 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
64 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
66 # set these to "" if you want to use dynamic loading instead
68 CFLAGS_LIBZ=-DLINK_TO_ZLIB
72 CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
76 ODE_CONFIG?=ode-config
77 LIB_ODE=`$(ODE_CONFIG) --libs`
78 CFLAGS_ODE=`$(ODE_CONFIG) --cflags` -DUSEODE -DLINK_TO_LIBODE
81 # most distros do not have d0_blind_id package, dlopen will used by default
82 # LIB_CRYPTO=-ld0_blind_id
83 # CFLAGS_CRYPTO=-DLINK_TO_CRYPTO
84 # LIB_CRYPTO_RIJNDAEL=-ld0_rijndael
85 # CFLAGS_CRYPTO_RIJNDAEL=-DLINK_TO_CRYPTO_RIJNDAEL
89 CFLAGS_CRYPTO_RIJNDAEL=
94 ##### Sound configuration #####
97 DP_SOUND_API=$(DEFAULT_SNDAPI)
101 .if $(DP_SOUND_API) == "NULL"
102 OBJ_SOUND=$(OBJ_SND_NULL)
103 LIB_SOUND=$(LIB_SND_NULL)
106 # OSS: Open Sound System
107 .if $(DP_SOUND_API) == "OSS"
108 OBJ_SOUND=$(OBJ_SND_OSS)
109 LIB_SOUND=$(LIB_SND_OSS)
112 # BSD: BSD / Sun audio API
113 .if $(DP_SOUND_API) == "BSD"
114 OBJ_SOUND=$(OBJ_SND_BSD)
115 LIB_SOUND=$(LIB_SND_BSD)
119 ##### Extra CFLAGS #####
123 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
129 .ifdef DP_PRELOAD_DEPENDENCIES
130 LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
131 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
132 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
133 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
137 ##### BSD Make specific definitions #####
139 MAKE:=$(MAKE) -f BSDmakefile
141 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
144 ##### Definitions shared by all makefiles #####
145 .include "makefile.inc"