From 6955f80c6e020cebec6212d7ce09def3329967f2 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 30 Jan 2005 23:03:31 +0000 Subject: [PATCH] (svn r1744) DEBUG and PROFILE can be used at the same time. --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 318b122557..c2122b1f92 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