Changeset 55 for sources/test_regression/16062005a/Makefile
- Timestamp:
- May 28, 2013, 11:17:14 AM (11 years ago)
- Location:
- sources/test_regression/16062005a
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/16062005a/Makefile
r15 r55 1 1 2 include ../env.mk 3 HIERARCHY = object_hierarchy.txt 4 ERASE = $(HIERARCHY) 5 include ../Makefile.common 2 6 3 SYSTEM = system.cpp system2.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) 7 HIERARCHY_REF = object_hierarchy_ref.txt 10 8 11 .SECONDARY: 9 test : $(EXE_SCASS) 10 @echo -ne "| Testing $$(basename $$(pwd)): " ; 11 @./$(EXE_SCASS) $(HIERARCHY) 2> /dev/null 12 @if diff $(HIERARCHY) $(HIERARCHY_REF) > /dev/null ; then \ 13 echo "OK" ; \ 14 else echo "KO" ; \ 15 fi ; 12 16 13 main : $(EXE_SCASS)14 17 15 test : main16 ./system_systemcass.x object_hierarchy1.txt17 diff object_hierarchy1_reference.txt object_hierarchy1.txt18 ./system2_systemcass.x object_hierarchy2.txt19 diff object_hierarchy2_reference.txt object_hierarchy2.txt20 @echo Test OK.21 18 22 %.gif : %.dot23 dot -Tgif -o $*.gif $*.dot24 25 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)26 $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)27 28 %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB)29 $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)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.out *~50 -rm -f ${LOG}51 -rm -f signal_order.txt module_order.dot signal_graph.dot52 -rm -f module_order.gif signal_graph.gif53 -rm -f $(EXE) $(OBJECTS)54 -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null55 -rm -f core*56 -rm -rf generated_by_systemcass57 -rm -rf system_systemcass.x.vcd system_systemc.x.vcd58
Note: See TracChangeset
for help on using the changeset viewer.