summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-02-22 02:40:56 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-02-22 02:40:56 +0000
commit2a321948466e7bb48bfd30dd6612a9a479df612a (patch)
treecdc913bcf460f4d0c37b315050098e0ff1e8604d /ext
parent15889bc6733efa93a8bf3ce4bedd0a05046f8f90 (diff)
downloadperl-2a321948466e7bb48bfd30dd6612a9a479df612a.tar.gz
[win32] get compiler building under win32 (needed Makefile.PL
hacks that could be applicable to other platforms) p4raw-id: //depot/win32/perl@568
Diffstat (limited to 'ext')
-rw-r--r--ext/B/Makefile.PL9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/B/Makefile.PL b/ext/B/Makefile.PL
index 88bd4bacd1..bc42a34d33 100644
--- a/ext/B/Makefile.PL
+++ b/ext/B/Makefile.PL
@@ -4,6 +4,7 @@ use Config;
my $e = $Config{'exe_ext'};
my $o = $Config{'obj_ext'};
my $exeout_flag = '-o ';
+my @extras = ();
if ($^O eq 'MSWin32') {
if ($Config{'cc'} =~ /^cl/i) {
$exeout_flag = '-Fe';
@@ -11,11 +12,19 @@ if ($^O eq 'MSWin32') {
elsif ($Config{'cc'} =~ /^bcc/i) {
$exeout_flag = '-e';
}
+ # XXX this probably applies to everyone else
+ @extras = (
+ OBJECT => "B$o byterun$o",
+ depend => {
+ "B$o" => "B.c ../../bytecode.h ../../byterun.h",
+ "byterun$o" => "../../byterun.c ../../bytecode.h ../../byterun.h",
+ });
}
WriteMakefile(
NAME => "B",
VERSION => "a5",
+ @extras,
clean => {
FILES => "perl byteperl$e *$o B.c *~"
}