-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (56 loc) · 1.86 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
OBJFILES = util.o debug.o main.o drawfns.o class-control.o input.o \
triangulate.o circle_pack.o KS_circle_pack.o generic-code-io.o generic-code-util.o gauss-to-peer.o \
force_direction.o magnify.o convex.o shrink_regions.o edge_distribution.o plot.o \
gauss-orientation.o reidemeister.o laces.o hamiltonian.o
DEPS = ./include/*
COMPILE = g++ -Wall -Wno-misleading-indentation -std=c++11 -I ./include -g -c $< -o $@
all: $(OBJFILES)
g++ -o draw $(OBJFILES)
util.o: ./src/util.cpp ./include/util.h $(DEPS)
$(COMPILE)
debug.o: ./src/debug.cpp $(DEPS)
$(COMPILE)
class-control.o: ./src/class-control.cpp $(DEPS)
$(COMPILE)
input.o: ./src/input.cpp $(DEPS)
$(COMPILE)
gauss-to-peer.o: ./src/gauss-to-peer.cpp $(DEPS)
$(COMPILE)
generic-code-io.o: ./src/generic-code-io.cpp $(DEPS)
$(COMPILE)
generic-code-util.o: ./src/generic-code-util.cpp $(DEPS)
$(COMPILE)
gauss-orientation.o: ./src/gauss-orientation.cpp $(DEPS)
$(COMPILE)
hamiltonian.o: ./src/hamiltonian.cpp $(DEPS)
$(COMPILE)
reidemeister.o: ./src/reidemeister.cpp $(DEPS)
$(COMPILE)
main.o: ./src/main.cpp $(DEPS)
$(COMPILE)
drawfns.o: ./src/drawfns.cpp $(DEPS)
$(COMPILE)
triangulate.o: ./src/triangulate.cpp $(DEPS)
$(COMPILE)
#KS_circle_pack.o: ./src/KS_circle_pack.c
# /usr/bin/gcc -g -O2 -s -std=gnu89 -fomit-frame-pointer -c $< -o $@
KS_circle_pack.o: ./src/KS_circle_pack.cpp
$(COMPILE)
circle_pack.o: ./src/circle_pack.cpp $(DEPS)
$(COMPILE)
force_direction.o: ./src/force_direction.cpp $(DEPS)
$(COMPILE)
shrink_regions.o: ./src/shrink_regions.cpp $(DEPS)
$(COMPILE)
edge_distribution.o: ./src/edge_distribution.cpp $(DEPS)
$(COMPILE)
plot.o: ./src/plot.cpp $(DEPS)
$(COMPILE)
magnify.o: ./src/magnify.cpp $(DEPS)
$(COMPILE)
convex.o: ./src/convex.cpp $(DEPS)
$(COMPILE)
laces.o: ./src/laces.cpp $(DEPS)
$(COMPILE)
clean:
rm -f $(OBJFILES)