Changeset 55 for sources/test_regression/15062006/Makefile
- Timestamp:
- May 28, 2013, 11:17:14 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/test_regression/15062006/Makefile
r15 r55 1 1 2 include ../env.mk 3 include ../Makefile.common 2 4 3 SOCVIEW_INC = ${SOCVIEW}/include 4 SOCVIEW_LIB = ${SOCVIEW}/lib-linux/libsystemc.a 5 CFLAGS_SOCVIEW = ${CFLAGS} -DSOCVIEW -I${SOCVIEW_INC} 6 LFLAGS_SOCVIEW = ${LFLAGS} -ltermcap -lreadline ${SOCVIEW_LIB} 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 echo "OK" ; \ 11 else echo "KO" ; \ 12 fi ; 7 13 8 SYSTEM = system.cpp9 EXE_SCASS = $(SYSTEM:.cpp=_systemcass.x)10 EXE_SC = $(SYSTEM:.cpp=_systemc.x)11 EXE_SVIEW = $(SYSTEM:.cpp=_socview.x)12 EXE = ${EXE_SCASS} ${EXE_SVIEW} ${EXE_SC}13 OBJECTS = $(EXE:.x=.o)14 LINKS = $(OBJECTS:.o=.cpp)15 14 16 TEST1_DAT = \17 test_socview_1.dat test_socview_1_reloaded.dat \18 test_socview_2.dat test_socview_2_reloaded.dat \19 test_socview_3.dat test_socview_3_reloaded.dat \20 test_socview_3b.dat test_socview_3_reloaded_bis.dat \21 test_socview_4.dat test_socview_4_reloaded.dat \22 test_socview_5.dat test_socview_5_reloaded.dat \23 test_socview_6.dat test_socview_6_reloaded.dat \24 test_socview_7.dat test_socview_7_reloaded.dat \25 test_socview_8.dat test_socview_8_reloaded.dat \26 test_socview_9.dat test_socview_9_reloaded.dat \27 test_socview_10.dat test_socview_10_reloaded.dat \28 test_socview_10b.dat \29 15 30 TEST2_DAT = test2_socview_10.dat \31 test2_socview_24a.dat test2_socview_24b.dat test2_socview_24c.dat \32 test2_socview_20a.dat test2_socview_20b.dat test2_systemcass_20.dat33 34 .SECONDARY:35 36 main : $(EXE)37 38 test : system_systemcass.x39 ./system_systemcass.x40 41 %.gif : %.dot42 dot -Tgif -o $*.gif $*.dot43 44 %_systemc.x : %_systemc.o $(SYSTEMC_LIB)45 $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC)46 47 %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB)48 $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS)49 50 %_socview.x : %_socview.o $(SOCVIEW_LIB)51 $(CXX) -o $@ $*_socview.o $(LFLAGS_SOCVIEW)52 53 -include Makefile.deps54 55 %_systemc.cpp : %.cpp56 ln -s $*.cpp $*_systemc.cpp57 58 %_systemcass.cpp : %.cpp59 ln -s $*.cpp $*_systemcass.cpp60 61 %_socview.cpp : %.cpp62 ln -s $*.cpp $*_socview.cpp63 64 %_systemc.o : %_systemc.cpp65 $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps66 $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o67 68 %_systemcass.o : %_systemcass.cpp69 $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps70 $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o71 72 %_socview.o : %_socview.cpp73 $(CXX) $(CFLAGS_SOCVIEW) -MM $*_socview.cpp >> Makefile.deps74 $(CXX) $(CFLAGS_SOCVIEW) -c $*_socview.cpp -o $*_socview.o75 76 clean :77 rm -f Makefile.deps78 -rm -f *.o gmon.out *~79 -rm -f results80 -rm -f signal_order.txt module_order.dot signal_graph.dot81 -rm -f module_order.gif signal_graph.gif82 -rm -f $(EXE) $(OBJECTS)83 -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null84 -rm -f core*85 -rm -rf generated_by_systemcass86 -rm -rf system_systemcass.x.vcd system_systemc.x.vcd87
Note: See TracChangeset
for help on using the changeset viewer.