comparison make/common/shared/Platform.gmk @ 206:3eb18b5bf93c

Merge
author andrew
date Thu, 29 Jul 2010 18:06:56 +0100
parents e12a2cc2d9b5 1b5234624436
children 06146786b141
comparison
equal deleted inserted replaced
9:351fd57a04fe 13:0ae7155402c5
1 # 1 #
2 # Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 2 # Copyright (c) 1997, 2009, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 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 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Sun designates this 7 # published by the Free Software Foundation. Oracle designates this
8 # particular file as subject to the "Classpath" exception as provided 8 # particular file as subject to the "Classpath" exception as provided
9 # by Sun in the LICENSE file that accompanied this code. 9 # by Oracle in the LICENSE file that accompanied this code.
10 # 10 #
11 # This code is distributed in the hope that it will be useful, but WITHOUT 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 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 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 14 # version 2 for more details (a copy is included in the LICENSE file that
16 # 16 #
17 # You should have received a copy of the GNU General Public License version 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, 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. 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 # 20 #
21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 # CA 95054 USA or visit www.sun.com if you need additional information or 22 # or visit www.oracle.com if you need additional information or have any
23 # have any questions. 23 # questions.
24 # 24 #
25 25
26 # 26 #
27 # Shared platform (OS/ARCH) variable settings for the JDK builds. 27 # Shared platform (OS/ARCH) variable settings for the JDK builds.
28 # 28 #
51 # USER login name of user (minus blanks) 51 # USER login name of user (minus blanks)
52 # PLATFORM windows, solaris, or linux 52 # PLATFORM windows, solaris, or linux
53 # VARIANT OPT or DBG, OPT is the default 53 # VARIANT OPT or DBG, OPT is the default
54 # OS_NAME solaris, linux, or nt 54 # OS_NAME solaris, linux, or nt
55 # OS_VERSION specific version of os, 5.10, 2.4.9-e.3, etc. 55 # OS_VERSION specific version of os, 5.10, 2.4.9-e.3, etc.
56 # OS_VENDOR company name
57 # TEMP_DISK /tmp or C:/temp 56 # TEMP_DISK /tmp or C:/temp
58 # ARCH_DATA_MODEL 32 or 64 57 # ARCH_DATA_MODEL 32 or 64
59 # ARCH sparc, sparcv9, i586, amd64, or ia64 58 # ARCH sparc, sparcv9, i586, amd64, or ia64
60 # ARCH_FAMILY sparc or i586 59 # ARCH_FAMILY sparc or i586
61 # ARCHPROP sparc or x86 60 # ARCHPROP sparc or x86
151 LIBARCH32 = i386 150 LIBARCH32 = i386
152 LIBARCH64 = amd64 151 LIBARCH64 = amd64
153 endif 152 endif
154 # Suffix for file bundles used in previous release 153 # Suffix for file bundles used in previous release
155 BUNDLE_FILE_SUFFIX=.tar 154 BUNDLE_FILE_SUFFIX=.tar
156 OS_VENDOR = Sun Microsystems
157 # Required Solaris version 155 # Required Solaris version
158 REQUIRED_OS_VERSION = 5.10 156 REQUIRED_OS_VERSION = 5.10
159 # Minimum disk space needed as determined by running 'du -sk' on 157 # Minimum disk space needed as determined by running 'du -sk' on
160 # a fully built workspace. 158 # a fully built workspace.
161 ifeq ($(ARCH_FAMILY), sparc) 159 ifeq ($(ARCH_FAMILY), sparc)
234 BUNDLE_FILE_SUFFIX=.tar.gz 232 BUNDLE_FILE_SUFFIX=.tar.gz
235 # Minimum disk space needed as determined by running 'du -sk' on 233 # Minimum disk space needed as determined by running 'du -sk' on
236 # a fully built workspace. 234 # a fully built workspace.
237 REQUIRED_FREE_SPACE=1460000 235 REQUIRED_FREE_SPACE=1460000
238 LINUX_VERSION_INFO = /etc/redhat-release 236 LINUX_VERSION_INFO = /etc/redhat-release
239 OS_VENDOR = Red Hat
240 ifeq ($(ARCH_DATA_MODEL), 32) 237 ifeq ($(ARCH_DATA_MODEL), 32)
241 REQUIRED_LINUX_VER = Advanced Server 238 REQUIRED_LINUX_VER = Advanced Server
242 REQUIRED_LINUX_FULLVER = Advanced Server release 2.1AS 239 REQUIRED_LINUX_FULLVER = Advanced Server release 2.1AS
243 REQUIRED_OS_VERSION = 2.4.9-e.3 240 REQUIRED_OS_VERSION = 2.4.9-e.3
244 else 241 else
245 ifeq ($(ARCH), amd64) 242 ifeq ($(ARCH), amd64)
246 LINUX_VERSION_INFO = /etc/SuSE-release 243 LINUX_VERSION_INFO = /etc/SuSE-release
247 OS_VENDOR = SuSE Enterprise
248 REQUIRED_LINUX_VER = 8.1 244 REQUIRED_LINUX_VER = 8.1
249 REQUIRED_LINUX_FULLVER = $(REQUIRED_LINUX_VER) SLSE AMD64 245 REQUIRED_LINUX_FULLVER = $(REQUIRED_LINUX_VER) SLSE AMD64
250 REQUIRED_OS_VERSION = 2.4.19-SMP 246 REQUIRED_OS_VERSION = 2.4.19-SMP
251 else 247 else
252 REQUIRED_LINUX_VER = Advanced Server 248 REQUIRED_LINUX_VER = Advanced Server
331 # Value of Java os.arch property 327 # Value of Java os.arch property
332 ARCHPROP=$(LIBARCH) 328 ARCHPROP=$(LIBARCH)
333 endif 329 endif
334 ARCH_FAMILY = $(ARCH) 330 ARCH_FAMILY = $(ARCH)
335 # Where is unwanted output to be delivered? 331 # Where is unwanted output to be delivered?
336 DEV_NULL = NUL 332 ifeq ($(USING_CYGWIN),true)
333 DEV_NULL = /dev/null
334 else
335 DEV_NULL = NUL
336 endif
337 export DEV_NULL 337 export DEV_NULL
338 # Classpath separator 338 # Classpath separator
339 CLASSPATH_SEPARATOR = ; 339 CLASSPATH_SEPARATOR = ;
340 # The suffix used for object file (.o for unix .obj for windows) 340 # The suffix used for object file (.o for unix .obj for windows)
341 OBJECT_SUFFIX = obj 341 OBJECT_SUFFIX = obj
364 # Suffix for file bundles used in previous release 364 # Suffix for file bundles used in previous release
365 BUNDLE_FILE_SUFFIX=.tar 365 BUNDLE_FILE_SUFFIX=.tar
366 # Minimum disk space needed as determined by running 'du -sk' on 366 # Minimum disk space needed as determined by running 'du -sk' on
367 # a fully built workspace. 367 # a fully built workspace.
368 REQUIRED_FREE_SPACE=500000 368 REQUIRED_FREE_SPACE=500000
369 OS_VENDOR = Microsoft
370 # How much RAM does this machine have: 369 # How much RAM does this machine have:
371 ifndef MB_OF_MEMORY 370 ifndef MB_OF_MEMORY
372 MB_OF_MEMORY := $(shell \ 371 MB_OF_MEMORY := $(shell \
373 if [ -f "C:/cygwin/bin/free.exe" ] ; then \ 372 if [ -f "C:/cygwin/bin/free.exe" ] ; then \
374 ( C:/cygwin/bin/bash.exe -c "C:/cygwin/bin/free.exe -m" ) | \ 373 ( C:/cygwin/bin/bash.exe -c "C:/cygwin/bin/free.exe -m" ) | \