Makefile revision 1273
96fc773162e93e5b85686ab152f11baf4498d868rbb#
6f06d481dafc90f1b553f1d2828bcea50a039854fielding# CDDL HEADER START
b7a0ad483b54711addc5f43f679189619a23c749ben#
b7a0ad483b54711addc5f43f679189619a23c749ben# The contents of this file are subject to the terms of the
328d02603f471fad56cc5588fc9e93f589593ad0rbb# Common Development and Distribution License (the "License").
328d02603f471fad56cc5588fc9e93f589593ad0rbb# You may not use this file except in compliance with the License.
1c850e9f96375578e43e5f69ba7499a543b2a7bdtrawick#
1c850e9f96375578e43e5f69ba7499a543b2a7bdtrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1c850e9f96375578e43e5f69ba7499a543b2a7bdtrawick# or http://www.opensolaris.org/os/licensing.
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# See the License for the specific language governing permissions
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# and limitations under the License.
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick#
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# When distributing Covered Code, include this CDDL HEADER in each
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# If applicable, add the following below this CDDL HEADER, with the
48a2f5e2c189669b025d462f44fda5d4b45e8d78trawick# fields enclosed by brackets "[]" replaced with your own identifying
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb# information: Portions Copyright [yyyy] [name of copyright owner]
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb#
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb# CDDL HEADER END
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb#
b22fb75c37b70fbe176afdb8081c3ce2dba86db4rbb# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb#
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbbinclude ../../make-rules/shared-macros.mk
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbb
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbbCOMPONENT_NAME= gcc
8fccb89ed59d5c80c76a818f7ca02bb0d068d4d3rbbCOMPONENT_VERSION= 4.5.2
da07a882b90b44243c9cd88ac09a789999dccc4drbbCOMPONENT_PROJECT_URL= http://gcc.gnu.org/
da07a882b90b44243c9cd88ac09a789999dccc4drbbCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
da07a882b90b44243c9cd88ac09a789999dccc4drbbCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
da07a882b90b44243c9cd88ac09a789999dccc4drbbCOMPONENT_ARCHIVE_HASH= \
da07a882b90b44243c9cd88ac09a789999dccc4drbb sha256:07b880faf29f3f9d9c0953717002ac29f5d061427797d2487a7c9c169e6395b3
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbbCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbbCOMPONENT_BUGDB= utility/gnu-compiler
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbb
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbbinclude ../../make-rules/prep.mk
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbbinclude ../../make-rules/configure.mk
4a5c8a77f48f0cf10bfe70479d0a2e8e7d6cd917rbbinclude ../../make-rules/ips.mk
5bf029f8452b6aa105cf3d9d9b19221920725428rbb
5bf029f8452b6aa105cf3d9d9b19221920725428rbbPATH=/usr/bin:/usr/gnu/bin:/usr/perl5/bin
5bf029f8452b6aa105cf3d9d9b19221920725428rbb
60ed053fe71b1e3cfab8c4ed37afde30a6db4841rbbPARCH = $(MACH:i386=i386-pc)
60ed053fe71b1e3cfab8c4ed37afde30a6db4841rbbGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
60ed053fe71b1e3cfab8c4ed37afde30a6db4841rbb
e03878add0099ba9741efc46d545955a60ea8bdcrbbPKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
e03878add0099ba9741efc46d545955a60ea8bdcrbb
e03878add0099ba9741efc46d545955a60ea8bdcrbb# This product bootstraps itself. The gcc flags are not the same
e03878add0099ba9741efc46d545955a60ea8bdcrbb# as Studio flags. -O2 means different things for the two compilers
1860b2b5f1de31f8cf9d95f1b394fe98c8dbfab7rbbCFLAGS=-g -O2
1860b2b5f1de31f8cf9d95f1b394fe98c8dbfab7rbbCFLAGS_FOR_BUILD=$(CFLAGS)
1860b2b5f1de31f8cf9d95f1b394fe98c8dbfab7rbb
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe# CC_BITS may get in the way
9ec65cbae2f760e485a1c54df5b19853688d5c91wroweCC_BITS=
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe
9ec65cbae2f760e485a1c54df5b19853688d5c91wroweCONFIG_SHELL = /bin/sh
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe
9ec65cbae2f760e485a1c54df5b19853688d5c91wroweCONFIGURE_PREFIX = /usr/gcc/4.5
9ec65cbae2f760e485a1c54df5b19853688d5c91wrowe
9ec65cbae2f760e485a1c54df5b19853688d5c91wroweCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,objc"
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCONFIGURE_OPTIONS += --enable-shared
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCONFIGURE_OPTIONS += --with-gmp-include=/usr/include/gmp
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCONFIGURE_OPTIONS += --with-mpfr-include=/usr/include/mpfr
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld
77c656dabf05adcdee0d30b15b4628be738a1913rbb
77c656dabf05adcdee0d30b15b4628be738a1913rbb# sparc and x86 use different assemblers
77c656dabf05adcdee0d30b15b4628be738a1913rbbCONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/bin/as
77c656dabf05adcdee0d30b15b4628be738a1913rbbCONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as
77c656dabf05adcdee0d30b15b4628be738a1913rbbCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
7e73041858979fd162c849cc2e7447beb51eedf8rbb
7e73041858979fd162c849cc2e7447beb51eedf8rbbCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb
886cd69ebf69e990dbc365be87ff8ea7cd681904rbbCOMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL)
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb
a8c0c0b8d7dada680bd3f3d70f78ce0656ba5aa6trawickCOMPONENT_BUILD_TARGETS=bootstrap
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb
886cd69ebf69e990dbc365be87ff8ea7cd681904rbbbuild: $(BUILD_32)
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb
db9ac238bf63d7df2bebbaff4de1628a32151028trawickinstall: $(INSTALL_32)
ce121a776564df6bb75498209094142d92404b8atrawick
ce121a776564df6bb75498209094142d92404b8atrawicktest: $(TEST_32)
ce121a776564df6bb75498209094142d92404b8atrawick
e1ade9256c87684358786fcf7eef251bd4c1db10rbbBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
e1ade9256c87684358786fcf7eef251bd4c1db10rbb
e1ade9256c87684358786fcf7eef251bd4c1db10rbbinclude ../../make-rules/depend.mk
e1ade9256c87684358786fcf7eef251bd4c1db10rbb