allow different mingw versions

This commit is contained in:
dwarning 2007-11-14 15:08:19 +00:00
parent e75c80f589
commit 0bfe93e242
1 changed files with 3 additions and 2 deletions

View File

@ -16,11 +16,12 @@ CC = @CC@
# Spice header include path
INCLUDES = -I$(TOPDIR)$(top_srcdir)/src/include -I$(TOPDIR)$(top_builddir)
ISMINGW = $(shell uname | grep -c "MINGW32")
# CFLAGS to use here
ifeq "$(strip $(uname))" "MINGW32_NT-5.0"
ifeq ($(ISMINGW), 1)
CFLAGS = @CFLAGS@ -DCM_WINDOWS
else
CFLAGS = @CFLAGS@ -fPIC -DCM_LINUX
CFLAGS = @CFLAGS@ -fPIC -DCM_LINUX
endif
# Path to the cmpp utility