X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=BSDmakefile;h=ac9793a06a0f6db3a0c065836add4438f2922ff4;hb=0b01a8b685fecdd55eefbe84a3c26901c1926a4a;hp=5c7e050ff539209892f34290c042ff6f61880936;hpb=a37cd455150d17f68eec25ae6fa57808d940f1ae;p=xonotic%2Fdarkplaces.git diff --git a/BSDmakefile b/BSDmakefile index 5c7e050f..ac9793a0 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -10,6 +10,14 @@ DP_ARCH != uname # Command used to delete files CMD_RM=$(CMD_UNIXRM) +# default targets +TARGETS_DEBUG=sv-debug cl-debug sdl-debug +TARGETS_PROFILE=sv-profile cl-profile sdl-profile +TARGETS_RELEASE=sv-release cl-release sdl-release +TARGETS_RELEASE_PROFILE=sv-release-profile cl-release-profile sdl-release-profile +TARGETS_NEXUIZ=sv-nexuiz cl-nexuiz sdl-nexuiz + +# X11 libs UNIX_X11LIBPATH=/usr/X11R6/lib # BSD configuration @@ -42,6 +50,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 +99,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 #####