stage4/generate_cc/Makefile
changeset 70 e1f0ebd2d9ec
parent 69 41cb5b80416e
child 71 c2c867171c07
equal deleted inserted replaced
69:41cb5b80416e 70:e1f0ebd2d9ec
     1 # include the system specific Makefile
       
     2 include ../../Makefile.$(shell uname)
       
     3 
       
     4 default: all
       
     5 
       
     6 all: generate_cc.o
       
     7 
       
     8 clean:
       
     9 	-rm -f *.o */*.o Makefile.depend
       
    10 
       
    11 CXXFLAGS += -Wno-unused
       
    12 CXXFLAGS += -I. -I../* -I../../absyntax
       
    13 
       
    14 #how to make things from other directories if they are missing
       
    15 ../% /%:
       
    16 	$(MAKE) -C $(@D) $(@F)
       
    17 
       
    18 test_iec_std_lib: test_iec_std_lib.c iec_std_lib.h
       
    19 	gcc -o test_iec_std_lib test_iec_std_lib.c
       
    20 	
       
    21 test: test_iec_std_lib
       
    22 
       
    23 Makefile.depend depend:
       
    24 	$(CXX) -MM -MG -I. *.cc \
       
    25 	  | perl -pe 's/:/ Makefile.depend:/' > Makefile.depend
       
    26 
       
    27 include Makefile.depend
       
    28 
       
    29 
       
    30 
       
    31