This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.000 patch.0i: fix glaring mistakes in patches a-h
[perl5.git] / ext / DynaLoader / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 WriteMakefile(
4     'LINKTYPE'  => 'static',
5     'DEFINE'    => '-DLIBC="$(LIBC)"',
6     'SKIP'      => [qw(dynamic dynamic_lib dynamic_bs)],
7     'clean'     => {FILES => 'DynaLoader.c'},
8 );
9
10
11 sub MY::postamble {
12         '
13 DynaLoader.c: $(DLSRC)
14         $(PERL) $(XSUBPP) $(XSUBPPARGS) $(DLSRC) >tmp && mv tmp $@
15
16 # Perform very simple tests just to check for major gaffs.
17 # We can\'t do much more for platforms we are not executing on.
18 test-xs:
19         for i in dl_*xs; \
20             do $(PERL) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
21         done
22 ';
23 }
24