-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
91 lines (68 loc) · 2.32 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
PREFIX = /home/cmb-16/mjc/tsungyul/work/vntr/danbing-tk
TARGETS = bin/danbing-tk bin/vntr2kmers_thread bin/genPanKmers bin/ktools bin/danbing-tk-pred
TARGETSg = bin/danbing-tk_g bin/vntr2kmers_thread_g bin/genPanKmers_g bin/ktools_g bin/danbing-tk-pred_g
#TARGETS = aQueryFasta amphQueryFasta vntr2kmers kmer2dot seq2num num2seq rvseq bam2pe
CXX = g++ -std=c++11
LDLIBS = -pthread
dir_guard = @mkdir -p $(@D)
CPPFLAGS = -I ./cereal/include -I ./Eigen
all: $(TARGETS)
allg: $(TARGETS) $(TARGETSg)
# dependencies between programs and .o files
bin/danbing-tk: src/aQueryFasta_thread.cpp
$(dir_guard)
$(CXX) $(LDLIBS) $(CPPFLAGS) -O2 -o bin/danbing-tk src/aQueryFasta_thread.cpp
bin/danbing-tk_g: src/aQueryFasta_thread.cpp
$(dir_guard)
$(CXX) $(LDLIBS) $(CPPFLAGS) -g -o bin/danbing-tk_g src/aQueryFasta_thread.cpp
bin/danbing-tk-pred: src/pred.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -O2 -o bin/danbing-tk-pred src/pred.cpp
bin/danbing-tk-pred_g: src/pred.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -g -o bin/danbing-tk-pred_g src/pred.cpp
bin/ktools: src/kmertools.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -O2 -o bin/ktools src/kmertools.cpp
bin/ktools_g: src/kmertools.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -g -o bin/ktools_g src/kmertools.cpp
bin/vntr2kmers_thread: src/VNTR2kmers_thread.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -O2 -o bin/vntr2kmers_thread src/VNTR2kmers_thread.cpp
bin/vntr2kmers_thread_g: src/VNTR2kmers_thread.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -g -o bin/vntr2kmers_thread_g src/VNTR2kmers_thread.cpp
bin/genPanKmers: src/genPanKmers.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -O2 -o bin/genPanKmers src/genPanKmers.cpp
bin/genPanKmers_g: src/genPanKmers.cpp
$(dir_guard)
$(CXX) $(CPPFLAGS) -g -o bin/genPanKmers_g src/genPanKmers.cpp
bin/seq2num: src/seq2num.cpp
$(dir_guard)
$(CXX) -O2 -o bin/seq2num src/seq2num.cpp
bin/num2seq: src/num2seq.cpp
$(dir_guard)
$(CXX) -O2 -o bin/num2seq src/num2seq.cpp
bin/rvseq: src/rvseq.cpp
$(dir_guard)
$(CXX) -O2 -o bin/rvseq src/rvseq.cpp
bin/bam2pe: src/bam2pe.cpp
$(dir_guard)
$(CXX) -O2 -o bin/bam2pe src/bam2pe.cpp
#
# generic build rules
#
#$(TARGETS):
# $(CXX) $^ -o $@
#.PHONY: install
#install: $(TARGETS)
# mkdir -p $(PREFIX)/bin
# cp $^ $(PREFIX)/bin/.
#uninstall: $(TARGETS)
# for TARGET in $(TARGETS); do \
# rm $(PREFIX)/bin/$$TARGET; \
# done
clean:
rm -f *.o *~ $(TARGETS)