Got rid of MakeMaker so we can build outside the source tree.
This commit is contained in:
parent
61d26d79d6
commit
4b0b5d0c4a
|
@ -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
|
||||
);
|
|
@ -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:
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
#include <perl.h>
|
||||
#include <XSUB.h>
|
||||
|
||||
#undef WORD
|
||||
#include "winbase.h"
|
||||
|
||||
/* API return type constants */
|
||||
enum ret_type
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue