aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-10-23 13:35:31 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2007-10-23 13:35:31 +0000
commitcea5de214e453f4b70f2769c3649eb4c21c2a357 (patch)
treed0e10c877e93e9a7c0f5e145522537c783409922 /Makefile
parenteea34d0b40d24039fe0a2b86babe39dda84ee6c5 (diff)
downloadioquake3-aero-cea5de214e453f4b70f2769c3649eb4c21c2a357.tar.gz
ioquake3-aero-cea5de214e453f4b70f2769c3649eb4c21c2a357.zip
introduce TOOLS_OPTIMIZE to be able to override compiler flags used for
tools compilation git-svn-id: svn://svn.icculus.org/quake3/trunk@1201 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec8e540..6911165 100644
--- a/Makefile
+++ b/Makefile
@@ -131,6 +131,7 @@ LBURGDIR=$(MOUNT_DIR)/tools/lcc/lburg
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 @@ makedirs:
# 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 $<