-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (37 loc) · 2.09 KB
/
Copy pathMakefile
File metadata and controls
54 lines (37 loc) · 2.09 KB
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
CXX=g++
CPPFLAGS=-g -O2 -std=c++14 -Wall -Wextra -Wfloat-equal -Wundef -Wshadow -Wunreachable-code -Wpedantic -Wold-style-cast -Wcast-align -Wmissing-include-dirs -Wredundant-decls -fdiagnostics-color=always -L./lib
LIBS=-lgurobi70 -lgurobi_c++
bin/router: build/main.o build/input.o build/presolve.o build/dist.o build/dist.o build/graph.o build/ll_node.o build/uf.o build/gurobi_interface.o build/bab.o build/debug.o build/node.o build/subtour_elimination.o build/ub.o
$(CXX) $(CPPFLAGS) $^ -o bin/router $(LIBS)
build/main.o: src/main.cpp src/defs.h src/input.h src/presolve.h src/gurobi_interface.h src/bab.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/input.o: src/input.cpp src/input.h src/dist.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/presolve.o: src/presolve.cpp src/presolve.h src/input.h src/graph.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/dist.o: src/dist.cpp src/dist.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/graph.o: src/graph.cpp src/graph.h src/defs.h src/ll_node.h src/uf.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/ll_node.o: src/ll_node.cpp src/ll_node.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/uf.o: src/uf.cpp src/uf.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/gurobi_interface.o: src/gurobi_interface.cpp src/gurobi_interface.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/bab.o: src/bab.cpp src/bab.h src/defs.h src/node.h src/graph.h src/subtour_elimination.h src/debug.h src/ub.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/node.o: src/node.cpp src/node.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/debug.o: src/debug.cpp src/debug.h src/defs.h src/input.h src/graph.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/subtour_elimination.o: src/subtour_elimination.cpp src/subtour_elimination.h src/graph.h src/node.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
build/ub.o: src/ub.cpp src/ub.h src/defs.h
$(CXX) $(CPPFLAGS) -c $< -o $@ $(LIBS)
clean:
rm -f build/* bin/*
test: bin/router
./bin/router vehicles.data packages.data
testout: bin/router
./bin/router vehicles.data packages.data > out