This repository contains a make file for easy compile and install of SystemC / TLM.
This make file can build the SystemC / TLM library on the following systems:
- Linux
- Windows
- MSYS2/mingw64
git clone https://github.com/embed-dsp/ed_systemc.git
# Enter the ed_systemc directory.
cd ed_systemc
# Edit the Makefile for selecting the SystemC / TLM source version.
vim Makefile
PACKAGE_VERSION = 2.3.3
# Download SystemC source package into src/ directory.
make download
# Unpack source code into build/ directory.
make prepare
# Configure source code.
make configure
# Compile source code using 8 simultaneous jobs (Default).
make compile
The SystemC package does NOT install correctly according to the GNU Coding Standards. The build products are therefore installed in the following locations in order to allow separate installation for different architectures and simple interoperability with the SCV package:
# Install build products.
sudo make install
/opt/
└── systemc/
└── linux_x86_64/ # 64-bit binaries and libraries for Linux
└── systemc-2.3.3/
├── docs/ # Documentation.
│ ├── ...
│
├── include/ # Include directory.
│ ├── systemc.h
│ ├── tlm.h
│ ...
├── lib-linux64/ # Library directory.
│ ├── libsystemc.a
...
# Install build products.
make install
/c/opt/
└── systemc/
└── mingw64_x86_64/ # 64-bit binaries and libraries for Windows
└── systemc-2.3.3/
├── docs/ # Documentation.
│ ├── ...
│
├── include/ # Include directory.
│ ├── systemc.h
│ ├── tlm.h
│ ...
├── lib-mingw/ # Library directory.
│ ├── libsystemc.a
...