Makefile revision 1983
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#
1983N/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
1196N/ACOMPONENT_VERSION= 8.16
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
100N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1196N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
1196N/A sha256:2a458fead15d9336f46bb4304cc3eaa6ed9407b9130e7ee2ec533909881d2067
100N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
1273N/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
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
1983N/A# To allow stdbuf to correctly find /usr/lib/libstdbuf.so
1983N/ACOMPONENT_BUILD_ARGS += pkglibexecdir=/usr/lib
1983N/A
100N/A# common targets
100N/Abuild: $(BUILD_32)
100N/A
181N/Ainstall: $(INSTALL_32)
104N/A
1196N/A# Needed for "gmake test" to work successfully.
1196N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
1196N/A# then all shell options get exported to child invocations of bash,
1196N/A# which results in test failures due to nounset and xtrace being
1196N/A# set unexpectedly, and errors such as "$1: unbound variable" and
1196N/A# diffs failing due to script tracing in output files.
1196N/Aunexport SHELLOPTS
1196N/A
1196N/A# Get the binaries to test from the component proto area.
1196N/ACOMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
1196N/A
1196N/Atest: install $(TEST_32)
100N/A
100N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
100N/A
100N/Ainclude ../../make-rules/depend.mk