diff options
| author | Clément Zrounba <6691770+clement-z@users.noreply.github.com> | 2023-09-30 23:06:01 +0200 |
|---|---|---|
| committer | Clément Zrounba <6691770+clement-z@users.noreply.github.com> | 2023-09-30 23:26:46 +0200 |
| commit | ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982 (patch) | |
| tree | 21f27be782ce11c6d00b96ce100a2bff88141b2e /install.sh | |
| download | specs-ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982.tar.gz specs-ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982.zip | |
Initial release
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 |
