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