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