summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-30 23:03:31 +0000
committertron <tron@openttd.org>2005-01-30 23:03:31 +0000
commit98da9d371289f20d141d21e8e49bb80019322239 (patch)
tree9281f7ebd25eaae680b11b0e7e8ba6c26ff9e5fa
parent337de948c1330e7b63e4349a484232ee6212ad16 (diff)
downloadopenttd-98da9d371289f20d141d21e8e49bb80019322239.tar.xz
(svn r1744) DEBUG and PROFILE can be used at the same time.
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 318b12255..c2122b1f9 100644
--- a/Makefile
+++ b/Makefile
@@ -284,19 +284,21 @@ ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true)
CFLAGS += -Wdeclaration-after-statement -Wold-style-definition
endif
+ifdef DEBUG
+ CFLAGS += -g -D_DEBUG
+endif
+
+ifdef PROFILE
+ CFLAGS += -pg
+ LDFLAGS += -pg
+endif
+
CDEFS=-DWITH_REV
LDFLAGS=
LIBS=
-ifdef DEBUG
-# Debug mode
-CDEFS += -D_DEBUG
-BASECFLAGS += -g
-else
-ifdef PROFILE
-BASECFLAGS += -pg
-LDFLAGS += -pg
-else
+ifndef DEBUG
+ifndef PROFILE
# Release mode
ifndef MORPHOS
# automatical strip breaks under morphos