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. SYSCDIR=/usr/share/systemc LDFLAGS= -L$(SYSCDIR)/lib-linux -lsystemc LANG=C SOCDAM=/ux/clteach/SOCDAM CXXFLAGS=-Wno-deprecated -I$(SYSCDIR)/include -I$(SOCDAM)/TLM-2008-06-09/include/tlm all: g++ $(CXXFLAGS) hworld1.cpp $(LDFLAGS) ./a.out
Full src file : »hworld1.cpp.
A first example can be copied from SOCDAM /toyclasses/class1/hworld1.cpp.
This should work (do something) without modification.