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