components/gcc45/Makefile
author George Vasick <george.vasick@oracle.com>
Thu, 22 Sep 2011 21:44:17 +0000
changeset 523 607f4130cc3c
parent 487 4e721bcfa7d1
child 609 775168282b2f
permissions -rw-r--r--
7090160 gcc4 seems to be shipping a lot 'fixed' includes 7090683 several gcc4 man pages don't have any info
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
487
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     1
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     3
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     7
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    12
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    18
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    20
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    21
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    22
#
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    24
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		gcc
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	4.5.2
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH= sha1:4fdd2d709b15e993f32dbf81412f48dc377e32be
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    31
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    32
include ../../make-rules/prep.mk
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    33
include ../../make-rules/configure.mk
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/ips.mk
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    35
523
607f4130cc3c 7090160 gcc4 seems to be shipping a lot 'fixed' includes
George Vasick <george.vasick@oracle.com>
parents: 487
diff changeset
    36
PATH=/usr/bin:/usr/gnu/bin:/usr/perl5/bin
607f4130cc3c 7090160 gcc4 seems to be shipping a lot 'fixed' includes
George Vasick <george.vasick@oracle.com>
parents: 487
diff changeset
    37
487
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    38
PARCH =         $(MACH:i386=i386-pc)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    39
GNU_ARCH =      $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    40
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    41
PKG_MACROS +=   GNU_ARCH="$(GNU_ARCH)"
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    42
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    43
# This product bootstraps itself.  The gcc flags are not the same
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    44
# as Studio flags. -O2 means different things for the two compilers
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    45
CFLAGS=-g -O2 
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    46
CFLAGS_FOR_BUILD=$(CFLAGS)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    47
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    48
# CC_BITS may get in the way
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    49
CC_BITS=
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    50
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    51
CONFIG_SHELL = /bin/sh
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    52
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    53
CONFIGURE_PREFIX = /usr/gcc/4.5
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    54
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    55
CONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,objc" \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    56
	--enable-shared \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    57
	--with-gmp-include=/usr/include/gmp \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    58
	--with-mpfr-include=/usr/include/mpfr \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    59
	--prefix=$(CONFIGURE_PREFIX) \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    60
	--mandir=$(CONFIGURE_MANDIR) \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    61
	--infodir=$(CONFIGURE_PREFIX)/share/info \
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    62
	--libexecdir=$(CONFIGURE_PREFIX)/lib
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)" 
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    64
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    65
COMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    66
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    67
COMPONENT_BUILD_TARGETS=bootstrap
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    68
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    69
build:		$(BUILD_32)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    70
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    71
install:	$(INSTALL_32) 
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    72
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    73
test:		$(TEST_32)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    74
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    75
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    76
4e721bcfa7d1 PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff changeset
    77
include ../../make-rules/depend.mk