source: sources/test_regression/07122006/Makefile @ 32

Last change on this file since 32 was 15, checked in by buchmann, 16 years ago

More cleaning

File size: 911 bytes
Line 
1include ../env.mk
2
3EXE     = system.x system2.x
4OBJECTS = system.o system_gen_moore.o system_gen_mealy.o system_transition.o
5OBJECTS2= system2.o
6
7.SECONDARY:
8
9main : $(EXE) 
10
11test : 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
18system.x : ${OBJECTS} $(SYSTEMCASS_LIB)
19        $(CXX) -o $@ ${OBJECTS} $(LFLAGS_SYSTEMCASS)
20
21system2.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
30clean :
31        rm -f 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.