HOME       UP       PREV       NEXT (Viewing Trace Files)  

Get Started Systemc Experiment 1: A Basic Makefile For SystemC

This makefile can be copied from the SOCDAM directory under /toyclasses/class1/Makefile. It compiles hworld.cpp and runs it.

Note that tab characters have significance in makefiles.

# (C) 2009 DJG: University of Cambridge, SoCDAM.

LDFLAGS= -L$(SYSCDIR)/lib-linux -lsystemc
CXXFLAGS=-Wno-deprecated -I$(SYSCDIR)/include -I$(SOCDAM)/TLM-2008-06-09/include/tlm

        g++ $(CXXFLAGS) hworld1.cpp $(LDFLAGS)

Example Test File hworld1.cpp

Full src file : »hworld1.cpp.

A first example can be copied from SOCDAM /toyclasses/class1/hworld1.cpp.

This should work (do something) without modification.

(C) 2008-10, DJ Greaves, University of Cambridge, Computer Laboratory.