diff options
author | Peter Carbonetto | 2017-08-07 13:23:44 -0500 |
---|---|---|
committer | Peter Carbonetto | 2017-08-07 13:23:44 -0500 |
commit | ecc5c0b5b11cbc2501b60d6d4e9a9b3e8f270d02 (patch) | |
tree | b27cd975b19b85e75255cacf1c3d771266c56a10 /Makefile | |
parent | 8be2ce433c015d8c6776d270537d645c7e761bdf (diff) | |
parent | 7360d14216400b8f12fbfda03ac2f4827b102711 (diff) | |
download | pangemma-ecc5c0b5b11cbc2501b60d6d4e9a9b3e8f270d02.tar.gz |
Merge branch 'master' of github.com:genetics-statistics/GEMMA
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -30,7 +30,13 @@ SRC_DIR = ./src CPP = g++ -CPPFLAGS = -O3 -std=gnu++11 -isystem/$(EIGEN_INCLUDE_PATH) +ifdef DEBUG + # development mode + CPPFLAGS = -g -O3 -std=gnu++11 -isystem/$(EIGEN_INCLUDE_PATH) +else + # release + CPPFLAGS = -DNDEBUG -O3 -std=gnu++11 -isystem/$(EIGEN_INCLUDE_PATH) +endif ifdef SHOW_COMPILER_WARNINGS CPPFLAGS += -Wall @@ -106,12 +112,19 @@ $(OBJS) : $(HDR) $(CPP) $(CPPFLAGS) $(HEADERS) -c $*.cpp -o $*.o .SUFFIXES : .cpp .c .o $(SUFFIXES) -check: all +fast-check: all + cd test && ./dev_test_suite.sh | tee ../dev_test.log + grep -q 'success rate: 100%' dev_test.log + +slow-check: all cd test && ./test_suite.sh | tee ../test.log grep -q 'success rate: 100%' test.log +check: fast-check slow-check + clean: rm -rf ${SRC_DIR}/*.o ${SRC_DIR}/*~ *~ $(OUTPUT) + rm test/output/* DIST_COMMON = COPYING.txt README.txt Makefile DIST_SUBDIRS = src doc example bin |