source: sources/test_regression/11062007/Makefile @ 6

Last change on this file since 6 was 1, checked in by buchmann, 17 years ago

Initial import from CVS repository

File size: 2.4 KB
Line 
1include ../env.mk
2
3EXE_SCASS = system_systemcass.x
4EXE_SC    = system_systemc.x
5EXE       = ${EXE_SCASS}
6OBJECTS   = $(EXE:.x=.o)
7LINKS     = $(OBJECTS:.o=.cpp)
8
9RESULTS   = systemcass_dynamiclink_10.txt systemcass_m_nodynamiclink_10.txt systemcass_a_nodynamiclink_10.txt systemcass_p_nodynamiclink_10.txt
10
11.SECONDARY:
12
13main : $(EXE) 
14
15test : ${RESULTS}
16        diff systemcass_dynamiclink_10.txt systemcass_m_nodynamiclink_10.txt || eval ${failcom}
17        diff systemcass_a_nodynamiclink_10.txt systemcass_p_nodynamiclink_10.txt || eval ${failcom}
18        diff systemcass_dynamiclink_10.txt systemcass_a_nodynamiclink_10.txt || eval ${failcom}
19        @echo Test OK.
20
21systemcass_a_nodynamiclink_10.txt : system_systemcass.x
22        ((./system_systemcass.x --nobanner --a --nodynamiclink 10 ) | tail -n 5  > systemcass_a_nodynamiclink_10.txt) || eval ${failcom}
23
24systemcass_p_nodynamiclink_10.txt : system_systemcass.x
25        ((./system_systemcass.x --nobanner --p --nodynamiclink 10 ) | tail -n 5 > systemcass_p_nodynamiclink_10.txt) || eval ${failcom}
26
27systemcass_m_nodynamiclink_10.txt : system_systemcass.x
28        ((./system_systemcass.x --nobanner --m --nodynamiclink 10 ) | tail -n 5  > systemcass_m_nodynamiclink_10.txt) || eval ${failcom}
29
30systemcass_dynamiclink_10.txt : system_systemcass.x
31        ((./system_systemcass.x --nobanner 10 ) | tail -n 5 > systemcass_dynamiclink_10.txt) || eval ${failcom}
32
33%.png : %.dot
34        dot -Tpng -o $*.png $*.dot
35
36%_systemc.x : %_systemc.o $(SYSTEMC_LIB)
37        $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT)
38
39%_systemcass.x : %_systemcass.o  $(SYSTEMCASS_LIB)
40        $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT)
41
42include Makefile.deps
43
44%_systemc.cpp : %.cpp
45        ln -s $*.cpp $*_systemc.cpp
46
47%_systemcass.cpp : %.cpp
48        ln -s $*.cpp $*_systemcass.cpp
49
50%_systemc.o : %_systemc.cpp
51        $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps
52        $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o
53
54%_systemcass.o : %_systemcass.cpp
55        $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps
56        $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o
57
58clean :
59        -echo > Makefile.deps
60        -rm -f *.o gmon.out
61        -rm -f signal_order.txt module_order.dot signal_graph.dot port_graph.dot
62        -rm -f module_graph.dot process_order.dot
63        -rm -f $(EXE) $(OBJECTS) 
64        -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null
65        -rm -f core*
66        -rm -rf generated_by_systemcass
67        -rm -rf tracesystem_systemcass.x.vcd tracesystem_systemc.x.vcd
68        -rm -rf ${RESULTS}
69       
Note: See TracBrowser for help on using the repository browser.