1use ExtUtils::MakeMaker; 2 3WriteMakefile( 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 15sub MY::postamble { 16 ' 17DynaLoader.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. 22test-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 29