X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Makefile.mgw;h=d544b09398cee7d7fed8e15bf91804ea5f94aedf;hb=f1481aa2d7fe24dfe03e3c54305e4ed8111aae9f;hp=762b05b7110d295fd78459f76b76016e80e666c9;hpb=86e001b78cb46c1d5a216dd50b3d7fe32db23575;p=mesa.git diff --git a/Makefile.mgw b/Makefile.mgw index 762b05b7110..d544b09398c 100644 --- a/Makefile.mgw +++ b/Makefile.mgw @@ -20,9 +20,9 @@ # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# MinGW makefile v1.1 for Mesa +# MinGW makefile v1.2 for Mesa # -# Copyright (C) 2002 - Borca Daniel +# Copyright (C) 2002 - Daniel Borca # Email : dborca@users.sourceforge.net # Web : http://www.geocities.com/dborca @@ -59,8 +59,14 @@ CPU ?= pentium -CFLAGS = -Wall -W -pedantic -CFLAGS += -O2 -ffast-math -mcpu=$(CPU) +ifeq ($(ICD),1) + # when -std=c99 mingw will not define WIN32 + CFLAGS = -Wall -W -Werror +else + # I love c89 + CFLAGS = -Wall -W -pedantic +endif +CFLAGS += -O2 -ffast-math -mtune=$(CPU) export CFLAGS