-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
56 lines (39 loc) · 2.05 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
CC=g++
CPPFLAGS=-std=c++11 -Wall -ansi -pedantic -g -O2
DISBALEDOPTIMIZATIONFLAGS = -DNDEBUG
OBJ = Configuration.o InputReader.o NewickTree.o Tree.o TreeController.o TreeControllerSimple.o TreeDistance.o
all: main main-simple time_estimate newickcomp newick2dot newick2timestamp newick2clustersize newick2imbalance-density newick2qdist rand-matrix scrm2bin
main: main.o $(OBJ)
$(CC) $(CPPFLAGS) -o main main.o $(OBJ)
main-simple: main-simple.o $(OBJ)
$(CC) $(CPPFLAGS) -o main-simple main-simple.o $(OBJ)
time_estimate: time_estimate.o
$(CC) $(CPPFLAGS) -o time_estimate time_estimate.o
newickcomp: newickcomp.o NewickTree.o
$(CC) $(CPPFLAGS) -o newickcomp newickcomp.o NewickTree.o
newick2timestamp: newick2timestamp.o NewickTree.o
$(CC) $(CPPFLAGS) -o newick2timestamp newick2timestamp.o NewickTree.o
newick2dot: newick2dot.o NewickTree.o
$(CC) $(CPPFLAGS) -o newick2dot newick2dot.o NewickTree.o
newick2clustersize: newick2clustersize.o NewickTree.o
$(CC) $(CPPFLAGS) -o newick2clustersize newick2clustersize.o NewickTree.o
newick2imbalance-density: newick2imbalance-density.o NewickTree.o
$(CC) $(CPPFLAGS) -o newick2imbalance-density newick2imbalance-density.o NewickTree.o
newick2qdist: newick2qdist.o NewickTree.o
$(CC) $(CPPFLAGS) -o newick2qdist newick2qdist.o NewickTree.o
rand-matrix: rand-matrix.o
$(CC) $(CPPFLAGS) -o rand-matrix rand-matrix.o
scrm2bin: scrm2bin.o
$(CC) $(CPPFLAGS) -o scrm2bin scrm2bin.o
test: main
./main --input test.input --plaintext --verbose --debug 1000 --dot test --rewind
./main --input test.input2 --plaintext --verbose --debug 1000 --dot test --rewind
./main --input test.input3 --plaintext --verbose --debug 1000 --dot test --rewind
./main --input test.input4 --plaintext --verbose --debug 1000 --dot test --rewind
dot: main
for i in *.dot; do dot -Tpng $$i > $${i%.dot}.png; done
clean:
rm -f main main-simple time_sestimate newickcomp newick2dot newick2timestamp newick2clustersize newick2imbalance-density rand-matrix scrm2bin *.o *~ *.dot *.png
depend:
g++ -MM -std=c++11 *.cpp > dependencies.mk
include dependencies.mk