1 | ################################################################################ |
---|
2 | # Makefile for probcons |
---|
3 | ################################################################################ |
---|
4 | |
---|
5 | ################################################################################ |
---|
6 | # 1) Choose C++ compiler. |
---|
7 | ################################################################################ |
---|
8 | |
---|
9 | CXX = g++ |
---|
10 | |
---|
11 | ################################################################################ |
---|
12 | # 2) Set C++ flags. |
---|
13 | # a) DEBUG mode -- no optimizations, enable SafeVector checking, no inlining |
---|
14 | # b) PROFILE mode -- for gprof |
---|
15 | # c) RELEASE mode |
---|
16 | ################################################################################ |
---|
17 | BIG_INLINE_LIMIT = 20000 |
---|
18 | |
---|
19 | PROBCONS = ./probconsRNA |
---|
20 | VIENNA = ./vienna |
---|
21 | |
---|
22 | # no -Wall option for warning |
---|
23 | #CXXFLAGS = -O3 -funroll-loops -finline-limit=$(BIG_INLINE_LIMIT) |
---|
24 | CXXFLAGS = -O3 # by katoh |
---|
25 | OFLAGS = -DNDEBUG -DNumInsertStates=1 -DVERSION="2.0" $(CXXFLAGS) $(CFLAGS1) |
---|
26 | LIBS = -L$(PROBCONS) -L./ |
---|
27 | INCL = -I$(PROBCONS) -I$(VIENNA) -I./ |
---|
28 | |
---|
29 | ################################################################################ |
---|
30 | # 3) Dependencies |
---|
31 | ################################################################################ |
---|
32 | |
---|
33 | TARGETS = mxscarna |
---|
34 | |
---|
35 | OBJS = Main.o McCaskill.o vienna/energy_param.o seq2scs.o Globaldp.o postProcessings.o AlifoldMEA.o |
---|
36 | |
---|
37 | .PHONY : all |
---|
38 | all : $(TARGETS) |
---|
39 | |
---|
40 | mxscarna : $(OBJS) |
---|
41 | $(CXX) $(LIBS) $(OFLAGS) -lm -o $@ $(OBJS) |
---|
42 | |
---|
43 | rfold: |
---|
44 | cd $(RFOLD); \ |
---|
45 | make; \ |
---|
46 | cd .. \ |
---|
47 | cd .. |
---|
48 | probcons: |
---|
49 | cd $(PROBCONS); \ |
---|
50 | make; \ |
---|
51 | cd .. |
---|
52 | |
---|
53 | #probcons : MultiSequence.h ProbabilisticModel.h ScoreType.h Sequence.h FileBuffer.h SparseMatrix.h EvolutionaryTree.h Defaults.h SafeVector.h Main.cc |
---|
54 | # $(CXX) -lm -o probcons $(OBJS) |
---|
55 | #Main.cc |
---|
56 | |
---|
57 | Main.o : $(PROBCONS)/SafeVector.h $(PROBCONS)/FileBuffer.h $(PROBCONS)/Sequence.h $(PROBCONS)/MultiSequence.h $(PROBCONS)/EvolutionaryTree.h scarna.hpp BPPMatrix.hpp StemCandidate.hpp Globaldp.hpp AlifoldMEA.h Main.cc |
---|
58 | $(CXX) $(INCL) $(OFLAGS) -c Main.cc -o Main.o |
---|
59 | McCaskill.o: McCaskill.hpp $(VIENNA)/energy_param.hpp Util.hpp Beta.hpp ScoreType.hpp McCaskill.cpp |
---|
60 | $(CXX) $(INCL) $(OFLAGS) -c McCaskill.cpp -o McCaskill.o |
---|
61 | $(VIENNA)/energy_param.o: $(VIENNA)/energy_param.hpp $(VIENNA)/energy_param.cpp |
---|
62 | $(CXX) $(INCL) $(OFLAGS) -c $(VIENNA)/energy_param.cpp -o $(VIENNA)/energy_param.o |
---|
63 | seq2scs.o: $(PROBCONS)/SafeVector.h StemCandidate.hpp $(PROBCONS)/Sequence.h $(PROBCONS)/MultiSequence.h BPPMatrix.hpp nrutil.h seq2scs.cpp |
---|
64 | $(CXX) $(INCL) $(OFLAGS) -c seq2scs.cpp -o seq2scs.o |
---|
65 | Globaldp.o: Globaldp.hpp nrutil.h Util.hpp Beta.hpp scarna.hpp StemCandidate.hpp $(PROBCONS)/MultiSequence.h $(PROBCONS)/Sequence.h BPPMatrix.hpp |
---|
66 | $(CXX) $(INCL) $(OFLAGS) -c Globaldp.cpp -o Globaldp.o |
---|
67 | GlobalParameters.o: scarna.hpp |
---|
68 | $(CXX) $(INCL) $(OFLAGS) -c GlobalParameters.cpp -o GlobalParameters.o |
---|
69 | postProcessings.o: StemCandidate.hpp scarna.hpp |
---|
70 | $(CXX) $(INCL) $(OFLAGS) -c postProcessings.cpp -o postProcessings.o |
---|
71 | AlifoldMEA.o: nrutil.h Util.hpp Beta.hpp BPPMatrix.hpp $(PROBCONS)/MultiSequence.h $(PROBCONS)/Sequence.h $(PROBCONS)/SafeVector.h |
---|
72 | $(CXX) $(INCL) $(OFLAGS) -c AlifoldMEA.cpp -o AlifoldMEA.o |
---|
73 | |
---|
74 | .PHONY : clean |
---|
75 | clean: |
---|
76 | rm -f $(TARGETS) *.o *.h~ *.hpp~ *.cpp~ *.cc~ $(VIENNA)/*.o |
---|
77 | $(MAKE) -C $(PROBCONS) clean |
---|