From 4b0b5d0c4a355d594da51b2fe4c43586d71b08ae Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 9 May 2001 19:47:39 +0000 Subject: [PATCH] Got rid of MakeMaker so we can build outside the source tree. --- programs/winetest/Makefile.PL | 8 -------- programs/winetest/Makefile.in | 13 +++++-------- programs/winetest/wine.xs | 3 +++ 3 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 programs/winetest/Makefile.PL diff --git a/programs/winetest/Makefile.PL b/programs/winetest/Makefile.PL deleted file mode 100644 index 55578a702e4..00000000000 --- a/programs/winetest/Makefile.PL +++ /dev/null @@ -1,8 +0,0 @@ -use ExtUtils::MakeMaker; -# See lib/ExtUtils/MakeMaker.pm for details of how to influence -# the contents of the Makefile that is written. -WriteMakefile( - 'MAKEFILE' => 'Makefile.perl', - 'NAME' => 'wine', - 'VERSION_FROM' => 'wine.pm', # finds $VERSION -); diff --git a/programs/winetest/Makefile.in b/programs/winetest/Makefile.in index 46e5d5c44fd..37f3b936570 100644 --- a/programs/winetest/Makefile.in +++ b/programs/winetest/Makefile.in @@ -1,6 +1,7 @@ EXTRADEFS = -DSTRICT `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@ @@ -11,15 +12,11 @@ C_SRCS = winetest.c EXTRA_OBJS = wine.o -PERLMAKE = $(MAKE) -fMakefile.perl INC="$(DIVINCL)" @MAKE_PROG_RULES@ -wine.o: wine.xs Makefile.perl - $(PERLMAKE) wine.o - -Makefile.perl: Makefile.PL - perl Makefile.PL +wine.c: wine.xs + perl $(XSUBPPDIR)/xsubpp -typemap $(XSUBPPDIR)/typemap $(SRCDIR)/wine.xs >wine.c || $(RM) wine.c install:: [ -d $(libdir) ] || $(MKDIR) $(libdir) @@ -28,7 +25,7 @@ install:: uninstall:: cd $(libdir) && $(RM) wine.pm -clean:: Makefile.perl - $(PERLMAKE) realclean +clean:: + $(RM) wine.c ### Dependencies: diff --git a/programs/winetest/wine.xs b/programs/winetest/wine.xs index fcb2345ed71..3b271264de9 100644 --- a/programs/winetest/wine.xs +++ b/programs/winetest/wine.xs @@ -15,6 +15,9 @@ #include #include +#undef WORD +#include "winbase.h" + /* API return type constants */ enum ret_type {