-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathMakefile
25 lines (20 loc) · 806 Bytes
/
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
CXX = g++
CXXFLAGS= -g #-Wall #-O3
LINKPATH= -I./samtools-0.1.19 -L./samtools-0.1.19
LINKFLAGS = -lpthread -lz
DEBUG=
OBJECTS = main.o #BaseReads.o Alignment.o
all: bcr bam-extractor
bcr: main.o
$(CXX) -o $@ $(LINKPATH) $(CXXFLAGS) $< $(LINKFLAGS)
bam-extractor: BamExtractor.o
if [ ! -f ./samtools-0.1.19/libbam.a ] ; \
then \
cd samtools-0.1.19 ; make ;\
fi ;
$(CXX) -o $@ $(LINKPATH) $(CXXFLAGS) $< $(LINKFLAGS) -lbam
main.o: main.cpp AlignAlgo.hpp ReadFiles.hpp kseq.h SeqSet.hpp KmerIndex.hpp SimpleVector.hpp defs.h StatsTests.h poa.hpp KmerCode.hpp KmerCount.hpp
BamExtractor.o: BamExtractor.cpp alignments.hpp defs.h
#Alignment.o: Alignment.cpp Alignment.h SimpleVector.h defs.h StatsTests.h KmerTree.h ReadSet.h KmerIndex.h poa.h
clean:
rm -f *.o *.gch lec