-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
36 lines (27 loc) · 795 Bytes
/
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
all: testnetwork testflowedge maxflow
.PHONY:all
maxflow: FordFulkerson.o
g++ -o maxflow -std=c++11 FordFulkerson.o
FordFulkerson.o : FordFulkerson.cpp
g++ -c -std=c++11 FordFulkerson.cpp
testnetwork: testFlowNetwork.o FlowNetwork.o
g++ -o testnetwork -std=c++11 testFlowNetwork.o FlowNetwork.o
testFlowNetwork.o : testFlowNetwork.cpp
g++ -c -std=c++11 testFlowNetwork.cpp
FlowNetwork.o : FlowNetwork.cpp
g++ -c -std=c++11 FlowNetwork.cpp
testflowedge: testFlowEdge.o FlowEdge.o
g++ -o testflowedge testFlowEdge.o FlowEdge.o
testFlowEdge.o : testFlowEdge.cpp
g++ -c testFlowEdge.cpp
FlowEdge.o : FlowEdge.cpp
g++ -c FlowEdge.cpp
clean:
rm testflowedge
rm testFlowEdge.o
rm FlowEdge.o
rm testFlowNetwork.o
rm FlowNetwork.o
rm testnetwork
rm FordFulkerson.o
rm maxflow