Last change
on this file was
1,
checked in by buchmann, 17 years ago
|
Initial import from CVS repository
|
File size:
1.4 KB
|
Line | |
---|
1 | include ../env.mk |
---|
2 | |
---|
3 | SYSTEM = system.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) |
---|
10 | |
---|
11 | .SECONDARY: |
---|
12 | |
---|
13 | main : $(EXE) |
---|
14 | |
---|
15 | test : ${EXE} |
---|
16 | ./system_systemcass.x || eval ${failcom} |
---|
17 | |
---|
18 | %.gif : %.dot |
---|
19 | dot -Tgif -o $*.gif $*.dot |
---|
20 | |
---|
21 | %_systemc.x : %_systemc.o $(SYSTEMC_LIB) |
---|
22 | $(CXX) -o $@ $*_systemc.o $(LFLAGS_SYSTEMC) 2>&1 | $(CPPFILT) |
---|
23 | |
---|
24 | %_systemcass.x : %_systemcass.o $(SYSTEMCASS_LIB) |
---|
25 | $(CXX) -o $@ $*_systemcass.o $(LFLAGS_SYSTEMCASS) 2>&1 | $(CPPFILT) |
---|
26 | |
---|
27 | include Makefile.deps |
---|
28 | |
---|
29 | %_systemc.cpp : %.cpp |
---|
30 | ln -s $*.cpp $*_systemc.cpp |
---|
31 | |
---|
32 | %_systemcass.cpp : %.cpp |
---|
33 | ln -s $*.cpp $*_systemcass.cpp |
---|
34 | |
---|
35 | %_systemc.o : %_systemc.cpp |
---|
36 | $(CXX) $(CFLAGS_SYSTEMC) -MM $*_systemc.cpp >> Makefile.deps |
---|
37 | $(CXX) $(CFLAGS_SYSTEMC) -c $*_systemc.cpp -o $*_systemc.o |
---|
38 | |
---|
39 | %_systemcass.o : %_systemcass.cpp |
---|
40 | $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*_systemcass.cpp >> Makefile.deps |
---|
41 | $(CXX) $(CFLAGS_SYSTEMCASS) -c $*_systemcass.cpp -o $*_systemcass.o |
---|
42 | |
---|
43 | clean : |
---|
44 | -echo > Makefile.deps |
---|
45 | -rm -f *.o gmon.out *~ |
---|
46 | -rm -f ${LOG} |
---|
47 | -rm -f signal_order.txt module_order.dot signal_graph.dot |
---|
48 | -rm -f module_order.gif signal_graph.gif |
---|
49 | -rm -f $(EXE) $(OBJECTS) |
---|
50 | -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null |
---|
51 | -rm -f core* |
---|
52 | -rm -rf system_systemcass.x.vcd system_systemc.x.vcd |
---|
53 | -rm -rf generated_by_systemcass |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.