stage1_2/Makefile
changeset 257 90782e241346
parent 172 bfa2e7806d7d
child 258 d7d92b2f87e9
equal deleted inserted replaced
204:8ffa211b7f9a 257:90782e241346
     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
       
    12 	-rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output
    11 	-rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output
    13 	-rm -f iec.noerrorcheck.y
    12 	-rm -f iec.noerrorcheck.y
    14 	-rm -f test_flex
    13 	-rm -f test_flex
    15 	-rm -f stage1_2.o
    14 	-rm -f stage1_2.o
    16 	-rm -f iec.y.o
    15 	-rm -f iec.y.o
    20 CFLAGS += -I. -I../* -I../../absyntax
    19 CFLAGS += -I. -I../* -I../../absyntax
    21 
    20 
    22 iec.flex.c: iec.flex
    21 iec.flex.c: iec.flex
    23 	flex -oiec.flex.c iec.flex
    22 	flex -oiec.flex.c iec.flex
    24 
    23 
    25 stage1_2.cc: iec.y.hh
    24 stage1_2.o: stage1_2.cc iec.y.hh 
    26 
    25 
    27 iec.flex.o: iec.y.hh iec.flex.c
    26 iec.flex.o: iec.y.hh iec.flex.c
    28 	$(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS)
    27 	$(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS)
    29 
    28 
    30 iec.y.hh iec.y.cc: iec.y
    29 iec.y.hh iec.y.cc: iec.y
    42 
    41 
    43 #how to make things from other directories if they are missing
    42 #how to make things from other directories if they are missing
    44 ../% /%:
    43 ../% /%:
    45 	$(MAKE) -C $(@D) $(@F)
    44 	$(MAKE) -C $(@D) $(@F)
    46 
    45 
    47 
       
    48 Makefile.depend depend:
       
    49 	$(CXX) -MM -MG -I. *.cc > Makefile.depend
       
    50 	#| perl -pe 's/:/ Makefile.depend:/' > Makefile.depend
       
    51 
       
    52 include Makefile.depend
       
    53