Makefile.PL revision 1
5819N/A#
5819N/A# CDDL HEADER START
5819N/A#
5819N/A# The contents of this file are subject to the terms of the
6071N/A# Common Development and Distribution License, Version 1.0 only
5819N/A# (the "License"). You may not use this file except in compliance
5819N/A# with the License.
5819N/A#
5819N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6071N/A# or http://www.opensolaris.org/os/licensing.
5819N/A# See the License for the specific language governing permissions
5819N/A# and limitations under the License.
5819N/A#
5819N/A# When distributing Covered Code, include this CDDL HEADER in each
5819N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5819N/A# If applicable, add the following below this CDDL HEADER, with the
5819N/A# fields enclosed by brackets "[]" replaced with your own identifying
5819N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5819N/A#
5819N/A# CDDL HEADER END
5819N/A#
5819N/Ause ExtUtils::MakeMaker;
5819N/A
5819N/AWriteMakefile(
5819N/A VERSION_FROM => "lib/List/Util.pm",
5819N/A MAN3PODS => {}, # Pods will be built by installman.
5819N/A NAME => "List::Util",
5819N/A DEFINE => "-DPERL_EXT",
5819N/A);
5819N/A
5819N/Apackage MY;
5819N/A
5819N/A# We go through the ListUtil.c trickery to foil platforms
5819N/A# that have the feature combination of
5819N/A# (1) static builds
5819N/A# (2) allowing only one object by the same name in the static library
5819N/A# (3) the object name matching being case-blind
5819N/A# This means that we can't have the top-level util.o
5819N/A# and the extension-level Util.o in the same build.
5819N/A# One such platform is the POSIX-BC BS2000 EBCDIC mainframe platform.
5819N/A
5819N/ABEGIN {
5819N/A use Config;
5819N/A unless (defined $Config{usedl}) {
5819N/A eval <<'__EOMM__';
5819N/Asub xs_c {
5819N/A my($self) = shift;
5819N/A return '' unless $self->needs_linking();
5819N/A'
5819N/AListUtil.c: Util.xs
5819N/A $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) Util.xs > ListUtil.xsc && $(MV) ListUtil.xsc ListUtil.c
5819N/A';
5819N/A}
5819N/A
5819N/Asub xs_o {
5819N/A my($self) = shift;
5819N/A return '' unless $self->needs_linking();
5819N/A'
5819N/A
5819N/AUtil$(OBJ_EXT): ListUtil.c
5819N/A $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) ListUtil.c
5819N/A $(MV) ListUtil$(OBJ_EXT) Util$(OBJ_EXT)
5819N/A';
5819N/A}
5819N/A
5819N/A__EOMM__
6071N/A }
6071N/A}
6071N/A