[1] | 1 | include ../env.mk |
---|
| 2 | |
---|
| 3 | SYSTEM = system_ok.cpp |
---|
| 4 | EXE_SCASS = $(SYSTEM:.cpp=_systemcass.x) |
---|
| 5 | EXE_SC = $(SYSTEM:.cpp=_systemc.x) |
---|
| 6 | EXE = ${EXE_SCASS} |
---|
| 7 | OBJECTS = $(EXE:.x=.o) |
---|
| 8 | LINKS = $(OBJECTS:.o=.cpp) |
---|
| 9 | |
---|
| 10 | .SECONDARY: |
---|
| 11 | |
---|
| 12 | main : $(EXE) |
---|
| 13 | |
---|
| 14 | test : main |
---|
| 15 | @./system_bug_systemcass.x --p ; \ |
---|
| 16 | if [ $$? -ne 6 ] ; then eval ${failcom} ; fi ; \ |
---|
| 17 | echo Bug detection OK |
---|
| 18 | @./system_ok_systemcass.x --p || eval ${failcom} |
---|
| 19 | |
---|
| 20 | %.gif : %.dot |
---|
| 21 | dot -Tgif -o $*.gif $*.dot |
---|
| 22 | |
---|
| 23 | %_systemc.x : %_systemc.o $(SYSTEMC_LIB) |
---|
| 24 | $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) |
---|
| 25 | |
---|
| 26 | %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB) |
---|
| 27 | $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) |
---|
| 28 | |
---|
| 29 | %_socview.x : %_socview.o $(SOCVIEW_LIB) |
---|
| 30 | $(CXX) -o $@ $*_socview.o $(LFLAGS_SOCVIEW) |
---|
| 31 | |
---|
[13] | 32 | -include Makefile.deps |
---|
[1] | 33 | |
---|
| 34 | %_systemc.cpp : %.cpp |
---|
| 35 | ln -s $*.cpp $*_systemc.cpp |
---|
| 36 | |
---|
| 37 | %_systemcass.cpp : %.cpp |
---|
| 38 | ln -s $*.cpp $*_systemcass.cpp |
---|
| 39 | |
---|
| 40 | %_socview.cpp : %.cpp |
---|
| 41 | ln -s $*.cpp $*_socview.cpp |
---|
| 42 | |
---|
| 43 | %_systemc.o : %_systemc.cpp |
---|
| 44 | $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps |
---|
| 45 | $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o |
---|
| 46 | |
---|
| 47 | %_systemcass.o : %_systemcass.cpp |
---|
| 48 | $(CXX) $(CFLAGS_SYSTEMCASS) -DCHECK_MULTIWRITING2REGISTER -MM $*_systemcass.cpp >> Makefile.deps |
---|
| 49 | $(CXX) $(CFLAGS_SYSTEMCASS) -DCHECK_MULTIWRITING2REGISTER -c $*_systemcass.cpp -o $*_systemcass.o |
---|
| 50 | |
---|
| 51 | %_socview.o : %_socview.cpp |
---|
| 52 | $(CXX) $(CFLAGS_SOCVIEW) -MM $*_socview.cpp >> Makefile.deps |
---|
| 53 | $(CXX) $(CFLAGS_SOCVIEW) -c $*_socview.cpp -o $*_socview.o |
---|
| 54 | |
---|
| 55 | clean : |
---|
[15] | 56 | rm -f Makefile.deps |
---|
[1] | 57 | -rm -f gmon.out *~ |
---|
| 58 | -rm -f $(EXE) $(OBJECTS) |
---|
| 59 | -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null |
---|
| 60 | -rm -f core* |
---|
| 61 | -rm -rf generated_by_systemcass |
---|
| 62 | |
---|