diff options
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..d51e835 --- /dev/null +++ b/install.sh @@ -0,0 +1,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 ------------------------------
\ No newline at end of file |
