-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
62 lines (47 loc) · 1.72 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
all: vcflib/lib/libvcflib.a partitionByPhasedSNVs readToSNVList
SEQAN=seqan/include
CONDA_LIB=testlib #$(CONDA_PREFIX)/lib
HTSINC=$(CONDA_PREFIX)/include
VCFLIB=vcflib
CPPOPTS= -O3
# -D_GLIBCXX_USE_CXX11_ABI=0
CPP=g++
#VCFLIB_INCLUDES := "-I $(abspath $(VCFLIB)/tabixpp/htslib) -I$(VCFLIB)/include -I$(abspath vcflib/include) -L. -L$(CONDA_PREFIX)/lib -I$(abspath $(LIBBZ2)) -L$(abspath $(LIBBZ2))"
vcflib/lib/libvcflib.a:
cd vcflib && make -j 8 libvcflib.a
touch $@
# -L $(VCFLIB)/lib -l vcflib \
# -L $(CONDA_LIB) \
# -l z -l pthread -lcurl -lssl -lcrypto -ldl -llzma -lbz2 \
htslib/lib/libhts.a:
cd htslib && autoheader && autoconf && ./configure --disable-s3 --disable-lzma --disable-bz2 --prefix=$(PWD)/htslib/ && make -j 4 && make install
partitionByPhasedSNVs: PartitionByPhasedSNVs.cpp FastaIndex.h vcflib/lib/libvcflib.a htslib/lib/libhts.a
$(CPP) $(CPPOPTS) $< \
-o $@ \
-I args \
-I blasr \
-I $(VCFLIB)/include -I $(HTSINC) \
-L $(VCFLIB)/lib -l vcflib \
-L $(VCFLIB)/tabixpp/htslib -l hts \
-lpthread -lz -lm -llzma -lbz2 \
-lvcflib
#partitionByPhasedSNVs: PartitionByPhasedSNVs.cpp FastaIndex.h vcflib/lib/libvcflib.a
# $(CPP) $(CPPOPTS) -std=c++0x $< \
# -o $@ \
# -I $(VCFLIB)/include -I $(HTSINC) \
# -L $(VCFLIB)/lib -l vcflib \
# -L $(VCFLIB)/tabixpp/htslib -l hts \
# -lpthread -lz -lm -llzma -lbz2 \
# -l vcflib
#
readToSNVList: ReadToSNVList.cpp PartitionTools.h FastaIndex.h SamUtils.h GenotypedRead.h SNVDB.h
$(CPP) $(CPPOPTS) $< \
-I $(SEQAN) \
-I args \
-o $@
.PHONY: clean
clean:
make -C $(LIBBZ2) -f Makefile-libbz2_so clean
rm $(LIBBZ2)/libbz2.so
make -C vcflib clean
rm -rf partitionByPhasedSNVs readToSNVList