Makefile revision 249
216N/A#
216N/A# CDDL HEADER START
216N/A#
216N/A# The contents of this file are subject to the terms of the
216N/A# Common Development and Distribution License (the "License").
216N/A# You may not use this file except in compliance with the License.
216N/A#
216N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
216N/A# or http://www.opensolaris.org/os/licensing.
216N/A# See the License for the specific language governing permissions
216N/A# and limitations under the License.
216N/A#
216N/A# When distributing Covered Code, include this CDDL HEADER in each
216N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
216N/A# If applicable, add the following below this CDDL HEADER, with the
216N/A# fields enclosed by brackets "[]" replaced with your own identifying
216N/A# information: Portions Copyright [yyyy] [name of copyright owner]
216N/A#
216N/A# CDDL HEADER END
216N/A#
3996N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
216N/A#
216N/Ainclude ../../make-rules/shared-macros.mk
216N/A
216N/ACOMPONENT_NAME= gcc
216N/ACOMPONENT_VERSION= 3.4.3
216N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
618N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
216N/A# unfortunately we have our own "special" tarball and not the community version, so use that.
844N/ACOMPONENT_ARCHIVE_HASH= sha1:f7a27d5aeb07748eb6e924abfcfcf469c378b13e
844N/ACOMPONENT_ARCHIVE_URL= http://static.opensolaris.org/tarball/userland/$(COMPONENT_ARCHIVE)
216N/A
1273N/Ainclude ../../make-rules/prep.mk
1273N/Ainclude ../../make-rules/configure.mk
3661N/Ainclude ../../make-rules/ips.mk
3661N/A
216N/APARCH = $(MACH:i386=i386-pc)
216N/AGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
3996N/A
3996N/APKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
3996N/A
216N/A# we build gcc with gcc
216N/ACOMPILER = gcc
216N/A
216N/A# CC_BITS may get in the way
216N/ACC_BITS=
216N/A
216N/ACONFIGURE_PREFIX = /usr/sfw
216N/A
216N/A# we need to override CONFIGURE_OPTIONS because GCC uses a configure that
216N/A# can't deal with CC as an argument
216N/ACONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
216N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
216N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info
216N/ACONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld
216N/ACONFIGURE_OPTIONS += --enable-languages='c,c++,f77,objc'
216N/ACONFIGURE_OPTIONS += --enable-shared
216N/A# sparc and x86 use different assemblers
216N/ACONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/ccs/bin/as
3996N/ACONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as
3996N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
3996N/A
CONFIGURE_ENV += CC="$(CC)"
CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ENV += STAGE1_CFLAGS="$(CFLAGS)"
COMPONENT_BUILD_ENV += CFLAGS_FOR_TARGET="$(CFLAGS)"
COMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL)
COMPONENT_BUILD_TARGETS = bootstrap
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
test: $(TEST_32)
include ../../make-rules/depend.mk