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