-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
73 lines (62 loc) · 1.34 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
UNAME = $(shell uname)
OPTFLAG ?= -O0 -ggdb
INCLUDES = -I./lib/include/ -I. -I./lib/include/htslib
CFLAGS = -pipe -std=c++0x $(OPTFLAG) $(INCLUDES) -D__STDC_LIMIT_MACROS
CXX = clang++
HEADERSONLY =
SOURCES = program\
hts_utils\
utils\
bam_ordered_reader\
bcf_ordered_reader\
bcf_ordered_writer\
bcf_synced_reader\
tbx_ordered_reader\
view\
index\
normalize\
merge_duplicate_variants\
variant_manip\
log_tool\
interval_tree\
genome_interval\
compute_concordance\
partition\
profile_indels\
discover\
merge_candidate_variants\
construct_probes\
genotype\
gencode\
annotate_variants\
lhmm\
genotyping_buffer\
lhmm_genotyping_record\
peek\
merge\
profile_mendelian\
pedigree\
concat\
decompose\
remove_overlap\
profile_na12878\
profile_snps\
filter
SOURCESONLY = main.cpp
TARGET = vt
TOOLSRC = $(SOURCES:=.cpp) $(SOURCESONLY)
TOOLOBJ = $(TOOLSRC:.cpp=.o)
LIBHTS = lib/include/htslib/libhts.a
all : ${LIBHTS} $(TARGET)
${LIBHTS} :
cd lib/include/htslib; $(MAKE) libhts.a || exit 1; cd ..
$(TARGET) : ${LIBHTS} $(TOOLOBJ)
$(CXX) $(CFLAGS) -o $@ $(TOOLOBJ) $(LIBHTS) -lz -lpthread
$(TOOLOBJ): $(HEADERSONLY)
.cpp.o :
$(CXX) $(CFLAGS) -o $@ -c $*.cpp
clean :
cd lib/include/htslib; $(MAKE) clean; cd ..
-rm -rf $(TARGET) $(TOOLOBJ)
cleanvt :
-rm -rf $(TARGET) $(TOOLOBJ)