]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - BSDmakefile
reuse screenspace depth texture unit for orthographic shadowmaps so they can coexist...
[xonotic/darkplaces.git] / BSDmakefile
index 23563cd3d29f08a2ac15cd0515a5156183ce6b3d..24012acb4743f5d8e7e6b1a33a3d4973b8da4cbb 100644 (file)
@@ -87,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 #####