jdk/makefiles/common/shared/Defs-versions.gmk
changeset 13164 72c5d01a857d
parent 13082 9b19b2302c28
child 13167 efec101d7d87
equal deleted inserted replaced
13082:9b19b2302c28 13164:72c5d01a857d
     1 #
       
     2 # Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
       
     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
       
     7 # published by the Free Software Foundation.  Oracle designates this
       
     8 # particular file as subject to the "Classpath" exception as provided
       
     9 # by Oracle in the LICENSE file that accompanied this code.
       
    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 #
       
    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.
       
    24 #
       
    25 
       
    26 #
       
    27 # WARNING: This file is shared with other workspaces.
       
    28 #
       
    29 
       
    30 # This file needs these set: PLATFORM, ARCH_FAMILY, and ARCH_DATA_MODEL.
       
    31 
       
    32 # Windows uses Microsoft compilers by default
       
    33 ifeq ($(PLATFORM), windows)
       
    34   override CC_VERSION = msvc
       
    35 endif
       
    36 
       
    37 # Solaris uses Sun Studio compilers by default
       
    38 ifeq ($(PLATFORM), solaris)
       
    39   override CC_VERSION = sun
       
    40 endif
       
    41 
       
    42 # Linux uses GNU compilers by default
       
    43 ifeq ($(PLATFORM), linux)
       
    44   override CC_VERSION = gcc
       
    45 endif
       
    46 
       
    47 # Mac OS X uses LLVM by default
       
    48 ifeq ($(PLATFORM), macosx)
       
    49   override CC_VERSION = llvm
       
    50 endif
       
    51 
       
    52 ##########################################################################
       
    53 #
       
    54 # List of JDK official minimum, expected, or required versions:
       
    55 #
       
    56 # REQUIRED_ALSA_VERSION
       
    57 #   Linux only: The ALSA sound library version expected.
       
    58 #
       
    59 # REQUIRED_ANT_VER
       
    60 #   The minimum 'ant' version.
       
    61 #
       
    62 # REQUIRED_BOOT_VER
       
    63 #   The minimum boot jdk version.
       
    64 #
       
    65 # REQUIRED_CC_VER
       
    66 #   The primary C compiler version expected.
       
    67 #
       
    68 # REQUIRED_COMPILER_NAME
       
    69 #   The long descriptive name of the compiler we should use
       
    70 #
       
    71 # REQUIRED_COMPILER_VERSION
       
    72 #   The one word name that identifies the compilers being used.
       
    73 #
       
    74 # REQUIRED_CYGWIN_VER
       
    75 #   Windows only: If CYGWIN is used, the minimum CYGWIN version.
       
    76 #
       
    77 # REQUIRED_DXSDK_VER
       
    78 #   Windows only: The version of DirectX SDK expected.
       
    79 #
       
    80 # REQUIRED_FREETYPE_VERSION
       
    81 #   If we are using freetype, the freetype version expected.
       
    82 #
       
    83 # REQUIRED_GCC_VER
       
    84 #   Solaris and Linux only. The required version of gcc/g++ for the legacy OJI plugin.
       
    85 #
       
    86 # REQUIRED_LINK_VER
       
    87 #   Windows only: The version of link.exe expected.
       
    88 #
       
    89 # REQUIRED_MAKE_VER
       
    90 #   The minimum version of GNU make.
       
    91 #
       
    92 # REQUIRED_MKS_VER
       
    93 #   Windows only: If MKS used instead of CYGWIN, the minimum version of MKS.
       
    94 #
       
    95 # REQUIRED_OS_VARIANT_NAME
       
    96 #   The OS variation name required.
       
    97 #     Solaris: Solaris or OpenSolaris
       
    98 #     Windows: Windows2000, WindowsXP, Windows2003, etc.
       
    99 #     Linux: Fedora, RedHat, SuSE, Ubuntu, etc.
       
   100 #
       
   101 # REQUIRED_OS_VARIANT_VERSION
       
   102 #   The version number associated with the above OS variant name.
       
   103 #     Solaris: output of uname -r
       
   104 #     Windows: 5.0 for Windows2000, 5.1 for WindowsXP, 5.2 for Windows2003, etc.
       
   105 #     Linux: number for the variant, e.g. 9 for Fedora 9
       
   106 #
       
   107 # REQUIRED_OS_VERSION
       
   108 #   The formal OS version number.
       
   109 #     Solaris & Windows: same as REQUIRED_OS_VARIANT_VERSION
       
   110 #     Linux: the kernel version, or output of uname -r
       
   111 #
       
   112 # REQUIRED_UNZIP_VER
       
   113 #   The minimum version of unzip.
       
   114 #
       
   115 # REQUIRED_ZIP_VER
       
   116 #   The minimum version of unzip.
       
   117 #
       
   118 ###########
       
   119 #
       
   120 # Differences in the build platform from these versions may trigger warnings
       
   121 #   messages during the sanity checking when building the JDK.
       
   122 #
       
   123 # When building the OpenJDK most of these required or expected  versions are 
       
   124 #  ignored or allowed to vary widely to accomodate the many build situations
       
   125 #  of the OpenJDK.
       
   126 #
       
   127 ##########################################################################
       
   128 
       
   129 # Solaris specific
       
   130 ifeq ($(PLATFORM), solaris)
       
   131   REQUIRED_OS_NAME            = SunOS
       
   132   REQUIRED_OS_VERSION         = 5.10
       
   133   REQUIRED_OS_VARIANT_NAME    = Solaris
       
   134   REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
       
   135   REQUIRED_COMPILER_NAME      = Sun Studio 12 Update 1
       
   136   REQUIRED_COMPILER_VERSION   = SS12u1
       
   137   # Cross-compilation compiler versions are target specific
       
   138   # so don't set a required version if cross-compiling
       
   139   ifndef CROSS_COMPILE_ARCH
       
   140     ifeq ($(CC_VERSION),sun)
       
   141       REQUIRED_CC_VER           = 5.10
       
   142     endif
       
   143     ifeq ($(CC_VERSION),gcc)
       
   144       REQUIRED_CC_VER           = 3.4.3
       
   145     endif
       
   146   endif
       
   147   REQUIRED_GCC_VER            = 2.95.2
       
   148 endif
       
   149 
       
   150 # Linux specific
       
   151 ifeq ($(PLATFORM), linux)
       
   152   REQUIRED_OS_NAME            = Linux
       
   153   REQUIRED_OS_VERSION         = 2.6
       
   154   REQUIRED_OS_VARIANT_NAME    = Fedora
       
   155   REQUIRED_OS_VARIANT_VERSION = 9
       
   156   REQUIRED_ALSA_VERSION       = 0.9.1
       
   157   REQUIRED_COMPILER_NAME      = GCC4
       
   158   REQUIRED_COMPILER_VERSION   = GCC4
       
   159   REQUIRED_GCC_VER            = 2.95
       
   160   # Cross-compilation compiler versions are target specific
       
   161   # so don't set a required version if cross-compiling
       
   162   ifndef CROSS_COMPILE_ARCH
       
   163     ifeq ($(CC_VERSION),gcc)
       
   164       REQUIRED_CC_VER           = 4.3.0
       
   165     endif
       
   166     ifeq ($(CC_VERSION),sun)
       
   167       REQUIRED_CC_VER           = 5.10
       
   168     endif
       
   169   endif
       
   170 endif
       
   171 
       
   172 # Mac specific
       
   173 ifeq ($(PLATFORM), macosx)
       
   174   REQUIRED_OS_NAME            = Darwin
       
   175   REQUIRED_OS_VERSION         = 11.2
       
   176   REQUIRED_OS_VARIANT_NAME    = MacOSX
       
   177   REQUIRED_OS_VARIANT_VERSION = 10.7.2
       
   178   REQUIRED_COMPILER_NAME      = GCC4
       
   179   REQUIRED_COMPILER_VERSION   = GCC4
       
   180   REQUIRED_CC_VER             = 4.2.1
       
   181 endif
       
   182 
       
   183 # Windows specific
       
   184 ifeq ($(PLATFORM), windows)
       
   185   REQUIRED_OS_NAME            = Windows
       
   186   ifeq ($(ARCH_DATA_MODEL),64)
       
   187     REQUIRED_OS_VERSION       = 5.2
       
   188     REQUIRED_OS_VARIANT_NAME  = Windows2003
       
   189   else
       
   190     REQUIRED_OS_VERSION       = 5.1
       
   191     REQUIRED_OS_VARIANT_NAME  = WindowsXP
       
   192   endif
       
   193   REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
       
   194   REQUIRED_CYGWIN_VER         = 4.0
       
   195   REQUIRED_MKS_VER            = 6.1
       
   196   REQUIRED_DXSDK_VER          = 0x0900
       
   197   ifeq ($(CC_VERSION),msvc)
       
   198     REQUIRED_COMPILER_NAME    = Visual Studio 10
       
   199     REQUIRED_COMPILER_VERSION = VS2010
       
   200     REQUIRED_CC_VER           = 16.00.30319.01
       
   201     REQUIRED_LINK_VER         = 10.00.30319.01
       
   202   endif
       
   203   ifeq ($(CC_VERSION),gcc)
       
   204     REQUIRED_CC_VER           = 3.4.3
       
   205   endif
       
   206 endif
       
   207 
       
   208 # Generic
       
   209 REQUIRED_ANT_VER          = 1.7.1
       
   210 REQUIRED_BOOT_VER         = 1.7
       
   211 REQUIRED_FREETYPE_VERSION = 2.3.0
       
   212 REQUIRED_MAKE_VER         = 3.81
       
   213 REQUIRED_UNZIP_VER        = 5.12
       
   214 REQUIRED_ZIP_VER          = 2.2
       
   215