This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[win32] merge change#687 from maintbranch
[perl5.git] / ext / DynaLoader / Makefile.PL
CommitLineData
42793c05
TB
1use ExtUtils::MakeMaker;
2
3WriteMakefile(
d2cedf73 4 NAME => 'DynaLoader',
4ad3186e 5 LINKTYPE => 'static',
760ac839 6 DEFINE => '-DPERL_CORE -DLIBC="$(LIBC)"',
4ad3186e 7 MAN3PODS => ' ', # Pods will be built by installman.
8 SKIP => [qw(dynamic dynamic_lib dynamic_bs)],
9 XSPROTOARG => '-noprototypes', # XXX remove later?
c07a80fd 10 VERSION_FROM => 'DynaLoader.pm',
d2cedf73 11 clean => {FILES => 'DynaLoader.c DynaLoader.xs'},
42793c05
TB
12);
13
14
15sub MY::postamble {
16 '
d2cedf73 17DynaLoader.xs: $(DLSRC)
18 $(CP) $? $@
42793c05
TB
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.
22test-xs:
23 for i in dl_*xs; \
005c1a0e 24 do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
42793c05
TB
25 done
26';
27}
28