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 . Edouard@279: etisserant@54: #CXX = i686-mingw32-c++ etisserant@54: CXX = g++ etisserant@40: etisserant@40: #get warnings, debugging information and optimization laurent@209: CFLAGS = -Wall -Wpointer-arith -Wwrite-strings etisserant@40: # CFLAGS += -Werror etisserant@99: CFLAGS += -ggdb etisserant@99: #CFLAGS += -O3 -funroll-loops etisserant@40: # Note: if the optimizer crashes, we'll leave out the -O3 for those files etisserant@40: etisserant@40: #get warnings, debugging information and optimization etisserant@99: #CXXFLAGS = -Wall -pedantic -Wpointer-arith -Wwrite-strings etisserant@99: #CXXFLAGS += -ggdb etisserant@54: #CXXFLAGS += -O3 -funroll-loops etisserant@99: CXXFLAGS = $(CFLAGS) etisserant@40: etisserant@40: IECLIBDIR=lib