]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add support for "make LINK_TO_LIBJPEG=1"
authorSimon McVittie <smcv@debian.org>
Tue, 5 Jul 2011 21:08:51 +0000 (22:08 +0100)
committernyov <nyov@nexnode.net>
Thu, 27 Nov 2014 09:40:21 +0000 (09:40 +0000)
In Debian we want library dependencies to work in the conventional way,
since many tools expect that and use it to generate package
dependencies.

Origin: vendor, Debian

makefile

index 35de328396cb28f3f0d9338264f4e9082d901409..2b2280494a072dce0bb8274532fa424f1f1756c3 100644 (file)
--- a/makefile
+++ b/makefile
@@ -302,6 +302,11 @@ else
        CFLAGS_FS=
 endif
 
+ifdef LINK_TO_LIBJPEG
+CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
+LIB_JPEG=-ljpeg
+endif
+
 CFLAGS_PRELOAD=
 ifneq ($(DP_MAKE_TARGET), mingw)
 ifdef DP_PRELOAD_DEPENDENCIES