Makefile revision 487
487N/A#
487N/A# CDDL HEADER START
487N/A#
487N/A# The contents of this file are subject to the terms of the
487N/A# Common Development and Distribution License (the "License").
487N/A# You may not use this file except in compliance with the License.
487N/A#
487N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
487N/A# or http://www.opensolaris.org/os/licensing.
487N/A# See the License for the specific language governing permissions
487N/A# and limitations under the License.
487N/A#
487N/A# When distributing Covered Code, include this CDDL HEADER in each
487N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
487N/A# If applicable, add the following below this CDDL HEADER, with the
487N/A# fields enclosed by brackets "[]" replaced with your own identifying
487N/A# information: Portions Copyright [yyyy] [name of copyright owner]
487N/A#
487N/A# CDDL HEADER END
487N/A#
487N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
487N/A#
487N/Ainclude ../../make-rules/shared-macros.mk
487N/A
487N/ACOMPONENT_NAME= gcc
487N/ACOMPONENT_VERSION= 4.5.2
487N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
487N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
487N/ACOMPONENT_ARCHIVE_HASH= sha1:4fdd2d709b15e993f32dbf81412f48dc377e32be
487N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
487N/A
487N/Ainclude ../../make-rules/prep.mk
487N/Ainclude ../../make-rules/configure.mk
487N/Ainclude ../../make-rules/ips.mk
487N/A
487N/APARCH = $(MACH:i386=i386-pc)
487N/AGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
487N/A
487N/APKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
487N/A
487N/A# This product bootstraps itself. The gcc flags are not the same
487N/A# as Studio flags. -O2 means different things for the two compilers
487N/ACFLAGS=-g -O2
487N/ACFLAGS_FOR_BUILD=$(CFLAGS)
487N/A
487N/A# CC_BITS may get in the way
487N/ACC_BITS=
487N/A
487N/ACONFIG_SHELL = /bin/sh
487N/A
487N/ACONFIGURE_PREFIX = /usr/gcc/4.5
487N/A
487N/ACONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,objc" \
487N/A --enable-shared \
487N/A --with-gmp-include=/usr/include/gmp \
487N/A --with-mpfr-include=/usr/include/mpfr \
487N/A --prefix=$(CONFIGURE_PREFIX) \
487N/A --mandir=$(CONFIGURE_MANDIR) \
487N/A --infodir=$(CONFIGURE_PREFIX)/share/info \
487N/A --libexecdir=$(CONFIGURE_PREFIX)/lib
487N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
487N/A
487N/ACOMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL)
487N/A
487N/ACOMPONENT_BUILD_TARGETS=bootstrap
487N/A
487N/Abuild: $(BUILD_32)
487N/A
487N/Ainstall: $(INSTALL_32)
487N/A
487N/Atest: $(TEST_32)
487N/A
487N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
487N/A
487N/Ainclude ../../make-rules/depend.mk