1 ##### DP_MAKE_TARGET autodetection and arch specific variables #####
10 # Command used to delete files
14 TARGETS_DEBUG=sv-debug cl-debug sdl-debug
15 TARGETS_PROFILE=sv-profile cl-profile sdl-profile
16 TARGETS_RELEASE=sv-release cl-release sdl-release
17 TARGETS_RELEASE_PROFILE=sv-release-profile cl-release-profile sdl-release-profile
18 TARGETS_NEXUIZ=sv-nexuiz cl-nexuiz sdl-nexuiz
21 UNIX_X11LIBPATH=/usr/X11R6/lib
24 .if $(DP_MAKE_TARGET) == "bsd"
27 .if $(DP_ARCH) == "FreeBSD"
38 LDFLAGS_CL=$(LDFLAGS_BSDCL)
39 LDFLAGS_SV=$(LDFLAGS_BSDSV)
40 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
42 SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS) $(SDLCONFIG_UNIXCFLAGS_X11)
43 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS) $(SDLCONFIG_UNIXLIBS_X11)
44 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS) $(SDLCONFIG_UNIXSTATICLIBS_X11)
48 EXE_SDL=$(EXE_UNIXSDL)
49 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
50 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
51 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
53 # libjpeg dependency (set these to "" if you want to use dynamic loading instead)
54 CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
60 ##### Sound configuration #####
63 DP_SOUND_API=$(DEFAULT_SNDAPI)
67 .if $(DP_SOUND_API) == "NULL"
68 OBJ_SOUND=$(OBJ_SND_NULL)
69 LIB_SOUND=$(LIB_SND_NULL)
72 # OSS: Open Sound System
73 .if $(DP_SOUND_API) == "OSS"
74 OBJ_SOUND=$(OBJ_SND_OSS)
75 LIB_SOUND=$(LIB_SND_OSS)
78 # BSD: BSD / Sun audio API
79 .if $(DP_SOUND_API) == "BSD"
80 OBJ_SOUND=$(OBJ_SND_BSD)
81 LIB_SOUND=$(LIB_SND_BSD)
85 ##### Extra CFLAGS #####
89 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
95 .ifdef DP_PRELOAD_DEPENDENCIES
96 LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
97 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
98 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
99 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
103 ##### BSD Make specific definitions #####
105 MAKE:=$(MAKE) -f BSDmakefile
107 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
110 ##### Definitions shared by all makefiles #####
111 .include "makefile.inc"