summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-07 16:36:45 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-07 16:36:45 +0200
commitac9282997070df1ee26cef9b727d13016f80f7a1 (patch)
treecda4609746d172621996d5ceb36323abf52c78ca
parentPrepared WindowOwner class hierarchy for minecart with chest. (diff)
downloadcuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.tar
cuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.tar.gz
cuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.tar.bz2
cuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.tar.lz
cuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.tar.xz
cuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.tar.zst
cuberite-ac9282997070df1ee26cef9b727d13016f80f7a1.zip
Diffstat (limited to '')
-rw-r--r--GNUmakefile12
1 files changed, 11 insertions, 1 deletions
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