Makefile revision 844
cd348e325366620fe047edcc849e3c9424828599Peter Bray# CDDL HEADER START
cd348e325366620fe047edcc849e3c9424828599Peter Bray# The contents of this file are subject to the terms of the
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Common Development and Distribution License (the "License").
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# You may not use this file except in compliance with the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# See the License for the specific language governing permissions
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# and limitations under the License.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# When distributing Covered Code, include this CDDL HEADER in each
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# If applicable, add the following below this CDDL HEADER, with the
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# fields enclosed by brackets "[]" replaced with your own identifying
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# information: Portions Copyright [yyyy] [name of copyright owner]
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# CDDL HEADER END
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_PROJECT_URL= http://www2.research.att.com/sw/download/
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# These are required if retrieving packages from the AT&T website.
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos KoscoATT_USERNAME= "I accept www.opensource.org/licenses/cpl"
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# This flag controls the prep.mk behaviour to patch each archive individually
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_SRC = $(COMPONENT_NAME).$(COMPONENT_VERSION)
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayCOMPONENT_ARCHIVE = $(COMPONENT_NAME).$(COMPONENT_VERSION).tgz
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal sha256:d692d476fe4bb933e7b6459c0cc99a2e9f428bfd81a495ed4201ec197e070f57
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_URL = http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE)
65df1e87266301e243dcead8082ca6255abea666Vladimir Kotal# Patch only required if building ksh93 only and not ast-base
425278cfacbc73f1e955ab6016f206fc5ed93ccbVladimir Kotal# The ksh93 tarballs don't unpack cleanly into their own directories.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_SRC_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1)
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir KotalCOMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1).tgz
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal sha256:44ae3913e6c0c8992c6c3cba16864fd4c4a18c6da8e7d87c85a23060cea7cd1a
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetCOMPONENT_ARCHIVE_URL_1= http://www2.research.att.com/~gsf/download/tgz/$(COMPONENT_ARCHIVE_1)
6ce0623fa4ef95af9d77700a1c9c19ec1a919326Guillaume SmetCOMPONENT_PATCHES_1= solaris_alias.patch build_cflags.patch path_utmp.patch \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal CR6919590.patch CR7032821.patch CR7071431.patch \
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina# Make the unpack of the second archive relocate to a sensible place
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# We override LD_B_DIRECT because -B direct has unfortunate consequences for the
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# interposition used by the Safe/Fast IO library (i.e. it becomes neither safe
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# nor fast, and causes the build to deadly embrace).
983523cf73bc85cce6282cb5aa78b60f6bcd959fLubos Kosco# Disable nmake's probing of runpaths
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Prevent nmake from taking over the entire machine
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Set the built to build all targets, install all of ast-base, and test ksh93.
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# Unpack the ast-base tarball and copy it into the INIT tree,
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# mark it as un-patched
3a4816d2417e1abe89a913616de36f200793bea3Vladimir Kotal $(CP) -r $(COMPONENT_SRC_1)/* $(COMPONENT_SRC)
3a4816d2417e1abe89a913616de36f200793bea3Vladimir Kotal# Add the two tarball paths to the paths to be cleaned
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos KoscoCLEAN_PATHS+= build $(COMPONENT_NAME_1).$(COMPONENT_VERSION_1) \
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos Kosco# ksh.kshrc needs to be installed with the ksh package
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Packaging information
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# common targets