author | wetmore |
Mon, 03 Aug 2009 18:06:51 -0700 | |
changeset 3353 | ddbd63234844 |
parent 3229 | 6fc2e89be40c |
child 5381 | d6d64a42ff51 |
permissions | -rw-r--r-- |
2 | 1 |
# |
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
2 |
# Copyright 1999-2009 Sun Microsystems, Inc. All Rights Reserved. |
2 | 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 |
|
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 | 55 |
endif # PLATFORM_SRC |
56 |
||
57 |
# Platform specific closed sources |
|
58 |
ifndef OPENJDK |
|
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 | 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. |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
71 |
# msvcrt.dll, msvcrnn.dll [msvcr71 or msvcr80 or msvcr90] : Microsoft runtimes |
2 | 72 |
MS_RUNTIME_LIBRARIES = msvcrt.dll |
73 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
74 |
ifeq ($(COMPILER_VERSION), VS2003) |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
75 |
MSVCRNN_DLL = msvcr71.dll |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
76 |
MSVCPNN_DLL = msvcp71.dll |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
77 |
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
78 |
endif |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
79 |
ifeq ($(COMPILER_VERSION), VS2005) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
80 |
MSVCRNN_DLL = msvcr80.dll |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
81 |
MSVCPNN_DLL = msvcp80.dll |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
82 |
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
83 |
endif |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
84 |
ifeq ($(COMPILER_VERSION), VS2008) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
85 |
MSVCRNN_DLL = msvcr90.dll |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
86 |
MSVCPNN_DLL = msvcp90.dll |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
87 |
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL) |
2 | 88 |
endif |
89 |
endif |
|
90 |
||
2186
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
91 |
ifeq ($(ARCH_DATA_MODEL), 64) |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
92 |
ifeq ($(COMPILER_VERSION), VS2008) |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
93 |
MSVCRNN_DLL = msvcr90.dll |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
94 |
MSVCPNN_DLL = msvcp90.dll |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
95 |
MS_RUNTIME_LIBRARIES += $(MSVCRNN_DLL) |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
96 |
endif |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
97 |
endif |
2 | 98 |
|
99 |
EXTRA_LFLAGS += /LIBPATH:$(DXSDK_LIB_PATH) |
|
100 |
||
101 |
# C Compiler flag definitions |
|
102 |
||
103 |
# |
|
104 |
# Default optimization |
|
105 |
# |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
106 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
107 |
ifndef OPTIMIZATION_LEVEL |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
108 |
ifeq ($(PRODUCT), java) |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
109 |
OPTIMIZATION_LEVEL = HIGHER |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
110 |
else |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
111 |
OPTIMIZATION_LEVEL = LOWER |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
112 |
endif |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
113 |
endif |
2398
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2186
diff
changeset
|
114 |
ifndef FASTDEBUG_OPTIMIZATION_LEVEL |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2186
diff
changeset
|
115 |
FASTDEBUG_OPTIMIZATION_LEVEL = LOWER |
b0e6622ee72e
6604458: linux_x64-fastdebug-c2 fails on hyperbolic trig tests
ohair
parents:
2186
diff
changeset
|
116 |
endif |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
117 |
|
2 | 118 |
ifeq ($(CC_VERSION),msvc) |
119 |
# Visual Studio .NET 2003 or VS2003 compiler option definitions: |
|
120 |
# -O1 Favors reduced size over speed (-Og -Os -Oy -Ob2 -Gs -GF -Gy) |
|
121 |
# -O2 Favors speed over reduced size (-Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy) |
|
122 |
# -Ox Full optimization (use -O2) (-Og -Oi -Ot -Oy -Ob2) |
|
123 |
# (Removed in Visual Studio 2005 or VS2005) |
|
124 |
# -Ob2 More aggressive inlining |
|
125 |
# -Og Global optimizations |
|
126 |
# -Oi Replace some functions with intrinsic or special forms |
|
127 |
# -Op Improve floating point calculations (disables some optimizations) |
|
128 |
# (Replaced with -fp:precise in VS2005, /Op is default now) |
|
129 |
# -Os Favor small code |
|
130 |
# -Ot Favor faster code |
|
131 |
# -Oy Frame pointer omission |
|
132 |
# -GB Optimize for pentium (old VC6 option?) |
|
133 |
# -G6 VS2003 version of -GB? |
|
134 |
# -GF Pool strings in read-only memory |
|
135 |
# -Gf Pool strings in read-write memory (the default) |
|
136 |
# -Gs Controls stack probess |
|
137 |
# -GS Adds buffer overflow checks on stacks |
|
138 |
# (Default in VS2005) |
|
139 |
# -GX Enables exception handling |
|
140 |
# (Replaced with /EHsc in VS2005) |
|
141 |
# -Gy Function level linking only |
|
142 |
# |
|
143 |
# NOTE: With VC6, -Ox included -Gs. |
|
144 |
# NOTE: With VC6, -Ox, -O1, and -O2 used -Ob1, not -Ob2. |
|
145 |
# NOTE: With VC6, -O1 and -O2 used -Gf, not -GF. |
|
146 |
# |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
147 |
|
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
148 |
CC_OPT/NONE = -Od |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
149 |
CC_OPT/LOWER = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
150 |
CC_OPT/HIGHER = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
151 |
CC_OPT/HIGHEST = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
152 |
|
2 | 153 |
ifeq ($(COMPILER_VERSION), VC6) |
154 |
# VC6 (6.2) msvc compiler (the way Tiger and early Mustang were built) |
|
155 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
|
156 |
AUTOMATIC_PCH_OPTION = |
|
157 |
GX_OPTION = -GX |
|
158 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
159 |
CC_OPT/HIGHEST = -Ox -Gy -Os -GB |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
160 |
CC_OPT/HIGHER = -Ox -Gy -Os -GB |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
161 |
CC_OPT/LOWER = -Ox -Gy -Os -GB |
2 | 162 |
else |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
163 |
CC_OPT/HIGHEST = -Ox -Gy -Op |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
164 |
CC_OPT/HIGHER = -Ox -Gy -Op |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
165 |
CC_OPT/LOWER = -Ox -Gy -Op |
2 | 166 |
endif |
167 |
endif |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
168 |
|
2 | 169 |
ifeq ($(COMPILER_VERSION), VS2003) |
170 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
|
171 |
AUTOMATIC_PCH_OPTION = -YX |
|
172 |
# Also known as VC7 compiler |
|
173 |
GX_OPTION = -GX |
|
174 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
175 |
# Lowered opt level to try and reduce footprint, dll size especially. |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
176 |
# Was: CC_OPT/HIGHEST = -O2 -G6 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
177 |
# Was: CC_OPT/HIGHER = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
178 |
CC_OPT/HIGHEST = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
179 |
CC_OPT/HIGHER = -O1 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
180 |
CC_OPT/LOWER = -O1 |
2 | 181 |
else |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
182 |
CC_OPT/HIGHEST = -O2 -Op |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
183 |
CC_OPT/HIGHER = -O2 -Op |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
184 |
CC_OPT/LOWER = -O1 -Op |
2 | 185 |
endif |
186 |
endif |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
187 |
|
2 | 188 |
ifeq ($(COMPILER_VERSION), VS2005) |
189 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
|
190 |
AUTOMATIC_PCH_OPTION = |
|
191 |
# VS2005 compiler, only with Platform SDK right now? |
|
192 |
GX_OPTION = -EHsc |
|
193 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
194 |
CC_OPT/HIGHEST = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
195 |
CC_OPT/HIGHER = -O1 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
196 |
CC_OPT/LOWER = -O1 |
2 | 197 |
else |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
198 |
CC_OPT/HIGHEST = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
199 |
CC_OPT/HIGHER = -O1 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
200 |
CC_OPT/LOWER = -O1 |
2 | 201 |
endif |
202 |
endif |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
203 |
ifeq ($(COMPILER_VERSION), VS2008) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
204 |
# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
205 |
AUTOMATIC_PCH_OPTION = |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
206 |
GX_OPTION = -EHsc |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
207 |
ifeq ($(ARCH_DATA_MODEL), 32) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
208 |
CC_OPT/HIGHEST = -O2 |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
209 |
CC_OPT/HIGHER = -O1 |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
210 |
CC_OPT/LOWER = -O1 |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
211 |
else |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
212 |
CC_OPT/HIGHEST = -O2 |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
213 |
CC_OPT/HIGHER = -O1 |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
214 |
CC_OPT/LOWER = -O1 |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
215 |
endif |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
216 |
endif |
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
217 |
|
2 | 218 |
else # CC_VERSION |
219 |
# GCC not supported, but left for historical reference... |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
220 |
CC_OPT/NONE = |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
221 |
CC_OPT/LOWER = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
222 |
CC_OPT/HIGHER = -O2 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
223 |
CC_OPT/HIGHEST = -O3 |
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
224 |
|
2 | 225 |
endif |
226 |
||
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
227 |
CC_OPT = $(CC_OPT/$(OPTIMIZATION_LEVEL)) |
2 | 228 |
|
229 |
# Select the runtime support library carefully, need to be consistent |
|
230 |
# |
|
231 |
# VS2003 compiler option definitions: |
|
232 |
# -MD Use dynamic multi-threaded runtime library |
|
233 |
# -MDd Use debug version (don't use, doesn't mix with -MD DLL's) |
|
234 |
# -MT Use static multi-threaded runtime library (-ML is going away) |
|
235 |
# -MTd Use static debug version (better than -MDd, no runtime issues) |
|
236 |
# -D_DEBUG Change use of malloc/free/etc to use special debug ones (-MTd) |
|
237 |
# |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
238 |
# NOTE: We also will use /D _STATIC_CPPLIB so we don't need msvcpnn.dll |
2 | 239 |
# |
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
240 |
# If MS_RUNTIME_STATIC is requested, use -MT only with VS2003. |
2 | 241 |
ifeq ($(MS_RUNTIME_STATIC),true) |
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
242 |
ifeq ($(COMPILER_VERSION), VS2003) |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
243 |
MS_RUNTIME_OPTION=-MT |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
244 |
endif |
2 | 245 |
else |
246 |
MS_RUNTIME_OPTION=-MD |
|
247 |
endif |
|
248 |
# The _DEBUG macro option (changes things like malloc to use debug version) |
|
249 |
MS_RUNTIME_DEBUG_OPTION= |
|
250 |
MS_RC_DEBUG_OPTION= |
|
251 |
# Externally set environment variable can force any build to use the debug vers |
|
252 |
ifeq ($(MFC_DEBUG), true) |
|
253 |
ifeq ($(MS_RUNTIME_STATIC),true) |
|
254 |
MS_RUNTIME_OPTION=-MTd |
|
255 |
else |
|
256 |
# This MS debugging flag forces a dependence on the debug |
|
257 |
# version of the runtime library (MSVCRTD.DLL), as does -MDd. |
|
258 |
# We cannot re-distribute this debug runtime. |
|
259 |
MS_RUNTIME_OPTION=-MDd |
|
260 |
endif |
|
261 |
MS_RUNTIME_DEBUG_OPTION= -D_DEBUG |
|
262 |
MS_RC_DEBUG_OPTION= -d _DEBUG |
|
263 |
endif |
|
264 |
||
265 |
# Always add _STATIC_CPPLIB definition |
|
266 |
STATIC_CPPLIB_OPTION = /D _STATIC_CPPLIB |
|
267 |
MS_RUNTIME_OPTION += $(STATIC_CPPLIB_OPTION) |
|
268 |
||
269 |
ifeq ($(CC_VERSION),msvc) |
|
270 |
# VS2003 compiler option definitions: |
|
271 |
# -Zi Cause *.pdb file to be created, full debug information |
|
272 |
# -Z7 Full debug inside the .obj, no .pdb |
|
273 |
# -Zd Basic debug, no local variables? In the .obj |
|
274 |
# -Zl Don't add runtime library name to obj file? |
|
275 |
# -Od Turns off optimization and speeds compilation |
|
276 |
# -YX -Fp/.../foobar.pch Use precompiled headers (try someday?) |
|
277 |
# -nologo Don't print out startup message |
|
278 |
# /D _STATIC_CPPLIB |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
279 |
# Use static link for the C++ runtime (so msvcpnn.dll not needed) |
2 | 280 |
# |
281 |
CFLAGS_COMMON += -Zi -nologo |
|
917
75261da60fff
6729772: 64-bit build with SS12 compiler: SIGSEGV (0xb) at pc=0x0000000000000048, pid=14826, tid=2
ohair
parents:
715
diff
changeset
|
282 |
CFLAGS_OPT = $(CC_OPT) |
2 | 283 |
CFLAGS_DBG = -Od $(MS_RUNTIME_DEBUG_OPTION) |
284 |
||
285 |
# Starting from VS2005 the wchar_t is handled as a built-in C/C++ data type |
|
286 |
# by default. However, we expect the wchar_t to be a typedef to the |
|
287 |
# unsigned short data type. The -Zc:wchar_t- option restores the old |
|
288 |
# behavior (as seen in VS2003) to avoid massive code modifications. |
|
289 |
# When/if our code will be "C/C++ Standard"-compliant (at least in the area |
|
290 |
# of handling the wchar_t type), the option won't be necessary. |
|
291 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
292 |
CFLAGS_VS2005 += -Zc:wchar_t- |
|
293 |
else |
|
294 |
# The 64bit Platform SDK we use (April 2005) doesn't like this option |
|
295 |
ifneq ($(CC_VER), 14.00.40310.41) |
|
296 |
CFLAGS_VS2005 += -Zc:wchar_t- |
|
297 |
endif |
|
298 |
endif |
|
299 |
||
300 |
# All builds get the same runtime setting |
|
301 |
CFLAGS_COMMON += $(MS_RUNTIME_OPTION) $(CFLAGS_$(COMPILER_VERSION)) |
|
302 |
||
303 |
||
304 |
LDEBUG = /debug |
|
305 |
||
306 |
ifeq ($(VTUNE_SUPPORT), true) |
|
307 |
OTHER_CFLAGS = -Z7 -Ox |
|
308 |
LDEBUG += /pdb:NONE |
|
309 |
endif |
|
310 |
||
311 |
# The new Platform SDK and VS2005 has /GS as a default and requires |
|
312 |
# bufferoverflowU.lib on the link command line, otherwise |
|
313 |
# we get missing __security_check_cookie externals at link time. |
|
314 |
BUFFEROVERFLOWLIB = bufferoverflowU.lib |
|
315 |
# Always add bufferoverflowU.lib to VS2005 link commands (pack uses LDDFLAGS) |
|
316 |
LFLAGS_VS2005 = $(BUFFEROVERFLOWLIB) |
|
317 |
||
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
318 |
# VS2008 has bufferoverflow baked in: |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
319 |
LFLAGS_VS2008 = |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
320 |
|
2 | 321 |
# LFLAGS are the flags given to $(LINK) and used to build the actual DLL file |
322 |
BASELFLAGS = -nologo /opt:REF /incremental:no |
|
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
323 |
ifdef MT |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
324 |
# VS2005, VS2008, and beyond: ask LINK to generate manifests for .dll & .exe |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
325 |
BASELFLAGS += /manifest |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
326 |
endif |
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
919
diff
changeset
|
327 |
|
2 | 328 |
LFLAGS = $(BASELFLAGS) $(LDEBUG) $(EXTRA_LFLAGS) $(LFLAGS_$(COMPILER_VERSION)) |
329 |
LDDFLAGS += $(LFLAGS_$(COMPILER_VERSION)) |
|
330 |
||
331 |
endif |
|
332 |
||
333 |
# |
|
334 |
# Preprocessor macro definitions |
|
335 |
# |
|
336 |
CPPFLAGS_COMMON = -DWIN32 -DIAL -D_LITTLE_ENDIAN |
|
337 |
ifeq ($(ARCH), amd64) |
|
338 |
CPPFLAGS_COMMON += -D_AMD64_ -Damd64 |
|
339 |
else |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
340 |
CPPFLAGS_COMMON += -D_X86_ -Dx86 |
2 | 341 |
endif |
342 |
CPPFLAGS_COMMON += -DWIN32_LEAN_AND_MEAN |
|
343 |
||
344 |
# |
|
345 |
# Output options (use specific filenames to avoid parallel compile errors) |
|
346 |
# |
|
347 |
CFLAGS_COMMON += -Fd$(OBJDIR)/$(basename $(@F)).pdb -Fm$(OBJDIR)/$(basename $(@F)).map |
|
348 |
||
349 |
# |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
350 |
# Use -wdNNNN to disable warning NNNN. |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
351 |
# C4800 is a warning about bool performance casts (can't make go away) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
352 |
# |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
353 |
COMPILER_WARNINGS_TO_IGNORE = 4800 |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
354 |
CFLAGS_COMMON += $(COMPILER_WARNINGS_TO_IGNORE:%=-wd%) |
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
355 |
|
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
356 |
# |
2 | 357 |
# Treat compiler warnings as errors, if requested |
358 |
# |
|
849
be386e469547
6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles
ohair
parents:
847
diff
changeset
|
359 |
CFLAGS_COMMON += -W$(COMPILER_WARNING_LEVEL) |
2186
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
360 |
# Turn off security warnings about using the standard C library function strcpy |
53da56fa3bf9
6816311: Changes to allow builds with latest Windows SDK 6.1 on 64bit Windows 2003
ohair
parents:
2055
diff
changeset
|
361 |
CFLAGS_COMMON += -D _CRT_SECURE_NO_DEPRECATE |
2 | 362 |
ifeq ($(COMPILER_WARNINGS_FATAL),true) |
363 |
CFLAGS_COMMON += -WX |
|
364 |
endif |
|
365 |
||
3222
432b8f34c3b0
6858127: Missing -DNDEBUG on Linux and Windows native code compiles
ohair
parents:
2398
diff
changeset
|
366 |
CPPFLAGS_OPT = -DNDEBUG |
2 | 367 |
CPPFLAGS_DBG = -DDEBUG -DLOGGING |
368 |
||
369 |
CXXFLAGS_COMMON = $(CFLAGS_COMMON) |
|
370 |
CXXFLAGS_OPT = $(CFLAGS_OPT) |
|
371 |
CXXFLAGS_DBG = $(CFLAGS_DBG) |
|
372 |
||
373 |
ifneq ($(LIBRARY),fdlibm) |
|
374 |
EXTRA_LIBS += advapi32.lib |
|
375 |
endif |
|
376 |
||
377 |
# |
|
378 |
# Path and option to link against the VM, if you have to. |
|
379 |
# |
|
380 |
JVMLIB = $(LIBDIR)/jvm.lib |
|
381 |
JAVALIB = $(LIBDIR)/java.lib |
|
382 |
||
383 |
ifeq ($(CC_VERSION), msvc) |
|
384 |
CC_DEPEND = -FD |
|
385 |
CC_DEPEND_FILTER = |
|
386 |
else # CC_VERSION |
|
387 |
# not supported, but left for historical reference... |
|
388 |
CC_DEPEND = -MM |
|
389 |
CC_DEPEND_FILTER = $(SED) -e 's!$*\.$(OBJECT_SUFFIX)!$(dir $@)&!g' |
|
390 |
endif # CC_VERSION |
|
391 |
||
392 |
LIBRARY_SUFFIX = dll |
|
393 |
LIB_SUFFIX = lib |
|
394 |
||
395 |
# Settings for the JDI - Serviceability Agent binding. |
|
396 |
HOTSPOT_SALIB_PATH = $(HOTSPOT_IMPORT_PATH)/jre/bin |
|
397 |
SALIB_NAME = $(LIB_PREFIX)sawindbg.$(LIBRARY_SUFFIX) |
|
398 |
SAMAP_NAME = $(LIB_PREFIX)sawindbg.map |
|
399 |
SAPDB_NAME = $(LIB_PREFIX)sawindbg.pdb |
|
400 |
||
401 |
ifeq ($(ARCH), ia64) |
|
402 |
# SA will never be supported here. |
|
403 |
INCLUDE_SA = false |
|
404 |
else |
|
2055 | 405 |
INCLUDE_SA = true |
2 | 406 |
endif |
407 |
||
408 |
# 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
|
409 |
VERSIONINFO_RESOURCE = $(BUILDDIR)/../src/windows/resource/version.rc |
2 | 410 |
|
411 |
ifneq ($(JDK_BUILD_NUMBER),) |
|
412 |
COOKED_BUILD_NUMBER = $(shell $(ECHO) $(JDK_BUILD_NUMBER) | $(SED) -e 's/^b//' -e 's/^0//') |
|
413 |
else |
|
414 |
COOKED_BUILD_NUMBER = 0 |
|
415 |
endif |
|
416 |
||
417 |
# If the update version contains non-numeric characters, we need |
|
418 |
# to massage it into a numeric format. |
|
419 |
# We use the following formula: |
|
420 |
# JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION |
|
421 |
# |
|
422 |
# Here are some examples: |
|
423 |
# 1.5.0 b01 -> 5,0,0,1 |
|
424 |
# 1.5.0_10 b01 -> 5,0,100,1 |
|
425 |
# 1.4.2 b01 -> 4,2,0,1 |
|
426 |
# 1.4.2_02 b01 -> 4,2,20,1 |
|
427 |
# 1.4.2_02a b01 -> 4,2,21,1 |
|
428 |
# 1.4.2_02b b01 -> 4,2,22,1 |
|
429 |
ifdef JDK_UPDATE_VERSION |
|
430 |
VTMP := $(shell $(ECHO) $(JDK_UPDATE_VERSION) | $(TR) "abcde" "12345") |
|
431 |
CAB_CHAR1 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 1, 1);}') |
|
432 |
CAB_CHAR2 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 2, 1);}') |
|
433 |
CAB_CHAR3 := $(shell $(ECHO) $(VTMP) | $(NAWK) '{print substr($$1, 3, 1);}') |
|
434 |
JDK_UPDATE_META_TAG := U$(MARKETING_NUMBER) |
|
435 |
ifeq ($(CAB_CHAR3),) |
|
436 |
CAB_CHAR3 := 0 |
|
437 |
endif |
|
438 |
ifeq ($(CAB_CHAR1), 0) |
|
439 |
JDK_UPDATE_VER := $(CAB_CHAR2)$(CAB_CHAR3) |
|
440 |
else |
|
441 |
JDK_UPDATE_VER := $(CAB_CHAR1)$(CAB_CHAR2)$(CAB_CHAR3) |
|
442 |
endif |
|
443 |
else |
|
444 |
JDK_UPDATE_VER := 0 |
|
445 |
endif |
|
446 |
||
447 |
RC_FLAGS = /l 0x409 /r |
|
448 |
||
449 |
ifeq ($(VARIANT), OPT) |
|
450 |
RC_FLAGS += -d NDEBUG |
|
451 |
else |
|
452 |
RC_FLAGS += $(MS_RC_DEBUG_OPTION) |
|
453 |
endif |
|
454 |
||
847 | 455 |
# Values for the RC variables defined in RC_FLAGS |
456 |
JDK_RC_BUILD_ID = $(FULL_VERSION) |
|
457 |
JDK_RC_COMPANY = $(COMPANY_NAME) |
|
458 |
JDK_RC_COMPONENT = $(PRODUCT_NAME) $(JDK_RC_PLATFORM_NAME) binary |
|
459 |
JDK_RC_VER = \ |
|
460 |
$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION).$(JDK_UPDATE_VER).$(COOKED_BUILD_NUMBER) |
|
461 |
JDK_RC_COPYRIGHT = Copyright \xA9 $(COPYRIGHT_YEAR) |
|
462 |
JDK_RC_NAME = \ |
|
463 |
$(PRODUCT_NAME) $(JDK_RC_PLATFORM_NAME) $(JDK_MINOR_VERSION) $(JDK_UPDATE_META_TAG) |
|
464 |
JDK_RC_FVER = \ |
|
465 |
$(JDK_MINOR_VERSION),$(JDK_MICRO_VERSION),$(JDK_UPDATE_VER),$(COOKED_BUILD_NUMBER) |
|
2 | 466 |
|
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
467 |
# JDK name required here |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
468 |
RC_FLAGS += -d "JDK_BUILD_ID=$(JDK_RC_BUILD_ID)" \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
469 |
-d "JDK_COMPANY=$(JDK_RC_COMPANY)" \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
470 |
-d "JDK_COMPONENT=$(JDK_RC_COMPONENT)" \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
471 |
-d "JDK_VER=$(JDK_RC_VER)" \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
472 |
-d "JDK_COPYRIGHT=$(JDK_RC_COPYRIGHT)" \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
473 |
-d "JDK_NAME=$(JDK_RC_NAME)" \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
474 |
-d "JDK_FVER=$(JDK_RC_FVER)" |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
475 |
|
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
476 |
# Enable 7-Zip LZMA file (de)compression for Java Kernel if it is available |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
477 |
ifeq ($(ARCH_DATA_MODEL), 32) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
478 |
ifneq ($(KERNEL), off) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
479 |
# This is a hack to use until 7-Zip (and UPX) bundles can be put |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
480 |
# under /java/devtools. |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
481 |
ifndef DEPLOY_TOPDIR |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
482 |
DEPLOY_TOPDIR=$(JDK_TOPDIR)/../deploy |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
483 |
endif |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
484 |
# Uncomment this block to cause build failure if above assumption false |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
485 |
#DCHK = $(shell if [ ! -d $(DEPLOY_TOPDIR) ] ; then \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
486 |
# $(ECHO) deploy_not_a_peer_of_j2se ; \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
487 |
#fi ) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
488 |
#ifeq ($(DCHK), deploy_not_a_peer_of_j2se) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
489 |
# If a build failure points to control coming here it means |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
490 |
# it means deploy is not in the same directory |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
491 |
# as j2se. Java Kernel can't tolerate that for the time being. |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
492 |
#endif |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
493 |
EC_TMP = $(shell if [ -d $(DEPLOY_TOPDIR)/make/lzma ] ; then \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
494 |
$(ECHO) true ; \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
495 |
else \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
496 |
$(ECHO) false ; \ |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
497 |
fi ) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
498 |
ifeq ($(EC_TMP), true) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
499 |
EXTRA_COMP_INSTALL_PATH = lib\\\\deploy\\\\lzma.dll |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
500 |
# Crazy but true: deploy/make/plugin/jinstall/Makefile.jkernel does |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
501 |
# not include deploy/make/common/Defs-windows.gmk, either directly |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
502 |
# or indirectly. But it does include this file, so redundantly declare |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
503 |
# these variables that are in deploy/make/common/Defs-windows.gmk for |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
504 |
# the sake of the Java Kernel part of the deploy build. Whew! |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
505 |
EXTRA_COMP_LIB_NAME = lzma.dll |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
506 |
EXTRA_COMP_PATH = $(OUTPUTDIR)/tmp/deploy/lzma/win32/obj |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
507 |
EXTRA_COMP_CMD_PATH = $(EXTRA_COMP_PATH)/lzma.exe |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
508 |
EXTRA_COMP_LIB_PATH = $(EXTRA_COMP_PATH)/$(EXTRA_COMP_LIB_NAME) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
509 |
endif |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
510 |
endif |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2398
diff
changeset
|
511 |
endif |