Makefile revision 2141
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# CDDL HEADER START
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# The contents of this file are subject to the terms of the
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Common Development and Distribution License (the "License").
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# You may not use this file except in compliance with the License.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# or http://www.opensolaris.org/os/licensing.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# See the License for the specific language governing permissions
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# and limitations under the License.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# CDDL HEADER END
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../../make-rules/shared-macros.mk
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_BUGDB= utility/ksh93
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# These are required if retrieving packages from the AT&T website.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterATT_PASSWD= "."
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# This flag controls the prep.mk behaviour to patch each archive individually
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterPATCH_EACH_ARCHIVE = 1
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_NAME = ksh93
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_SRC_NAME = INIT
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_VERSION = 2011-02-08
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_SRC = $(COMPONENT_SRC_NAME).$(COMPONENT_VERSION)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_ARCHIVE = $(COMPONENT_SRC).tgz
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_ARCHIVE_HASH = \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_PATCHES =
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Patch only required if building ksh93 only and not ast-base
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# package-pax-suid.patch
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# The ksh93 tarballs don't unpack cleanly into their own directories.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterUNPACK_ARGS= -r $(COMPONENT_SRC)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterNUM_EXTRA_ARCHIVES= 1
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_NAME_1= ast-base
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_VERSION_1= 2011-02-08
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_ARCHIVE_HASH_1= \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_PATCHES_1= compiler.patch path_utmp.patch\
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater solaris_alias.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR6919590.patch CR7033181.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7071431.patch CR7036535.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CRXXX_Error_Catalog.patch CR7025778.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7065478.patch CR7026179.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7065900.patch CR7110983.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7105086.patch multi_lang_arith.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7057565.patch CR7046434.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7032821.patch CR7009897.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR6964621.patch CR7032068.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7061011.patch CR6934836.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7089799.patch CR6917338.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7019368.patch CR6729252.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater MAP_TYPE_64_Bits.patch CR7167466.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7168611.patch CR7178717.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7175995.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7186440_ksh93_disable_predictive_editing.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater CR7128313.patch Bug15794787,15819673.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater Bug15808407.patch Bug17714341.patch \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater 17432413.patch
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Fixup HOSTTYPE to match uname output and bits
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterHOSTTYPE32=sol11.$(shell uname -p)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterHOSTTYPE64=sol11.$(shell uname -p)-64
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Make the unpack of the second archive relocate to a sensible place
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# nor fast, and causes the build to deadly embrace).
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterLD_B_DIRECT=
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Disable nmake's probing of runpaths
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCC.RUNPATH=
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCC.LD.RUNPATH=
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCC.LD.ORIGIN=
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCC.DLL.ORIGIN=
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Fix up the permissions of the compiler wrapper scripts from the patch
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_PRE_BUILD_ACTION=($(CHMOD) +x $(@D)/src/cmd/INIT/cc.sol11.*)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Prevent nmake from taking over the entire machine
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterNPROC=1
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Set the built to build all targets, install all of ast-base, and test ksh93.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_BUILD_TARGETS +=
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_INSTALL_PACKAGES += ast-base
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_TEST_TARGETS = ksh93
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Unpack the ast-base tarball and copy it into the INIT tree,
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# mark it as un-patched
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_POST_UNPACK_ACTION_1= \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $(RM) $(COMPONENT_SRC)/*patched_1; \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Add the two tarball paths to the paths to be cleaned
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $(COMPONENT_NAME).$(COMPONENT_VERSION)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# ksh.kshrc needs to be installed with the ksh package
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterCOMPONENT_POST_INSTALL_ACTION= \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater @$(MKDIR) -p $(PROTO_DIR)/etc/; \
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $(CP) ksh.kshrc $(PROTO_DIR)/etc/
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Packaging information.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Note how the AT&T "version letter symbol date" code is translated
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# into the IPS version number:
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# shell/ksh93@93.<letter representation>.<0 or 1>.<yymmdd>
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# <letter representation> is the numeric place in the alphabet of the
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# major version letter.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# <0 or 1> is the presence or absence of the "+" symbol in the AT&T
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# version code. The "+" represents a point/bugfix release and would appear as
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# "93<version letter>+" in the human readable form.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# EXAMPLE:
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# AT&T Version string: 93u+ 2011-02-08
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# IPS Version number: 93.21.1.20110208
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater#
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterIPS_PKG_NAME= ksh93
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterIPS_COMPONENT_VERSION= 93.21.0.20110208
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterIPS_HUMAN_VERSION= "93u 2011-02-08"
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# common targets
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterbuild: $(BUILD_32_and_64)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinstall: $(INSTALL_32_and_64)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updatertest: $(TEST_32_and_64)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterBUILD_PKG_DEPENDENCIES= $(BUILD_TOOLS)
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic UpdaterPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../../make-rules/prep.mk
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../../make-rules/attpackagemake.mk
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../../make-rules/ips.mk
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updaterinclude ../../make-rules/depend.mk
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater