Last change
on this file since 39 was
1,
checked in by buchmann, 17 years ago
|
Initial import from CVS repository
|
File size:
912 bytes
|
Line | |
---|
1 | include ../env.mk |
---|
2 | |
---|
3 | EXE = system.x system2.x |
---|
4 | OBJECTS = system.o system_gen_moore.o system_gen_mealy.o system_transition.o |
---|
5 | OBJECTS2= system2.o |
---|
6 | |
---|
7 | .SECONDARY: |
---|
8 | |
---|
9 | main : $(EXE) |
---|
10 | |
---|
11 | test : system.x system2.x |
---|
12 | system.x > /dev/null ; \ |
---|
13 | if [ $$? -ne 0 ] ; then eval ${failcom} ; fi |
---|
14 | @echo Test OK. |
---|
15 | system2.x > /dev/null ; \ |
---|
16 | if [ $$? -ne 139 ] ; then eval ${failcom} ; fi |
---|
17 | |
---|
18 | system.x : ${OBJECTS} $(SYSTEMCASS_LIB) |
---|
19 | $(CXX) -o $@ ${OBJECTS} $(LFLAGS_SYSTEMCASS) |
---|
20 | |
---|
21 | system2.x : ${OBJECTS2} $(SYSTEMCASS_LIB) |
---|
22 | $(CXX) -o $@ ${OBJECTS2} $(LFLAGS_SYSTEMCASS) |
---|
23 | |
---|
24 | include Makefile.deps |
---|
25 | |
---|
26 | %.o : %.cpp |
---|
27 | $(CXX) $(CFLAGS_SYSTEMCASS) -MM $*.cpp >> Makefile.deps |
---|
28 | $(CXX) $(CFLAGS_SYSTEMCASS) -c $*.cpp -o $*.o |
---|
29 | |
---|
30 | clean : |
---|
31 | -echo > Makefile.deps |
---|
32 | -rm -f *.o gmon.out |
---|
33 | -rm -f *.txt |
---|
34 | -rm -f $(EXE) $(OBJECTS) $(OBJECTS2) |
---|
35 | -for i in $(LINKS) ; do unlink $$i ; done 2> /dev/null |
---|
36 | -rm -f core* |
---|
37 | -rm -f *~ |
---|
38 | -rm -rf generated_by_systemcass .libs/ |
---|
39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.