source: sources/test_regression/29032005/Makefile @ 29

Last change on this file since 29 was 18, checked in by buchmann, 16 years ago

Fix:

  • Disable checkings about the SOCVIEW environment variable. SOCVIEW is optional.
  • Add missing system header includes
  • Add some potential signal order and signal graph to the testbench 29032005
  • Add a new testbench : 15042009
    • Check sc_uint operators with size = 36 (> 32)
File size: 2.1 KB
Line 
1include ../env.mk
2
3EXE_SCASS = system_systemcass.x
4EXE_SC    = system_systemc.x
5EXE       = ${EXE_SCASS} ${EXE_SC}
6OBJECTS   = $(EXE:.x=.o)
7LINKS     = $(OBJECTS:.o=.cpp)
8
9.SECONDARY:
10
11main : $(EXE) 
12
13test : ${EXE}
14        @for i in ${EXE_SCASS} ; do \
15  ./$$i --p --t --k; \
16  (tail -n +3 port_graph.dot | diff port_graph_reference.dot -) || eval ${failcom} ; \
17  ((tail -n +3 signal_graph.dot | diff signal_graph_reference.dot -) \
18  || (tail -n +3 signal_graph.dot | diff signal_graph_reference2.dot -) \
19  || (tail -n +3 signal_graph.dot | diff signal_graph_reference3.dot -)) \
20  || eval ${failcom} ; \
21  ((tail -n +3 process_order.dot | diff process_order_reference.dot -) \
22  || (tail -n +3 process_order.dot | diff process_order_reference2.dot -)  \
23  || (tail -n +3 process_order.dot | diff process_order_reference3.dot -)) \
24  || eval ${failcom} ; \
25  (diff signal_order_reference.txt signal_order.txt) \
26  || (diff signal_order_reference2.txt signal_order.txt) \
27  || (diff signal_order_reference3.txt signal_order.txt) \
28  || eval ${failcom} ; \
29  done
30        @echo Test OK.
31
32%.gif : %.dot
33        dot -Tgif -o $*.gif $*.dot
34
35%_systemc.x : %_systemc.o $(SYSTEMC_LIB)
36        $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)
37
38%_systemcass.x : %_systemcass.o  $(SYSTEMCASS_LIB)
39        $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)
40
41-include Makefile.deps
42
43%_systemc.cpp : %.cpp
44        ln -s $*.cpp $*_systemc.cpp
45
46%_systemcass.cpp : %.cpp
47        ln -s $*.cpp $*_systemcass.cpp
48
49%_systemc.o : %_systemc.cpp
50        $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps
51        $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o
52
53%_systemcass.o : %_systemcass.cpp
54        $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps
55        $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o
56
57clean :
58        rm -f Makefile.deps
59        -rm -f *.o gmon.out
60        -rm -f signal_order.txt module_order.dot signal_graph.dot
61        -rm -f $(EXE) $(OBJECTS) 
62        -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null
63        -rm -f core*
64        -rm -rf generated_by_systemcass
65        -rm -rf tracesystem_systemcass.x.vcd tracesystem_systemc.x.vcd
66       
Note: See TracBrowser for help on using the repository browser.