stage1_2/Makefile
changeset 270 f1674941c3ad
parent 258 d7d92b2f87e9
child 279 c0453b7f99df
equal deleted inserted replaced
256:101c7f148b9a 270:f1674941c3ad
     1 # include the system specific Makefile
     1 # include the system specific Makefile
     2 include ../Makefile.$(shell uname)
     2 include ../Makefile.$(shell uname)
     3 
     3 
     4 
     4 
     5 
     5 
     6 default:	all
     6 default: all
     7 
     7 
     8 all: iec.flex.o iec.y.o stage1_2.o
     8 all: iec.flex.o iec.y.o stage1_2.o
     9 
     9 
    10 clean:
    10 clean:
    11 	echo > Makefile.depend
    11 	echo > Makefile.depend
    13 	-rm -f iec.noerrorcheck.y
    13 	-rm -f iec.noerrorcheck.y
    14 	-rm -f test_flex
    14 	-rm -f test_flex
    15 	-rm -f stage1_2.o
    15 	-rm -f stage1_2.o
    16 	-rm -f iec.y.o
    16 	-rm -f iec.y.o
    17 	-rm -f iec.flex.o
    17 	-rm -f iec.flex.o
       
    18 	-rm -f Makefile.depend
    18 
    19 
    19 
    20 
    20 CFLAGS += -I. -I../* -I../../absyntax
    21 CFLAGS += -I. -I../* -I../../absyntax
    21 
    22 
    22 iec.flex.c: iec.flex
    23 iec.flex.c: iec.flex
    23 	flex -oiec.flex.c iec.flex
    24 	flex -oiec.flex.c iec.flex
    24 
    25 
    25 stage1_2.cc: iec.y.hh
    26 stage1_2.cc: iec.y.hh 
       
    27 stage1_2.o: stage1_2.cc
    26 
    28 
    27 iec.flex.o: iec.y.hh iec.flex.c
    29 iec.flex.o: iec.y.hh iec.flex.c
    28 	$(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS)
    30 	$(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS)
    29 
    31 
    30 iec.y.hh iec.y.cc: iec.y
    32 iec.y.hh iec.y.cc: iec.y