Makefile revision 5512
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#
5512N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
100N/A#
100N/Ainclude ../../make-rules/shared-macros.mk
100N/A
100N/ACOMPONENT_NAME= coreutils
5512N/ACOMPONENT_VERSION= 8.25
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= \
5512N/A sha256:31e67c057a5b32a582f26408c789e11c2e8d676593324849dcf5779296cdce87
100N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/gnu-coreutils
100N/A
5512N/ATPNO= 27001
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
100N/A
3089N/A# We need the GNU grep command to configure/build.
3089N/APATH=/usr/gnu/bin:/usr/bin
3089N/A
3089N/APATCH_LEVEL= 0
3089N/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
3089N/A# Recreate configure and Makefile to pick up changes in .../src/local.mk
2686N/ACOMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
2686N/A
4745N/A# Needed to get tests to work when run directly from the tests subdirectory.
4745N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
4745N/A
2803N/A# Always show the build and link lines for easier debugging.
2806N/ACOMPONENT_BUILD_ARGS += V=1
2803N/A
1392N/AASLR_MODE = $(ASLR_ENABLE)
1392N/A
3477N/Aconfigure: $(CONFIGURE_32_and_64)
3477N/A
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
4745N/ACOMPONENT_TEST_DIR = $(@D)/tests
1109N/A
3702N/A# Always show the build and link lines for easier debugging.
3702N/ACOMPONENT_TEST_ARGS += V=1
3089N/A
5512N/A# Master test results are different between x86 and SPARC (different # of
5512N/A# tests run).
5512N/ACOMPONENT_TEST_MASTER = \
5512N/A $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master
5512N/A
3702N/ACOMPONENT_TEST_TRANSFORMS += \
4745N/A '-n ' \
4745N/A '-e "/TOTAL/p" ' \
4745N/A '-e "/SKIP/p" ' \
4745N/A '-e "/PASS/p" ' \
4745N/A '-e "/FAIL/p" ' \
4745N/A '-e "/ERROR/p" '
3702N/A
4745N/A# Get the binaries to test from their installed locations.
4745N/ACOMPONENT_SYSTEM_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin
4745N/ACOMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
3089N/A
1999N/Atest: install $(TEST_64)
100N/A
4745N/Asystem-test: configure $(SYSTEM_TEST_64)
100N/A
3817N/AREQUIRED_PACKAGES += library/gmp
3817N/AREQUIRED_PACKAGES += system/library