summaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-24 19:44:22 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-24 19:44:22 +0100
commite3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed (patch)
treeb2e2b7b92f7157f796851139a05fce30f222fdae /GNUmakefile
parentMoved SQLite, LuaExpat, and MD5 to /lib (diff)
downloadcuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.tar
cuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.tar.gz
cuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.tar.bz2
cuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.tar.lz
cuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.tar.xz
cuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.tar.zst
cuberite-e3db69c4ae5d373ea1f1b31c0fc1889f328ea2ed.zip
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/GNUmakefile b/GNUmakefile
index ce5920e5b..2ddfefee9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -47,9 +47,9 @@ ifeq ($(release),1)
# release build - fastest run-time, no gdb support
################
-CC_OPTIONS = -g -O3 -DNDEBUG
-CXX_OPTIONS = -g -O3 -DNDEBUG
-LNK_OPTIONS = -pthread -O3
+CC_OPTIONS = -g -Ofast -DNDEBUG
+CXX_OPTIONS = -g -Ofast -DNDEBUG
+LNK_OPTIONS = -pthread -Ofast
BUILDDIR = build/release/
else
@@ -58,18 +58,18 @@ ifeq ($(profile),1)
# profile build - a release build with symbols and profiling engine built in
################
-CC_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
-CXX_OPTIONS = -s -g -ggdb -O3 -pg -DNDEBUG
-LNK_OPTIONS = -pthread -ggdb -O3 -pg
+CC_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
+CXX_OPTIONS = -s -g -ggdb -Ofast -pg -DNDEBUG
+LNK_OPTIONS = -pthread -ggdb -Ofast -pg
BUILDDIR = build/profile/
else
################
# debug build - fully traceable by gdb in C++ code, slowest
-# Since C code is used only for supporting libraries (zlib, lua), it is still O3-optimized
+# Since C code is used only for supporting libraries (zlib, lua), it is still Ofast-optimized
################
-CC_OPTIONS = -s -ggdb -g -D_DEBUG -O3
+CC_OPTIONS = -s -ggdb -g -D_DEBUG -Ofast
CXX_OPTIONS = -s -ggdb -g -D_DEBUG -Og
LNK_OPTIONS = -pthread -g -ggdb -Og
BUILDDIR = build/debug/
@@ -139,7 +139,6 @@ endif
INCLUDE = -I.\
-Isrc\
- -Isrc/md5\
-Isrc/items\
-Isrce/blocks\
-Ilib