-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile.sh
More file actions
executable file
·18 lines (17 loc) · 907 Bytes
/
Makefile.sh
File metadata and controls
executable file
·18 lines (17 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
run () {
echo $1
$1
}
cd scilog
COMPILE_SCILOG="g++ -std=c++11 --shared -o libscilog.so src/*.cpp -I./inc -fPIC"
LINK_SCILOG="g++ -std=c++11 -o testlog testlog.cpp -L./ -lscilog -I./inc"
run "$COMPILE_SCILOG"
run "$LINK_SCILOG"
cd ..
COMPILE_HS="g++ --shared -o libheterosampler.so -std=c++11 -Wno-deprecated-register -Wno-overloaded-virtual src/*.cpp
-Iinc/ -Iscilog/inc -Iscilog/inc/ -Lscilog/ -lscilog -lboost_program_options -fPIC"
COMPILE_TAGGING="g++ -std=c++11 -Wno-deprecated-register -Wno-overloaded-virtual model_tagging.cpp -L./ -lheterosampler -Iinc/ -Iscilog/inc/ -Lscilog/ -lscilog -lboost_program_options -o bin/tagging"
COMPILE_POLICY="g++ -std=c++11 -Wno-deprecated-register -Wno-overloaded-virtual test_policy.cpp -L./ -lheterosampler -Iinc/ -Iscilog/inc/ -Lscilog/ -lscilog -lboost_program_options -o bin/policy -lhdf5 "
run "$COMPILE_HS"
run "$COMPILE_TAGGING"
run "$COMPILE_POLICY"