author | mikael |
Tue, 18 Feb 2014 17:55:04 -0800 | |
changeset 23304 | bb48872f9326 |
parent 21805 | c7d7946239de |
child 23355 | 87227bf950ef |
permissions | -rw-r--r-- |
13164 | 1 |
# |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
2 |
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
13164 | 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. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle 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 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. |
|
24 |
# |
|
25 |
||
26 |
default: all |
|
27 |
||
28 |
include $(SPEC) |
|
29 |
include MakeBase.gmk |
|
30 |
||
31 |
####### |
|
32 |
||
33 |
IMPORT_TARGET_FILES := |
|
34 |
||
35 |
IMPORT_CLASSES := CORBA JAXP JAXWS LANGTOOLS |
|
36 |
IMPORT_SOURCES := CORBA JAXP JAXWS LANGTOOLS |
|
37 |
# Only Corba has binaries |
|
38 |
IMPORT_BINARIES := CORBA |
|
39 |
||
40 |
####### |
|
41 |
||
42 |
# Put the libraries here. Different locations for different target apis. |
|
20547 | 43 |
ifeq ($(OPENJDK_TARGET_OS_API), posix) |
44 |
INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
|
45 |
HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
|
13164 | 46 |
else |
20547 | 47 |
INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/bin |
48 |
HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/jre/bin |
|
13164 | 49 |
endif |
50 |
||
51 |
####### |
|
52 |
||
53 |
# |
|
54 |
# jar xf/unzip fails when executing them all in parallel |
|
20547 | 55 |
# introduce artificial dependency (_DEP) buuhhh |
13164 | 56 |
|
57 |
define ImportClasses |
|
20547 | 58 |
$1_CLASSES_DEP := $$(IMPORT_TARGET_CLASSES) |
59 |
IMPORT_TARGET_CLASSES += $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported |
|
13164 | 60 |
|
20547 | 61 |
$(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported: $$($1_DIST)/lib/classes.jar $$($1_CLASSES_DEP) |
13164 | 62 |
$(ECHO) Importing $1 classes.jar |
63 |
$(MKDIR) -p $$(@D) |
|
13702 | 64 |
$(RM) $$@ $$@.tmp |
13164 | 65 |
($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp) |
66 |
$(MV) $$@.tmp $$@ |
|
67 |
endef |
|
68 |
||
69 |
define ImportSources |
|
20547 | 70 |
$1_SOURCES_DEP := $$(IMPORT_TARGET_SOURCES) |
71 |
IMPORT_TARGET_SOURCES += $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported |
|
13164 | 72 |
|
20547 | 73 |
$(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported: $$($1_DIST)/lib/src.zip $$($1_SOURCES_DEP) |
13164 | 74 |
$(ECHO) Importing $1 src.zip |
75 |
$(MKDIR) -p $$(@D) |
|
13702 | 76 |
$(RM) $$@ $$@.tmp |
13164 | 77 |
($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp) |
78 |
$(MV) $$@.tmp $$@ |
|
79 |
endef |
|
80 |
||
81 |
define ImportBinaries |
|
20547 | 82 |
$1_BINARIES_DEP := $$(IMPORT_TARGET_BINARIES) |
83 |
IMPORT_TARGET_BINARIES += $(JDK_OUTPUTDIR)/_the.$1.binaries.imported |
|
13164 | 84 |
|
20547 | 85 |
$(JDK_OUTPUTDIR)/_the.$1.binaries.imported: $$($1_DIST)/lib/bin.zip $$($1_BINARIES_DEP) |
13164 | 86 |
$(ECHO) Importing $1 bin.zip |
87 |
$(MKDIR) -p $$(@D) |
|
13702 | 88 |
$(RM) $$@ $$@.tmp |
13164 | 89 |
($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp) |
90 |
$(MV) $$@.tmp $$@ |
|
91 |
endef |
|
92 |
||
93 |
####### |
|
94 |
||
20547 | 95 |
$(foreach I, $(IMPORT_CLASSES), $(eval $(call ImportClasses,$I))) |
96 |
$(foreach I, $(IMPORT_SOURCES), $(eval $(call ImportSources,$I))) |
|
97 |
$(foreach I, $(IMPORT_BINARIES), $(eval $(call ImportBinaries,$I))) |
|
13164 | 98 |
|
99 |
IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES) |
|
100 |
||
101 |
####### |
|
102 |
||
103 |
define CopyDir |
|
20547 | 104 |
$1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE),$4) \)) |
105 |
$1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES)) |
|
106 |
IMPORT_TARGET_FILES += $$($1_DST_FILES) |
|
107 |
$3/%: $2/% |
|
14231 | 108 |
$(ECHO) $(LOG_INFO) Copying $$(@F) |
15677 | 109 |
$$(install-file) |
13164 | 110 |
endef |
111 |
||
112 |
####### |
|
113 |
||
114 |
# |
|
115 |
# Import hotspot |
|
116 |
# |
|
20547 | 117 |
HOTSPOT_IMPORT_FILES := $(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \ |
118 |
Xusage.txt sa-jdi.jar |
|
14428
cacd70dfb133
8002028: build-infra: need no-hotspot partial build
tbell
parents:
14231
diff
changeset
|
119 |
$(eval $(call CopyDir,HOTSPOT0, $(HOTSPOT_LIB_DIR), $(INSTALL_LIBRARIES_HERE), $(HOTSPOT_IMPORT_FILES))) |
cacd70dfb133
8002028: build-infra: need no-hotspot partial build
tbell
parents:
14231
diff
changeset
|
120 |
$(eval $(call CopyDir,HOTSPOT1, $(HOTSPOT_DIST)/lib, $(JDK_OUTPUTDIR)/lib, $(HOTSPOT_IMPORT_FILES))) |
13164 | 121 |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
122 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
21133 | 123 |
JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig$(SHARED_LIBRARY_SUFFIX).dSYM) \ |
124 |
$(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) ) |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
125 |
else |
21131
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
126 |
JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \ |
21133 | 127 |
$(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) ) |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
128 |
endif |
13164 | 129 |
|
130 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
20547 | 131 |
ifeq ($(JVM_VARIANT_SERVER), true) |
132 |
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
|
133 |
ifneq (, $(JSIG_DEBUGINFO)) |
|
134 |
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
|
13164 | 135 |
endif |
20547 | 136 |
endif |
137 |
ifeq ($(JVM_VARIANT_CLIENT), true) |
|
138 |
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
|
139 |
ifneq (, $(JSIG_DEBUGINFO)) |
|
140 |
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
|
13164 | 141 |
endif |
20547 | 142 |
endif |
21131
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
143 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
144 |
ifeq ($(JVM_VARIANT_MINIMAL1), true) |
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
145 |
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
146 |
ifneq (,$(JSIG_DEBUGINFO)) |
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
147 |
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
148 |
endif |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
149 |
endif |
21131
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
150 |
endif |
13164 | 151 |
endif |
152 |
||
20547 | 153 |
$(INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
13702 | 154 |
$(MKDIR) -p $(@D) |
155 |
$(RM) $@ |
|
13164 | 156 |
$(LN) -s ../$(@F) $@ |
157 |
||
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
158 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
21133 | 159 |
$(INSTALL_LIBRARIES_HERE)/server/%.dSYM : $(INSTALL_LIBRARIES_HERE)/%.dSYM |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
160 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
161 |
$(RM) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
162 |
$(LN) -s ../$(@F) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
163 |
|
21133 | 164 |
$(INSTALL_LIBRARIES_HERE)/server/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
165 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
166 |
$(RM) $@ |
21133 | 167 |
$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
168 |
$(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
169 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM |
|
170 |
$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
171 |
$(MV) $@.tmp $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
172 |
else |
21133 | 173 |
$(INSTALL_LIBRARIES_HERE)/server/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo |
13702 | 174 |
$(MKDIR) -p $(@D) |
175 |
$(RM) $@ |
|
13164 | 176 |
$(LN) -s ../$(@F) $@ |
177 |
||
21133 | 178 |
$(INSTALL_LIBRARIES_HERE)/server/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz |
13702 | 179 |
$(MKDIR) -p $(@D) |
180 |
$(RM) $@ |
|
181 |
$(RM) $@.tmp $(basename $@).debuginfo |
|
13164 | 182 |
$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
15139
3ec04e4fbb5e
8006385: build-infra: linux and solaris *-debuginfo-*.zip file created from the new makefile has extra HUDSON direcotry in jre/lib/i386/server
erikj
parents:
14596
diff
changeset
|
183 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
13702 | 184 |
$(RM) $(basename $@).debuginfo |
185 |
$(MV) $@.tmp $@ |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
186 |
endif |
13164 | 187 |
|
20547 | 188 |
$(INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
13702 | 189 |
$(MKDIR) -p $(@D) |
190 |
$(RM) $@ |
|
13164 | 191 |
$(LN) -s ../$(@F) $@ |
192 |
||
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
193 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
21133 | 194 |
$(INSTALL_LIBRARIES_HERE)/client/%.dSYM : $(INSTALL_LIBRARIES_HERE)/%.dSYM |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
195 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
196 |
$(RM) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
197 |
$(LN) -s ../$(@F) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
198 |
|
21133 | 199 |
$(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
200 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
201 |
$(RM) $@ |
21133 | 202 |
$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
203 |
$(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
204 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM |
|
205 |
$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
206 |
$(MV) $@.tmp $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
207 |
else |
21133 | 208 |
$(INSTALL_LIBRARIES_HERE)/client/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo |
13702 | 209 |
$(MKDIR) -p $(@D) |
210 |
$(RM) $@ |
|
13164 | 211 |
$(LN) -s ../$(@F) $@ |
212 |
||
21133 | 213 |
$(INSTALL_LIBRARIES_HERE)/client/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz |
13702 | 214 |
$(MKDIR) -p $(@D) |
215 |
$(RM) $@ |
|
216 |
$(RM) $@.tmp $(basename $@).debuginfo |
|
13164 | 217 |
$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
15139
3ec04e4fbb5e
8006385: build-infra: linux and solaris *-debuginfo-*.zip file created from the new makefile has extra HUDSON direcotry in jre/lib/i386/server
erikj
parents:
14596
diff
changeset
|
218 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
13702 | 219 |
$(RM) $(basename $@).debuginfo |
220 |
$(MV) $@.tmp $@ |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
221 |
endif |
13164 | 222 |
|
20547 | 223 |
$(INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
224 |
$(MKDIR) -p $(@D) |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
225 |
$(RM) $@ |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
226 |
$(LN) -s ../$(@F) $@ |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
227 |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
228 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
21133 | 229 |
$(INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
230 |
$(MKDIR) -p $(@D) |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
231 |
$(RM) $@ |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
232 |
$(LN) -s ../$(@F) $@ |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
233 |
|
21133 | 234 |
$(INSTALL_LIBRARIES_HERE)/minimal/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
235 |
$(MKDIR) -p $(@D) |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
236 |
$(RM) $@ |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
237 |
$(RM) $@.tmp $(basename $@).debuginfo |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
238 |
$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
239 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
240 |
$(RM) $(basename $@).debuginfo |
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
241 |
$(MV) $@.tmp $@ |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
242 |
endif |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
243 |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
244 |
########################################################################################## |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
245 |
# Unpack the binary distributions of the crypto classes if they exist. |
20547 | 246 |
SEC_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/sec-bin.zip |
247 |
SEC_FILES_WIN_ZIP := $(JDK_TOPDIR)/make/tools/crypto/sec-windows-bin.zip |
|
248 |
JGSS_WIN32_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/jgss-windows-i586-bin.zip |
|
249 |
JGSS_WIN64_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/jgss-windows-x64-bin.zip |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
250 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
251 |
define unzip-sec-file |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
252 |
$(ECHO) Unzipping $(<F) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
253 |
$(MKDIR) -p $(@D) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
254 |
$(RM) $@ |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
255 |
($(CD) $(JDK_OUTPUTDIR) && $(UNZIP) $< > $@.tmp) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
256 |
$(MV) $@.tmp $@ |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
257 |
endef |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
258 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
259 |
$(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped: $(SEC_FILES_ZIP) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
260 |
$(call unzip-sec-file) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
261 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
262 |
$(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped: $(SEC_FILES_WIN_ZIP) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
263 |
$(call unzip-sec-file) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
264 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
265 |
$(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped: $(JGSS_WIN32_FILES_ZIP) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
266 |
$(call unzip-sec-file) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
267 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
268 |
$(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped: $(JGSS_WIN64_FILES_ZIP) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
269 |
$(call unzip-sec-file) |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
270 |
|
20547 | 271 |
ifneq ($(wildcard $(SEC_FILES_ZIP)), ) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
272 |
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped |
20547 | 273 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
274 |
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped |
20547 | 275 |
ifeq ($(OPENJDK_TARGET_CPU), x86) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
276 |
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
277 |
endif |
20547 | 278 |
ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
279 |
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
280 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
281 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
282 |
endif |
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
283 |
|
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
284 |
########################################################################################## |
13164 | 285 |
|
286 |
all: $(IMPORT_TARGET_FILES) |