1 ##### DP_MAKE_TARGET autodetection and arch specific variables #####
14 # Command used to delete files
18 TARGETS_DEBUG=sv-debug cl-debug sdl-debug
19 TARGETS_PROFILE=sv-profile cl-profile sdl-profile
20 TARGETS_RELEASE=sv-release cl-release sdl-release
21 TARGETS_RELEASE_PROFILE=sv-release-profile cl-release-profile sdl-release-profile
22 TARGETS_NEXUIZ=sv-nexuiz cl-nexuiz sdl-nexuiz
25 UNIX_X11LIBPATH=/usr/X11R6/lib
28 .if $(DP_MAKE_TARGET) == "bsd"
31 .if $(DP_ARCH) == "FreeBSD"
42 LDFLAGS_CL=$(LDFLAGS_BSDCL)
43 LDFLAGS_SV=$(LDFLAGS_BSDSV)
44 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
46 SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS) $(SDLCONFIG_UNIXCFLAGS_X11)
47 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS) $(SDLCONFIG_UNIXLIBS_X11)
48 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS) $(SDLCONFIG_UNIXSTATICLIBS_X11)
52 EXE_SDL=$(EXE_UNIXSDL)
53 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
54 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
55 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
57 # set these to "" if you want to use dynamic loading instead
59 CFLAGS_LIBZ=-DLINK_TO_ZLIB
63 CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
67 ODE_CONFIG?=ode-config
68 LIB_ODE=`$(ODE_CONFIG) --libs`
69 CFLAGS_ODE=`$(ODE_CONFIG) --cflags` -DUSEODE -DLINK_TO_LIBODE
72 # most distros do not have d0_blind_id package, dlopen will used by default
73 # LIB_CRYPTO=-ld0_blind_id
74 # CFLAGS_CRYPTO=-DLINK_TO_CRYPTO
75 # LIB_CRYPTO_RIJNDAEL=-ld0_rijndael
76 # CFLAGS_CRYPTO_RIJNDAEL=-DLINK_TO_CRYPTO_RIJNDAEL
80 CFLAGS_CRYPTO_RIJNDAEL=
85 ##### Sound configuration #####
88 DP_SOUND_API=$(DEFAULT_SNDAPI)
92 .if $(DP_SOUND_API) == "NULL"
93 OBJ_SOUND=$(OBJ_SND_NULL)
94 LIB_SOUND=$(LIB_SND_NULL)
97 # OSS: Open Sound System
98 .if $(DP_SOUND_API) == "OSS"
99 OBJ_SOUND=$(OBJ_SND_OSS)
100 LIB_SOUND=$(LIB_SND_OSS)
103 # BSD: BSD / Sun audio API
104 .if $(DP_SOUND_API) == "BSD"
105 OBJ_SOUND=$(OBJ_SND_BSD)
106 LIB_SOUND=$(LIB_SND_BSD)
110 ##### Extra CFLAGS #####
114 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
120 .ifdef DP_PRELOAD_DEPENDENCIES
121 LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
122 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
123 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
124 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
128 ##### BSD Make specific definitions #####
130 MAKE:=$(MAKE) -f BSDmakefile
132 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
135 ##### Definitions shared by all makefiles #####
136 .include "makefile.inc"