source: branches/with_autoconf/test_regression/25032005/Makefile @ 13

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

Initial import from CVS repository

File size: 1.6 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 : main
14        ./system_systemc.x ; \
15        ./system_systemcass.x --p --t || eval ${failcom} ; \
16        ((tail --lines=+3 signal_graph.dot  | diff signal_graph_reference.dot -)\
17        || (tail -n +3 signal_graph.dot | diff signal_graph_reference2.dot -)) \
18        || eval ${failcom} ; \
19       
20        tail --lines=+3 process_order.dot | diff process_order_reference.dot -
21        diff signal_order_reference.txt signal_order.txt
22        @echo Test OK.
23
24%_systemc.x : %_systemc.o $(SYSTEMC_LIB)
25        $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 
26
27%_systemcass.x : %_systemcass.o  $(SYSTEMCASS_LIB)
28        $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS)
29
30include Makefile.deps
31
32%_systemc.cpp : %.cpp
33        ln -s $*.cpp $*_systemc.cpp
34
35%_systemcass.cpp : %.cpp
36        ln -s $*.cpp $*_systemcass.cpp
37
38%_systemc.o : %_systemc.cpp
39        $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps
40        $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o
41
42%_systemcass.o : %_systemcass.cpp
43        $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps
44        $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o
45
46%.gif : %.dot
47        dot -Tgif -o $*.gif $*.dot
48
49clean :
50        -echo > Makefile.deps
51        -rm -f *.o gmon.out
52        -rm -f port_graph.dot signal_order.txt process_order.dot signal_graph.dot
53        -rm -f $(EXE) $(OBJECTS) 
54        -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null
55        -rm -f core*
56        -rm -f *~
57        -rm -rf generated_by_systemcass
58        -rm -rf tracesystem_systemcass.x.vcd tracesystem_systemc.x.vcd
59       
Note: See TracBrowser for help on using the repository browser.