1 ##### DP_MAKE_TARGET autodetection and arch specific variables #####
16 CMD_MKDIR=$(CMD_UNIXMKDIR)
19 TARGETS_DEBUG=sv-debug sdl-debug
20 TARGETS_PROFILE=sv-profile sdl-profile
21 TARGETS_RELEASE=sv-release sdl-release
22 TARGETS_RELEASE_PROFILE=sv-release-profile sdl-release-profile
23 TARGETS_NEXUIZ=sv-nexuiz sdl-nexuiz
29 DP_LINK_CRYPTO?=dlopen
30 DP_LINK_CRYPTO_RIJNDAEL?=dlopen
33 ###### Optional features #####
34 DP_VIDEO_CAPTURE?=enabled
35 .if $(DP_VIDEO_CAPTURE) == "enabled"
36 CFLAGS_VIDEO_CAPTURE=-DCONFIG_VIDEO_CAPTURE
37 OBJ_VIDEO_CAPTURE=cap_avi.o cap_ogg.o
44 UNIX_X11LIBPATH=/usr/X11R6/lib
47 .if $(DP_MAKE_TARGET) == "bsd"
50 .if $(DP_ARCH) == "FreeBSD"
59 LDFLAGS_SV=$(LDFLAGS_BSDSV)
60 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
62 SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS) $(SDLCONFIG_UNIXCFLAGS_X11)
63 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS) $(SDLCONFIG_UNIXLIBS_X11)
64 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS) $(SDLCONFIG_UNIXSTATICLIBS_X11)
67 EXE_SDL=$(EXE_UNIXSDL)
68 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
69 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
71 # set these to "" if you want to use dynamic loading instead
73 .if $(DP_LINK_ZLIB) == "shared"
74 CFLAGS_LIBZ=-DLINK_TO_ZLIB
82 .if $(DP_LINK_JPEG) == "shared"
83 CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
91 .if $(DP_LINK_ODE) == "shared"
92 ODE_CONFIG?=ode-config
93 LIB_ODE=`$(ODE_CONFIG) --libs`
94 CFLAGS_ODE=`$(ODE_CONFIG) --cflags` -DUSEODE -DLINK_TO_LIBODE
101 .if $(DP_LINK_CRYPTO) == "shared"
102 LIB_CRYPTO=-ld0_blind_id
103 CFLAGS_CRYPTO=-DLINK_TO_CRYPTO
108 .if $(DP_LINK_CRYPTO_RIJNDAEL) == "shared"
109 LIB_CRYPTO_RIJNDAEL=-ld0_rijndael
110 CFLAGS_CRYPTO_RIJNDAEL=-DLINK_TO_CRYPTO_RIJNDAEL
113 CFLAGS_CRYPTO_RIJNDAEL=
117 .if $(DP_LINK_XMP) == "shared"
118 OBJ_SND_XMP=snd_xmp.o
120 CFLAGS_SND_XMP=-DUSEXMP -DLINK_TO_LIBXMP
122 OBJ_SND_XMP=snd_xmp.o
124 CFLAGS_SND_XMP=-DUSEXMP
130 ##### Extra CFLAGS #####
134 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
140 .ifdef DP_PRELOAD_DEPENDENCIES
141 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
142 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
143 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
147 # Systems without IPv6 support should uncomment this:
148 #CFLAGS_NET+=-DNOSUPPORTIPV6
150 ##### BSD Make specific definitions #####
152 MAKE:=$(MAKE) -f BSDmakefile
154 DO_LD=$(CC) -o ../../../$@ $> $(LDFLAGS)
157 ##### Definitions shared by all makefiles #####
158 .include "makefile.inc"