Werror is bad, unless you know what you are doing
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 30 Aug 2004 08:34:52 +0000 (08:34 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 30 Aug 2004 08:34:52 +0000 (08:34 +0000)
Makefile.mgw

index 6f53efd55d8aa7c91b0d4b39132edb0c241765e2..294f35559ff463e33af01751d077c68e4c4e29ad 100644 (file)
 .PHONY : all libgl clean realclean
 
 CPU ?= pentium
-\r
-# when -std=c99 mingw will not define WIN32
-CFLAGS = -Wall -W -Werror -pedantic -std=c99 -DWIN32
+
+ifeq ($(ICD),1)
+  # when -std=c99 mingw will not define WIN32
+  CFLAGS = -Wall -W -Werror -pedantic -std=c99 -DWIN32
+else
+  # I love c89
+  CFLAGS = -Wall -W -pedantic
+endif
 CFLAGS += -O2 -ffast-math -mcpu=$(CPU)
 
 export CFLAGS