-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
162 lines (147 loc) · 2.87 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
OPTFLAG = -g -O3 -fopenmp
INCLUDES = -I./lib -I. -I../htslib -I./lib/Rmath -I./lib/pcre2
CFLAGS = -pipe -std=c++0x $(OPTFLAG) $(INCLUDES) -D__STDC_LIMIT_MACROS
CXX = g++
SOURCESONLY =
SOURCES = align\
allele\
annotate_1000g\
annotate_dbsnp_rsid\
annotate_indels\
annotate_regions\
annotate_variants\
augmented_bam_record\
bam_ordered_reader\
bcf_genotyping_buffered_reader\
bcf_ordered_reader\
bcf_ordered_writer\
bcf_synced_reader\
bed\
candidate_region_extractor\
cat\
chmm\
compute_concordance\
compute_features\
compute_features2\
config\
consolidate_variants\
construct_probes\
decompose\
decompose2\
decompose_blocksub\
discover\
discover2\
estimate\
estimator\
filter\
flank_detector\
gencode\
genome_interval\
genotype\
genotype2\
genotyping_record\
hts_utils\
hfilter\
index\
interval_tree\
interval\
joint_genotype_sequential\
joint_genotyping_buffered_reader\
joint_genotyping_record\
joint_genotype_block\
joint_genotype_block_reader\
joint_genotype_block_record\
lfhmm\
lhmm\
lhmm1\
log_tool\
merge\
merge_candidate_variants\
merge_candidate_variants2\
merge_candidate_variants_sequential\
milk_filter\
motif_tree\
motif_map\
multi_partition\
needle\
normalize\
nuclear_pedigree\
ordered_bcf_overlap_matcher\
ordered_region_overlap_matcher\
partition\
paste\
paste_genotypes\
paste_and_compute_features_sequential\
pedigree\
peek\
pileup\
pregex\
profile_afs\
profile_chm1\
profile_chrom\
profile_fic_hwe\
profile_hwe\
profile_indels\
profile_len\
profile_mendelian\
profile_na12878\
profile_snps\
program\
reference_sequence\
remove_overlap\
repeat_tract_detector\
rfhmm\
rminfo\
rpartition\
seq\
sex_ploidy_map\
sort\
subset\
sv_tree\
test\
union_variants\
uniq\
utils\
validate\
variant\
variant_manip\
variant_filter\
view\
vntr\
vntr_annotator\
vntrize\
tbx_ordered_reader\
ahmm\
xcmp\
Error\
SOURCESONLY = main.cpp
TARGET = vt
TOOLSRC = $(SOURCES:=.cpp) $(SOURCESONLY)
TOOLOBJ = $(TOOLSRC:.cpp=.o)
LIBHTS = ../htslib/libhts.a
LIBRMATH = lib/Rmath/libRmath.a
LIBPCRE2 = lib/pcre2/libpcre2.a
all : $(TARGET)
${LIBHTS} :
cd ../htslib; $(MAKE) libhts.a || exit 1;
${LIBRMATH} :
cd lib/Rmath; $(MAKE) libRmath.a || exit 1;
${LIBPCRE2} :
cd lib/pcre2; $(MAKE) libpcre2.a || exit 1;
$(TARGET) : ${LIBHTS} ${LIBRMATH} ${LIBPCRE2} $(TOOLOBJ)
$(CXX) $(CFLAGS) -o $@ $(TOOLOBJ) $(LIBHTS) $(LIBRMATH) ${LIBPCRE2} -fopenmp -llzma -lbz2 -lz -lm -lcurl -lcrypto -lpthread
$(TOOLOBJ): $(HEADERSONLY)
.cpp.o :
$(CXX) $(CFLAGS) -o $@ -c $*.cpp
.PHONY: clean cleanvt test
clean :
cd ../htslib; $(MAKE) clean
cd lib/Rmath; $(MAKE) clean
cd lib/pcre2; $(MAKE) clean
-rm -rf $(TARGET) $(TOOLOBJ)
cleanvt :
-rm -rf $(TARGET) $(TOOLOBJ)
test: vt
for x in ./test/*/_run.sh; do \
$${x}; \
done