diff options
| author | Peter Carbonetto | 2017-08-07 13:23:24 -0500 |
|---|---|---|
| committer | GitHub | 2017-08-07 13:23:24 -0500 |
| commit | 7360d14216400b8f12fbfda03ac2f4827b102711 (patch) | |
| tree | 63a4031267b10f587b695adb487aca5213889b20 /Makefile | |
| parent | d8db988550d4cd0303f0b82a75499c2c94d97d45 (diff) | |
| parent | 449d882a3b33ef81ef4f0127c3932b01fa796dbb (diff) | |
| download | pangemma-7360d14216400b8f12fbfda03ac2f4827b102711.tar.gz | |
Merge pull request #63 from genenetwork/loco-formatted
LOCO is implemented in GEMMA for the BIMBAM format.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile index 268174f..33c1f2d 100644 --- a/Makefile +++ b/Makefile @@ -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 |
