author | Norm Jacobs <Norm.Jacobs@Sun.COM> |
Fri, 16 Jul 2010 00:58:56 -0500 | |
changeset 26 | 8a9f4e791832 |
parent 16 | 33aaaec59991 |
child 29 | eb4177698749 |
permissions | -rw-r--r-- |
2 | 1 |
# |
2 |
# CDDL HEADER START |
|
3 |
# |
|
4 |
# The contents of this file are subject to the terms of the |
|
5 |
# Common Development and Distribution License (the "License"). |
|
6 |
# You may not use this file except in compliance with the License. |
|
7 |
# |
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
9 |
# or http://www.opensolaris.org/os/licensing. |
|
10 |
# See the License for the specific language governing permissions |
|
11 |
# and limitations under the License. |
|
12 |
# |
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
|
18 |
# |
|
19 |
# CDDL HEADER END |
|
20 |
# |
|
21 |
# Copyright (c) 2010, Oracle and/or it's affiliates. All rights reserved. |
|
22 |
# |
|
23 |
||
24 |
CONSOLIDATION = userland |
|
25 |
PUBLISHER = $(CONSOLIDATION)-build |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
26 |
|
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
27 |
OS_VERSION = $(shell uname -r) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
28 |
SOLARIS_VERSION = $(OS_VERSION:5.%=2.%) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
29 |
BUILD_NUM = 0.140 |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
30 |
BUILD_VERSION = $(OS_VERSION)-$(BUILD_NUM) |
2 | 31 |
|
32 |
COMPILER = studio |
|
6
20f80c019d73
add compiler date/time chatter reduction tools
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
33 |
BITS = 32 |
2 | 34 |
PYTHON_VERSION = 2.6 |
35 |
||
36 |
TOOLS = $(WS_TOP)/tools |
|
37 |
WS_LOGS = $(WS_TOP)/logs |
|
38 |
MAKE_RULES = $(WS_TOP)/components/make-rules |
|
39 |
||
40 |
PKG_REPO = file://$(WS_TOP)/repo |
|
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
41 |
PROTO_DIR = $(shell pwd)/$(COMPONENT_SRC)/installed-prototype-$(MACH) |
2 | 42 |
|
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
43 |
# work around _TIME, _DATE, embedded date chatter in component builds |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
44 |
# to use, set TIME_CONSTANT in the component Makefile and add $(CONSTANT_TIME) |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
45 |
# to the appropriate {CONFIGURE|BUILD|INSTALL}_ENV |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
46 |
CONSTANT_TIME = LD_PRELOAD_32=$(TOOLS)/time-$(MACH32).so |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
47 |
CONSTANT_TIME += LD_PRELOAD_64=$(TOOLS)/time-$(MACH64).so |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
48 |
CONSTANT_TIME += TIME_CONSTANT=$(TIME_CONSTANT) |
6
20f80c019d73
add compiler date/time chatter reduction tools
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
49 |
|
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
50 |
# set MACH from uname -p to either sparc or i386 |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
51 |
MACH = $(shell uname -p) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
52 |
|
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
53 |
# set MACH32 from MACH to either sparcv7 or i86 |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
54 |
MACH32_1 = $(MACH:sparc=sparcv7) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
55 |
MACH32 = $(MACH32_1:i386=i86) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
56 |
|
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
57 |
# set MACH64 from MACH to either sparcv9 or amd64 |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
58 |
MACH64_1 = $(MACH:sparc=sparcv9) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
59 |
MACH64 = $(MACH64_1:i386=amd64) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
60 |
|
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
61 |
BUILD_32 = $(COMPONENT_SRC)/build-$(MACH32)/.built |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
62 |
BUILD_64 = $(COMPONENT_SRC)/build-$(MACH64)/.built |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
63 |
BUILD_32_and_64 = $(BUILD_32) $(BUILD_64) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
64 |
|
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
65 |
INSTALL_32 = $(COMPONENT_SRC)/build-$(MACH32)/.installed |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
66 |
INSTALL_64 = $(COMPONENT_SRC)/build-$(MACH64)/.installed |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
67 |
INSTALL_32_and_64 = $(INSTALL_32) $(INSTALL_64) |
2 | 68 |
|
69 |
SPRO_ROOT = /opt/sunstudio12.1 |
|
70 |
GCC_ROOT = /usr/gnu |
|
71 |
||
72 |
CC.studio.32 = $(SPRO_ROOT)/bin/cc -m32 |
|
73 |
CCC.studio.32 = $(SPRO_ROOT)/bin/CC -m32 |
|
74 |
||
75 |
CC.studio.64 = $(SPRO_ROOT)/bin/cc -m64 |
|
76 |
CCC.studio.64 = $(SPRO_ROOT)/bin/CC -m64 |
|
77 |
||
78 |
CC.gcc.32 = $(GCC_ROOT)/bin/cc -m32 |
|
79 |
CCC.gcc.32 = $(GCC_ROOT)/bin/CC -m32 |
|
80 |
||
81 |
CC.gcc.64 = $(GCC_ROOT)/bin/cc -m64 |
|
82 |
CCC.gcc.64 = $(GCC_ROOT)/bin/CC -m64 |
|
83 |
||
84 |
CC = $(CC.$(COMPILER).$(BITS)) |
|
85 |
CCC = $(CCC.$(COMPILER).$(BITS)) |
|
86 |
||
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
87 |
LD = /usr/bin/ld |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
88 |
|
2 | 89 |
PYTHON.2.4.32 = /usr/bin/python2.4 |
90 |
PYTHON.2.4.64 = /usr/bin/amd64/python2.4 |
|
91 |
||
92 |
PYTHON.2.6.32 = /usr/bin/python2.6 |
|
93 |
PYTHON.2.6.64 = /usr/bin/amd64/python2.6 |
|
94 |
||
95 |
PYTHON.32 = $(PYTHON.$(PYTHON_VERSION).$(BITS)) |
|
96 |
PYTHON.64 = $(PYTHON.$(PYTHON_VERSION).$(BITS)) |
|
97 |
||
98 |
GMAKE = /usr/gnu/bin/make |
|
99 |
GPATCH = /usr/gnu/bin/patch |
|
100 |
GPATCH_FLAGS = -p1 -b |
|
101 |
||
102 |
PKGSEND = /usr/bin/pkgsend |
|
103 |
||
104 |
TOUCH = /usr/bin/touch |
|
105 |
MKDIR = /bin/mkdir -p |
|
106 |
RM = /bin/rm -f |
|
7
d42300cb8715
add license/copyright info for ips generation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
6
diff
changeset
|
107 |
CP = /bin/cp -f |
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
108 |
ENV = /usr/bin/env |