]> git.donarmstrong.com Git - rsem.git/blob - makefile
Updated samtools to 0.1.19
[rsem.git] / makefile
1 CC = g++
2 CFLAGS = -Wall -c -I.
3 COFLAGS = -Wall -O3 -ffast-math -c -I.
4 PROGRAMS = rsem-extract-reference-transcripts rsem-synthesis-reference-transcripts rsem-preref rsem-parse-alignments rsem-build-read-index rsem-run-em rsem-tbam2gbam rsem-run-gibbs rsem-calculate-credibility-intervals rsem-simulate-reads rsem-bam2wig rsem-get-unique rsem-bam2readdepth rsem-sam-validator rsem-scan-for-paired-end-reads
5
6 all : $(PROGRAMS)
7
8 sam/libbam.a :
9         cd sam ; ${MAKE} all
10
11 Transcript.h : utils.h
12
13 Transcripts.h : my_assert.h Transcript.h
14
15 rsem-extract-reference-transcripts : utils.h GTFItem.h Transcript.h Transcripts.h extractRef.cpp
16         $(CC) -Wall -O3 extractRef.cpp -o rsem-extract-reference-transcripts
17
18 rsem-synthesis-reference-transcripts : utils.h Transcript.h Transcripts.h synthesisRef.cpp
19         $(CC) -Wall -O3 synthesisRef.cpp -o rsem-synthesis-reference-transcripts
20
21 BowtieRefSeqPolicy.h : RefSeqPolicy.h
22
23 RefSeq.h : utils.h
24
25 Refs.h : utils.h RefSeq.h RefSeqPolicy.h PolyARules.h
26
27
28 rsem-preref : preRef.o
29         $(CC) preRef.o -o rsem-preref
30
31 preRef.o : utils.h RefSeq.h Refs.h PolyARules.h RefSeqPolicy.h AlignerRefSeqPolicy.h preRef.cpp
32         $(CC) $(COFLAGS) preRef.cpp
33
34
35 SingleRead.h : Read.h
36
37 SingleReadQ.h : Read.h
38
39 PairedEndRead.h : Read.h SingleRead.h
40
41 PairedEndReadQ.h : Read.h SingleReadQ.h
42
43
44 PairedEndHit.h : SingleHit.h
45
46 HitContainer.h : GroupInfo.h
47
48
49 SamParser.h : sam/sam.h sam/bam.h utils.h my_assert.h SingleRead.h SingleReadQ.h PairedEndRead.h PairedEndReadQ.h SingleHit.h PairedEndHit.h Transcripts.h
50
51
52 rsem-parse-alignments : parseIt.o sam/libbam.a
53         $(CC) -o rsem-parse-alignments parseIt.o sam/libbam.a -lz 
54
55 parseIt.o : utils.h GroupInfo.h Read.h SingleRead.h SingleReadQ.h PairedEndRead.h PairedEndReadQ.h SingleHit.h PairedEndHit.h HitContainer.h SamParser.h Transcripts.h sam/sam.h sam/bam.h parseIt.cpp
56         $(CC) -Wall -O2 -c -I. parseIt.cpp
57
58
59 rsem-build-read-index : utils.h buildReadIndex.cpp
60         $(CC) -O3 buildReadIndex.cpp -o rsem-build-read-index
61
62
63 simul.h : boost/random.hpp
64
65 ReadReader.h : SingleRead.h SingleReadQ.h PairedEndRead.h PairedEndReadQ.h ReadIndex.h
66
67 SingleModel.h : utils.h my_assert.h Orientation.h LenDist.h RSPD.h Profile.h NoiseProfile.h ModelParams.h RefSeq.h Refs.h SingleRead.h SingleHit.h ReadReader.h simul.h
68
69 SingleQModel.h : utils.h my_assert.h Orientation.h LenDist.h RSPD.h QualDist.h QProfile.h NoiseQProfile.h ModelParams.h RefSeq.h Refs.h SingleReadQ.h SingleHit.h ReadReader.h simul.h
70
71 PairedEndModel.h : utils.h my_assert.h Orientation.h LenDist.h RSPD.h Profile.h NoiseProfile.h ModelParams.h RefSeq.h Refs.h SingleRead.h PairedEndRead.h PairedEndHit.h ReadReader.h simul.h 
72
73 PairedEndQModel.h : utils.h my_assert.h Orientation.h LenDist.h RSPD.h QualDist.h QProfile.h NoiseQProfile.h ModelParams.h RefSeq.h Refs.h SingleReadQ.h PairedEndReadQ.h PairedEndHit.h ReadReader.h simul.h
74
75 HitWrapper.h : HitContainer.h
76
77 sam_rsem_aux.h : sam/bam.h
78
79 sam_rsem_cvt.h : sam/bam.h Transcript.h Transcripts.h
80
81 BamWriter.h : sam/sam.h sam/bam.h sam_rsem_aux.h sam_rsem_cvt.h SingleHit.h PairedEndHit.h HitWrapper.h Transcript.h Transcripts.h
82
83 sampling.h : boost/random.hpp
84
85 rsem-run-em : EM.o sam/libbam.a
86         $(CC) -o rsem-run-em EM.o sam/libbam.a -lz -lpthread
87
88 EM.o : utils.h my_assert.h Read.h SingleRead.h SingleReadQ.h PairedEndRead.h PairedEndReadQ.h SingleHit.h PairedEndHit.h Model.h SingleModel.h SingleQModel.h PairedEndModel.h PairedEndQModel.h Refs.h GroupInfo.h HitContainer.h ReadIndex.h ReadReader.h Orientation.h LenDist.h RSPD.h QualDist.h QProfile.h NoiseQProfile.h ModelParams.h RefSeq.h RefSeqPolicy.h PolyARules.h Profile.h NoiseProfile.h Transcript.h Transcripts.h HitWrapper.h BamWriter.h sam/bam.h sam/sam.h simul.h sam_rsem_aux.h sampling.h boost/random.hpp EM.cpp
89         $(CC) $(COFLAGS) EM.cpp
90
91 bc_aux.h : sam/bam.h
92
93 BamConverter.h : utils.h my_assert.h sam/sam.h sam/bam.h sam_rsem_aux.h sam_rsem_cvt.h bc_aux.h Transcript.h Transcripts.h
94
95 rsem-tbam2gbam : utils.h Transcripts.h Transcript.h bc_aux.h BamConverter.h sam/sam.h sam/bam.h sam/libbam.a sam_rsem_aux.h sam_rsem_cvt.h tbam2gbam.cpp sam/libbam.a
96         $(CC) -O3 -Wall tbam2gbam.cpp sam/libbam.a -lz -o $@
97
98 rsem-bam2wig : utils.h my_assert.h wiggle.h wiggle.o sam/libbam.a bam2wig.cpp
99         $(CC) -O3 -Wall bam2wig.cpp wiggle.o sam/libbam.a -lz -o $@
100
101 rsem-bam2readdepth : utils.h my_assert.h wiggle.h wiggle.o sam/libbam.a bam2readdepth.cpp
102         $(CC) -O3 -Wall bam2readdepth.cpp wiggle.o sam/libbam.a -lz -o $@
103
104 wiggle.o: sam/bam.h sam/sam.h wiggle.cpp wiggle.h
105         $(CC) $(COFLAGS) wiggle.cpp
106
107 rsem-simulate-reads : simulation.o
108         $(CC) -o rsem-simulate-reads simulation.o
109
110 simulation.o : utils.h Read.h SingleRead.h SingleReadQ.h PairedEndRead.h PairedEndReadQ.h Model.h SingleModel.h SingleQModel.h PairedEndModel.h PairedEndQModel.h Refs.h RefSeq.h GroupInfo.h Transcript.h Transcripts.h Orientation.h LenDist.h RSPD.h QualDist.h QProfile.h NoiseQProfile.h Profile.h NoiseProfile.h simul.h boost/random.hpp simulation.cpp
111         $(CC) $(COFLAGS) simulation.cpp
112
113 rsem-run-gibbs : Gibbs.o
114         $(CC) -o rsem-run-gibbs Gibbs.o -lpthread
115
116 #some header files are omitted
117 Gibbs.o : utils.h my_assert.h boost/random.hpp sampling.h Model.h SingleModel.h SingleQModel.h PairedEndModel.h PairedEndQModel.h RefSeq.h RefSeqPolicy.h PolyARules.h Refs.h GroupInfo.h Gibbs.cpp 
118         $(CC) $(COFLAGS) Gibbs.cpp
119
120 Buffer.h : my_assert.h
121
122 rsem-calculate-credibility-intervals : calcCI.o
123         $(CC) -o rsem-calculate-credibility-intervals calcCI.o -lpthread
124
125 #some header files are omitted
126 calcCI.o : utils.h my_assert.h boost/random.hpp sampling.h Model.h SingleModel.h SingleQModel.h PairedEndModel.h PairedEndQModel.h RefSeq.h RefSeqPolicy.h PolyARules.h Refs.h GroupInfo.h Buffer.h calcCI.cpp
127         $(CC) $(COFLAGS) calcCI.cpp
128
129 rsem-get-unique : sam/bam.h sam/sam.h getUnique.cpp sam/libbam.a
130         $(CC) -O3 -Wall getUnique.cpp sam/libbam.a -lz -o $@
131
132 rsem-sam-validator : sam/bam.h sam/sam.h my_assert.h samValidator.cpp sam/libbam.a
133         $(CC) -O3 -Wall samValidator.cpp sam/libbam.a -lz -o $@
134
135 rsem-scan-for-paired-end-reads : sam/bam.h sam/sam.h my_assert.h scanForPairedEndReads.cpp sam/libbam.a
136         $(CC) -O3 -Wall scanForPairedEndReads.cpp sam/libbam.a -lz -o $@
137
138 .PHONY: ebseq
139
140 ebseq :
141         cd EBSeq ; ${MAKE} all
142
143 clean :
144         rm -f *.o *~ $(PROGRAMS)
145         cd sam ; ${MAKE} clean
146         cd EBSeq ; ${MAKE} clean