Add t_vb_cull.c (Bernard Blackham)
[mesa.git] / Makefile.mgw
index 2cd5d81cd383e55b08aec03fcac7f7e7b8f8b19d..d544b09398cee7d7fed8e15bf91804ea5f94aedf 100644 (file)
@@ -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
 
@@ -40,6 +40,9 @@
 #                      As a consequence, you'll need the Win32 Glide3
 #                      library to build any application.
 #                      default = no
+#      ICD=1           build the installable client driver interface
+#                      (windows opengl driver interface)
+#                      default = no
 #      X86=1           optimize for x86 (if possible, use MMX, SSE, 3DNow).
 #                      default = no
 #
 
 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