From ac9282997070df1ee26cef9b727d13016f80f7a1 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 7 Aug 2012 14:36:45 +0000 Subject: GNUmakefile: added a profiled build ("make profile=1") git-svn-id: http://mc-server.googlecode.com/svn/trunk@720 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- GNUmakefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 01b023f8a..803730d5d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -43,8 +43,18 @@ CC_OPTIONS = -s -O3 CXX_OPTIONS = -s -O3 LNK_OPTIONS = -lstdc++ -pthread -O3 BUILDDIR = build/release/ + 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 -- cgit v1.2.3