author | jlaskey |
Tue, 19 Feb 2013 09:47:02 -0400 | |
changeset 16248 | e4bcc4b4f897 |
parent 14091 | e5c8662f325d |
permissions | -rw-r--r-- |
2 | 1 |
# |
12538
211d6e82fe51
7130404: [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6
jmelvin
parents:
12047
diff
changeset
|
2 |
# Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Shared platform (OS/ARCH) variable settings for the JDK builds. |
|
28 |
# |
|
29 |
# Includes basic system requirements, versions of utilities required, |
|
30 |
# suffixes on files, and basic defaults attributed to the build platform. |
|
31 |
# |
|
32 |
||
33 |
# |
|
34 |
# Assumes some basic unix system utilities (e.g. uname) are in the search path |
|
35 |
# in order to figure out the system. |
|
36 |
# |
|
37 |
||
38 |
ifndef PLATFORM_SHARED |
|
39 |
||
40 |
PLATFORM_SHARED=done |
|
41 |
||
42 |
# Possible Input variables: |
|
43 |
# ARCH_DATA_MODEL 32 or 64, default to 32 |
|
44 |
# USER, LOGNAME user name (runs logname, or id if not set) |
|
45 |
# PROCESSOR_IDENTIFIER windows only: needed in environment |
|
46 |
# |
|
47 |
# (Also gets input by running the utilities uname, logname, isainfo, or id.) |
|
48 |
# |
|
49 |
# Variables set by this file: |
|
50 |
# SYSTEM_UNAME what 'uname' says this system is |
|
51 |
# USER login name of user (minus blanks) |
|
52 |
# PLATFORM windows, solaris, or linux |
|
53 |
# VARIANT OPT or DBG, OPT is the default |
|
54 |
# TEMP_DISK /tmp or C:/temp |
|
55 |
# ARCH_DATA_MODEL 32 or 64 |
|
56 |
# ARCH sparc, sparcv9, i586, amd64, or ia64 |
|
57 |
# ARCH_FAMILY sparc or i586 |
|
58 |
# ARCHPROP sparc or x86 |
|
59 |
# ARCH_VM_SUBDIR jre/bin, jre/lib/sparc, etc. |
|
60 |
# LIBARCH sparc, sparcv9, i386, amd64, or ia64 |
|
61 |
# DEV_NULL destination of /dev/null, NUL or /dev/NULL |
|
62 |
# CLASSPATH_SEPARATOR separator in classpath, ; or : |
|
63 |
# LIB_PREFIX dynamic or static library prefix, lib or empty |
|
64 |
# LIB_SUFFIX static library file suffix, .lib or .a? |
|
65 |
# LIBRARY_SUFFIX dynamic library file suffix, .dll or .so |
|
66 |
# OBJECT_SUFFIX object file suffix, .o or .obj |
|
67 |
# EXE_SUFFIX executable file suffix, .exe or empty |
|
68 |
# BUNDLE_FILE_SUFFIX suffix for bundles: .tar or .tar.gz |
|
69 |
# ISA_DIR solaris only: /sparcv9 or /amd64 |
|
70 |
# LIBARCH32 solaris only: sparc or i386 |
|
71 |
# LIBARCH64 solaris only: sparcv9 or amd64 |
|
72 |
# USING_CYGWIN windows only: true or false |
|
14091 | 73 |
# USING_MSYS windows only: true or false |
74 |
# USING_MKS windows only: true or false |
|
2 | 75 |
# ISHIELD_TEMP_MIN windows only: minimum disk space in temp area |
76 |
||
8201
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
77 |
# Only run uname once in this make session. |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
78 |
ifndef SYSTEM_UNAME |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
79 |
SYSTEM_UNAME := $(shell uname) |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
80 |
export SYSTEM_UNAME |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
81 |
endif |
2 | 82 |
|
83 |
# |
|
84 |
# Prune out all known SCM (Source Code Management) directories |
|
85 |
# so they will not be included when copying directory trees |
|
86 |
# or packaging up .jar files, etc. This applies to all workspaces. |
|
87 |
# |
|
31
a8fdfca90643
6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents:
26
diff
changeset
|
88 |
SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files .hgignore .hgtags |
2 | 89 |
# When changing SCM_DIRs also change SCM_DIRS_rexp and SCM_DIRS_prune: |
31
a8fdfca90643
6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents:
26
diff
changeset
|
90 |
SCM_DIRS_rexp = ".hg|.svn|CVS|RCS|SCCS|Codemgr_wsdata|deleted_files|.hgignore|.hgtags" |
a8fdfca90643
6628146: Exclude the .hgignore and .hgtags files from the source bundles
ohair
parents:
26
diff
changeset
|
91 |
SCM_DIRS_prune = \( -name .hg -o -name .svn -o -name CVS -o -name RCS -o -name SCCS -o -name Codemgr_wsdata -o -name deleted_files -o -name .hgignore -o -name .hgtags \) -prune |
2 | 92 |
|
93 |
# Don't define this unless it's not defined |
|
94 |
ifndef VARIANT |
|
95 |
VARIANT=OPT |
|
96 |
endif |
|
97 |
||
98 |
# Platform settings specific to Solaris |
|
99 |
ifeq ($(SYSTEM_UNAME), SunOS) |
|
100 |
PLATFORM = solaris |
|
101 |
# Solaris sparc build can be either 32-bit or 64-bit. |
|
102 |
# Default to 32, but allow explicit setting to 32 or 64. |
|
103 |
ifndef ARCH_DATA_MODEL |
|
104 |
ARCH_DATA_MODEL=32 |
|
105 |
endif |
|
106 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
107 |
processor := $(shell uname -p) |
|
108 |
archExpr = case "$(processor)" in \ |
|
109 |
i[3-9]86) \ |
|
110 |
echo i586 \ |
|
111 |
;; \ |
|
112 |
sparc*) \ |
|
113 |
echo sparc \ |
|
114 |
;; \ |
|
115 |
*) \ |
|
116 |
echo $(processor) \ |
|
117 |
;; \ |
|
118 |
esac |
|
119 |
ARCH := $(shell $(archExpr)) |
|
120 |
else |
|
121 |
ARCH := $(shell isainfo -n) |
|
122 |
# ISA_DIR is used to locate 64-bit specific libraries which are generally |
|
123 |
# in the same general place as other libraries under the ./$(ARCH) directory |
|
124 |
ISA_DIR = /$(ARCH) |
|
125 |
endif |
|
126 |
# Need to maintain the jre/lib/i386 location for 32-bit Intel |
|
127 |
ifeq ($(ARCH), i586) |
|
128 |
ARCH_FAMILY = $(ARCH) |
|
129 |
LIBARCH = i386 |
|
130 |
# Value of Java os.arch property |
|
131 |
ARCHPROP = x86 |
|
132 |
else |
|
133 |
ifeq ($(ARCH), amd64) |
|
134 |
ARCH_FAMILY = i586 |
|
135 |
else |
|
136 |
ARCH_FAMILY = sparc |
|
137 |
endif |
|
138 |
LIBARCH = $(ARCH) |
|
139 |
# Value of Java os.arch property |
|
140 |
ARCHPROP = $(LIBARCH) |
|
141 |
endif |
|
142 |
# The two LIBARCH names |
|
143 |
ifeq ($(ARCH_FAMILY), sparc) |
|
144 |
LIBARCH32 = sparc |
|
145 |
LIBARCH64 = sparcv9 |
|
146 |
else |
|
147 |
LIBARCH32 = i386 |
|
148 |
LIBARCH64 = amd64 |
|
149 |
endif |
|
150 |
# Suffix for file bundles used in previous release |
|
151 |
BUNDLE_FILE_SUFFIX=.tar |
|
11368
b8048abf694e
7127104: Build issue with prtconf and zones, also using := to avoid extra execs
ohair
parents:
9362
diff
changeset
|
152 |
# How much RAM does this machine have (zones send an error to stderr): |
b8048abf694e
7127104: Build issue with prtconf and zones, also using := to avoid extra execs
ohair
parents:
9362
diff
changeset
|
153 |
MB_OF_MEMORY:=$(shell /usr/sbin/prtconf 2>/dev/null | fgrep 'Memory size:' | expand | cut -d' ' -f3) |
2 | 154 |
endif |
155 |
||
156 |
# Platform settings specific to Linux |
|
157 |
ifeq ($(SYSTEM_UNAME), Linux) |
|
158 |
PLATFORM = linux |
|
159 |
# Arch and OS name/version |
|
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
160 |
ifdef CROSS_COMPILE_ARCH |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
161 |
mach := $(CROSS_COMPILE_ARCH) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
162 |
else |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
163 |
mach := $(shell uname -m) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
164 |
endif |
2 | 165 |
archExpr = case "$(mach)" in \ |
166 |
i[3-9]86) \ |
|
167 |
echo i586 \ |
|
168 |
;; \ |
|
169 |
ia64) \ |
|
170 |
echo ia64 \ |
|
171 |
;; \ |
|
172 |
x86_64) \ |
|
173 |
echo amd64 \ |
|
174 |
;; \ |
|
175 |
sparc*) \ |
|
176 |
echo sparc \ |
|
177 |
;; \ |
|
4286 | 178 |
arm*) \ |
179 |
echo arm \ |
|
180 |
;; \ |
|
2 | 181 |
*) \ |
182 |
echo $(mach) \ |
|
183 |
;; \ |
|
184 |
esac |
|
185 |
ARCH := $(shell $(archExpr) ) |
|
186 |
ARCH_FAMILY := $(ARCH) |
|
187 |
||
188 |
# Linux builds may be 32-bit or 64-bit data model. |
|
189 |
ifeq ($(ARCH), sparc) |
|
190 |
# Linux sparc build can be either 32-bit or 64-bit. |
|
191 |
# Default to 32, but allow explicit setting to 32 or 64. |
|
192 |
ifndef ARCH_DATA_MODEL |
|
193 |
ARCH_DATA_MODEL=32 |
|
194 |
endif |
|
195 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
196 |
ARCH=sparc |
|
197 |
else |
|
198 |
ARCH=sparcv9 |
|
199 |
endif |
|
200 |
else |
|
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
201 |
# Most archs are 32-bit |
2 | 202 |
ifndef ARCH_DATA_MODEL |
8796
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
203 |
ARCH_DATA_MODEL=32 |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
204 |
ifeq ($(ARCH), amd64) |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
205 |
ARCH_DATA_MODEL=64 |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
206 |
endif |
604a43386301
7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents:
8201
diff
changeset
|
207 |
ifeq ($(ARCH), ia64) |
2 | 208 |
ARCH_DATA_MODEL=64 |
209 |
endif |
|
210 |
endif |
|
211 |
endif |
|
212 |
||
213 |
# Need to maintain the jre/lib/i386 location for 32-bit Intel |
|
214 |
ifeq ($(ARCH), i586) |
|
215 |
LIBARCH = i386 |
|
216 |
else |
|
217 |
LIBARCH = $(ARCH) |
|
218 |
endif |
|
219 |
||
220 |
# Value of Java os.arch property |
|
221 |
ARCHPROP = $(LIBARCH) |
|
222 |
||
223 |
# Suffix for file bundles used in previous release |
|
224 |
BUNDLE_FILE_SUFFIX=.tar.gz |
|
225 |
# How much RAM does this machine have: |
|
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
226 |
MB_OF_MEMORY := $(shell free -m | fgrep Mem: | awk '{print $$2;}' ) |
2 | 227 |
endif |
228 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
229 |
ifeq ($(SYSTEM_UNAME), Darwin) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
230 |
PLATFORM = macosx |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
231 |
OS_NAME = darwin |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
232 |
OS_VENDOR = Apple |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
233 |
GB_OF_MEMORY := $(shell system_profiler SPHardwareDataType | fgrep Memory: | awk '{print $$2}') |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
234 |
MB_OF_MEMORY := $(shell expr ${GB_OF_MEMORY} '*' 1024) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
235 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
236 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
237 |
# Platform settings specific to BSD/Mac OS X |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
238 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
239 |
OS_VERSION := $(shell uname -r) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
240 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
241 |
# Arch and OS name/version |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
242 |
# Darwin x86 builds are i386/amd64 universal by default. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
243 |
# Allow arch to be set from the environment to avoid this. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
244 |
ifeq ($(origin ARCH), undefined) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
245 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
246 |
# ifdef OPENJDK -- when universal 32/64 binaries available in Hotspot |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
247 |
# mach := universal |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
248 |
# else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
249 |
mach := x86_64 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
250 |
# endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
251 |
else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
252 |
mach := $(shell uname -m) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
253 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
254 |
else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
255 |
mach := $(ARCH) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
256 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
257 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
258 |
archExpr = case "$(mach)" in \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
259 |
i[3-9]86) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
260 |
echo i586 \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
261 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
262 |
sparc64) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
263 |
echo sparcv9 \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
264 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
265 |
sparc*) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
266 |
echo sparc \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
267 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
268 |
x86_64) \ |
12538
211d6e82fe51
7130404: [macosx] "os.arch" value should be "x86_64" for compatibility with Apple JDK6
jmelvin
parents:
12047
diff
changeset
|
269 |
echo x86_64 \ |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
270 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
271 |
universal) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
272 |
echo universal \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
273 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
274 |
"Power Macintosh") \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
275 |
echo ppc \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
276 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
277 |
*) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
278 |
echo $(mach) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
279 |
;; \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
280 |
esac |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
281 |
ARCH := $(shell $(archExpr) ) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
282 |
ARCH_FAMILY := $(ARCH) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
283 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
284 |
# i586, sparc, and ppc are 32 bit, amd64 and sparc64 are 64 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
285 |
# ARCH_DATA_MODEL does not exactly mean anything in universal |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
286 |
# but it has to be one or the other, so pick 32 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
287 |
ifneq (,$(findstring $(ARCH), i586 sparc ppc universal)) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
288 |
ARCH_DATA_MODEL=32 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
289 |
else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
290 |
ARCH_DATA_MODEL=64 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
291 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
292 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
293 |
# Need to maintain the jre/lib/i386 location for 32-bit Intel |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
294 |
ifeq ($(ARCH), i586) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
295 |
LIBARCH = i386 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
296 |
else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
297 |
LIBARCH = $(ARCH) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
298 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
299 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
300 |
# Value of Java os.arch property |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
301 |
ARCHPROP = $(LIBARCH) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
302 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
303 |
# Suffix for file bundles used in previous release |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
304 |
BUNDLE_FILE_SUFFIX=.tar.gz |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
305 |
# How much RAM does this machine have: |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
306 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
307 |
|
2 | 308 |
# Windows with and without CYGWIN will be slightly different |
309 |
ifeq ($(SYSTEM_UNAME), Windows_NT) |
|
310 |
PLATFORM = windows |
|
14091 | 311 |
USING_MKS = true |
312 |
export USING_MKS |
|
2 | 313 |
endif |
314 |
ifneq (,$(findstring CYGWIN,$(SYSTEM_UNAME))) |
|
315 |
PLATFORM = windows |
|
316 |
USING_CYGWIN = true |
|
317 |
export USING_CYGWIN |
|
8201
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
318 |
CYGPATH_CMD=cygpath -a -s -m |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
319 |
# Only run "cygpath /" once in this make session. |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
320 |
ifndef CYGWIN_HOME |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
321 |
CYGWIN_HOME := $(shell $(CYGPATH_CMD) /) |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
322 |
export CYGWIN_HOME |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
323 |
endif |
2 | 324 |
endif |
14091 | 325 |
ifneq (,$(findstring MINGW,$(SYSTEM_UNAME))) |
326 |
PLATFORM = windows |
|
327 |
USING_MSYS = true |
|
328 |
export USING_MSYS |
|
329 |
endif |
|
2 | 330 |
|
331 |
# Platform settings specific to Windows |
|
332 |
ifeq ($(PLATFORM), windows) |
|
333 |
# Windows builds default to the appropriate for the underlaying |
|
334 |
# architecture. |
|
335 |
# Temporary disk area |
|
336 |
TEMP_DISK=C:/temp |
|
337 |
# GNU Make or MKS overrides $(PROCESSOR_ARCHITECTURE) to always |
|
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
338 |
# return "x86". Use the first word of $(PROCESSOR_IDENTIFIER) instead. |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
339 |
# And sometimes PROCESSOR_IDENTIFIER is not defined at all |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
340 |
# (in some restricted shells), so we use uname if we have to. |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
341 |
ifeq ($(PROCESSOR_IDENTIFIER),) |
8201
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
342 |
# Only run uname -m once in this make session. |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
343 |
ifndef SYSTEM_UNAME_M |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
344 |
SYSTEM_UNAME_M := $(shell uname -m) |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
345 |
export SYSTEM_UNAME_M |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
346 |
endif |
9e6915af34ba
7012644: Regression: jdk/make/common/shared/Defs-windows.gmk has problems on cygwin
ohair
parents:
5627
diff
changeset
|
347 |
PROC_ARCH:=$(SYSTEM_UNAME_M) |
5611
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
348 |
else |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
349 |
PROC_ARCH:=$(word 1, $(PROCESSOR_IDENTIFIER)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
350 |
endif |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
351 |
# Cover all the possibilities, MKS uname, CYGWIN uname, PROCESSOR_IDENTIFIER |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
352 |
# Get: X86, X64, or IA64 |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
353 |
PROC_ARCH:=$(patsubst 386,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
354 |
PROC_ARCH:=$(patsubst 486,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
355 |
PROC_ARCH:=$(patsubst 586,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
356 |
PROC_ARCH:=$(patsubst 686,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
357 |
PROC_ARCH:=$(patsubst i386,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
358 |
PROC_ARCH:=$(patsubst i486,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
359 |
PROC_ARCH:=$(patsubst i586,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
360 |
PROC_ARCH:=$(patsubst i686,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
361 |
PROC_ARCH:=$(patsubst x86,X86,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
362 |
PROC_ARCH:=$(patsubst intel64,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
363 |
PROC_ARCH:=$(patsubst Intel64,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
364 |
PROC_ARCH:=$(patsubst INTEL64,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
365 |
PROC_ARCH:=$(patsubst em64t,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
366 |
PROC_ARCH:=$(patsubst EM64T,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
367 |
PROC_ARCH:=$(patsubst amd64,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
368 |
PROC_ARCH:=$(patsubst AMD64,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
369 |
PROC_ARCH:=$(patsubst 8664,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
370 |
PROC_ARCH:=$(patsubst x86_64,X64,$(PROC_ARCH)) |
b4ef86f105ec
6954064: Fix the windows arch settings in the makefiles and chmod logic in test/Makefile
ohair
parents:
4286
diff
changeset
|
371 |
PROC_ARCH:=$(patsubst ia64,IA64,$(PROC_ARCH)) |
2 | 372 |
ifndef ARCH_DATA_MODEL |
2300
103e268e2d16
6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents:
2158
diff
changeset
|
373 |
ifeq ($(PROC_ARCH),IA64) |
2 | 374 |
ARCH_DATA_MODEL=64 |
375 |
else |
|
2300
103e268e2d16
6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents:
2158
diff
changeset
|
376 |
ifeq ($(PROC_ARCH),X64) |
2 | 377 |
ARCH_DATA_MODEL=64 |
378 |
else |
|
379 |
ARCH_DATA_MODEL=32 |
|
380 |
endif |
|
381 |
endif |
|
382 |
endif |
|
383 |
export ARCH_DATA_MODEL |
|
384 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
385 |
# If the user wants to perform a cross compile build then they must |
|
386 |
# - set ARCH_DATA_MODEL=64 and either |
|
387 |
# + set ARCH to ia64 or amd64, or |
|
2300
103e268e2d16
6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents:
2158
diff
changeset
|
388 |
ifeq ($(PROC_ARCH),X64) |
2 | 389 |
ARCH=amd64 |
390 |
else |
|
2300
103e268e2d16
6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents:
2158
diff
changeset
|
391 |
ifeq ($(PROC_ARCH),IA64) |
103e268e2d16
6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents:
2158
diff
changeset
|
392 |
ARCH=ia64 |
103e268e2d16
6822374: Windows: detect X64 when PROCESSOR_IDENTIFIER contains EM64T or Intel64
ohair
parents:
2158
diff
changeset
|
393 |
endif |
2 | 394 |
endif |
395 |
LIBARCH=$(ARCH) |
|
396 |
# Value of Java os.arch property |
|
397 |
ARCHPROP=$(LIBARCH) |
|
799
5abd62136d35
6695765: Remove winver.exe completely from jdk sources
ohair
parents:
715
diff
changeset
|
398 |
else |
5abd62136d35
6695765: Remove winver.exe completely from jdk sources
ohair
parents:
715
diff
changeset
|
399 |
# LIBARCH is used to preserve the jre/lib/i386 directory name for 32-bit intel |
5abd62136d35
6695765: Remove winver.exe completely from jdk sources
ohair
parents:
715
diff
changeset
|
400 |
ARCH=i586 |
5abd62136d35
6695765: Remove winver.exe completely from jdk sources
ohair
parents:
715
diff
changeset
|
401 |
LIBARCH=i386 |
5abd62136d35
6695765: Remove winver.exe completely from jdk sources
ohair
parents:
715
diff
changeset
|
402 |
# Value of Java os.arch property |
5abd62136d35
6695765: Remove winver.exe completely from jdk sources
ohair
parents:
715
diff
changeset
|
403 |
ARCHPROP=x86 |
2 | 404 |
endif |
405 |
ARCH_FAMILY = $(ARCH) |
|
406 |
# Where is unwanted output to be delivered? |
|
14091 | 407 |
# MKS uses the special file "NUL"; Cygwin and MinGW/MSYS use the |
408 |
# customary unix file. |
|
409 |
ifeq ($(USING_MKS),true) |
|
410 |
DEV_NULL = NUL |
|
411 |
else |
|
5381
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4286
diff
changeset
|
412 |
DEV_NULL = /dev/null |
d6d64a42ff51
6931180: Migration to recent versions of MS Platform SDK
prr
parents:
4286
diff
changeset
|
413 |
endif |
2 | 414 |
export DEV_NULL |
415 |
# Classpath separator |
|
416 |
CLASSPATH_SEPARATOR = ; |
|
417 |
# The suffix used for object file (.o for unix .obj for windows) |
|
418 |
OBJECT_SUFFIX = obj |
|
419 |
# The suffix applied to executables (.exe for windows, nothing for solaris) |
|
420 |
EXE_SUFFIX = .exe |
|
421 |
# The prefix applied to library files (lib for solaris, nothing for windows) |
|
422 |
LIB_PREFIX= |
|
423 |
LIBRARY_SUFFIX = dll |
|
424 |
LIB_SUFFIX = lib |
|
425 |
# User name determination (set _USER) |
|
426 |
ifndef USER |
|
427 |
ifdef USERNAME |
|
428 |
_USER := $(USERNAME) |
|
429 |
else |
|
430 |
ifdef LOGNAME |
|
431 |
_USER := $(LOGNAME) |
|
432 |
else |
|
433 |
_USER := $(shell id -un) |
|
434 |
endif |
|
435 |
endif |
|
436 |
else |
|
437 |
_USER:=$(USER) |
|
438 |
endif |
|
439 |
# Location of client/server directories |
|
440 |
ARCH_VM_SUBDIR=jre/bin |
|
441 |
# Suffix for file bundles used in previous release |
|
442 |
BUNDLE_FILE_SUFFIX=.tar |
|
443 |
# ISHIELD_TEMP_MIN is the difference of an empty C:\TEMP vs. one after a |
|
444 |
# bundles build on windows. |
|
445 |
ISHIELD_TEMP_MIN=250000 |
|
446 |
# How much RAM does this machine have: |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
447 |
ifeq ($(JDK_HAS_MEM_INFO),) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
448 |
ifeq ($(USING_CYGWIN),true) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
449 |
# CYGWIN has the 'free' utility |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
450 |
_MB_OF_MEMORY := \ |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
451 |
$(shell free -m | grep Mem: | awk '{print $$2;}' ) |
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
452 |
else |
14091 | 453 |
# Windows XP and higher has the systeminfo utility |
454 |
_MB_OF_MEMORY := \ |
|
455 |
$(shell systeminfo 2> $(DEV_NULL) | \ |
|
456 |
grep 'Total Physical Memory:' | \ |
|
457 |
awk '{print $$4;}' | sed -e 's@,@@') |
|
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
458 |
endif |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
459 |
ifeq ($(shell expr $(_MB_OF_MEMORY) '+' 0 2> $(DEV_NULL)), $(_MB_OF_MEMORY)) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
460 |
MB_OF_MEMORY := $(_MB_OF_MEMORY) |
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
461 |
else |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
462 |
MB_OF_MEMORY := 512 |
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
463 |
endif |
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
464 |
endif |
2 | 465 |
endif |
466 |
||
467 |
# Unix type settings (same for all unix platforms) |
|
468 |
ifneq ($(PLATFORM), windows) |
|
469 |
# Temporary disk area |
|
470 |
TEMP_DISK=/tmp |
|
471 |
# Where is unwanted output to be delivered? |
|
472 |
DEV_NULL = /dev/null |
|
473 |
export DEV_NULL |
|
474 |
# Character used between entries in classpath |
|
475 |
CLASSPATH_SEPARATOR = : |
|
476 |
# suffix used for object file (.o for unix .obj for windows) |
|
477 |
OBJECT_SUFFIX = o |
|
478 |
# The suffix applied to runtime libraries |
|
479 |
LIBRARY_SUFFIX = so |
|
480 |
# The suffix applied to link libraries |
|
481 |
LIB_SUFFIX = so |
|
482 |
# The suffix applied to executables (.exe for windows, nothing for solaris) |
|
483 |
EXE_SUFFIX = |
|
484 |
# The prefix applied to library files (lib for solaris, nothing for windows) |
|
485 |
LIB_PREFIX = lib |
|
486 |
# User name determination (set _USER) |
|
487 |
ifndef USER |
|
488 |
ifdef LOGNAME |
|
489 |
_USER := $(LOGNAME) |
|
490 |
else |
|
491 |
_USER := $(shell logname) |
|
492 |
endif |
|
493 |
else |
|
494 |
_USER:=$(USER) |
|
495 |
endif |
|
496 |
# Location of client/server directories |
|
497 |
ARCH_VM_SUBDIR=jre/lib/$(LIBARCH) |
|
498 |
endif |
|
499 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
500 |
# Darwin-specific Overrides |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
501 |
ifeq ($(SYSTEM_UNAME),Darwin) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
502 |
# The suffix applied to runtime libraries |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
503 |
LIBRARY_SUFFIX = dylib |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
504 |
# The suffix applied to link libraries |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
505 |
ifeq ($(ARCH), universal) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
506 |
LIB_SUFFIX = o |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
507 |
else |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
508 |
LIB_SUFFIX = a |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
509 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
510 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
511 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
512 |
ARCH_VM_SUBDIR=jre/lib |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
513 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
514 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
11368
diff
changeset
|
515 |
|
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
516 |
# Machines with 512Mb or less of real memory are considered low memory |
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
517 |
# build machines and adjustments will be made to prevent excessing |
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
518 |
# system swapping during the build. |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
519 |
ifeq ($(JDK_HAS_MEM_INFO),) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
520 |
JDK_HAS_MEM_INFO=true |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
521 |
export JDK_HAS_MEM_INFO |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
522 |
ifneq ($(MB_OF_MEMORY),) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
523 |
LOW_MEMORY_MACHINE := $(shell \ |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
524 |
if [ $(MB_OF_MEMORY) -le 512 ] ; then \ |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
525 |
echo "true"; \ |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
526 |
else \ |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
527 |
echo "false"; \ |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
528 |
fi) |
9362
f91f98952e64
6903609: Max memory of 896 may be too large for typical windows developer environment
schien
parents:
8805
diff
changeset
|
529 |
MAX_VM_MEMORY := 512 |
f91f98952e64
6903609: Max memory of 896 may be too large for typical windows developer environment
schien
parents:
8805
diff
changeset
|
530 |
MIN_VM_MEMORY := $(MAX_VM_MEMORY) |
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
531 |
else |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
532 |
MB_OF_MEMORY := unknown |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
533 |
LOW_MEMORY_MACHINE := true |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
534 |
MAX_VM_MEMORY := 384 |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
535 |
MIN_VM_MEMORY := 128 |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
536 |
endif |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
537 |
export MB_OF_MEMORY |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
538 |
export LOW_MEMORY_MACHINE |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
539 |
export MAX_VM_MEMORY |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
799
diff
changeset
|
540 |
export MIN_VM_MEMORY |
141
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
541 |
endif |
dd739bd1bd2b
6611629: Avoid hardcoded cygwin paths for memory detection
ohair
parents:
31
diff
changeset
|
542 |
|
2 | 543 |
# If blanks in the username, use the first 4 words and pack them together |
544 |
_USER1:=$(subst ', ,$(_USER)) |
|
545 |
_USER2:=$(subst ", ,$(_USER1)) |
|
546 |
USER:=$(word 1,$(_USER2))$(word 2,$(_USER2))$(word 3,$(_USER2))$(word 4,$(_USER2)) |
|
547 |
export USER |
|
548 |
||
549 |
export PLATFORM |
|
550 |
endif |
|
551 |