Changeset 55 for sources/test_regression/16112005b/Makefile
- Timestamp:
- May 28, 2013, 11:17:14 AM (11 years ago)
- Location:
- sources/test_regression/16112005b
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/16112005b/Makefile
r15 r55 1 1 include ../env.mk 2 include ../Makefile.common 2 3 3 SYSTEM = system.cpp system2.cpp system3.cpp 4 EXE_SCASS = $(SYSTEM:.cpp=_systemcass.x) 5 EXE_SC = $(SYSTEM:.cpp=_systemc.x) 6 EXE = ${EXE_SCASS} ${EXE_SC} 7 LOG = $(SYSTEM:.cpp=.log) 8 OBJECTS = $(EXE:.x=.o) 9 LINKS = $(OBJECTS:.o=.cpp) 4 test : $(EXE_SCASS) 5 @echo -ne "| Testing $$(basename $$(pwd)): " ; 6 @./$(EXE_SCASS) 2> /dev/null ; \ 7 if [ $$? -ne 29 ] ; then echo "KO" ; else echo "OK" ; fi 10 8 11 .SECONDARY:12 9 13 main : $(EXE)14 15 test : main16 ./system_systemcass.x || eval ${failcom} ; \17 ./system2_systemcass.x ; \18 if [ $$? -ne 29 ] ; then eval ${failcom} ; fi ; \19 ./system3_systemcass.x ; \20 if [ $$? -ne 29 ] ; then eval ${failcom} ; fi ; \21 echo Test OK.22 23 %.gif : %.dot24 dot -Tgif -o $*.gif $*.dot25 26 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)27 $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)28 29 %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB)30 $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)31 32 -include Makefile.deps33 34 %_systemc.cpp : %.cpp35 ln -s $*.cpp $*_systemc.cpp36 37 %_systemcass.cpp : %.cpp38 ln -s $*.cpp $*_systemcass.cpp39 40 %_systemc.o : %_systemc.cpp41 $(CXX) $(CFLAGS_SYSTEMC) -Wno-deprecated -MM $*_systemc.cpp >> Makefile.deps42 $(CXX) $(CFLAGS_SYSTEMC) -Wno-deprecated -c $*_systemc.cpp -o $*_systemc.o43 44 %_systemcass.o : %_systemcass.cpp45 $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps46 $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o47 48 clean :49 rm -f Makefile.deps50 -rm -f *.o gmon.out *~51 -rm -f ${LOG}52 -rm -f signal_order.txt module_order.dot signal_graph.dot53 -rm -f module_order.gif signal_graph.gif54 -rm -f $(EXE) $(OBJECTS)55 -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null56 -rm -f core*57 -rm -rf generated_by_systemcass58 -rm -rf system_systemcass.x.vcd system_systemc.x.vcd59
Note: See TracChangeset
for help on using the changeset viewer.