Makefile revision 246
9174efb969475801d0dc88eee35aae40c748d450nd#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
6aa2272cc4af77e605ba2c4a4781f8567408b7e3pquerna#
ee508128c414648982d1cca7801f63b01a0a4f8aminfrin# The contents of this file are subject to the terms of the
1266e0c1535091b37a0c6ea86183094e575cb8dagregames# Common Development and Distribution License (the "License").
1266e0c1535091b37a0c6ea86183094e575cb8dagregames# You may not use this file except in compliance with the License.
1266e0c1535091b37a0c6ea86183094e575cb8dagregames#
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# or http://www.opensolaris.org/os/licensing.
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# See the License for the specific language governing permissions
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# and limitations under the License.
7461431ba407b0e1eac3d6a81440a4184e652e9fniq#
7461431ba407b0e1eac3d6a81440a4184e652e9fniq# When distributing Covered Code, include this CDDL HEADER in each
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz# If applicable, add the following below this CDDL HEADER, with the
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz# fields enclosed by brackets "[]" replaced with your own identifying
2d5532b13110a8d85653da92e97795b09cc25cc2trawick# information: Portions Copyright [yyyy] [name of copyright owner]
b38565306421ff53e9f7499bc728d6df5cec294dpquerna#
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# CDDL HEADER END
b38565306421ff53e9f7499bc728d6df5cec294dpquerna#
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
3aeb30211790fef38a8297f990b7ad3b2c46ece9colm#
3aeb30211790fef38a8297f990b7ad3b2c46ece9colminclude ../../make-rules/shared-macros.mk
a17ca1093e7dc28c1a54cfd9741f65653f5b2b19jim
a17ca1093e7dc28c1a54cfd9741f65653f5b2b19jimCOMPONENT_NAME= gcc
a17ca1093e7dc28c1a54cfd9741f65653f5b2b19jimCOMPONENT_VERSION= 3.4.3
fa735cac4e86858f11c0de4f7cea50fa63eab87ecolmCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fa735cac4e86858f11c0de4f7cea50fa63eab87ecolmCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa735cac4e86858f11c0de4f7cea50fa63eab87ecolm# unfortunately we have our own "special" tarball and not the community version, so use that.
dbb3b82abaa9c0ad199a0a3d6a7a505136137c61colmCOMPONENT_ARCHIVE_HASH= sha1:f7a27d5aeb07748eb6e924abfcfcf469c378b13e
dbb3b82abaa9c0ad199a0a3d6a7a505136137c61colmCOMPONENT_ARCHIVE_URL= http://static.opensolaris.org/tarball/userland/$(COMPONENT_ARCHIVE)
dbb3b82abaa9c0ad199a0a3d6a7a505136137c61colm
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqinclude ../../make-rules/prep.mk
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqinclude ../../make-rules/configure.mk
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqinclude ../../make-rules/ips.mk
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqPARCH = $(MACH:i386=i386-pc)
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqPKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluem
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluem# we build gcc with gcc
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluemCOMPILER = gcc
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluem
7612604db51e61f6ec4a6593c188e6d0640646abwrowe# CC_BITS may get in the way
7612604db51e61f6ec4a6593c188e6d0640646abwroweCC_BITS=
7612604db51e61f6ec4a6593c188e6d0640646abwrowe
7612604db51e61f6ec4a6593c188e6d0640646abwroweCONFIGURE_PREFIX = /usr/sfw
7612604db51e61f6ec4a6593c188e6d0640646abwrowe
7612604db51e61f6ec4a6593c188e6d0640646abwrowe# we need to override CONFIGURE_OPTIONS because GCC uses a configure that
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluem# can't deal with CC as an argument
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluemCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluemCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluemCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info
8828f8c859fabac8c0080440392bc279877f9802rpluemCONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld
8828f8c859fabac8c0080440392bc279877f9802rpluemCONFIGURE_OPTIONS += --enable-languages='c,c++,f77,objc'
8828f8c859fabac8c0080440392bc279877f9802rpluemCONFIGURE_OPTIONS += --enable-shared
0830215c2542165c027f092c18924f2885c98b49trawick# sparc and x86 use different assemblers
0830215c2542165c027f092c18924f2885c98b49trawickCONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/ccs/bin/as
0830215c2542165c027f092c18924f2885c98b49trawickCONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as
0830215c2542165c027f092c18924f2885c98b49trawickCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
be2abc811ae62b872703a7b43235598d641f8d8dmjc
8f1c5a2aca731a7676bf74cdce67ec28557ec299trawickCONFIGURE_ENV += CC="$(CC)"
bc886ee8559b4feb30d32dc8a50ba2c013c3cc02trawickCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
8f1c5a2aca731a7676bf74cdce67ec28557ec299trawick
9505e1a9012d92bfd2b6228e675156f44a27aa04colmCOMPONENT_BUILD_ENV += STAGE1_CFLAGS="$(CFLAGS)"
9505e1a9012d92bfd2b6228e675156f44a27aa04colmCOMPONENT_BUILD_ENV += CFLAGS_FOR_TARGET="$(CFLAGS)"
3aeb30211790fef38a8297f990b7ad3b2c46ece9colmCOMPONENT_BUILD_TARGETS = bootstrap
3aeb30211790fef38a8297f990b7ad3b2c46ece9colm
3aeb30211790fef38a8297f990b7ad3b2c46ece9colm# common targets
3aeb30211790fef38a8297f990b7ad3b2c46ece9colmbuild: $(BUILD_32)
6eb3a057b5e4f046faba79104d7941552de755dacolm
6eb3a057b5e4f046faba79104d7941552de755dacolminstall: $(INSTALL_32)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortontest: $(TEST_32)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
c07be90520f577cdffc0ee59a81e7f2be4ab24c6martininclude ../../make-rules/depend.mk
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton