This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
correct FSF address in various places
[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?
bfab39a2
LM
10 VERSION_FROM => 'DynaLoader_pm.PL',
11 PL_FILES => {'DynaLoader_pm.PL'=>'DynaLoader.pm'},
03c9e98c
GS
12 PM => {'DynaLoader.pm' => '$(INST_LIBDIR)/DynaLoader.pm'},
13 clean => {FILES => 'DynaLoader.c DynaLoader.xs DynaLoader.pm'},
42793c05
TB
14);
15
42793c05
TB
16sub MY::postamble {
17 '
d2cedf73 18DynaLoader.xs: $(DLSRC)
19 $(CP) $? $@
42793c05
TB
20
21# Perform very simple tests just to check for major gaffs.
22# We can\'t do much more for platforms we are not executing on.
23test-xs:
24 for i in dl_*xs; \
005c1a0e 25 do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
42793c05
TB
26 done
27';
28}
29