1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License, Version 1.0 only
1N/A# (the "License"). You may not use this file except in compliance
1N/A# with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/Ause ExtUtils::MakeMaker;
1N/A
1N/Aunless($ENV{PERL_CORE}) {
1N/A $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
1N/A}
1N/Aif ($ENV{PERL_CORE}) {
1N/A # Pods will be built by installman.
1N/A @coreopts = ( MAN3PODS => {} );
1N/A}
1N/Aelse {
1N/A @coreopts = ();
1N/A}
1N/A
1N/AWriteMakefile(
1N/A NAME => "Devel::PPPort",
1N/A DISTNAME => "Devel-PPPort",
1N/A VERSION_FROM=> 'PPPort.pm',
1N/A
1N/A PL_FILES => { 'ppport_h.PL' => 'ppport.h' },
1N/A 'depend' => { '$(OBJECT)' => '$(H_FILES)' },
1N/A C => [qw(module2.c module3.c)],
1N/A H => [qw(ppport.h)],
1N/A OBJECT => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)',
1N/A XSPROTOARG => '-noprototypes',
1N/A 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" },
1N/A 'clean' => { FILES => qw($(H_FILES))},
1N/A @coreopts,
1N/A);