1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22use ExtUtils::MakeMaker; 23 24unless($ENV{PERL_CORE}) { 25 $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; 26} 27if ($ENV{PERL_CORE}) { 28 # Pods will be built by installman. 29 @coreopts = ( MAN3PODS => {} ); 30} 31else { 32 @coreopts = (); 33} 34 35WriteMakefile( 36 NAME => "Devel::PPPort", 37 DISTNAME => "Devel-PPPort", 38 VERSION_FROM=> 'PPPort.pm', 39 40 PL_FILES => { 'ppport_h.PL' => 'ppport.h' }, 41 'depend' => { '$(OBJECT)' => '$(H_FILES)' }, 42 C => [qw(module2.c module3.c)], 43 H => [qw(ppport.h)], 44 OBJECT => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)', 45 XSPROTOARG => '-noprototypes', 46 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }, 47 'clean' => { FILES => qw($(H_FILES))}, 48 @coreopts, 49); 50