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