generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·44 lines (35 loc) · 991 Bytes
/
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
#!/bin/bash
# Prerequisities
set -e
WORK=${PWD}
MONA_DIR=${WORK}/MONA
EXTRA_FLAGS=CFLAGS='-O0'
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get -y --no-install-recommends install \
build-essential \
autoconf automake libtool \
flex bison intltool \
git libboost-all-dev \
gdb
if [ -d "$MONA_DIR" ]; then
echo "MONA Directory ${MONA_DIR} already exists, skipping checkout"
else
git clone https://github.com/tmbrbr/MONA.git ${MONA_DIR}
fi
cd ${MONA_DIR}
autoreconf -f -i
./configure ${EXTRA_FLAGS}
make clean && make -j
sudo make install
sudo cp BDD/bdd_external.h /usr/local/include/mona && \
sudo cp BDD/bdd_dump.h /usr/local/include/mona
cd ${WORK}/stranger
./autogen.sh
./configure ${EXTRA_FLAGS}
make clean && make -j
sudo make install
cd ${WORK}/semattack
autoreconf -f -i
./configure ${EXTRA_FLAGS}
make clean && make -j
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib