Updated to MakeMaker-5.38.
[p5sagit/p5-mst-13.2.git] / ext / DynaLoader / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 WriteMakefile(
4     NAME => 'DynaLoader',
5     LINKTYPE    => 'static',
6     DEFINE      => '-DPERL_CORE -DLIBC="$(LIBC)"',
7     MAN3PODS    => ' ',         # Pods will be built by installman.
8     SKIP        => [qw(dynamic dynamic_lib dynamic_bs)],
9     XSPROTOARG => '-noprototypes',              # XXX remove later?
10     VERSION_FROM => 'DynaLoader.pm',
11     clean       => {FILES => 'DynaLoader.c DynaLoader.xs'},
12 );
13
14
15 sub MY::postamble {
16         '
17 DynaLoader.xs: $(DLSRC)
18         $(CP) $? $@
19
20 # Perform very simple tests just to check for major gaffs.
21 # We can\'t do much more for platforms we are not executing on.
22 test-xs:
23         for i in dl_*xs; \
24             do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
25         done
26 ';
27 }
28