r1201 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Oct 23 09:35:31 EDT 2007


Author: ludwig
Date: 2007-10-23 09:35:31 -0400 (Tue, 23 Oct 2007)
New Revision: 1201

Modified:
   trunk/Makefile
Log:
introduce TOOLS_OPTIMIZE to be able to override compiler flags used for
tools compilation


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2007-10-22 19:08:33 UTC (rev 1200)
+++ trunk/Makefile	2007-10-23 13:35:31 UTC (rev 1201)
@@ -131,6 +131,7 @@
 Q3CPPDIR=$(MOUNT_DIR)/tools/lcc/cpp
 Q3LCCETCDIR=$(MOUNT_DIR)/tools/lcc/etc
 Q3LCCSRCDIR=$(MOUNT_DIR)/tools/lcc/src
+TOOLS_OPTIMIZE=-g -O2 -Wall -fno-strict-aliasing
 LOKISETUPDIR=misc/setup
 SDLHDIR=$(MOUNT_DIR)/SDL12
 LIBSDIR=$(MOUNT_DIR)/libs
@@ -909,12 +910,16 @@
 # QVM BUILD TOOLS
 #############################################################################
 
-TOOLS_CFLAGS = -O2 -Wall -fno-strict-aliasing -MMD \
+TOOLS_CFLAGS = $(TOOLS_OPTIMIZE) \
                -DTEMPDIR=\"$(TEMPDIR)\" -DSYSTEM=\"\" \
                -I$(Q3LCCSRCDIR) \
                -I$(LBURGDIR)
 TOOLS_LDFLAGS =
 
+ifeq ($(GENERATE_DEPENDENCIES),1)
+	TOOLS_CFLAGS += -MMD
+endif
+
 define DO_TOOLS_CC
 $(echo_cmd) "TOOLS_CC $<"
 $(Q)$(CC) $(TOOLS_CFLAGS) -o $@ -c $<




More information about the quake3-commits mailing list