stage1_2/Makefile
changeset 15 0b472e25eb16
parent 0 fb772792efd1
child 40 873a5b60a7ea
equal deleted inserted replaced
14:d926ee71f228 15:0b472e25eb16
     5 
     5 
     6 default:	all
     6 default:	all
     7 
     7 
     8 .PHONY: iec.flex
     8 .PHONY: iec.flex
     9 
     9 
    10 all: iec.flex.o iec.y.o
    10 all: iec.flex.o iec.y.o stage1_2.o
       
    11 
    11 
    12 
    12 clean:
    13 clean:
    13 	-rm -f *.o Makefile.depend
    14 	-rm -f *.o Makefile.depend
    14 	-rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output
    15 	-rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output
    15 	-rm -f test_flex
    16 	-rm -f test_flex
    45 
    46 
    46 
    47 
    47 #how to make things from other directories if they are missing
    48 #how to make things from other directories if they are missing
    48 ../% /%:
    49 ../% /%:
    49 	$(MAKE) -C $(@D) $(@F)
    50 	$(MAKE) -C $(@D) $(@F)
       
    51 
       
    52 
       
    53 Makefile.depend depend:
       
    54 	$(CXX) -MM -MG -I. *.cc \
       
    55 	  | perl -pe 's/:/ Makefile.depend:/' > Makefile.depend
       
    56 
       
    57 include Makefile.depend
       
    58