X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FSDBM_File%2FMakefile.PL;h=05e08b5cbc954cf21c71bf98baa4bc54409b5a1b;hb=f5f48b4d8916a5316bf55ddba4047be421aaecfe;hp=749478551fe0cf294fafc167d6bf1735bb559d87;hpb=ad7e816fc202b9506cd8e0633196331ccf37f264;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/SDBM_File/Makefile.PL b/ext/SDBM_File/Makefile.PL index 7494785..05e08b5 100644 --- a/ext/SDBM_File/Makefile.PL +++ b/ext/SDBM_File/Makefile.PL @@ -1,4 +1,5 @@ use ExtUtils::MakeMaker; +use Config; # The existence of the ./sdbm/Makefile.PL file causes MakeMaker # to automatically include Makefile code for the targets @@ -16,16 +17,38 @@ WriteMakefile( XSPROTOARG => '-noprototypes', # XXX remove later? VERSION_FROM => 'SDBM_File.pm', DEFINE => $define, + PERL_MALLOC_OK => 1, ); sub MY::postamble { - if ($^O ne 'VMS') { + if ($^O =~ /MSWin32/ && Win32::IsWin95()) { + if ($Config{'make'} =~ /dmake/i) { + # dmake-specific + return <<'EOT'; +$(MYEXTLIB): sdbm/Makefile +@[ + cd sdbm + $(MAKE) all + cd .. +] +EOT + } elsif ($Config{'make'} =~ /nmake/i) { + # + return <<'EOT'; +$(MYEXTLIB): sdbm/Makefile + cd sdbm + $(MAKE) all + cd .. +EOT + } +} elsif ($^O ne 'VMS') { ' $(MYEXTLIB): sdbm/Makefile cd sdbm && $(MAKE) all '; - } else { - ' + } + else { + ' $(MYEXTLIB) : [.sdbm]descrip.mms set def [.sdbm] $(MMS) all