From 9b4b51841341cbfc228b84b067f7c20816ff4587 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 8 Jul 2011 08:27:05 +0000 Subject: [PATCH] OS X compile: do not build the AGL target by default (use make cl-release to build it anyway) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11233 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d91a9af0b94761f863408e7120d7c48ac2e72406 --- BSDmakefile | 8 ++++++++ makefile | 14 ++++++++++++++ makefile.inc | 10 +++++----- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/BSDmakefile b/BSDmakefile index 28106df6..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 diff --git a/makefile b/makefile index 7d3f73a3..84db7512 100644 --- a/makefile +++ b/makefile @@ -47,6 +47,12 @@ else UNIX_X11LIBPATH:=/usr/X11R6/lib endif +# 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 # Linux configuration ifeq ($(DP_MAKE_TARGET), linux) @@ -109,6 +115,14 @@ ifeq ($(DP_MAKE_TARGET), macosx) # we don't currently link to libjpeg on Mac because the OS does not have an easy way to load libjpeg and we provide our own in the .app CFLAGS_LIBJPEG= LIB_JPEG= + + # on OS X, we don't build the CL by default because it uses deprecated + # and not-implemented-in-64bit Carbon + TARGETS_DEBUG=sv-debug sdl-debug + TARGETS_PROFILE=sv-profile sdl-profile + TARGETS_RELEASE=sv-release sdl-release + TARGETS_RELEASE_PROFILE=sv-release-profile sdl-release-profile + TARGETS_NEXUIZ=sv-nexuiz sdl-nexuiz endif # SunOS configuration (Solaris) diff --git a/makefile.inc b/makefile.inc index 176e384e..dd55442a 100644 --- a/makefile.inc +++ b/makefile.inc @@ -358,19 +358,19 @@ help: @echo debug : - $(MAKE) sv-debug cl-debug sdl-debug + $(MAKE) $(TARGETS_DEBUG) profile : - $(MAKE) sv-profile cl-profile sdl-profile + $(MAKE) $(TARGETS_PROFILE) release : - $(MAKE) sv-release cl-release sdl-release + $(MAKE) $(TARGETS_RELEASE) release-profile : - $(MAKE) sv-release-profile cl-release-profile sdl-release-profile + $(MAKE) $(TARGETS_RELEASE_PROFILE) nexuiz : - $(MAKE) sv-nexuiz cl-nexuiz sdl-nexuiz + $(MAKE) $(TARGETS_NEXUIZ) cl-debug : $(MAKE) bin-debug \ -- 2.39.2