about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2017-07-11 09:05:46 +0000
committerPjotr Prins2017-07-11 09:05:46 +0000
commit3695a36d116710338a2d89006b1c636ce312b8bc (patch)
tree67ee4447ee970c93ccaf09f6e44cdb9bda4edeb2
parente415101f7cb6b3e45a2bf49e3f60aa133cbc6517 (diff)
downloadpangemma-3695a36d116710338a2d89006b1c636ce312b8bc.tar.gz
Makefile: compiler warnings optional
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1a1a87b..c944309 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@
 # Set this variable to either LNX or MAC
 SYS = LNX
 # Leave blank after "=" to disable; put "= 1" to enable
+SHOW_COMPILER_WARNINGS   =
 WITH_LAPACK     = 1
 WITH_OPENBLAS   =
 NO_INTEL_COMPAT =
@@ -29,12 +30,16 @@ SRC_DIR  = ./src
 
 CPP = g++
 
-CPPFLAGS = -Wall -O3 -std=gnu++11 -I$(EIGEN_INCLUDE_PATH)
+CPPFLAGS = -O3 -std=gnu++11 -I$(EIGEN_INCLUDE_PATH)
+
+ifdef SHOW_COMPILER_WARNINGS
+  CPPFLAGS += -Wall
+endif
 
 ifdef FORCE_DYNAMIC
-LIBS = -lgsl -lgslcblas -pthread -lz
+  LIBS = -lgsl -lgslcblas -pthread -lz
 else
-LIBS = -lgsl -lgslcblas -pthread -lz
+  LIBS = -lgsl -lgslcblas -pthread -lz
 endif
 
 OUTPUT = $(BIN_DIR)/gemma