]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - BSDmakefile
i'm sure there are plenty of bugs here for you guys to fix
[xonotic/darkplaces.git] / BSDmakefile
index 6d86a291f161ae5c3b48c743d7baa5b62a306586..6514487ef9a43741712a230e9c88ddee520bf731 100644 (file)
@@ -7,7 +7,6 @@ DP_MAKE_TARGET=bsd
 .endif
 DP_ARCH != uname
 
-
 # Command used to delete files
 CMD_RM=$(CMD_UNIXRM)
 
@@ -67,6 +66,24 @@ LIB_SOUND=$(LIB_SND_BSD)
 .endif
 
 
+##### Extra CFLAGS #####
+
+CFLAGS_MAKEDEP=-MD
+.ifdef DP_FS_BASEDIR
+CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
+.else
+CFLAGS_FS=
+.endif
+
+CFLAGS_PRELOAD=
+.ifdef DP_PRELOAD_DEPENDENCIES
+LDFLAGS_CL+=$(LDFLAGS_UNIXCL_PRELOAD)
+LDFLAGS_SV+=$(LDFLAGS_UNIXSV_PRELOAD)
+LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
+CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
+.endif
+
+
 ##### BSD Make specific definitions #####
 
 MAKE:=$(MAKE) -f BSDmakefile