Makefile revision 246
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# CDDL HEADER START
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# The contents of this file are subject to the terms of the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Common Development and Distribution License (the "License").
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# You may not use this file except in compliance with the License.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# or http://www.opensolaris.org/os/licensing.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# See the License for the specific language governing permissions
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# and limitations under the License.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# When distributing Covered Code, include this CDDL HEADER in each
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# If applicable, add the following below this CDDL HEADER, with the
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# fields enclosed by brackets "[]" replaced with your own identifying
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# information: Portions Copyright [yyyy] [name of copyright owner]
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# CDDL HEADER END
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker#
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerinclude ../../make-rules/shared-macros.mk
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCOMPONENT_NAME= binutils
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCOMPONENT_VERSION= 2.19
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCOMPONENT_ARCHIVE_HASH= sha1:a150b97ec47996bf8f01d6bc14d41587faa4bbff
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerinclude ../../make-rules/prep.mk
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerinclude ../../make-rules/configure.mk
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panickerinclude ../../make-rules/ips.mk
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerPARCH = $(MACH:i386=i386-pc)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerPKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep PanickerCONFIGURE_PREFIX = /usr/gnu
6bbe05905a1c10a2703f95fb4912eb14b87f6670Sundeep Panicker
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += --enable-64-bit-bfd
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
test: $(TEST_32)
include ../../make-rules/depend.mk