stage4/generate_cc/Makefile
changeset 0 fb772792efd1
child 36 4d7fd441fbc3
equal deleted inserted replaced
-1:000000000000 0:fb772792efd1
       
     1 # include the system specific Makefile
       
     2 #include ../../../../Makefile.$(shell uname)
       
     3 
       
     4 
       
     5 
       
     6 
       
     7 
       
     8 default: all
       
     9 
       
    10 all: generate_cc.o
       
    11 
       
    12 clean:
       
    13 	-rm -f *.o */*.o Makefile.depend
       
    14 
       
    15 #get warnings, debugging information and optimization
       
    16 CXXFLAGS  = -Wall -pedantic -Wpointer-arith -Wwrite-strings
       
    17 # CXXFLAGS += -Werror
       
    18 
       
    19 CXXFLAGS += -ggdb -O3 -funroll-loops
       
    20 # Note: if the optimizer crashes, we'll leave out the -O3 for those files
       
    21 
       
    22 CXXFLAGS += -I. -I../* -I../../absyntax
       
    23 
       
    24 
       
    25 
       
    26 #how to make things from other directories if they are missing
       
    27 ../% /%:
       
    28 	$(MAKE) -C $(@D) $(@F)
       
    29 
       
    30 
       
    31 Makefile.depend depend:
       
    32 	$(CXX) -MM -MG -I. *.cc \
       
    33 	  | perl -pe 's/:/ Makefile.depend:/' > Makefile.depend
       
    34 
       
    35 include Makefile.depend
       
    36 
       
    37 
       
    38 
       
    39