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 (the "License").
1N/A# You may not use this file except in compliance 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/A
1N/A#
1N/A# Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/Ainclude ../Makefile.cmd
1N/A
1N/Aall := TARGET = all
1N/Ainstall := TARGET = install
1N/Aclobber := TARGET = clobber
1N/Aclean := TARGET = clean
1N/Atest := TARGET = test
1N/A
1N/A# PERL_LEGACY is versions of Perl still delivered through ON
1N/APERL_LEGACY = 5.8.4
1N/A
1N/A# WOS_PERL is non-ON Perl
1N/AWOS_PERL = 5.12
1N/A
1N/APERL_VERSIONS = $(PERL_LEGACY) $(WOS_PERL)
1N/A
1N/A.PARALLEL: $(PERL_VERSIONS)
1N/A
1N/Ai386_ARCH_TOKEN= i86pc
1N/Asparc_ARCH_TOKEN= sun4
1N/A
1N/AARCH_TOKEN= $($(MACH)_ARCH_TOKEN)
1N/A
1N/ASTRIP_CDDL = \
1N/A usr/perl5/5.12/lib/Sun/Solaris/BSM/_BSMparse.pm \
1N/A usr/perl5/5.12/lib/Sun/Solaris/Pg.pm \
1N/A usr/perl5/5.12/lib/$(ARCH_TOKEN)-solaris-64int/Sun/Solaris/Intrs.pm \
1N/A usr/perl5/5.12/lib/$(ARCH_TOKEN)-solaris-64int/Sun/Solaris/Kstat.pm \
1N/A usr/perl5/5.12/lib/$(ARCH_TOKEN)-solaris-64int/Sun/Solaris/Lgrp.pm \
1N/A usr/perl5/5.12/lib/$(ARCH_TOKEN)-solaris-64int/Sun/Solaris/Utils.pm \
1N/A usr/perl5/5.8.4/lib/Encode/Makefile_PL.e2x \
1N/A usr/perl5/5.8.4/lib/Sun/Solaris/BSM/_BSMparse.pm \
1N/A usr/perl5/5.8.4/lib/Sun/Solaris/Intrs.pm \
1N/A usr/perl5/5.8.4/lib/Sun/Solaris/Kstat.pm \
1N/A usr/perl5/5.8.4/lib/Sun/Solaris/Lgrp.pm \
1N/A usr/perl5/5.8.4/lib/Sun/Solaris/Pg.pm \
1N/A usr/perl5/5.8.4/lib/Sun/Solaris/Utils.pm
1N/A
1N/AROOT_STRIP_CDDL= $(STRIP_CDDL:%=$(ROOT)/%)
1N/A
1N/A$(ROOT_STRIP_CDDL) := FILEMODE= 0444
1N/A
1N/A#
1N/A# copy_contrib is used by all the versions of perl to copy the files under
1N/A# contrib into their contrib build directory. We therefore need to make sure
1N/A# it is fetched from SCCS before calling the version-specific makefiles so that
1N/A# they don't race over it.
1N/A#
1N/Aall test: contrib/copy_contrib $(PERL_VERSIONS)
1N/A
1N/Afixperms: $(ROOT_STRIP_CDDL)
1N/A
1N/Ainstall: contrib/copy_contrib $(PERL_VERSIONS) .WAIT fixperms
1N/A
1N/A$(ROOT_STRIP_CDDL): FRC
1N/A $(MV) $@ $(@F)
1N/A $(INS.file) $(@F)
1N/A $(RM) $(@F)
1N/A
1N/Aall install: THIRDPARTYLICENSE
1N/A
1N/Aclean: $(PERL_VERSIONS)
1N/A
1N/Aclobber: $(PERL_VERSIONS)
1N/A $(RM) -r contrib/copy_contrib THIRDPARTYLICENSE $(WOS_PERL)
1N/A
1N/A#
1N/A# Perl is not lint-clean. Fake up a target.
1N/A#
1N/Alint:
1N/A @ $(ECHO) "usr/src/cmd/perl is not lint-clean: skipping"
1N/A @ $(TRUE)
1N/A
1N/A#
1N/A# Second "if" corrects a problem in the perl build.
1N/A# Can remove once perl 5.12 becomes the default.
1N/A#
1N/A$(PERL_VERSIONS): FRC
1N/A @ if [ ! -d $@ ]; then \
1N/A $(CP) -r skel $@; \
1N/A fi
1N/A @ if [ $@ = $(WOS_PERL) ]; then \
1N/A echo "patching skel for $(WOS_PERL)"; \
1N/A sed -e '/^PERL_MM_ARGS/s/$$/ OPTIMIZE=-xO4/' \
1N/A $@/Makefile > $@/Makefile_new; \
1N/A rm -f $@/Makefile; \
1N/A mv $@/Makefile_new $@/Makefile; \
1N/A fi
1N/A @ cd $@; pwd; PERL_VERSION=$@ $(MAKE) $(TARGET)
1N/A
1N/APODDIR = 5.8.4/distrib/pod
1N/AARTLIC_SRC = $(PODDIR)/perlartistic.pod
1N/A
1N/A#
1N/A# $(PODDIR)/pod2text may already exist (from "make install"), but it
1N/A# doesn't hurt to regenerate it.
1N/A#
1N/ATHIRDPARTYLICENSE: $(ARTLIC_SRC)
1N/A $(PERL) $(PODDIR)/pod2text.PL
1N/A $(PODDIR)/pod2text $(ARTLIC_SRC) | \
1N/A $(SED) -n '/The "Artistic License"/,/The End/p' > $@
1N/A
1N/AFRC: