This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
integrate vmsperl contents into mainline (where VMS files conflicted,
[perl5.git] / ext / B / Makefile.PL
1 use ExtUtils::MakeMaker;
2 use Config;
3
4 my $e = $Config{'exe_ext'};
5 my $o = $Config{'obj_ext'};
6 my $exeout_flag = '-o ';
7 if ($^O eq 'MSWin32') {
8     if ($Config{'cc'} =~ /^cl/i) {
9         $exeout_flag = '-Fe';
10     }
11     elsif ($Config{'cc'} =~ /^bcc/i) {
12         $exeout_flag = '-e';
13     }
14 }
15
16 WriteMakefile(
17     NAME        => "B",
18     VERSION     => "a5",
19     PL_FILES    => { 'defsubs_h.PL' => 'defsubs.h' },
20     MAN3PODS    => {},
21     clean       => {
22         FILES           => "perl$e *$o B.c defsubs.h *~"
23     }
24 );   
25
26 package MY;
27
28 sub post_constants {
29     "\nLIBS = $Config{libs}\n"
30 }    
31
32 sub postamble {
33 '
34 B$(OBJ_EXT) : defsubs.h 
35 '
36 }