-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
executable file
·38 lines (28 loc) · 960 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
TARGET=HmnTrimmer
DIRSRC=./src
DIROBJ=./obj
DIRLIB=./lib
DIRTEST=./test
SRC=$(wildcard $(DIRSRC)/*.cpp)
OBJ=$(patsubst %.cpp,$(DIROBJ)/%.o,$(notdir $(SRC)))
CXX=g++
#/save/ggricourt/opt/gcc-5.3.0/build/bin/g++
LIBS=-I lib/seqan-2.4.0/include -I lib/spdlog-1.5.0/include -I lib/rapidjson-1.1.0/include -I lib/igzip-042/igzip/c_code -I lib/igzip-042/include -L lib/igzip-042/igzip
CXXFLAGS=-std=c++14 -O3 -W -Wall -pedantic -lrt -DNDEBUG -DSEQAN_ENABLE_DEBUG=0 -DSEQAN_ENABLE_TESTING=0 -DSEQAN_HAS_ZLIB=1 -lz -DSEQAN_HAS_OPENMP=1 -lgomp -fopenmp -lpthread -ligzip0c -DSEQAN_HAS_IGZIP=1
FTEST=$(DIRTEST)/run_tests.py
.PHONY: test clean
###########
## Rules ##
###########
all: clean $(TARGET)
$(TARGET):$(OBJ)
$(CXX) $(OBJ) $(LIBS) $(CXXFLAGS) -o $@
$(DIROBJ)/%.o:$(DIRSRC)/%.cpp
@[ -d $(DIROBJ) ] || mkdir $(DIROBJ)
$(CXX) $(LIBS) $(CXXFLAGS) -c $< -o $@
clean:
$(RM) $(TARGET)
$(RM) -r obj
test:
@[ -x $(FTEST) ] || chmod +x $(FTEST)
$(FTEST)