source: branches/with_autoconf/test_regression/07122006/Makefile @ 54

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

Initial import from CVS repository

File size: 912 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
24include 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        -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.