-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
69 lines (44 loc) · 2.37 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
# To compile all programs, run:
# make
#
# AED, ua, 2024
CFLAGS += -g -Wall -Wextra
TARGETS = TestAllPairsShortestDistances TestBellmanFordAlg \
TestCreateTranspose TestEccentricityMeasures TestTransitiveClosure
all: $(TARGETS)
TestAllPairsShortestDistances: TestAllPairsShortestDistances.o Graph.o GraphBellmanFordAlg.o \
GraphAllPairsShortestDistances.o IntegersStack.o SortedList.o instrumentation.o
TestCreateTranspose: TestCreateTranspose.o Graph.o SortedList.o instrumentation.o
TestBellmanFordAlg: TestBellmanFordAlg.o Graph.o GraphBellmanFordAlg.o \
IntegersStack.o SortedList.o instrumentation.o
TestEccentricityMeasures: TestEccentricityMeasures.o Graph.o GraphBellmanFordAlg.o \
GraphAllPairsShortestDistances.o GraphEccentricityMeasures.o IntegersStack.o \
SortedList.o instrumentation.o
TestTransitiveClosure: TestTransitiveClosure.o Graph.o GraphBellmanFordAlg.o \
GraphTransitiveClosure.o IntegersStack.o SortedList.o instrumentation.o
# Dependencies of source files
Graph.o: Graph.c Graph.h SortedList.h instrumentation.h
GraphAllPairsShortestDistances.o: GraphAllPairsShortestDistances.c \
GraphAllPairsShortestDistances.h Graph.h \
GraphBellmanFordAlg.h instrumentation.h
GraphBellmanFord.o: GraphBellmanFordAlg.c GraphBellmanFordAlg.h \
Graph.h IntegersStack.h instrumentation.h
GraphEccentricityMeasures.o: GraphEccentricityMeasures.c GraphEccentricityMeasures.h Graph.h \
GraphAllPairsShortestDistances.h instrumentation.h
GraphTransitiveClosure.o: GraphTransitiveClosure.c GraphTransitiveClosure.h Graph.h \
GraphBellmanFordAlg.h instrumentation.h
IntegersStack.o: IntegersStack.c IntegersStack.h instrumentation.h
SortedList.o: SortedList.c SortedList.h instrumentation.h
instrumentation.o: instrumentation.c instrumentation.h
TestAllPairsShortestDistances.o: TestAllPairsShortestDistances.c Graph.h \
GraphAllPairsShortestDistances.h GraphBellmanFordAlg.h instrumentation.h
TestBellamnFordAlg.o: TestBellmanFordAlg.c Graph.h GraphBellmanFordAlg.h \
instrumentation.h
TestEccentricityMeasures.o: TestEccentricityMeasures.c Graph.h \
GraphAllPairsShortestDistances.h GraphBellmanFordAlg.h GraphEccentricityMeasures.h instrumentation.h
TestCreateTranspose.o: TestCreateTranspose.c Graph.h instrumentation.h
TestTransitiveClosure.o: TestTransitiveClosure.c Graph.h GraphBellmanFordAlg.h \
GraphTransitiveClosure.h instrumentation.h
clean:
rm -f *.o
rm -f $(TARGETS)