Improved make rules for profiling and debugging

This commit is contained in:
Clifford Wolf 2013-11-22 04:05:30 +01:00
parent 1c4a6411af
commit 7b01ba384f
1 changed files with 3 additions and 3 deletions

View File

@ -34,12 +34,12 @@ ABCPULL = 1
ifeq ($(CONFIG),clang-debug) ifeq ($(CONFIG),clang-debug)
CXX = clang CXX = clang
CXXFLAGS += -std=c++11 -O0 CXXFLAGS += -std=c++11 -Os
endif endif
ifeq ($(CONFIG),gcc-debug) ifeq ($(CONFIG),gcc-debug)
CXX = gcc CXX = gcc
CXXFLAGS += -std=gnu++0x -O0 CXXFLAGS += -std=gnu++0x -Os
endif endif
ifeq ($(CONFIG),release) ifeq ($(CONFIG),release)
@ -53,7 +53,7 @@ LDLIBS += -ltcl8.5
endif endif
ifeq ($(ENABLE_GPROF),1) ifeq ($(ENABLE_GPROF),1)
CXXFLAGS += -pg CXXFLAGS += -pg -fno-inline
LDFLAGS += -pg LDFLAGS += -pg
endif endif