]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
sync libjpeg support from makefile to BSDmakefile
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Jan 2011 06:02:20 +0000 (06:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 21 Jan 2011 06:02:20 +0000 (06:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10714 d7cf8633-e32d-0410-b094-e92efae38249

BSDmakefile

index 5c7e050ff539209892f34290c042ff6f61880936..28106df6c7cff170c0cdc214c122e366a01ffdee 100644 (file)
@@ -42,6 +42,10 @@ EXE_CLNEXUIZ=$(EXE_UNIXCLNEXUIZ)
 EXE_SVNEXUIZ=$(EXE_UNIXSVNEXUIZ)
 EXE_SDLNEXUIZ=$(EXE_UNIXSDLNEXUIZ)
 
+# libjpeg dependency (set these to "" if you want to use dynamic loading instead)
+CFLAGS_LIBJPEG=-DLINK_TO_LIBJPEG
+LIB_JPEG=-ljpeg
+
 .endif
 
 
@@ -87,14 +91,6 @@ 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 #####