-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
69 lines (47 loc) · 2.02 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
VPATH = operation:results:cluster:statistics:..
CPLEX=cplex125
CPARCH=x86-64_sles10_4.1
CFLAGS+= -ansi -pedantic-errors -Wall -g
CFLAGS+= -I/usr/local/stow/${CPLEX}/lib/${CPLEX}/include
CFLAGS+= -I/usr/include/libxml2
CFLAGS+= -std=c99
LDFLAGS+= -L/usr/local/stow/${CPLEX}/lib/${CPLEX}/lib/${CPARCH}/static_pic -lilocplex -lcplex
LDFLAGS+= -lm -lpthread -lgraph
LDFLAGS+= -lxml2
all: Cluster
clean:
rm *.o Cluster
Cluster: common.h main.o errors.o commands.o ui.o coordinator.o network.o
gcc -o Cluster main.o errors.o commands.o ui.o coordinator.o network.o vertex.o edge.o dynamic_array.o cluster.o cluster_editing.o statistics.o queue.o tuple.o results_files_writer.o xml_writer.o $(LDFLAGS)
main.o: common.h errors.o
gcc -c main.c $(CFLAGS)
commands.o: common.h network.o vertex.o edge.o
gcc -I . -c operation/commands.c
errors.o: common.h
gcc -I . -c operation/errors.c
ui.o: common.h
gcc -I . -c operation/ui.c
coordinator.o: cluster_editing.h common.h statistics.h cluster.o statistics.o results_files_writer.o
gcc -c -I ./statistics coordinator.c
cluster.o: cluster_editing.h common.h cluster_editing.o tuple.o
gcc -I . -I ./statistics -c cluster/cluster.c $(CFLAGS) $(LDFLAGS)
cluster_editing.o: common.h cluster/cluster_editing.h statistics/statistics.h
gcc -I . -I ./statistics -c cluster/cluster_editing.c $(CFLAGS) $(LDFLAGS)
queue.o: statistics/statistics.h common.h
gcc -c -I . statistics/queue.c
statistics.o: statistics/statistics.h common.h queue.o
gcc -c -I . statistics/statistics.c
tuple.o: common.h
gcc -c -I . tuple.c
results_files_writer.o: xml.h io.h common.h statistics.h xml_writer.o
gcc -c -I . -I ./statistics results/results_files_writer.c
xml_writer.o: xml.h io.h common.h
gcc -c -I . results/xml_writer.c $(CFLAGS) $(LDFLAGS)
network.o: common.h dynamic_array.o vertex.o
gcc -I . -c network/network.c
vertex.o: common.h dynamic_array.o edge.o
gcc -I . -c network/vertex.c
edge.o: common.h
gcc -I . -c network/edge.c
dynamic_array.o: common.h
gcc -I . -c network/dynamic_array.c