r1180 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Sep 14 19:07:28 EDT 2007


Author: tma
Date: 2007-09-14 19:07:28 -0400 (Fri, 14 Sep 2007)
New Revision: 1180

Modified:
   trunk/Makefile
Log:
* Split off DEPEND_CFLAGS so -MMD isn't used when doing library checks


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2007-09-13 22:37:33 UTC (rev 1179)
+++ trunk/Makefile	2007-09-14 23:07:28 UTC (rev 1180)
@@ -713,7 +713,9 @@
 endif
 
 ifeq ($(GENERATE_DEPENDENCIES),1)
-  BASE_CFLAGS += -MMD
+  DEPEND_CFLAGS = -MMD
+else
+  DEPEND_CFLAGS =
 endif
 
 ifeq ($(USE_SVN),1)
@@ -783,10 +785,12 @@
 all: debug release
 
 debug:
-	@$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEBUG_CFLAGS)" V=$(V)
+	@$(MAKE) targets B=$(BD) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \
+		$(DEBUG_CFLAGS)" V=$(V)
 
 release:
-	@$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(RELEASE_CFLAGS)" V=$(V)
+	@$(MAKE) targets B=$(BR) CFLAGS="$(CFLAGS) $(DEPEND_CFLAGS) \
+		$(RELEASE_CFLAGS)" V=$(V)
 
 # Create the build directories, check libraries and print out
 # an informational message, then start building




More information about the quake3-commits mailing list