etisserant@0: # include the system specific Makefile etisserant@40: include ../Makefile.$(shell uname) etisserant@0: etisserant@0: etisserant@0: etisserant@0: default: all etisserant@0: etisserant@0: .PHONY: iec.flex etisserant@0: mario@15: all: iec.flex.o iec.y.o stage1_2.o mario@15: etisserant@0: etisserant@0: clean: etisserant@0: -rm -f *.o Makefile.depend etisserant@0: -rm -f iec.flex.c iec.y.cc iec.y.hh iec.y.output etisserant@0: -rm -f test_flex etisserant@0: etisserant@0: etisserant@0: CFLAGS += -I. -I../* -I../../absyntax etisserant@0: etisserant@0: test_flex: iec.flex.c iec.y.hh etisserant@0: $(CXX) -o test_flex.o -c iec.flex.c -DTEST_MAIN $(CFLAGS) etisserant@0: $(CXX) -o test_flex test_flex.o etisserant@0: # $(CXX) -o test_flex test_flex.o ../util/symtable.o -DTEST_MAIN etisserant@0: etisserant@0: iec.flex.c: iec.flex etisserant@0: flex -oiec.flex.c iec.flex etisserant@0: 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: etisserant@0: etisserant@0: etisserant@0: etisserant@0: etisserant@0: #how to make things from other directories if they are missing etisserant@0: ../% /%: etisserant@0: $(MAKE) -C $(@D) $(@F) mario@15: mario@15: mario@15: Makefile.depend depend: mario@15: $(CXX) -MM -MG -I. *.cc \ mario@15: | perl -pe 's/:/ Makefile.depend:/' > Makefile.depend mario@15: mario@15: include Makefile.depend mario@15: