Jump to content

at_example from doulos

Recommended Posts

  • 10 months later...



Creating a makefile for the examples is quite simple. I did it for every example, which I used from Doulus or the SC TLM examples.


First you need to set some pointers to where the code is installed. You'll need to update these as installed in your system.


SYSC_INC_PREFIX = /home/pini/Home_1/pini/systemc-2.3.0/include
SYSC_LIB_PREFIX = /home/pini/Home_1/pini/systemc-2.3.0/lib-linux
includedir = /home/pini/Home_1/pini/systemc-2.3.0/include
libdir = /home/pini/Home_1/pini/systemc-2.3.0/lib-linux


You also has to setup the variable (in the make file) LD_LIBRARY_PATH.


For the example of tlm2_getting_started_4 from  Doulus: I created  a makefile, which supports the basics (+ depanadcy list creation and clean)

make run.o

make run.x

make run.exe

make DBG_OPT="gdb " run.exe


You can download the makefile (as well as minor changes to the code for debug messages) from



Also you may want to check a makefile for an example using SCV:


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...