Don't pass the perl C flags to winebuild.
diff --git a/Make.rules.in b/Make.rules.in
index 509334a..ccd9585 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -28,7 +28,7 @@
SHELL = /bin/sh
CC = @CC@
CPP = @CPP@
-CFLAGS = @CFLAGS@
+CFLAGS = @CFLAGS@ $(EXTRACFLAGS)
OPTIONS = @OPTIONS@ -D_REENTRANT
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
diff --git a/programs/winetest/Makefile.in b/programs/winetest/Makefile.in
index b5c6786..9abfcdc 100644
--- a/programs/winetest/Makefile.in
+++ b/programs/winetest/Makefile.in
@@ -1,7 +1,3 @@
-EXTRADEFS = `perl -MExtUtils::Embed -e ccflags`
-EXTRALIBS = `perl -MExtUtils::Embed -e ldopts`
-EXTRAINCL = `perl -MExtUtils::Embed -e perl_inc`
-XSUBPPDIR = `perl -MConfig -e 'print $$Config::Config{privlibexp}'`/ExtUtils
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
@@ -10,6 +6,11 @@
APPMODE = cui
IMPORTS = kernel32
+EXTRACFLAGS = `perl -MExtUtils::Embed -e ccflags`
+EXTRALIBS = `perl -MExtUtils::Embed -e ldopts`
+EXTRAINCL = `perl -MExtUtils::Embed -e perl_inc`
+XSUBPPDIR = `perl -MConfig -e 'print $$Config::Config{privlibexp}'`/ExtUtils
+
C_SRCS = winetest.c
EXTRA_SRCS = wtmain.c