1 | .SUFFIXES: .o .c .depend |
---|
2 | |
---|
3 | LIBS = -lm -lc |
---|
4 | |
---|
5 | PROGS = clique consense contml contrast dnacomp dnadist \ |
---|
6 | dnainvar dnaml dnamlk dnamove dnapars dnapenny \ |
---|
7 | dolmove dollop dolpenny factor fitch gendist kitsch \ |
---|
8 | mix move neighbor pars penny proml promlk protdist \ |
---|
9 | protpars restdist restml retree seqboot treedist \ |
---|
10 | drawgram drawtree |
---|
11 | |
---|
12 | BIN=$(ARBHOME)/bin |
---|
13 | BINARIES=$(addprefix $(BIN)/,$(PROGS)) |
---|
14 | |
---|
15 | DLIBS=$(LIBS) $(XLIBS) $(XAW_LIBS) -lXaw |
---|
16 | |
---|
17 | CFLAGS:=$(cflags) $(onlyC_flags) |
---|
18 | |
---|
19 | all: $(BINARIES) |
---|
20 | |
---|
21 | $(BIN)/clique: clique.o disc.o phylip.o |
---|
22 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
23 | |
---|
24 | $(BIN)/consense: consense.o phylip.o cons.o |
---|
25 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
26 | |
---|
27 | $(BIN)/contml: contml.o cont.o phylip.o |
---|
28 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
29 | |
---|
30 | $(BIN)/contrast: contrast.o cont.o phylip.o |
---|
31 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
32 | |
---|
33 | $(BIN)/dnacomp: dnacomp.o seq.o phylip.o |
---|
34 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
35 | |
---|
36 | $(BIN)/dnadist: dnadist.o seq.o phylip.o |
---|
37 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
38 | |
---|
39 | $(BIN)/dnainvar: dnainvar.o seq.o phylip.o |
---|
40 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
41 | |
---|
42 | $(BIN)/dnaml: dnaml.o seq.o phylip.o |
---|
43 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
44 | |
---|
45 | $(BIN)/dnamlk: dnamlk.o seq.o phylip.o |
---|
46 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
47 | |
---|
48 | $(BIN)/dnamove: dnamove.o seq.o moves.o phylip.o |
---|
49 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
50 | |
---|
51 | $(BIN)/dnapenny: dnapenny.o seq.o phylip.o |
---|
52 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
53 | |
---|
54 | $(BIN)/dnapars: dnapars.o seq.o phylip.o |
---|
55 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
56 | |
---|
57 | $(BIN)/dolmove: dolmove.o disc.o moves.o dollo.o phylip.o |
---|
58 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
59 | |
---|
60 | $(BIN)/dollop: dollop.o disc.o dollo.o phylip.o |
---|
61 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
62 | |
---|
63 | $(BIN)/dolpenny: dolpenny.o disc.o dollo.o phylip.o |
---|
64 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
65 | |
---|
66 | $(BIN)/drawgram: drawgram.o draw.o draw2.o phylip.o |
---|
67 | $(A_CC) $(CFLAGS) -o $@ $^ $(DLIBS) |
---|
68 | |
---|
69 | $(BIN)/drawtree: drawtree.o draw.o draw2.o phylip.o |
---|
70 | $(A_CC) $(CFLAGS) -o $@ $^ $(DLIBS) |
---|
71 | |
---|
72 | $(BIN)/factor: factor.o phylip.o |
---|
73 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
74 | |
---|
75 | $(BIN)/fitch: fitch.o dist.o phylip.o |
---|
76 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
77 | |
---|
78 | $(BIN)/gendist: gendist.o phylip.o |
---|
79 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
80 | |
---|
81 | $(BIN)/kitsch: kitsch.o dist.o phylip.o |
---|
82 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
83 | |
---|
84 | $(BIN)/mix: mix.o disc.o wagner.o phylip.o |
---|
85 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
86 | |
---|
87 | $(BIN)/move: move.o disc.o moves.o wagner.o phylip.o |
---|
88 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
89 | |
---|
90 | $(BIN)/neighbor: neighbor.o dist.o phylip.o |
---|
91 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
92 | |
---|
93 | $(BIN)/pars: pars.o discrete.o phylip.o |
---|
94 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
95 | |
---|
96 | $(BIN)/penny: penny.o disc.o wagner.o phylip.o |
---|
97 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
98 | |
---|
99 | $(BIN)/proml: proml.o seq.o phylip.o |
---|
100 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
101 | |
---|
102 | $(BIN)/promlk: promlk.o seq.o phylip.o |
---|
103 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
104 | |
---|
105 | $(BIN)/protdist: protdist.o seq.o phylip.o |
---|
106 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
107 | |
---|
108 | $(BIN)/protpars: protpars.o seq.o phylip.o |
---|
109 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
110 | |
---|
111 | $(BIN)/restdist: restdist.o seq.o phylip.o |
---|
112 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
113 | |
---|
114 | $(BIN)/restml: restml.o seq.o phylip.o |
---|
115 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
116 | |
---|
117 | $(BIN)/retree: retree.o moves.o phylip.o |
---|
118 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
119 | |
---|
120 | $(BIN)/seqboot: seqboot.o seq.o phylip.o |
---|
121 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
122 | |
---|
123 | $(BIN)/treedist: treedist.o phylip.o cons.o |
---|
124 | $(A_CC) $(CFLAGS) -o $@ $^ $(LIBS) |
---|
125 | |
---|
126 | # -------------------------------------------------------------------------------- |
---|
127 | |
---|
128 | .c.o : |
---|
129 | $(A_CC) -c $(CFLAGS) $< $(POST_COMPILE) $< |
---|
130 | |
---|
131 | DEPENDS = $(notdir $(PROGS:%=%.depend)) |
---|
132 | depends: $(DEPENDS) |
---|
133 | @cat $(DEPENDS) | grep -v '^#' >>Makefile |
---|
134 | @rm $(DEPENDS) |
---|
135 | $(DEPENDS): depend.init |
---|
136 | depend.init: |
---|
137 | $(MAKEDEPEND) $(MAKEDEPENDFLAGS) 2>/dev/null # remove dependencies |
---|
138 | .c.depend: |
---|
139 | $(MAKEDEPEND) -f- $(MAKEDEPENDFLAGS) $< 2>/dev/null >$@ |
---|
140 | |
---|
141 | clean: |
---|
142 | rm -f $(BINARIES) *.o |
---|
143 | # DO NOT DELETE THIS LINE -- make depend depends on it. |
---|
144 | |
---|
145 | # Do not add dependencies manually - use 'make depend' in $ARBHOME |
---|
146 | # For formatting issues see SOURCE_TOOLS/fix_depends.pl (from GDE) |
---|
147 | |
---|
148 | clique.o: disc.h |
---|
149 | clique.o: phylip.h |
---|
150 | |
---|
151 | consense.o: cons.h |
---|
152 | consense.o: phylip.h |
---|
153 | |
---|
154 | contml.o: cont.h |
---|
155 | contml.o: phylip.h |
---|
156 | |
---|
157 | contrast.o: cont.h |
---|
158 | contrast.o: phylip.h |
---|
159 | |
---|
160 | dnacomp.o: phylip.h |
---|
161 | dnacomp.o: seq.h |
---|
162 | |
---|
163 | dnadist.o: phylip.h |
---|
164 | dnadist.o: seq.h |
---|
165 | |
---|
166 | dnainvar.o: phylip.h |
---|
167 | dnainvar.o: seq.h |
---|
168 | |
---|
169 | dnaml.o: phylip.h |
---|
170 | dnaml.o: seq.h |
---|
171 | |
---|
172 | dnamlk.o: phylip.h |
---|
173 | dnamlk.o: seq.h |
---|
174 | |
---|
175 | dnamove.o: moves.h |
---|
176 | dnamove.o: phylip.h |
---|
177 | dnamove.o: seq.h |
---|
178 | |
---|
179 | dnapars.o: phylip.h |
---|
180 | dnapars.o: seq.h |
---|
181 | |
---|
182 | dnapenny.o: phylip.h |
---|
183 | dnapenny.o: seq.h |
---|
184 | |
---|
185 | dollop.o: disc.h |
---|
186 | dollop.o: dollo.h |
---|
187 | dollop.o: phylip.h |
---|
188 | |
---|
189 | dolmove.o: disc.h |
---|
190 | dolmove.o: dollo.h |
---|
191 | dolmove.o: moves.h |
---|
192 | dolmove.o: phylip.h |
---|
193 | |
---|
194 | dolpenny.o: disc.h |
---|
195 | dolpenny.o: dollo.h |
---|
196 | dolpenny.o: phylip.h |
---|
197 | |
---|
198 | drawgram.o: draw.h |
---|
199 | drawgram.o: phylip.h |
---|
200 | |
---|
201 | drawtree.o: draw.h |
---|
202 | drawtree.o: phylip.h |
---|
203 | |
---|
204 | factor.o: phylip.h |
---|
205 | |
---|
206 | fitch.o: dist.h |
---|
207 | fitch.o: phylip.h |
---|
208 | |
---|
209 | gendist.o: phylip.h |
---|
210 | |
---|
211 | kitsch.o: dist.h |
---|
212 | kitsch.o: phylip.h |
---|
213 | |
---|
214 | mix.o: disc.h |
---|
215 | mix.o: phylip.h |
---|
216 | mix.o: wagner.h |
---|
217 | |
---|
218 | move.o: disc.h |
---|
219 | move.o: moves.h |
---|
220 | move.o: phylip.h |
---|
221 | move.o: wagner.h |
---|
222 | |
---|
223 | neighbor.o: dist.h |
---|
224 | neighbor.o: phylip.h |
---|
225 | |
---|
226 | pars.o: discrete.h |
---|
227 | pars.o: phylip.h |
---|
228 | |
---|
229 | penny.o: disc.h |
---|
230 | penny.o: phylip.h |
---|
231 | penny.o: wagner.h |
---|
232 | |
---|
233 | proml.o: phylip.h |
---|
234 | proml.o: seq.h |
---|
235 | |
---|
236 | promlk.o: phylip.h |
---|
237 | promlk.o: seq.h |
---|
238 | |
---|
239 | protdist.o: phylip.h |
---|
240 | protdist.o: seq.h |
---|
241 | |
---|
242 | protpars.o: phylip.h |
---|
243 | protpars.o: seq.h |
---|
244 | |
---|
245 | restdist.o: phylip.h |
---|
246 | restdist.o: seq.h |
---|
247 | |
---|
248 | restml.o: phylip.h |
---|
249 | restml.o: seq.h |
---|
250 | |
---|
251 | retree.o: moves.h |
---|
252 | retree.o: phylip.h |
---|
253 | |
---|
254 | seqboot.o: phylip.h |
---|
255 | seqboot.o: seq.h |
---|
256 | |
---|
257 | treedist.o: cons.h |
---|
258 | treedist.o: phylip.h |
---|