diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-07 16:36:45 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-07 16:36:45 +0200 |
commit | ac9282997070df1ee26cef9b727d13016f80f7a1 (patch) | |
tree | cda4609746d172621996d5ceb36323abf52c78ca | |
parent | Prepared WindowOwner class hierarchy for minecart with chest. (diff) | |
download | cuberite-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-- | GNUmakefile | 12 |
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
|