etisserant@0: # include the system specific Makefile etisserant@40: include ../Makefile.$(shell uname) etisserant@0: etisserant@0: etisserant@0: msousa@257: default: all etisserant@0: mario@15: all: iec.flex.o iec.y.o stage1_2.o mario@15: etisserant@0: clean: etisserant@0: -rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output mario@68: -rm -f iec.noerrorcheck.y etisserant@0: -rm -f test_flex etisserant@172: -rm -f stage1_2.o etisserant@172: -rm -f iec.y.o etisserant@172: -rm -f iec.flex.o etisserant@172: etisserant@0: etisserant@0: CFLAGS += -I. -I../* -I../../absyntax etisserant@0: etisserant@0: iec.flex.c: iec.flex etisserant@0: flex -oiec.flex.c iec.flex etisserant@0: msousa@257: stage1_2.o: stage1_2.cc iec.y.hh etisserant@172: etisserant@0: iec.flex.o: iec.y.hh iec.flex.c etisserant@40: $(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS) etisserant@0: etisserant@0: iec.y.hh iec.y.cc: iec.y etisserant@0: bison -d -v -o iec.y.cc iec.y etisserant@0: etisserant@0: iec.y.o: iec.y.cc iec.y.hh etisserant@40: $(CXX) -c iec.y.cc $(CFLAGS) etisserant@0: mario@68: noerrorcheck: iec.y mario@68: sed '/ERROR_CHECK_BEGIN/,/ERROR_CHECK_END/ d' iec.y > iec.noerrorcheck.y mario@68: flex -oiec.flex.c iec.flex mario@68: $(CXX) -c iec.flex.c -D DEFAULT_LIBDIR='"$(IECLIBDIR)"' $(CFLAGS) mario@68: bison -d -v -o iec.y.cc iec.noerrorcheck.y mario@68: $(CXX) -c iec.y.cc $(CFLAGS) mario@68: etisserant@0: #how to make things from other directories if they are missing etisserant@0: ../% /%: etisserant@0: $(MAKE) -C $(@D) $(@F) mario@15: