1 ##### DP_MAKE_TARGET autodetection and arch specific variables #####
10 # Command used to delete files
13 UNIX_X11LIBPATH=/usr/X11R6/lib
16 .if $(DP_MAKE_TARGET) == "bsd"
19 .if $(DP_ARCH) == "FreeBSD"
30 LDFLAGS_CL=$(LDFLAGS_BSDCL)
31 LDFLAGS_SV=$(LDFLAGS_BSDSV)
32 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
34 SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS)
35 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS)
36 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS)
40 EXE_SDL=$(EXE_UNIXSDL)
41 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
42 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
43 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
48 ##### Sound configuration #####
51 DP_SOUND_API=$(DEFAULT_SNDAPI)
55 .if $(DP_SOUND_API) == "NULL"
56 OBJ_SOUND=$(OBJ_SND_NULL)
57 LIB_SOUND=$(LIB_SND_NULL)
60 # OSS: Open Sound System
61 .if $(DP_SOUND_API) == "OSS"
62 OBJ_SOUND=$(OBJ_SND_OSS)
63 LIB_SOUND=$(LIB_SND_OSS)
66 # BSD: BSD / Sun audio API
67 .if $(DP_SOUND_API) == "BSD"
68 OBJ_SOUND=$(OBJ_SND_BSD)
69 LIB_SOUND=$(LIB_SND_BSD)
73 ##### Extra CFLAGS #####
77 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
83 .ifdef DP_PRELOAD_DEPENDENCIES
84 LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
85 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
86 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
87 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
91 ##### BSD Make specific definitions #####
93 MAKE:=$(MAKE) -f BSDmakefile
95 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
98 ##### Definitions shared by all makefiles #####
99 .include "makefile.inc"