diff options
author | Pjotr Prins | 2017-07-11 09:05:46 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-07-11 09:05:46 +0000 |
commit | 3695a36d116710338a2d89006b1c636ce312b8bc (patch) | |
tree | 67ee4447ee970c93ccaf09f6e44cdb9bda4edeb2 /Makefile | |
parent | e415101f7cb6b3e45a2bf49e3f60aa133cbc6517 (diff) | |
download | pangemma-3695a36d116710338a2d89006b1c636ce312b8bc.tar.gz |
Makefile: compiler warnings optional
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |