From: Simon McVittie Date: Tue, 5 Jul 2011 21:08:51 +0000 (+0100) Subject: Add support for "make LINK_TO_LIBJPEG=1" X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d24a86e33a2323bd6db4b1fd1d010d9c0f72308;p=xonotic%2Fdarkplaces.git Add support for "make LINK_TO_LIBJPEG=1" 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 --- diff --git a/makefile b/makefile index 35de3283..2b228049 100644 --- 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