From 0bfe93e242a0dfaba92f1afe06c9444e1a25ca39 Mon Sep 17 00:00:00 2001 From: dwarning Date: Wed, 14 Nov 2007 15:08:19 +0000 Subject: [PATCH] allow different mingw versions --- src/xspice/icm/makedefs.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xspice/icm/makedefs.in b/src/xspice/icm/makedefs.in index a4dc78dc7..b08cf329b 100644 --- a/src/xspice/icm/makedefs.in +++ b/src/xspice/icm/makedefs.in @@ -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