]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - BSDmakefile
experimental makefile option make DP_LINK_TO_JPEG=1 - use libjpeg.h instead of dynami...
[xonotic/darkplaces.git] / BSDmakefile
index 6514487ef9a43741712a230e9c88ddee520bf731..24012acb4743f5d8e7e6b1a33a3d4973b8da4cbb 100644 (file)
@@ -31,6 +31,10 @@ LDFLAGS_CL=$(LDFLAGS_BSDCL)
 LDFLAGS_SV=$(LDFLAGS_BSDSV)
 LDFLAGS_SDL=$(LDFLAGS_BSDSDL)
 
+SDLCONFIG_CFLAGS=$(SDLCONFIG_UNIXCFLAGS)
+SDLCONFIG_LIBS=$(SDLCONFIG_UNIXLIBS)
+SDLCONFIG_STATICLIBS=$(SDLCONFIG_UNIXSTATICLIBS)
+
 EXE_CL=$(EXE_UNIXCL)
 EXE_SV=$(EXE_UNIXSV)
 EXE_SDL=$(EXE_UNIXSDL)
@@ -83,6 +87,14 @@ LDFLAGS_SDL+=$(LDFLAGS_UNIXSDL_PRELOAD)
 CFLAGS_PRELOAD=$(CFLAGS_UNIX_PRELOAD)
 .endif
 
+.ifdef DP_LINK_TO_LIBJPEG
+LDFLAGS_LIBJPEG?=-ljpeg
+LDFLAGS_CL+=$(LDFLAGS_LIBJPEG)
+LDFLAGS_SV+=$(LDFLAGS_LIBJPEG)
+LDFLAGS_SDL+=$(LDFLAGS_LIBJPEG)
+CFLAGS_PRELOAD+=$(CFLAGS_LIBJPEG) -DLINK_TO_LIBJPEG
+.endif
+
 
 ##### BSD Make specific definitions #####
 
@@ -93,11 +105,3 @@ DO_LD=$(CC) -o $@ $> $(LDFLAGS)
 
 ##### Definitions shared by all makefiles #####
 .include "makefile.inc"
-
-
-##### Dependency files #####
-
-DEPEND_FILES != ls *.d
-.for i in $(DEPEND_FILES)
-.      include "$i"
-.endfor