author | cl |
Fri, 06 Aug 2010 12:52:19 -0700 | |
changeset 6142 | 09587b7cc0f9 |
parent 5506 | 202f599c92aa |
child 6378 | 5c7242a0a4a5 |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 1997, 2009, Oracle and/or its affiliates. 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Imports files exported by a hotspot build or provided from an external |
|
28 |
# location into the OUTPUTDIR, and also primes the OUTPUTDIR with files |
|
29 |
# that are provided inside this workspace. |
|
30 |
# |
|
31 |
# IMPORT_LIST contains the list of destination files that are copied |
|
32 |
# from external places (outside this workspace). |
|
33 |
# |
|
34 |
# INTERNAL_IMPORT_LIST is the list of destination files from BUILDDIR. |
|
35 |
# |
|
36 |
||
37 |
BUILDDIR = ../.. |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
38 |
MODULE = base |
2 | 39 |
PRODUCT = java |
40 |
include $(BUILDDIR)/common/Defs.gmk |
|
41 |
||
42 |
SERVER_LOCATION = server |
|
43 |
CLIENT_LOCATION = client |
|
44 |
||
45 |
DB_SUFFIX = _db |
|
46 |
||
47 |
ifeq ($(PLATFORM), windows) |
|
48 |
LIB_LOCATION = $(BINDIR) |
|
49 |
else |
|
50 |
LIB_LOCATION = $(LIBDIR)/$(LIBARCH) |
|
51 |
endif |
|
52 |
||
53 |
JVM_NAME = $(LIB_PREFIX)jvm.$(LIBRARY_SUFFIX) |
|
54 |
JVMLIB_NAME = $(LIB_PREFIX)jvm.$(LIB_SUFFIX) |
|
55 |
JVMMAP_NAME = $(LIB_PREFIX)jvm.map |
|
56 |
JVMPDB_NAME = $(LIB_PREFIX)jvm.pdb |
|
57 |
LIBJSIG_NAME = $(LIB_PREFIX)jsig.$(LIBRARY_SUFFIX) |
|
58 |
JVMDB_NAME = $(LIB_PREFIX)jvm$(DB_SUFFIX).$(LIBRARY_SUFFIX) |
|
59 |
||
60 |
CLASSSHARINGDATA_DIR = $(BUILDDIR)/tools/sharing |
|
61 |
||
62 |
# Needed to do file copy |
|
63 |
ABS_BUILDDIR :=$(call FullPath,$(BUILDDIR)) |
|
64 |
||
4917
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
4665
diff
changeset
|
65 |
SUBDIRS_desktop = fonts |
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
4665
diff
changeset
|
66 |
SUBDIRS_tools = sajdi |
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
4665
diff
changeset
|
67 |
include $(BUILDDIR)/common/Subdirs.gmk |
c98da2209f8c
6915413: Module build: building of specified jdk components instead of all
mchung
parents:
4665
diff
changeset
|
68 |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
69 |
all clean clobber:: |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
70 |
$(SUBDIRS-loop) |
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
71 |
|
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
72 |
all:: build |
2 | 73 |
|
74 |
# List of files created here or coming from BUILDDIR area (this workspace) |
|
75 |
INTERNAL_IMPORT_LIST = $(LIBDIR)/classlist |
|
76 |
||
77 |
# List of files coming from outside this workspace |
|
78 |
IMPORT_LIST = $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME) \ |
|
79 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt |
|
80 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
81 |
# Hotspot client is only available on 32-bit non-Zero builds |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
82 |
ifneq ($(ZERO_BUILD), true) |
2 | 83 |
ifeq ($(ARCH_DATA_MODEL), 32) |
84 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) \ |
|
85 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt |
|
86 |
endif |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
87 |
endif |
2 | 88 |
|
89 |
ifeq ($(PLATFORM), windows) |
|
90 |
# Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Windows |
|
91 |
||
92 |
IMPORT_LIST += $(MS_RUNTIME_LIBRARIES:%=$(BINDIR)/%) |
|
93 |
||
94 |
# NOTE: These might actually come from BUILDDIR, depends on the settings. |
|
95 |
$(BINDIR)/msvcrt.dll: $(MSVCRT_DLL_PATH)/msvcrt.dll |
|
96 |
$(install-import-file) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
97 |
$(call chmod-file, a+x) |
1776
33e9405ab91b
6754862: jdk/src/windows/bin/java_md.c: hardcoded reference to msvcr71.dll
tbell
parents:
2
diff
changeset
|
98 |
$(BINDIR)/$(MSVCRNN_DLL): $(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL) |
2 | 99 |
$(install-import-file) |
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
100 |
$(call chmod-file, a+x) |
2 | 101 |
|
102 |
# Get the hotspot .map and .pdb files for client and server |
|
103 |
IMPORT_LIST += \ |
|
104 |
$(LIBDIR)/$(JVMLIB_NAME) \ |
|
105 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME) \ |
|
106 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME) |
|
107 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
108 |
# Add .map and .pdb files to the import path for client and kernel VMs. |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
109 |
# These are only available on 32-bit windows builds. |
2 | 110 |
ifeq ($(ARCH_DATA_MODEL), 32) |
111 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME) \ |
|
112 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME) |
|
3114
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
113 |
ifeq ($(DO_KERNEL), true) |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
114 |
IMPORT_LIST += $(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME) \ |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
115 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME) |
f503507dcce5
6853152: JDK 7 cannot build w/o ALT_HOTSPOT_KERNEL_PATH set. - still broken
herrick
parents:
3111
diff
changeset
|
116 |
endif |
2 | 117 |
endif |
118 |
||
119 |
$(LIBDIR)/$(JVMLIB_NAME): $(HOTSPOT_LIB_PATH)/$(JVMLIB_NAME) |
|
120 |
$(install-import-file) |
|
121 |
||
122 |
# it is OK for the .map and .pdb files to not exist, so do not force a |
|
123 |
# dependency on them from the bootstrap location, and allow the copy to fail. |
|
124 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMMAP_NAME): |
|
125 |
@$(prep-target) |
|
126 |
-$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMMAP_NAME) $@ |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
127 |
@$(install-module-file) |
2 | 128 |
|
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
129 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMMAP_NAME): |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
130 |
@$(prep-target) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
131 |
-$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMMAP_NAME) $@ |
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
132 |
@$(install-module-file) |
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
133 |
|
2 | 134 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMMAP_NAME): |
135 |
@$(prep-target) |
|
136 |
-$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMMAP_NAME) $@ |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
137 |
@$(install-module-file) |
2 | 138 |
|
139 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMPDB_NAME): |
|
140 |
@$(prep-target) |
|
141 |
-$(CP) $(HOTSPOT_CLIENT_PATH)/$(JVMPDB_NAME) $@ |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
142 |
@$(install-module-file) |
2 | 143 |
|
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
144 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVMPDB_NAME): |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
145 |
@$(prep-target) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
146 |
-$(CP) $(HOTSPOT_KERNEL_PATH)/$(JVMPDB_NAME) $@ |
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
147 |
@$(install-module-file) |
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
148 |
|
2 | 149 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMPDB_NAME): |
150 |
@$(prep-target) |
|
151 |
-$(CP) $(HOTSPOT_SERVER_PATH)/$(JVMPDB_NAME) $@ |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
152 |
@$(install-module-file) |
2 | 153 |
|
154 |
# Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Windows |
|
155 |
else # PLATFORM |
|
156 |
# NOT Windows vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv NOT Windows |
|
157 |
||
158 |
IMPORT_LIST += \ |
|
159 |
$(LIB_LOCATION)/$(LIBJSIG_NAME) \ |
|
160 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME) |
|
161 |
||
162 |
ifeq ($(PLATFORM), solaris) |
|
163 |
IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME) |
|
164 |
endif |
|
165 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
166 |
ifneq ($(ZERO_BUILD), true) |
2 | 167 |
ifeq ($(ARCH_DATA_MODEL), 32) |
168 |
||
169 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) |
|
170 |
||
171 |
ifeq ($(PLATFORM), solaris) |
|
172 |
# solaris vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv solaris |
|
173 |
||
174 |
ifeq ($(ARCH), sparc) |
|
175 |
IMPORT_LIST += $(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME) |
|
176 |
endif |
|
177 |
||
178 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME) |
|
179 |
||
180 |
ifeq ($(ARCH), sparc) |
|
181 |
IMPORT_LIST += $(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME) |
|
182 |
endif |
|
183 |
||
184 |
# For backwards compatability, make a link of the 32-bit client JVM to $(LIBDIR) |
|
185 |
IMPORT_LIST += $(LIB_LOCATION)/$(JVM_NAME) |
|
186 |
||
187 |
$(LIB_LOCATION)/$(JVM_NAME): $(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME) |
|
188 |
@$(prep-target) |
|
189 |
||
190 |
# solaris ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ solaris |
|
191 |
endif # 32bit solaris |
|
192 |
||
193 |
endif # 32bit |
|
194 |
||
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
195 |
endif # ZERO_BUILD |
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3288
diff
changeset
|
196 |
|
2 | 197 |
# NOT Windows ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ NOT Windows |
198 |
||
199 |
endif # PLATFORM |
|
200 |
||
201 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVM_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVM_NAME) |
|
202 |
$(install-import-file) |
|
203 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
204 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/$(JVM_NAME): $(HOTSPOT_KERNEL_PATH)/$(JVM_NAME) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
205 |
$(install-file) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
206 |
|
4062
203caeb1e9a8
6896472: Missing libjsig.so causes jdk build failure
ohair
parents:
3288
diff
changeset
|
207 |
$(LIB_LOCATION)/$(LIBJSIG_NAME): $(HOTSPOT_IMPORT_PATH)/$(ARCH_VM_SUBDIR)/$(LIBJSIG_NAME) |
2 | 208 |
$(install-import-file) |
209 |
||
210 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(LIBJSIG_NAME) \ |
|
211 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(LIBJSIG_NAME): |
|
212 |
@$(prep-target) |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
213 |
$(call install-sym-link, ../$(LIBJSIG_NAME)) |
2 | 214 |
|
215 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/$(JVMDB_NAME) |
|
216 |
$(install-import-file) |
|
217 |
||
218 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_CLIENT_PATH)/64/$(JVMDB_NAME) |
|
219 |
$(install-import-file) |
|
220 |
||
221 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/$(JVMDB_NAME) |
|
222 |
$(install-import-file) |
|
223 |
||
224 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/64/$(JVMDB_NAME): $(HOTSPOT_SERVER_PATH)/64/$(JVMDB_NAME) |
|
225 |
$(install-import-file) |
|
226 |
||
227 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/$(JVM_NAME): $(HOTSPOT_SERVER_PATH)/$(JVM_NAME) |
|
228 |
$(install-import-file) |
|
229 |
||
230 |
$(LIB_LOCATION)/$(SERVER_LOCATION)/Xusage.txt : $(HOTSPOT_SERVER_PATH)/Xusage.txt |
|
231 |
$(install-import-file) |
|
232 |
||
233 |
$(LIB_LOCATION)/$(CLIENT_LOCATION)/Xusage.txt : $(HOTSPOT_CLIENT_PATH)/Xusage.txt |
|
234 |
$(install-import-file) |
|
235 |
||
3111
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
236 |
$(LIB_LOCATION)/$(KERNEL_LOCATION)/Xusage.txt : $(HOTSPOT_KERNEL_PATH)/Xusage.txt |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
237 |
$(install-file) |
fefdeafb7ab9
6797688: Umbrella: Merge all JDK 6u4 - 6u12 deployment code into JDK7
herrick
parents:
2301
diff
changeset
|
238 |
|
2 | 239 |
# |
240 |
# Specific to OpenJDK building |
|
241 |
# |
|
242 |
ifdef OPENJDK |
|
243 |
||
2301 | 244 |
ifeq ($(IMPORT_BINARY_PLUGS),true) |
245 |
include $(BUILDDIR)/common/internal/BinaryPlugs.gmk |
|
2 | 246 |
|
2301 | 247 |
build: import-binary-plugs |
248 |
endif |
|
2 | 249 |
|
250 |
else # !OPENJDK |
|
251 |
||
252 |
INTERNAL_IMPORT_LIST += \ |
|
253 |
$(LIBDIR)/security/US_export_policy.jar \ |
|
254 |
$(LIBDIR)/security/local_policy.jar \ |
|
255 |
$(LIBDIR)/jce.jar |
|
256 |
||
257 |
$(LIBDIR)/jce.jar: \ |
|
258 |
$(BUILDDIR)/closed/tools/crypto/jce/jce.jar |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4340
diff
changeset
|
259 |
$(install-non-module-file) |
2 | 260 |
$(LIBDIR)/security/US_export_policy.jar: \ |
261 |
$(BUILDDIR)/closed/tools/crypto/jce/US_export_policy.jar |
|
262 |
$(install-file) |
|
263 |
$(LIBDIR)/security/local_policy.jar: \ |
|
264 |
$(BUILDDIR)/closed/tools/crypto/jce/local_policy.jar |
|
265 |
$(install-file) |
|
266 |
||
267 |
endif # OPENJDK |
|
268 |
||
269 |
ADDJSUM_JARFILE = $(BUILDTOOLJARDIR)/addjsum.jar |
|
270 |
||
271 |
# Construct classlist file |
|
272 |
$(LIBDIR)/classlist: \ |
|
273 |
$(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) \ |
|
274 |
$(ADDJSUM_JARFILE) |
|
275 |
@$(prep-target) |
|
276 |
@$(RM) -f $@.temp |
|
277 |
$(BOOT_JAVA_CMD) -jar $(ADDJSUM_JARFILE) \ |
|
278 |
$(CLASSSHARINGDATA_DIR)/classlist.$(PLATFORM) $@.temp |
|
279 |
$(MV) $@.temp $@ |
|
280 |
||
281 |
# Import internal files (ones that are stashed in this source tree) |
|
282 |
import_internal_files : $(INTERNAL_IMPORT_LIST) |
|
283 |
||
284 |
# Import files from the JDK that we are not building |
|
285 |
import_files: $(IMPORT_LIST) |
|
286 |
||
287 |
# Get component information variables and rules |
|
288 |
include $(BUILDDIR)/common/internal/ImportComponents.gmk |
|
289 |
||
290 |
# Security files we need to import |
|
291 |
SEC_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-bin.zip |
|
292 |
SEC_FILES_WIN_ZIP=$(ABS_BUILDDIR)/tools/crypto/sec-windows-bin.zip |
|
293 |
JGSS_WIN32_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-i586-bin.zip |
|
294 |
JGSS_WIN64_FILES_ZIP=$(ABS_BUILDDIR)/tools/crypto/jgss-windows-x64-bin.zip |
|
295 |
||
296 |
# Unzip zip file $2 into directory $1 (if $2 exists) |
|
297 |
# Warning: $2 must be absolute path not relative |
|
298 |
define SecUnzipper |
|
299 |
if [ -f $2 ] ; then \ |
|
300 |
$(MKDIR) -p $1; \ |
|
301 |
$(ECHO) "( $(CD) $1 && $(UNZIP) -o $2 )"; \ |
|
302 |
( $(CD) $1 && $(UNZIP) -o $2 ); \ |
|
303 |
fi |
|
304 |
endef |
|
305 |
||
306 |
# If sec-bin exists, unpack it into the build directory |
|
307 |
# Also, the library recompile build indirectly depends on two SSL classes, |
|
308 |
# so copy those as well FIXUP |
|
309 |
# if sec-windows-bin exists, unpack it into the build directory |
|
310 |
# if JGSS files exists, unpack it into the build directory |
|
311 |
$(TEMPDIR)/security_imported: |
|
312 |
@$(prep-target) |
|
313 |
@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_ZIP)) |
|
314 |
ifeq ($(PLATFORM), windows) |
|
315 |
@$(call SecUnzipper,$(OUTPUTDIR),$(SEC_FILES_WIN_ZIP)) |
|
316 |
endif |
|
317 |
ifeq ($(PLATFORM), windows) |
|
318 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
319 |
@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN32_FILES_ZIP)) |
|
320 |
else |
|
321 |
@$(call SecUnzipper,$(OUTPUTDIR),$(JGSS_WIN64_FILES_ZIP)) |
|
322 |
endif |
|
323 |
endif |
|
324 |
@$(ECHO) "Imported on `$(DATE)`" > $@ |
|
325 |
||
326 |
# Import all files from other components |
|
327 |
$(TEMPDIR)/components_imported: |
|
328 |
@$(prep-target) |
|
329 |
$(call import-component-binaries,$(ABS_OUTPUTDIR)) |
|
330 |
$(call import-component-sources,$(IMPORTSRCDIR)) |
|
331 |
$(call import-component-docs,$(IMPORTDOCDIR)) |
|
332 |
$(call import-component-classes,$(CLASSDESTDIR)) |
|
333 |
@$(ECHO) "Imported on `$(DATE)`" > $@ |
|
334 |
||
335 |
# Do pretty much everything |
|
336 |
build : import_files \ |
|
337 |
import_internal_files \ |
|
338 |
$(TEMPDIR)/components_imported \ |
|
339 |
$(TEMPDIR)/security_imported |
|
340 |
||
341 |
# Clean up what we imported (except for component files) |
|
342 |
clean clobber:: |
|
343 |
$(RM) $(IMPORT_LIST) |
|
344 |
$(RM) $(INTERNAL_IMPORT_LIST) |
|
345 |
$(call import-component-sources-clean,$(IMPORTSRCDIR)) |
|
346 |
$(call import-component-docs-clean,$(IMPORTDOCDIR)) |
|
347 |
$(call import-component-classes-clean,$(CLASSDESTDIR)) |
|
348 |
$(RM) $(TEMPDIR)/components_imported |
|
349 |
$(RM) $(TEMPDIR)/security_imported |
|
350 |
||
351 |
.PHONY: import_files import_internal_files |
|
352 |