1998-09-09 07:00:04 +00:00
|
|
|
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 => {},
|
1998-09-09 07:00:04 +00:00
|
|
|
clean => {
|
2000-06-25 11:04:01 +00:00
|
|
|
FILES => "perl$e *$o B.c defsubs.h *~"
|
1998-09-09 07:00:04 +00:00
|
|
|
}
|
2000-06-25 11:04:01 +00:00
|
|
|
);
|
1998-09-09 07:00:04 +00:00
|
|
|
|
2000-06-25 11:04:01 +00:00
|
|
|
package MY;
|
1998-09-09 07:00:04 +00:00
|
|
|
|
2000-06-25 11:04:01 +00:00
|
|
|
sub post_constants {
|
|
|
|
"\nLIBS = $Config::Config{libs}\n"
|
|
|
|
}
|
1998-09-09 07:00:04 +00:00
|
|
|
|
2000-06-25 11:04:01 +00:00
|
|
|
sub postamble {
|
|
|
|
'
|
|
|
|
B$(OBJ_EXT) : defsubs.h
|
|
|
|
'
|
|
|
|
}
|