Makefile revision 1999
100N/A#
100N/A# CDDL HEADER START
100N/A#
100N/A# The contents of this file are subject to the terms of the
100N/A# Common Development and Distribution License (the "License").
100N/A# You may not use this file except in compliance with the License.
100N/A#
100N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
100N/A# or http://www.opensolaris.org/os/licensing.
100N/A# See the License for the specific language governing permissions
100N/A# and limitations under the License.
100N/A#
100N/A# When distributing Covered Code, include this CDDL HEADER in each
100N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
100N/A# If applicable, add the following below this CDDL HEADER, with the
100N/A# fields enclosed by brackets "[]" replaced with your own identifying
100N/A# information: Portions Copyright [yyyy] [name of copyright owner]
100N/A#
100N/A# CDDL HEADER END
100N/A#
1392N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
100N/A#
100N/Ainclude ../../make-rules/shared-macros.mk
100N/A
100N/ACOMPONENT_NAME= coreutils
1109N/ACOMPONENT_VERSION= 8.16
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
100N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1109N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
1109N/A sha256:2a458fead15d9336f46bb4304cc3eaa6ed9407b9130e7ee2ec533909881d2067
100N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gnu-coreutils
100N/A
100N/Ainclude ../../make-rules/prep.mk
100N/Ainclude ../../make-rules/configure.mk
100N/Ainclude ../../make-rules/ips.mk
100N/A
100N/ACONFIGURE_PREFIX = /usr/gnu
1999N/ACONFIGURE_OPTIONS += --bindir=/usr/gnu/bin
100N/ACONFIGURE_OPTIONS += --libdir=/usr/lib
100N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
100N/ACONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
100N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
100N/A
1392N/A# Enable ASLR for this component
1392N/AASLR_MODE = $(ASLR_ENABLE)
1392N/A
100N/A# common targets
1999N/Abuild: $(BUILD_32_and_64)
100N/A
1999N/Ainstall: $(INSTALL_32_and_64)
104N/A
1109N/A# Needed for "gmake test" to work successfully.
1109N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
1109N/A# then all shell options get exported to child invocations of bash,
1109N/A# which results in test failures due to nounset and xtrace being
1109N/A# set unexpectedly, and errors such as "$1: unbound variable" and
1109N/A# diffs failing due to script tracing in output files.
1109N/Aunexport SHELLOPTS
1109N/A
1109N/A# Get the binaries to test from the component proto area.
1109N/ACOMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
1109N/A
1999N/A# There are two known test failures:
1999N/A# misc/stdbuf - see CR #15941179
1999N/A# misc/timeout-parameters - see CR #17425658
1999N/Atest: install $(TEST_64)
100N/A
100N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
100N/A
100N/Ainclude ../../make-rules/depend.mk