Commit 4b0b5d0c authored by Alexandre Julliard's avatar Alexandre Julliard

Got rid of MakeMaker so we can build outside the source tree.

parent 61d26d79
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
);
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:
......@@ -15,6 +15,9 @@
#include <perl.h>
#include <XSUB.h>
#undef WORD
#include "winbase.h"
/* API return type constants */
enum ret_type
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment