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