2009-01-31 17:31:21 -08:00
|
|
|
#
|
2011-03-16 18:54:50 -04:00
|
|
|
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
|
2009-01-31 17:31:21 -08:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
2010-05-25 15:58:33 -07:00
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
2009-01-31 17:31:21 -08:00
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
2010-05-25 15:58:33 -07:00
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
2009-01-31 17:31:21 -08:00
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
2010-05-25 15:58:33 -07:00
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
2009-01-31 17:31:21 -08:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# WARNING: This file is shared with other workspaces.
|
|
|
|
#
|
|
|
|
|
2010-12-21 18:21:26 -08:00
|
|
|
# This file needs these set: PLATFORM, ARCH_FAMILY, and ARCH_DATA_MODEL.
|
|
|
|
|
|
|
|
# Windows uses Microsoft compilers by default
|
|
|
|
ifeq ($(PLATFORM), windows)
|
|
|
|
override CC_VERSION = msvc
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Solaris uses Sun Studio compilers by default
|
|
|
|
ifeq ($(PLATFORM), solaris)
|
|
|
|
override CC_VERSION = sun
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Linux uses GNU compilers by default
|
|
|
|
ifeq ($(PLATFORM), linux)
|
|
|
|
override CC_VERSION = gcc
|
|
|
|
endif
|
2009-01-31 17:31:21 -08:00
|
|
|
|
2012-03-06 20:34:38 +00:00
|
|
|
# Mac OS X uses LLVM by default
|
|
|
|
ifeq ($(PLATFORM), macosx)
|
|
|
|
override CC_VERSION = llvm
|
|
|
|
endif
|
|
|
|
|
2009-01-31 17:31:21 -08:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# List of JDK official minimum, expected, or required versions:
|
|
|
|
#
|
|
|
|
# REQUIRED_ALSA_VERSION
|
|
|
|
# Linux only: The ALSA sound library version expected.
|
|
|
|
#
|
|
|
|
# REQUIRED_ANT_VER
|
|
|
|
# The minimum 'ant' version.
|
|
|
|
#
|
|
|
|
# REQUIRED_BOOT_VER
|
|
|
|
# The minimum boot jdk version.
|
|
|
|
#
|
|
|
|
# REQUIRED_CC_VER
|
|
|
|
# The primary C compiler version expected.
|
|
|
|
#
|
2009-03-16 11:24:06 -07:00
|
|
|
# REQUIRED_COMPILER_NAME
|
|
|
|
# The long descriptive name of the compiler we should use
|
|
|
|
#
|
|
|
|
# REQUIRED_COMPILER_VERSION
|
|
|
|
# The one word name that identifies the compilers being used.
|
|
|
|
#
|
2009-01-31 17:31:21 -08:00
|
|
|
# REQUIRED_CYGWIN_VER
|
|
|
|
# Windows only: If CYGWIN is used, the minimum CYGWIN version.
|
|
|
|
#
|
|
|
|
# REQUIRED_DXSDK_VER
|
|
|
|
# Windows only: The version of DirectX SDK expected.
|
|
|
|
#
|
|
|
|
# REQUIRED_FREETYPE_VERSION
|
|
|
|
# If we are using freetype, the freetype version expected.
|
|
|
|
#
|
|
|
|
# REQUIRED_GCC_VER
|
2010-12-06 19:37:40 -08:00
|
|
|
# Solaris and Linux only. The required version of gcc/g++ for the legacy OJI plugin.
|
2009-01-31 17:31:21 -08:00
|
|
|
#
|
|
|
|
# REQUIRED_LINK_VER
|
|
|
|
# Windows only: The version of link.exe expected.
|
|
|
|
#
|
|
|
|
# REQUIRED_MAKE_VER
|
|
|
|
# The minimum version of GNU make.
|
|
|
|
#
|
|
|
|
# REQUIRED_MKS_VER
|
|
|
|
# Windows only: If MKS used instead of CYGWIN, the minimum version of MKS.
|
|
|
|
#
|
|
|
|
# REQUIRED_OS_VARIANT_NAME
|
|
|
|
# The OS variation name required.
|
|
|
|
# Solaris: Solaris or OpenSolaris
|
|
|
|
# Windows: Windows2000, WindowsXP, Windows2003, etc.
|
|
|
|
# Linux: Fedora, RedHat, SuSE, Ubuntu, etc.
|
|
|
|
#
|
|
|
|
# REQUIRED_OS_VARIANT_VERSION
|
|
|
|
# The version number associated with the above OS variant name.
|
|
|
|
# Solaris: output of uname -r
|
|
|
|
# Windows: 5.0 for Windows2000, 5.1 for WindowsXP, 5.2 for Windows2003, etc.
|
|
|
|
# Linux: number for the variant, e.g. 9 for Fedora 9
|
|
|
|
#
|
|
|
|
# REQUIRED_OS_VERSION
|
|
|
|
# The formal OS version number.
|
|
|
|
# Solaris & Windows: same as REQUIRED_OS_VARIANT_VERSION
|
|
|
|
# Linux: the kernel version, or output of uname -r
|
|
|
|
#
|
|
|
|
# REQUIRED_UNZIP_VER
|
|
|
|
# The minimum version of unzip.
|
|
|
|
#
|
|
|
|
# REQUIRED_ZIP_VER
|
|
|
|
# The minimum version of unzip.
|
|
|
|
#
|
|
|
|
###########
|
|
|
|
#
|
|
|
|
# Differences in the build platform from these versions may trigger warnings
|
|
|
|
# messages during the sanity checking when building the JDK.
|
|
|
|
#
|
|
|
|
# When building the OpenJDK most of these required or expected versions are
|
|
|
|
# ignored or allowed to vary widely to accomodate the many build situations
|
|
|
|
# of the OpenJDK.
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
# Solaris specific
|
|
|
|
ifeq ($(PLATFORM), solaris)
|
2011-01-10 18:07:58 -08:00
|
|
|
REQUIRED_OS_NAME = SunOS
|
2009-01-31 17:31:21 -08:00
|
|
|
REQUIRED_OS_VERSION = 5.10
|
|
|
|
REQUIRED_OS_VARIANT_NAME = Solaris
|
|
|
|
REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
|
2010-09-08 15:12:37 -07:00
|
|
|
REQUIRED_COMPILER_NAME = Sun Studio 12 Update 1
|
|
|
|
REQUIRED_COMPILER_VERSION = SS12u1
|
2011-03-16 18:54:50 -04:00
|
|
|
# Cross-compilation compiler versions are target specific
|
|
|
|
# so don't set a required version if cross-compiling
|
|
|
|
ifndef CROSS_COMPILE_ARCH
|
|
|
|
ifeq ($(CC_VERSION),sun)
|
|
|
|
REQUIRED_CC_VER = 5.10
|
|
|
|
endif
|
|
|
|
ifeq ($(CC_VERSION),gcc)
|
|
|
|
REQUIRED_CC_VER = 3.4.3
|
|
|
|
endif
|
2009-01-31 17:31:21 -08:00
|
|
|
endif
|
|
|
|
REQUIRED_GCC_VER = 2.95.2
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Linux specific
|
|
|
|
ifeq ($(PLATFORM), linux)
|
2011-01-10 18:07:58 -08:00
|
|
|
REQUIRED_OS_NAME = Linux
|
2009-01-31 17:31:21 -08:00
|
|
|
REQUIRED_OS_VERSION = 2.6
|
|
|
|
REQUIRED_OS_VARIANT_NAME = Fedora
|
|
|
|
REQUIRED_OS_VARIANT_VERSION = 9
|
|
|
|
REQUIRED_ALSA_VERSION = 0.9.1
|
2009-03-16 11:24:06 -07:00
|
|
|
REQUIRED_COMPILER_NAME = GCC4
|
|
|
|
REQUIRED_COMPILER_VERSION = GCC4
|
2009-01-31 17:31:21 -08:00
|
|
|
REQUIRED_GCC_VER = 2.95
|
2011-03-16 18:54:50 -04:00
|
|
|
# Cross-compilation compiler versions are target specific
|
|
|
|
# so don't set a required version if cross-compiling
|
|
|
|
ifndef CROSS_COMPILE_ARCH
|
|
|
|
ifeq ($(CC_VERSION),gcc)
|
|
|
|
REQUIRED_CC_VER = 4.3.0
|
|
|
|
endif
|
|
|
|
ifeq ($(CC_VERSION),sun)
|
|
|
|
REQUIRED_CC_VER = 5.10
|
|
|
|
endif
|
2009-01-31 17:31:21 -08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2012-03-06 20:34:38 +00:00
|
|
|
# Mac specific
|
|
|
|
ifeq ($(PLATFORM), macosx)
|
|
|
|
REQUIRED_OS_NAME = Darwin
|
|
|
|
REQUIRED_OS_VERSION = 11.2
|
|
|
|
REQUIRED_OS_VARIANT_NAME = MacOSX
|
|
|
|
REQUIRED_OS_VARIANT_VERSION = 10.7.2
|
|
|
|
REQUIRED_COMPILER_NAME = GCC4
|
|
|
|
REQUIRED_COMPILER_VERSION = GCC4
|
|
|
|
REQUIRED_CC_VER = 4.2.1
|
|
|
|
endif
|
|
|
|
|
2009-01-31 17:31:21 -08:00
|
|
|
# Windows specific
|
|
|
|
ifeq ($(PLATFORM), windows)
|
2011-01-10 18:07:58 -08:00
|
|
|
REQUIRED_OS_NAME = Windows
|
2009-01-31 17:31:21 -08:00
|
|
|
ifeq ($(ARCH_DATA_MODEL),64)
|
|
|
|
REQUIRED_OS_VERSION = 5.2
|
|
|
|
REQUIRED_OS_VARIANT_NAME = Windows2003
|
|
|
|
else
|
|
|
|
REQUIRED_OS_VERSION = 5.1
|
|
|
|
REQUIRED_OS_VARIANT_NAME = WindowsXP
|
|
|
|
endif
|
|
|
|
REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
|
|
|
|
REQUIRED_CYGWIN_VER = 4.0
|
|
|
|
REQUIRED_MKS_VER = 6.1
|
|
|
|
REQUIRED_DXSDK_VER = 0x0900
|
|
|
|
ifeq ($(CC_VERSION),msvc)
|
2011-03-29 11:29:01 -07:00
|
|
|
REQUIRED_COMPILER_NAME = Visual Studio 10
|
|
|
|
REQUIRED_COMPILER_VERSION = VS2010
|
|
|
|
REQUIRED_CC_VER = 16.00.30319.01
|
|
|
|
REQUIRED_LINK_VER = 10.00.30319.01
|
2009-01-31 17:31:21 -08:00
|
|
|
endif
|
|
|
|
ifeq ($(CC_VERSION),gcc)
|
|
|
|
REQUIRED_CC_VER = 3.4.3
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Generic
|
2011-02-08 16:30:29 -08:00
|
|
|
REQUIRED_ANT_VER = 1.7.1
|
2011-06-30 16:48:44 -07:00
|
|
|
REQUIRED_BOOT_VER = 1.7
|
2009-01-31 17:31:21 -08:00
|
|
|
REQUIRED_FREETYPE_VERSION = 2.3.0
|
2010-12-18 18:28:01 -08:00
|
|
|
REQUIRED_MAKE_VER = 3.81
|
2009-01-31 17:31:21 -08:00
|
|
|
REQUIRED_UNZIP_VER = 5.12
|
|
|
|
REQUIRED_ZIP_VER = 2.2
|
|
|
|
|