aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: d51e8358c2aca13fcbb6800cefe5f6cc6f9c43d3 (plain)
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
#! /bin/sh

set -e 

# Download required submodules
echo ------------------------------
echo Dowloading required submodules
echo ------------------------------
git submodule update --init --recursive

# Compiling the systemc submodule

echo ------------------------------
echo Changing into SystemC folder
echo ------------------------------
cd ./thirdparty/systemc

if [ -d "./objdir" ] 
then
    echo "objdir already exists, not recreating." 
else
    mkdir objdir
fi


cd objdir

echo ------------------------------
echo Configuring SystemC
echo ------------------------------
cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../sc_install -DCMAKE_INSTALL_DOCDIR=../sc_doc
make -j2
make install



echo ------------------------------
echo Compiling SPECS
echo ------------------------------
cd ../../..
specs_dir=$(pwd)
make -j2

echo ------------------------------
echo Finished!
echo ------------------------------