blob: 8b23eb5f007c6e83913b0e1a3f1713102f84a0e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => "Devel::PPPort::Harness",
VERSION_FROM=> 'Harness.pm',
XSPROTOARG => '-noprototypes',
OBJECT => 'Harness$(OBJ_EXT) module2$(OBJ_EXT) module3$(OBJ_EXT)',
'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" },
'clean' => { FILES => 'ppport.h'},
);
sub MY::postamble {
my $pmfile;
if ($^O eq 'VMS') {
$pmfile = '[-]PPPort.pm';
}
else {
$pmfile = '../PPPort.pm';
}
my $retval = <<"EOM";
ppport.h: $pmfile
\$(PERL) "-I\$(PERL_ARCHLIB)" "-I\$(PERL_LIB)" -e "require qq{$pmfile}; Devel::PPPort::WriteFile(qq{ppport.h})"
Harness.xs module2.c module3.c : ppport.h
\$(TOUCH) \$@
EOM
return $retval;
}
|