Makefile revision 1196
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater#
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# or http://www.opensolaris.org/os/licensing.
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# CDDL HEADER END
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e171a4137c6ba348957e61b7c4c3541493c0da02Automatic Updaterinclude ../../make-rules/shared-macros.mk
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_NAME= coreutils
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_VERSION= 8.16
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE_HASH= \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater sha256:2a458fead15d9336f46bb4304cc3eaa6ed9407b9130e7ee2ec533909881d2067
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/prep.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude ../../make-rules/configure.mk
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude ../../make-rules/ips.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_PREFIX = /usr/gnu
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += --libdir=/usr/lib
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# common targets
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updaterbuild: $(BUILD_32)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinstall: $(INSTALL_32)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Needed for "gmake test" to work successfully.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# If SHELLOPTS is exported (as it is by the userland makefiles),
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# then all shell options get exported to child invocations of bash,
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# which results in test failures due to nounset and xtrace being
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# set unexpectedly, and errors such as "$1: unbound variable" and
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# diffs failing due to script tracing in output files.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterunexport SHELLOPTS
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Get the binaries to test from the component proto area.
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCOMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewstest: install $(TEST_32)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updaterinclude ../../make-rules/depend.mk
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater