Makefile
changeset 40 873a5b60a7ea
parent 15 0b472e25eb16
child 70 e1f0ebd2d9ec
equal deleted inserted replaced
39:e08c65e27557 40:873a5b60a7ea
     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 default: all
     4 default: all
     5 
     5 
     6 all: iec2cc iec2iec
     6 all: iec2cc iec2iec
     7 
     7 
     8 install: all
     8 install: all
    23 clean:
    23 clean:
    24 	-rm -f iec2iec iec2cc *.o absyntax/*.o Makefile.depend
    24 	-rm -f iec2iec iec2cc *.o absyntax/*.o Makefile.depend
    25 # make something everywhere (ie, in all Makefiles that have that target)
    25 # make something everywhere (ie, in all Makefiles that have that target)
    26 	find . -depth -mindepth 2 -maxdepth 2 -name Makefile -printf %h\\n | xargs -i make -C{} $@
    26 	find . -depth -mindepth 2 -maxdepth 2 -name Makefile -printf %h\\n | xargs -i make -C{} $@
    27 
    27 
    28 
       
    29 
       
    30 #get warnings, debugging information and optimization
       
    31 CXXFLAGS  = -Wall -pedantic -Wpointer-arith -Wwrite-strings
       
    32 # CXXFLAGS += -Werror
       
    33 CXXFLAGS += -ggdb -O3 -funroll-loops
       
    34 # Note: if the optimizer crashes, we'll leave out the -O3 for those files
       
    35 
       
    36 CXXFLAGS += -I.
    28 CXXFLAGS += -I.
    37 
       
    38 
       
    39 
    29 
    40 LIBS  = absyntax/absyntax.o absyntax/visitor.o
    30 LIBS  = absyntax/absyntax.o absyntax/visitor.o
    41 LIBS += stage1_2/stage1_2.o stage1_2/iec.y.o stage1_2/iec.flex.o 
    31 LIBS += stage1_2/stage1_2.o stage1_2/iec.y.o stage1_2/iec.flex.o 
    42 
    32 
    43 iec2cc: main.o stage4/generate_cc/generate_cc.o stage4/stage4.o $(LIBS)
    33 iec2cc: main.o stage4/generate_cc/generate_cc.o stage4/stage4.o $(LIBS)