Edouard@279: # matiec - a compiler for the programming languages defined in IEC 61131-3 Edouard@279: # Edouard@279: # Copyright (C) 2003-2011 Mario de Sousa (msousa@fe.up.pt) Edouard@279: # Copyright (C) 2007-2011 Laurent Bessard and Edouard Tisserant Edouard@279: # Edouard@279: # This program is free software: you can redistribute it and/or modify Edouard@279: # it under the terms of the GNU General Public License as published by Edouard@279: # the Free Software Foundation, either version 3 of the License, or Edouard@279: # (at your option) any later version. Edouard@279: # Edouard@279: # This program is distributed in the hope that it will be useful, Edouard@279: # but WITHOUT ANY WARRANTY; without even the implied warranty of Edouard@279: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Edouard@279: # GNU General Public License for more details. Edouard@279: # Edouard@279: # You should have received a copy of the GNU General Public License Edouard@279: # along with this program. If not, see . etisserant@0: # include the system specific Makefile Edouard@279: etisserant@40: include ../Makefile.$(shell uname) etisserant@0: etisserant@0: etisserant@0: etisserant@0: etisserant@0: default: all etisserant@0: etisserant@0: all: stage4.o etisserant@0: etisserant@0: clean: etisserant@0: rm -f *.o msousa@268: find . -depth -mindepth 2 -maxdepth 2 -name Makefile | sed 's/Makefile//g' | xargs -I {} make -C{} clean etisserant@0: etisserant@0: etisserant@40: CXXFLAGS += -I. -I../* etisserant@0: etisserant@0: #how to make things in subdirectories etc etisserant@0: ../% /% absyntax/% stage1_2/% stage3/% stage4/% util/%: etisserant@0: $(MAKE) -C $(@D) $(@F) etisserant@0: Lolitech@243: Makefile.depend depend: Lolitech@243: $(CXX) -MM -MG -I. *.cc \ Lolitech@243: | sed 's/:/ Makefile.depend:/' > Makefile.depend Lolitech@243: Lolitech@243: include Makefile.depend