Changeset 55 for sources/test_regression/17032005/Makefile
- Timestamp:
- May 28, 2013, 11:17:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/17032005/Makefile
r35 r55 1 1 2 include ../env.mk 3 TRACE1 = trace_file_scass.vcd 4 TRACE2 = trace_file_systemc.vcd 5 ERASE = $(TRACE1) $(TRACE2) 6 include ../Makefile.common 2 7 3 EXE = system_systemc.x system_systemcass.x 4 OBJECTS = $(EXE:.x=.o) 5 LINKS = $(OBJECTS:.o=.cpp) 8 TRACE = trace_file.vcd 9 TRACE_REF = trace_file_reference.vcd 6 10 7 .SECONDARY: 11 test: all 12 @echo -ne "| Testing $$(basename $$(pwd)): " ; 13 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 14 @mv $(TRACE) $(TRACE1) 15 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null 16 @mv $(TRACE) $(TRACE2) 17 @if tail -n +8 $(TRACE1) | diff $(TRACE_REF) - > /dev/null ; then \ 18 if tail -n +8 $(TRACE2) | diff $(TRACE_REF) - > /dev/null ; then \ 19 echo "OK" ; \ 20 else \ 21 echo "KO" ; \ 22 fi ; \ 23 else \ 24 echo "KO" ; \ 25 fi ; 8 26 9 main : $(EXE)10 27 11 test : system-23.vcd system-23_reference.vcd12 -diff system-23.vcd system-23_reference.vcd13 @echo Test OK.14 28 15 system-23.vcd : system_systemcass.x16 ./system_systemcass.x --nodynamiclink system 2317 tail -n +8 system.vcd > system-23.vcd18 rm system.vcd19 20 system-23_reference.vcd : system_systemc.x21 ./system_systemc.x system 2322 tail -n +8 system.vcd > system-23_reference.vcd23 rm system.vcd24 25 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)26 $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC)27 28 %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB)29 $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS)30 31 -include Makefile.deps32 33 %_systemc.cpp : %.cpp34 ln -s $*.cpp $*_systemc.cpp35 36 %_systemcass.cpp : %.cpp37 ln -s $*.cpp $*_systemcass.cpp38 39 %_systemc.o : %_systemc.cpp40 $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps41 $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o42 43 %_systemcass.o : %_systemcass.cpp44 $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps45 $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o46 47 clean :48 rm -f Makefile.deps49 -rm -f *.o gmon.out50 -rm -f *.txt51 -rm -f $(EXE) $(OBJECTS)52 -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null53 -rm -f core*54 -rm -f *~55 -rm -rf generated_by_systemcass56 -rm -rf trace_system_systemcass.x.vcd trace_system_systemc.x.vcd57 -rm -rf system-23.vcd58 -rm -rf system_systemcass.log59
Note: See TracChangeset
for help on using the changeset viewer.