-
Notifications
You must be signed in to change notification settings - Fork 20
/
makefile
85 lines (60 loc) · 1.7 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
SHELL := /bin/bash
CPP_FLAG = -lpthread
CPP_FOLDER=cpp/src
CPP_FILE=${CPP_FOLDER}/*.cpp
OBJECT_FILE=${CPP_FOLDER}/*.o
all: hawk preProcess log_reg_case log_reg_control bonf_fasta\
kmersearch kmersummary convertToFasta_bf_correction convertToFasta_bh_correction\
kmerStats
hawk: hawk.o ${OBJECT_FILE}
g++ $^ ${CPP_FLAG} -o $@
preProcess: preProcess.o
g++ $^ -o $@
log_reg_case: log_reg_case.o ${OBJECT_FILE}
g++ $^ ${CPP_FLAG} -o $@
log_reg_control: log_reg_control.o ${OBJECT_FILE}
g++ $^ ${CPP_FLAG} -o $@
bonf_fasta: bonf_fasta.o
g++ $^ -o $@
kmersearch: kmersearch.o
g++ $^ -o $@
kmersummary: kmersummary.o
g++ $^ -o $@
convertToFasta_bf_correction: convertToFasta_bf_correction.o
g++ $^ -o $@
convertToFasta_bh_correction: convertToFasta_bh_correction.o
g++ $^ -o $@
kmerStats: kmerStats.o
g++ $^ -o $@
hawk.o: hawk.cpp
g++ $^ -c -o $@
preProcess.o: preProcess.cpp
g++ $^ -c -o $@
log_reg_case.o: log_reg_case.cpp
g++ $^ -c -o $@
log_reg_control.o: log_reg_control.cpp
g++ $^ -c -o $@
bonf_fasta.o: bonf_fasta.cpp
g++ $^ -c -o $@
kmersearch.o: kmersearch.cpp
g++ $^ -c -o $@
kmersummary.o: kmersummary.cpp
g++ $^ -c -o $@
convertToFasta_bf_correction.o: convertToFasta.cpp
g++ $^ -c -o $@
convertToFasta_bh_correction.o: convertToFasta_bh_correction.cpp
g++ $^ -c -o $@
kmerStats.o: kmerStats.cpp
g++ $^ -c -o $@
${OBJECT_FILE}: ${CPP_FILE}
for f in `ls ${CPP_FILE}`;do echo $$f;g++ $$f -c -o $$f.o; done
clean:
rm *.o
rm ${CPP_FOLDER}/*.o
#all:
# g++ hawk.cpp cpp/src/*.cpp -lm -lpthread -o hawk
# g++ bonf_fasta.cpp -o bonf_fasta
# g++ kmersearch.cpp -o kmersearch
# g++ kmersummary.cpp -o kmersummary
# g++ preProcess.cpp -o preProcess
# g++ convertToFasta.cpp -o convertToFasta