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:
parent
b53b40b561
commit
ac92829970
14
GNUmakefile
14
GNUmakefile
@ -43,8 +43,18 @@ CC_OPTIONS = -s -O3
|
|||||||
CXX_OPTIONS = -s -O3
|
CXX_OPTIONS = -s -O3
|
||||||
LNK_OPTIONS = -lstdc++ -pthread -O3
|
LNK_OPTIONS = -lstdc++ -pthread -O3
|
||||||
BUILDDIR = build/release/
|
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)
|
ifeq ($(pedantic),1)
|
||||||
################
|
################
|
||||||
# pedantic build - basically a debug build with lots of warnings
|
# 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
|
LNK_OPTIONS = -lstdc++ -pthread -ggdb
|
||||||
BUILDDIR = build/debug/
|
BUILDDIR = build/debug/
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user