Consolidated patch to 5.004_64
[p5sagit/p5-mst-13.2.git] / ext / B / Makefile.PL
CommitLineData
a8a597b2 1use ExtUtils::MakeMaker;
2use Config;
3
4my $e = $Config{'exe_ext'};
5my $o = $Config{'obj_ext'};
6my $exeout_flag = '-o ';
7if ($^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
16WriteMakefile(
17 NAME => "B",
18 VERSION => "a5",
f7d144c8 19 MAN3PODS => ' ',
a8a597b2 20 clean => {
d613ef02 21 FILES => "perl$e byteperl$e *$o B.c *~"
a8a597b2 22 }
23);
24
25sub MY::post_constants {
26 "\nLIBS = $Config{libs}\n"
27}
28
a8581515 29# Leave out doing byteperl for now. Probably should be built in the
30# core directory or somewhere else rather than here
31#sub MY::top_targets {
32# my $self = shift;
33# my $targets = $self->MM::top_targets();
34# $targets =~ s/^(all ::.*)$/$1 byteperl$e/m;
35# return <<"EOT" . $targets;
36
a8a597b2 37#
38# byteperl is *not* a standard perl+XSUB executable. It's a special
39# program for running standalone bytecode executables. It isn't an XSUB
40# at the moment because a standlone Perl program needs to set up curpad
41# which is overwritten on exit from an XSUB.
42#
a8581515 43#byteperl$e : byteperl$o B$o \$(PERL_SRC)/byterun$o
44# \$(CC) ${exeout_flag}byteperl$e byteperl$o B$o byterun$o \$(LDFLAGS) \$(PERL_ARCHLIB)/CORE/$Config{libperl} \$(LIBS)
45#EOT
46#}