author | Rich Burridge <rich.burridge@oracle.com> |
Fri, 16 Dec 2011 05:23:33 -0800 | |
changeset 627 | 5b7574ad99b9 |
parent 609 | 775168282b2f |
child 704 | c4fe7d6370ec |
permissions | -rw-r--r-- |
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 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
523
diff
changeset
|
27 |
COMPONENT_PROJECT_URL= http://gcc.gnu.org/ |
487
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
28 |
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
|
29 |
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
|
30 |
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
|
31 |
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
|
32 |
|
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/prep.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/configure.mk |
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
35 |
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
|
36 |
|
523
607f4130cc3c
7090160 gcc4 seems to be shipping a lot 'fixed' includes
George Vasick <george.vasick@oracle.com>
parents:
487
diff
changeset
|
37 |
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
|
38 |
|
487
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
39 |
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
|
40 |
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
|
41 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
42 |
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
|
43 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
44 |
# 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
|
45 |
# 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
|
46 |
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
|
47 |
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
|
48 |
|
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 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
|
50 |
CC_BITS= |
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
51 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
52 |
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
|
53 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
54 |
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
|
55 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
56 |
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
|
57 |
--enable-shared \ |
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
58 |
--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
|
59 |
--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
|
60 |
--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
|
61 |
--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
|
62 |
--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
|
63 |
--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
|
64 |
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
|
65 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
66 |
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
|
67 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
68 |
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
|
69 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
70 |
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
|
71 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
72 |
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
|
73 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
74 |
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
|
75 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
76 |
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
|
77 |
|
4e721bcfa7d1
PSARC 2011/256 GCC 4.5: The GNU Compiler Collection 4.5
Ross Towle <ross.towle@oracle.com>
parents:
diff
changeset
|
78 |
include ../../make-rules/depend.mk |