Changeset 55 for sources/test_regression/24082009/Makefile
- Timestamp:
- May 28, 2013, 11:17:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/24082009/Makefile
r41 r55 1 1 2 include ../env.mk 3 include ../Makefile.common 2 4 3 EXE_SCASS = system_systemcass.x 4 EXE_SC = system_systemc.x 5 EXE = ${EXE_SCASS} 6 OBJECTS = $(EXE:.x=.o) 7 LINKS = $(OBJECTS:.o=.cpp) 5 test : all 6 @echo -ne "| Testing $$(basename $$(pwd)): " ; 7 @./$(EXE_SCASS) > $(LOG_SCASS) 2> /dev/null 8 @./$(EXE_SC) > $(LOG_SC) 2> /dev/null 9 @if diff $(LOG_SC) $(LOG_SCASS) > /dev/null ; then \ 10 time_scass=$$(/usr/bin/time -f "%e" 2>&1 ./$(EXE_SCASS) --nodynamiclink | tail -n 1) ; \ 11 time_sc=$$(/usr/bin/time -f "%e" 2>&1 ./$(EXE_SC) | tail -n 1) ; \ 12 echo "OK (time SystemCass: $$time_scass - time SystemC : $$time_sc)" ; \ 13 else echo "KO" ; \ 14 fi ; 15 8 16 9 RESULTS = perf10 11 .SECONDARY:12 13 main : $(EXE)14 15 test : ${RESULTS}16 @echo OK17 18 perf : system_systemcass.x19 time (./system_systemcass.x --nobanner --p --nodynamiclink 1000000 )20 21 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)22 $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)23 24 %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB)25 $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)26 27 -include Makefile.deps28 29 %_systemc.cpp : %.cpp30 ln -s $*.cpp $*_systemc.cpp31 32 %_systemcass.cpp : %.cpp33 ln -s $*.cpp $*_systemcass.cpp34 35 %_systemc.o : %_systemc.cpp36 $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps37 $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o38 39 %_systemcass.o : %_systemcass.cpp40 $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps41 $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o42 43 clean :44 rm -f Makefile.deps45 -rm -f *.o gmon.out46 -rm -f $(EXE) $(OBJECTS)47 -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null48 -rm -f core*49 -rm -rf generated_by_systemcass50 -rm -rf tracesystem_systemcass.x.vcd tracesystem_systemc.x.vcd51 -rm -rf ${RESULTS}
Note: See TracChangeset
for help on using the changeset viewer.