-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·74 lines (60 loc) · 1.61 KB
/
build.sh
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
70
71
#!/bin/bash
################################# SETUP #######################################
# Change these to the proper Gurobi INCLUDE and LIB directories
export ISING_GUROBI_INC=/home/key01027/ising_solver/gurobi604/linux64/include
export ISING_GUROBI_LIB=/home/key01027/ising_solver/gurobi604/linux64/lib
export BOOST_INC=/home/key01027/ising_solver/boost_install/include
export BOOST_LIB=/home/key01027/ising_solver/boost_install/lib
###############################################################################
echo "------------------------------------------------------"
echo "Cleaning old bins..."
test -d bin || mkdir -p bin
rm -f bin/ising
rm -f bin/akmaxsat*
rm -f bin/CCLS*
echo "------------------------------------------------------"
echo "Building Ising solver..."
cd src/ising
make clean
make
cp bin/ising ../../bin/
cd ../../
echo "------------------------------------------------------"
echo "Building MAX-SAT solvers..."
cd src/ccls/akmaxsat_1.1_src
make clean
make
cp akmaxsat ../../../bin/
cd ../../../
cd src/ccls/ccls_2014_src
make cleanup
make
cp CCLS2014 ../../../bin/
cd ../../../
cd src/ccls/ccls_to_akmaxsat_src
make cleanup
make
cp CCLS_to_akmaxsat ../../../bin/
cd ../../../
cd src/ccls_lb/akmaxsat_1.1_src
make clean
make
cp akmaxsat_LB ../../../bin/
cd ../../../
cd src/ccls_lb/ccls_2014_src
make cleanup
make
cp CCLS2014_LB ../../../bin/
cd ../../../
cd src/ccls_lb/ccls_to_akmaxsat_src
make cleanup
make
cp CCLS_to_akmaxsat_LB ../../../bin/
cd ../../../
echo "---------------------------------------------------"
echo "build CCEHC.."
cd src/CCEHC/
make cleanup
make
cp CCEHC ../../bin/
cd ../../../