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/AWriteMakefile(
1N/A VERSION_FROM => "lib/List/Util.pm",
1N/A MAN3PODS => {}, # Pods will be built by installman.
1N/A NAME => "List::Util",
1N/A DEFINE => "-DPERL_EXT",
1N/A);
1N/A
1N/Apackage MY;
1N/A
1N/A# We go through the ListUtil.c trickery to foil platforms
1N/A# that have the feature combination of
1N/A# (1) static builds
1N/A# (2) allowing only one object by the same name in the static library
1N/A# (3) the object name matching being case-blind
1N/A# This means that we can't have the top-level util.o
1N/A# and the extension-level Util.o in the same build.
1N/A# One such platform is the POSIX-BC BS2000 EBCDIC mainframe platform.
1N/A
1N/ABEGIN {
1N/A use Config;
1N/A unless (defined $Config{usedl}) {
1N/A eval <<'__EOMM__';
1N/Asub xs_c {
1N/A my($self) = shift;
1N/A return '' unless $self->needs_linking();
1N/A'
1N/AListUtil.c: Util.xs
1N/A $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) Util.xs > ListUtil.xsc && $(MV) ListUtil.xsc ListUtil.c
1N/A';
1N/A}
1N/A
1N/Asub xs_o {
1N/A my($self) = shift;
1N/A return '' unless $self->needs_linking();
1N/A'
1N/A
1N/AUtil$(OBJ_EXT): ListUtil.c
1N/A $(CCCMD) $(CCCDLFLAGS) -I$(PERL_INC) $(DEFINE) ListUtil.c
1N/A $(MV) ListUtil$(OBJ_EXT) Util$(OBJ_EXT)
1N/A';
1N/A}
1N/A
1N/A__EOMM__
1N/A }
1N/A}