annotate make/common/Defs-windows.gmk @ 422:c51121419e30

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