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