-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 972 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
39
40
PREFIX = .
CXX = g++
INCLUDES = -I include -I tools/boost/include -I tools -I tools/seqan/seqan/include
CXX_FLAGS = -pthread -std=c++14 -w -O2 -lz -DSEQAN_HAS_ZLIB -DNDEBUG
SRC_CXX = $(wildcard src/*.cpp)\
$(wildcard src/modules/aligncoder/*.cpp)\
$(wildcard src/modules/alignreader/*.cpp)\
$(wildcard src/modules/dforest/*.cpp)\
$(wildcard src/modules/errormodel/*.cpp)\
$(wildcard src/modules/hclust/*.cpp)\
$(wildcard src/modules/sclust/*.cpp)\
$(wildcard src/modules/assemble/*.cpp)\
$(wildcard src/modules/detectsingle/*.cpp)\
$(wildcard src/modules/rsm/*.cpp)\
$(wildcard test/*.cpp)\
$(wildcard tools/prob/*.cpp)\
$(wildcard src/misc/*.cpp)
OBJ_CXX = $(SRC_CXX:.cpp=.o)
all: mkbin igda rmobj
.PHONY: mkbin
mkbin:
mkdir -p $(PREFIX)/bin
igda: $(OBJ_CXX)
$(CXX) -o $(PREFIX)/bin/igda $^ $(LIBS) $(CXX_FLAGS)
%.o: %.cpp
$(CXX) $(INCLUDES) -c $< -o $@ $(CXX_FLAGS)
rmobj:
rm -f $(OBJ_CXX)
.PHONY: clean
clean:
rm -rf $(PREFIX)/bin