1
0

GNUmakefile: added a profiled build ("make profile=1")

git-svn-id: http://mc-server.googlecode.com/svn/trunk@720 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-08-07 14:36:45 +00:00
parent b53b40b561
commit ac92829970

View File

@ -43,8 +43,18 @@ CC_OPTIONS = -s -O3
CXX_OPTIONS = -s -O3
LNK_OPTIONS = -lstdc++ -pthread -O3
BUILDDIR = build/release/
else
else
ifeq ($(profile),1)
################
# profile build - a release build with symbols and profiling engine built in
################
CC_OPTIONS = -s -ggdb -O3 -pg
CXX_OPTIONS = -s -ggdb -O3 -pg
LNK_OPTIONS = -lstdc++ -pthread -ggdb -O3 -pg
BUILDDIR = build/profile/
else
ifeq ($(pedantic),1)
################
# pedantic build - basically a debug build with lots of warnings
@ -64,7 +74,7 @@ CXX_OPTIONS = -s -ggdb -D_DEBUG
LNK_OPTIONS = -lstdc++ -pthread -ggdb
BUILDDIR = build/debug/
endif
endif
endif