Commit | Line | Data |
0a7c7f4f |
1 | use ExtUtils::MakeMaker; |
2 | |
9fdbfc11 |
3 | unless($ENV{PERL_CORE}) { |
4 | $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; |
5 | } |
6 | if ($ENV{PERL_CORE}) { |
7 | # Pods will be built by installman. |
8 | @coreopts = ( MAN3PODS => {} ); |
9 | } |
10 | else { |
11 | @coreopts = (); |
12 | } |
13 | |
0a7c7f4f |
14 | WriteMakefile( |
44284200 |
15 | NAME => "Devel::PPPort", |
16 | DISTNAME => "Devel-PPPort", |
17 | VERSION_FROM=> 'PPPort.pm', |
18 | |
dc531b29 |
19 | PL_FILES => { 'ppport_h.PL' => 'ppport.h' }, |
20 | 'depend' => { '$(OBJECT)' => '$(H_FILES)' }, |
1b9d2259 |
21 | C => [qw(module2.c module3.c)], |
22 | H => [qw(ppport.h)], |
23 | OBJECT => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)', |
44284200 |
24 | XSPROTOARG => '-noprototypes', |
25 | 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }, |
9fdbfc11 |
26 | 'clean' => { FILES => qw($(H_FILES))}, |
27 | @coreopts, |
0a7c7f4f |
28 | ); |