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) $(SDLCONFIG_UNIXCFLAGS_X11)
35 SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS) $(SDLCONFIG_UNIXLIBS_X11)
36 SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS) $(SDLCONFIG_UNIXSTATICLIBS_X11)
40 EXE_SDL=$(EXE_UNIXSDL)
41 EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
42 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
43 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
45 # libjpeg dependency (set these to "" if you want to use dynamic loading instead)
46 CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
52 ##### Sound configuration #####
55 DP_SOUND_API=$(DEFAULT_SNDAPI)
59 .if $(DP_SOUND_API) == "NULL"
60 OBJ_SOUND=$(OBJ_SND_NULL)
61 LIB_SOUND=$(LIB_SND_NULL)
64 # OSS: Open Sound System
65 .if $(DP_SOUND_API) == "OSS"
66 OBJ_SOUND=$(OBJ_SND_OSS)
67 LIB_SOUND=$(LIB_SND_OSS)
70 # BSD: BSD / Sun audio API
71 .if $(DP_SOUND_API) == "BSD"
72 OBJ_SOUND=$(OBJ_SND_BSD)
73 LIB_SOUND=$(LIB_SND_BSD)
77 ##### Extra CFLAGS #####
81 CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
87 .ifdef DP_PRELOAD_DEPENDENCIES
88 LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
89 LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
90 LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
91 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
95 ##### BSD Make specific definitions #####
97 MAKE:=$(MAKE) -f BSDmakefile
99 DO_LD=$(CC) -o $@ $> $(LDFLAGS)
102 ##### Definitions shared by all makefiles #####
103 .include "makefile.inc"