Changeset 55 for sources/test_regression/16122005/Makefile
- Timestamp:
- May 28, 2013, 11:17:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/16122005/Makefile
r15 r55 1 1 2 include ../env.mk 3 RESULTS = results.txt 4 ERASE = $(RESULTS) 5 include ../Makefile.common 2 6 3 SYSTEM = system.cpp 4 EXE_SCASS = $(SYSTEM:.cpp=_systemcass.x) 5 EXE_SC = $(SYSTEM:.cpp=_systemc.x) 6 EXE = ${EXE_SCASS} ${EXE_SC} 7 OBJECTS = $(EXE:.x=.o) 8 LINKS = $(OBJECTS:.o=.cpp) 7 RESULTS_REF = results_ref.txt 9 8 10 .SECONDARY: 9 test : $(EXE_SCASS) 10 @echo -ne "| Testing $$(basename $$(pwd)): " ; 11 @./$(EXE_SCASS) 2> /dev/null 12 @if diff $(RESULTS) $(RESULTS_REF) > /dev/null ; then \ 13 echo "OK" ; \ 14 else echo "KO" ; \ 15 fi ; 11 16 12 main : $(EXE)13 17 14 test : main15 ./system_systemcass.x16 diff results.txt results_reference.txt17 @echo Test OK.18 18 19 %.gif : %.dot20 dot -Tgif -o $*.gif $*.dot21 22 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)23 $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)24 25 %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB)26 $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)27 28 -include Makefile.deps29 30 %_systemc.cpp : %.cpp31 ln -s $*.cpp $*_systemc.cpp32 33 %_systemcass.cpp : %.cpp34 ln -s $*.cpp $*_systemcass.cpp35 36 %_systemc.o : %_systemc.cpp37 $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps38 $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o39 40 %_systemcass.o : %_systemcass.cpp41 $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps42 $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o43 44 clean :45 rm -f Makefile.deps46 -rm -f *.o gmon.out *~47 -rm -f results.txt48 -rm -f signal_order.txt module_order.dot signal_graph.dot49 -rm -f module_order.gif signal_graph.gif50 -rm -f $(EXE) $(OBJECTS)51 -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null52 -rm -f core*53 -rm -rf generated_by_systemcass54 -rm -rf system_systemcass.x.vcd system_systemc.x.vcd55
Note: See TracChangeset
for help on using the changeset viewer.