about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-17T15·07+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-09-17T15·07+0200
commit5a05cf4063fc6ea666f3e24c60bd2e9e5526ef4e (patch)
tree6fd1fa6286e9b7c29d713ec125d38dd27944f8f8 /Makefile
parent6e5b02bee4c117863f11e4697da9e4f55b81e52d (diff)
Add Make flag to disable optimization
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d6c645f0f336..b41a820275f4 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,15 @@ makefiles = \
   doc/manual/local.mk \
   tests/local.mk
 
-GLOBAL_CXXFLAGS += -std=c++0x
+GLOBAL_CXXFLAGS += -std=c++0x -g -Wall
 
 include Makefile.config
 
+OPTIMIZE = 1
+
+ifeq ($(OPTIMIZE), 1)
+  GLOBAL_CFLAGS += -O3
+  GLOBAL_CXXFLAGS += -O3
+endif
+
 include mk/lib.mk