Makefile revision 332
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
938440694b33cd752e9e4b71a526368b4811c177Tinderbox User# CDDL HEADER START
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# The contents of this file are subject to the terms of the
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Common Development and Distribution License (the "License").
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# You may not use this file except in compliance with the License.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# or http://www.opensolaris.org/os/licensing.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# See the License for the specific language governing permissions
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# and limitations under the License.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude ../../make-rules/shared-macros.mk
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCOMPONENT_NAME= coreutils
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCOMPONENT_VERSION= 8.5
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCOMPONENT_ARCHIVE_HASH= sha1:939144f16d05691753a87134436dd2bb8ea89851
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewsinclude ../../make-rules/prep.mk
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewsinclude ../../make-rules/configure.mk
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewsinclude ../../make-rules/ips.mk
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCONFIGURE_PREFIX = /usr/gnu
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCONFIGURE_OPTIONS += --libdir=/usr/lib
938440694b33cd752e9e4b71a526368b4811c177Tinderbox UserCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark AndrewsCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews# common targets
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewsbuild: $(BUILD_32)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# whoami is in both /usr/bin and /usr/gnu/bin; mistake?
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinstall: $(INSTALL_32)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunttest: $(TEST_32)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrewsinclude ../../make-rules/depend.mk
49c1e0d18d6f8b894ce2e6b485ef666599a83c21Mark Andrews