-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (47 loc) · 1.81 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
all: dcstsolver
scip:
wget http://scip.zib.de/download/release/scipoptsuite-3.2.0.tgz
tar -xf scipoptsuite-3.2.0.tgz
cd scipoptsuite-3.2.0
make
src/DCUTConstraintHandler.o: src/DCUTConstraintHandler.cpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/DCUTConstraintHandler.cpp -o src/DCUTConstraintHandler.o
src/edge.o: src/edge.cpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/edge.cpp -o src/edge.o
src/node.o: src/node.cpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/node.cpp -o src/node.o
src/graph.o: src/graph.cpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/graph.cpp -o src/graph.o
src/dcstsolver.o: src/dcstsolver.cpp src/dcstsolver.hpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/dcstsolver.cpp -o src/dcstsolver.o
src/dcstloader.o: src/dcstloader.cpp src/dcstloader.hpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/dcstloader.cpp -o src/dcstloader.o
src/main.o: src/main.cpp
g++ -Iscipoptsuite-3.2.0/scip-3.2.0/src -Wall -g -c src/main.cpp -o src/main.o
dcstsolver: src/dcstsolver.o src/main.o src/dcstloader.o src/edge.o src/node.o src/graph.o src/DCUTConstraintHandler.o
g++ \
-Wall \
-g \
src/main.o src/dcstsolver.o src/dcstloader.o src/edge.o src/node.o src/graph.o src/DCUTConstraintHandler.o\
-Lscipoptsuite-3.2.0/scip-3.2.0/lib \
-lscip.linux.x86_64.gnu.opt \
-lobjscip.linux.x86_64.gnu.opt \
-llpispx.linux.x86_64.gnu.opt \
-lnlpi.cppad.linux.x86_64.gnu.opt \
-fomit-frame-pointer \
-mtune=native \
-lsoplex.linux.x86_64.gnu.opt \
-lm \
-lz \
-lzimpl.linux.x86_64.gnu.opt \
-lgmp -lreadline -lncurses\
-o dcstsolver
clean:
rm -rf dcstsolver
rm -rf src/edge.o
rm -rf src/node.o
rm -rf src/graph.o
rm -rf src/dcstsolver.o
rm -rf src/dcstloader.o
rm -rf src/main.o
rm -rf src/DCUTConstraintHandler.o