jdk/make/common/Defs-windows.gmk
author xdono
Wed, 02 Jul 2008 12:55:45 -0700
changeset 715 f16baef3a20e
parent 30 7ea1edf98bfe
child 917 75261da60fff
child 847 530bfef1ed6f
permissions -rw-r--r--
6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
715
f16baef3a20e 6719955: Update copyright year
xdono
parents: 30
diff changeset
     2
# Copyright 1999-2008 Sun Microsystems, Inc.  All Rights Reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Makefile to specify compiler flags for programs and libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# targeted to Windows builds.  Should not contain any rules.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# WARNING: This file is shared with other workspaces. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#          So when it includes other files, it must use JDK_TOPDIR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
# Get shared JDK settings
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
include $(JDK_MAKE_SHARED_DIR)/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
# CC compiler object code output directive flag value
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
CC_OBJECT_OUTPUT_FLAG = -Fo
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
CC_PROGRAM_OUTPUT_FLAG = -Fe
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
# The suffix applied to the library name for FDLIBM
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
FDDLIBM_SUFFIX = lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
# The suffix applied to scripts (.bat for windows, nothing for unix)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
SCRIPT_SUFFIX = .bat
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
HPIS = windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
# LIB_LOCATION, which for windows identifies where .exe files go, may be
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
# set by each GNUmakefile. The default is BINDIR.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
ifndef LIB_LOCATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
  LIB_LOCATION = $(BINDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
endif # LIB_LOCATION
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
ifndef PLATFORM_SRC
30
7ea1edf98bfe 6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents: 2
diff changeset
    54
  PLATFORM_SRC  = $(BUILDDIR)/../src/windows
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
endif # PLATFORM_SRC
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
# Platform specific closed sources
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
ifndef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
  ifndef CLOSED_PLATFORM_SRC
30
7ea1edf98bfe 6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents: 2
diff changeset
    60
    CLOSED_PLATFORM_SRC  = $(BUILDDIR)/../src/closed/windows
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
# for backwards compatability, the old "win32" is used here instead of 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
# the more proper "windows"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
PLATFORM_INCLUDE_NAME = win32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
PLATFORM_INCLUDE      = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
# The following DLL's are considered MS runtime libraries and should
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
#     not to be REBASEd, see deploy/make/common/Release.gmk.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
#     msvcrt.dll, msvcr71.dll: Microsoft runtimes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
MS_RUNTIME_LIBRARIES = msvcrt.dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
  ifeq ($(COMPILER_VERSION), VS2003)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    MS_RUNTIME_LIBRARIES += msvcr71.dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
EXTRA_LFLAGS += /LIBPATH:$(DXSDK_LIB_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
# C Compiler flag definitions
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
# Default optimization
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
ifeq ($(CC_VERSION),msvc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
  # Visual Studio .NET 2003 or VS2003 compiler option definitions:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
  #   -O1      Favors reduced size over speed (-Og     -Os -Oy -Ob2 -Gs -GF -Gy)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
  #   -O2      Favors speed over reduced size (-Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
  #   -Ox      Full optimization (use -O2)    (-Og -Oi -Ot -Oy -Ob2)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
  #              (Removed in Visual Studio 2005 or VS2005)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
  #   -Ob2     More aggressive inlining
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
  #   -Og      Global optimizations
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
  #   -Oi      Replace some functions with intrinsic or special forms
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
  #   -Op      Improve floating point calculations (disables some optimizations)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
  #              (Replaced with -fp:precise in VS2005, /Op is default now)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
  #   -Os      Favor small code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
  #   -Ot      Favor faster code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
  #   -Oy      Frame pointer omission
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
  #   -GB      Optimize for pentium (old VC6 option?)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
  #   -G6      VS2003 version of -GB?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
  #   -GF      Pool strings in read-only memory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  #   -Gf      Pool strings in read-write memory (the default)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
  #   -Gs      Controls stack probess
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
  #   -GS      Adds buffer overflow checks on stacks
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
  #              (Default in VS2005)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
  #   -GX      Enables exception handling 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
  #              (Replaced with /EHsc in VS2005)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
  #   -Gy      Function level linking only
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
  # NOTE: With VC6, -Ox included -Gs.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
  # NOTE: With VC6, -Ox, -O1, and -O2 used -Ob1, not -Ob2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
  # NOTE: With VC6, -O1 and -O2 used -Gf, not -GF.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
  #
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
  ifeq ($(COMPILER_VERSION), VC6)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    # VC6 (6.2) msvc compiler (the way Tiger and early Mustang were built)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    AUTOMATIC_PCH_OPTION =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    GX_OPTION = -GX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
      CC_HIGHEST_OPT = -Ox -Gy -Os -GB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
      CC_HIGHER_OPT  = -Ox -Gy -Os -GB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
      CC_LOWER_OPT   = -Ox -Gy -Os -GB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
      CC_HIGHEST_OPT = -Ox -Gy -Op
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
      CC_HIGHER_OPT  = -Ox -Gy -Op
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
      CC_LOWER_OPT   = -Ox -Gy -Op
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
  ifeq ($(COMPILER_VERSION), VS2003)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    AUTOMATIC_PCH_OPTION = -YX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    # Also known as VC7 compiler
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    GX_OPTION = -GX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
      # Lowered opt level to try and reduce footprint, dll size especially.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
      #     Was: CC_HIGHEST_OPT = -O2 -G6
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
      #     Was: CC_HIGHER_OPT  = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
      CC_HIGHEST_OPT = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
      CC_HIGHER_OPT  = -O1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
      CC_LOWER_OPT   = -O1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
      CC_HIGHEST_OPT = -O2 -Op
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
      CC_HIGHER_OPT  = -O2 -Op
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
      CC_LOWER_OPT   = -O1 -Op
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
  ifeq ($(COMPILER_VERSION), VS2005)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    # Automatic precompiled header option to use (if COMPILE_APPROACH=batch)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
    AUTOMATIC_PCH_OPTION =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    # VS2005 compiler, only with Platform SDK right now?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    GX_OPTION = -EHsc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
      CC_HIGHEST_OPT = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
      CC_HIGHER_OPT  = -O1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
      CC_LOWER_OPT   = -O1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
      CC_HIGHEST_OPT = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
      CC_HIGHER_OPT  = -O1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
      CC_LOWER_OPT   = -O1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
  CC_NO_OPT      = -Od
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
else # CC_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
  # GCC not supported, but left for historical reference...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
  CC_HIGHEST_OPT = -O3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
  CC_HIGHER_OPT  = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
  CC_LOWER_OPT   = -O2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
  CC_NO_OPT      = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
# If NO_OPTIMIZATIONS is defined in the environment, turn all optimzations off
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
ifdef NO_OPTIMIZATIONS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
  CC_HIGHEST_OPT = $(CC_NO_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
  CC_HIGHER_OPT  = $(CC_NO_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
  CC_LOWER_OPT   = $(CC_NO_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
ifeq ($(PRODUCT), java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
    _OPT = $(CC_HIGHER_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
    _OPT = $(CC_LOWER_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
# Select the runtime support library carefully, need to be consistent
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
# VS2003 compiler option definitions:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
#   -MD        Use dynamic multi-threaded runtime library
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
#   -MDd       Use debug version (don't use, doesn't mix with -MD DLL's)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
#   -MT        Use static multi-threaded runtime library (-ML is going away)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
#   -MTd       Use static debug version (better than -MDd, no runtime issues)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
#   -D_DEBUG   Change use of malloc/free/etc to use special debug ones (-MTd)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
#      NOTE: We also will use /D _STATIC_CPPLIB  so we don't need msvcp71.dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
ifeq ($(MS_RUNTIME_STATIC),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
  MS_RUNTIME_OPTION=-MT
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
  MS_RUNTIME_OPTION=-MD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
# The _DEBUG macro option (changes things like malloc to use debug version)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
MS_RUNTIME_DEBUG_OPTION=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
MS_RC_DEBUG_OPTION=
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
# Externally set environment variable can force any build to use the debug vers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
ifeq ($(MFC_DEBUG), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
  ifeq ($(MS_RUNTIME_STATIC),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
    MS_RUNTIME_OPTION=-MTd
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
    # This MS debugging flag forces a dependence on the debug
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    #     version of the runtime library (MSVCRTD.DLL), as does -MDd.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
    #     We cannot re-distribute this debug runtime.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
    MS_RUNTIME_OPTION=-MDd
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
  MS_RUNTIME_DEBUG_OPTION= -D_DEBUG
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
  MS_RC_DEBUG_OPTION= -d _DEBUG
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
# Always add _STATIC_CPPLIB definition
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
STATIC_CPPLIB_OPTION = /D _STATIC_CPPLIB
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
MS_RUNTIME_OPTION += $(STATIC_CPPLIB_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
ifeq ($(CC_VERSION),msvc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
  # VS2003 compiler option definitions:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
  #   -Zi      Cause *.pdb file to be created, full debug information
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
  #   -Z7      Full debug inside the .obj, no .pdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
  #   -Zd      Basic debug, no local variables? In the .obj
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
  #   -Zl      Don't add runtime library name to obj file?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
  #   -Od      Turns off optimization and speeds compilation
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
  #   -YX -Fp/.../foobar.pch   Use precompiled headers (try someday?)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
  #   -nologo  Don't print out startup message
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
  #   /D _STATIC_CPPLIB  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
  #            Use static link for the C++ runtime (so msvcp71.dll not needed)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
  #   
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
  CFLAGS_COMMON  += -Zi -nologo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
  CFLAGS_OPT      = $(POPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
  CFLAGS_DBG      = -Od $(MS_RUNTIME_DEBUG_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
  # Starting from VS2005 the wchar_t is handled as a built-in C/C++ data type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
  # by default. However, we expect the wchar_t to be a typedef to the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
  # unsigned short data type. The -Zc:wchar_t- option restores the old
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
  # behavior (as seen in VS2003) to avoid massive code modifications.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
  # When/if our code will be "C/C++ Standard"-compliant (at least in the area
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
  # of handling the wchar_t type), the option won't be necessary.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
  ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
    CFLAGS_VS2005 += -Zc:wchar_t-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    # The 64bit Platform SDK we use (April 2005) doesn't like this option
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    ifneq ($(CC_VER), 14.00.40310.41)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
      CFLAGS_VS2005 += -Zc:wchar_t-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
  # All builds get the same runtime setting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
  CFLAGS_COMMON += $(MS_RUNTIME_OPTION) $(CFLAGS_$(COMPILER_VERSION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
  LDEBUG = /debug
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
  ifeq ($(VTUNE_SUPPORT), true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
    OTHER_CFLAGS = -Z7 -Ox 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
    LDEBUG += /pdb:NONE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
  # The new Platform SDK and VS2005 has /GS as a default and requires 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
  #    bufferoverflowU.lib on the link command line, otherwise 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
  #    we get missing __security_check_cookie externals at link time. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
  BUFFEROVERFLOWLIB = bufferoverflowU.lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
  # Always add bufferoverflowU.lib to VS2005 link commands (pack uses LDDFLAGS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
  LFLAGS_VS2005 = $(BUFFEROVERFLOWLIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
  # LFLAGS are the flags given to $(LINK) and used to build the actual DLL file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
  BASELFLAGS = -nologo /opt:REF /incremental:no
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
  LFLAGS = $(BASELFLAGS) $(LDEBUG) $(EXTRA_LFLAGS) $(LFLAGS_$(COMPILER_VERSION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
  LDDFLAGS += $(LFLAGS_$(COMPILER_VERSION))
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
# Preprocessor macro definitions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
CPPFLAGS_COMMON = -DWIN32 -DIAL -D_LITTLE_ENDIAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
ifeq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
  CPPFLAGS_COMMON += -D_AMD64_ -Damd64
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
  CPPFLAGS_COMMON += -DWIN32 -D_X86_ -Dx86 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
CPPFLAGS_COMMON += -DWIN32_LEAN_AND_MEAN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
# Output options (use specific filenames to avoid parallel compile errors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
CFLAGS_COMMON += -Fd$(OBJDIR)/$(basename $(@F)).pdb -Fm$(OBJDIR)/$(basename $(@F)).map
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
# Add warnings and extra on 64bit issues
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
ifeq ($(ARCH_DATA_MODEL), 64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
  CFLAGS_COMMON += -Wp64 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
CFLAGS_COMMON += -W$(COMPILER_WARNING_LEVEL)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
# Treat compiler warnings as errors, if requested
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
ifeq ($(COMPILER_WARNINGS_FATAL),true)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
  CFLAGS_COMMON += -WX
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
CPPFLAGS_OPT    = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
CPPFLAGS_DBG    = -DDEBUG -DLOGGING
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
CXXFLAGS_COMMON = $(CFLAGS_COMMON)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
CXXFLAGS_OPT    = $(CFLAGS_OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
CXXFLAGS_DBG    = $(CFLAGS_DBG)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
ifneq ($(LIBRARY),fdlibm)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
  EXTRA_LIBS += advapi32.lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
# Path and option to link against the VM, if you have to. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
JVMLIB = $(LIBDIR)/jvm.lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
JAVALIB = $(LIBDIR)/java.lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
ifeq ($(CC_VERSION), msvc)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
  CC_DEPEND        = -FD
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
  CC_DEPEND_FILTER = 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
else # CC_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
# not supported, but left for historical reference...
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
  CC_DEPEND        = -MM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
  CC_DEPEND_FILTER = $(SED) -e 's!$*\.$(OBJECT_SUFFIX)!$(dir $@)&!g'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
endif # CC_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
LIBRARY_SUFFIX = dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
LIB_SUFFIX     = lib
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
# Settings for the JDI - Serviceability Agent binding.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
HOTSPOT_SALIB_PATH   = $(HOTSPOT_IMPORT_PATH)/jre/bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
SALIB_NAME = $(LIB_PREFIX)sawindbg.$(LIBRARY_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
SAMAP_NAME = $(LIB_PREFIX)sawindbg.map
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
SAPDB_NAME = $(LIB_PREFIX)sawindbg.pdb
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
ifeq ($(ARCH), ia64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
  # SA will never be supported here.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
  INCLUDE_SA = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
  # Hopefully, SA will be supported here one of these days,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
  # and these will be changed to true.  Until then,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
  # to build SA on windows, do a control build with
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
  #    BUILD_WIN_SA=1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
  # on the make command.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
  ifdef BUILD_WIN_SA
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
    ifeq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
      INCLUDE_SA = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
      INCLUDE_SA = true
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
    ifeq ($(ARCH), amd64)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
      INCLUDE_SA = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
    else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
      INCLUDE_SA = false
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
# Settings for the VERSIONINFO tap on windows. 
30
7ea1edf98bfe 6668781: Openjdk windows cygwin build failure: no rule to make linker_md.obj target
ohair
parents: 2
diff changeset
   370
VERSIONINFO_RESOURCE = $(BUILDDIR)/../src/windows/resource/version.rc
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
ifneq ($(JDK_BUILD_NUMBER),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
 COOKED_BUILD_NUMBER = $(shell $(ECHO) $(JDK_BUILD_NUMBER) | $(SED) -e 's/^b//' -e 's/^0//')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
 COOKED_BUILD_NUMBER = 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
# If the update version contains non-numeric characters, we need
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
# to massage it into a numeric format. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
# We use the following formula:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
# JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
# Here are some examples:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
#     1.5.0    b01  ->  5,0,0,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
#     1.5.0_10 b01  ->  5,0,100,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
#     1.4.2 b01     ->  4,2,0,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
#     1.4.2_02 b01  ->  4,2,20,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
#     1.4.2_02a b01 ->  4,2,21,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
#     1.4.2_02b b01 ->  4,2,22,1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
ifdef JDK_UPDATE_VERSION
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
  VTMP := $(shell $(ECHO) $(JDK_UPDATE_VERSION) | $(TR) "abcde" "12345")
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
  CAB_CHAR1 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 1, 1);}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
  CAB_CHAR2 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 2, 1);}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
  CAB_CHAR3 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 3, 1);}')
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
  JDK_UPDATE_META_TAG := U$(MARKETING_NUMBER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
  ifeq ($(CAB_CHAR3),)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
    CAB_CHAR3 := 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
  ifeq ($(CAB_CHAR1), 0)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
    JDK_UPDATE_VER := $(CAB_CHAR2)$(CAB_CHAR3)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
  else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
    JDK_UPDATE_VER := $(CAB_CHAR1)$(CAB_CHAR2)$(CAB_CHAR3)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
  endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
  JDK_UPDATE_VER := 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
JDK_VER = $(JDK_MINOR_VERSION),$(JDK_MICRO_VERSION),$(JDK_UPDATE_VER),$(COOKED_BUILD_NUMBER)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
RC_FLAGS = /l 0x409 /r
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
ifeq ($(VARIANT), OPT)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
  RC_FLAGS += -d NDEBUG 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
  RC_FLAGS += $(MS_RC_DEBUG_OPTION)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
endif 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
ifndef COPYRIGHT_YEAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
    COPYRIGHT_YEAR = 2007 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
# J2SE name required here
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
RC_FLAGS += -d "J2SE_BUILD_ID=$(FULL_VERSION)" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
            -d "J2SE_COMPANY=$(COMPANY_NAME)" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
            -d "J2SE_COMPONENT=$(PRODUCT_NAME) Platform SE binary" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
            -d "J2SE_VER=$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(JDK_UPDATE_VER).$(COOKED_BUILD_NUMBER)" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
            -d "J2SE_COPYRIGHT=Copyright \xA9 $(COPYRIGHT_YEAR)" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
            -d "J2SE_NAME=$(PRODUCT_NAME) Platform SE $(JDK_MINOR_VERSION) $(JDK_UPDATE_META_TAG)" \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
            -d "J2SE_FVER=$(JDK_VER)"