freebsd-dev/contrib/perl5/ext/B/Makefile.PL

37 lines
597 B
Makefile
Raw Normal View History

use ExtUtils::MakeMaker;
use Config;
my $e = $Config{'exe_ext'};
my $o = $Config{'obj_ext'};
my $exeout_flag = '-o ';
if ($^O eq 'MSWin32') {
if ($Config{'cc'} =~ /^cl/i) {
$exeout_flag = '-Fe';
}
elsif ($Config{'cc'} =~ /^bcc/i) {
$exeout_flag = '-e';
}
}
WriteMakefile(
NAME => "B",
VERSION => "a5",
2000-06-25 11:04:01 +00:00
PL_FILES => { 'defsubs_h.PL' => 'defsubs.h' },
MAN3PODS => {},
clean => {
2000-06-25 11:04:01 +00:00
FILES => "perl$e *$o B.c defsubs.h *~"
}
2000-06-25 11:04:01 +00:00
);
2000-06-25 11:04:01 +00:00
package MY;
2000-06-25 11:04:01 +00:00
sub post_constants {
"\nLIBS = $Config::Config{libs}\n"
}
2000-06-25 11:04:01 +00:00
sub postamble {
'
B$(OBJ_EXT) : defsubs.h
'
}