summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-11-22 04:05:30 +0100
committerClifford Wolf <clifford@clifford.at>2013-11-22 04:05:30 +0100
commit7b01ba384f1374d6a6fb3d40d7dc5fd03d50ac31 (patch)
treed01e93a0ea13a31c4d2812e3db11bec2fac198cb
parent1c4a6411af4339a26d28d1e4b93cd2c44eb16228 (diff)
Improved make rules for profiling and debugging
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f4f46785..3551723f 100644
--- a/Makefile
+++ b/Makefile
@@ -34,12 +34,12 @@ ABCPULL = 1
ifeq ($(CONFIG),clang-debug)
CXX = clang
-CXXFLAGS += -std=c++11 -O0
+CXXFLAGS += -std=c++11 -Os
endif
ifeq ($(CONFIG),gcc-debug)
CXX = gcc
-CXXFLAGS += -std=gnu++0x -O0
+CXXFLAGS += -std=gnu++0x -Os
endif
ifeq ($(CONFIG),release)
@@ -53,7 +53,7 @@ LDLIBS += -ltcl8.5
endif
ifeq ($(ENABLE_GPROF),1)
-CXXFLAGS += -pg
+CXXFLAGS += -pg -fno-inline
LDFLAGS += -pg
endif