DP_PRELOAD_DEPENDENCIES=yes makefile option: when set, link against the libraries...
[xonotic/darkplaces.git] / BSDmakefile
index 249a2bc..6514487 100644 (file)
@@ -75,6 +75,14 @@ CFLAGS_FS=-DDP_FS_BASEDIR='\"$(DP_FS_BASEDIR)\"'
 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 #####