summaryrefslogtreecommitdiff
path: root/ext/B/Makefile.PL
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-22 19:35:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-22 19:35:25 +0000
commit29fc1735f6ef1892396c4aca36cee4ec8d413146 (patch)
treef8da2cc2dcc363fb4861297d0341205b00ddceb0 /ext/B/Makefile.PL
parentb0791878b3c8c7ba0b5a70d7be60f1291a2e58c8 (diff)
downloadperl-29fc1735f6ef1892396c4aca36cee4ec8d413146.tar.gz
Be portable.
p4raw-id: //depot/perl@6778
Diffstat (limited to 'ext/B/Makefile.PL')
-rw-r--r--ext/B/Makefile.PL16
1 files changed, 12 insertions, 4 deletions
diff --git a/ext/B/Makefile.PL b/ext/B/Makefile.PL
index 74053e6ae1..4bf226de4f 100644
--- a/ext/B/Makefile.PL
+++ b/ext/B/Makefile.PL
@@ -1,5 +1,6 @@
use ExtUtils::MakeMaker;
use Config;
+use File::Spec;
my $e = $Config{'exe_ext'};
my $o = $Config{'obj_ext'};
@@ -29,10 +30,17 @@ sub post_constants {
"\nLIBS = $Config::Config{libs}\n"
}
+sub upupfile {
+ File::Spec->catfile(File::Spec->updir,
+ File::Spec->updir, $_[0]);
+}
+
sub postamble {
-'
-B$(OBJ_EXT) : defsubs.h
+ my $op_h = upupfile('op.h');
+ my $cop_h = upupfile('cop.h');
+"
+B\$(OBJ_EXT) : defsubs.h
-defsubs.h :: ../../op.h ../../cop.h
-'
+defsubs.h :: $op_h $cop_h
+"
}