author | lana |
Mon, 30 Nov 2015 13:27:57 -0800 | |
changeset 34476 | 9f12a05b4786 |
parent 33653 | c1ee09fe3274 |
child 34374 | b45db1cff661 |
permissions | -rw-r--r-- |
13164 | 1 |
# |
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
2 |
# Copyright (c) 2012, 2015, 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 |
||
25859 | 31 |
################################################################################ |
13164 | 32 |
|
27736
8c9bd4be4a86
8058631: Rename posix to unix in build system to match file name changes
ihse
parents:
25859
diff
changeset
|
33 |
# Put the libraries here. Different locations for different target OS types. |
27565 | 34 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
30329 | 35 |
HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR) |
27565 | 36 |
BASE_INSTALL_LIBRARIES_HERE := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base$(OPENJDK_TARGET_CPU_LIBDIR) |
37 |
SA_INSTALL_LIBRARIES_HERE := $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent$(OPENJDK_TARGET_CPU_LIBDIR) |
|
13164 | 38 |
else |
30329 | 39 |
HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/bin |
27565 | 40 |
BASE_INSTALL_LIBRARIES_HERE := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base |
41 |
SA_INSTALL_LIBRARIES_HERE := $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent |
|
13164 | 42 |
endif |
43 |
||
25859 | 44 |
################################################################################ |
13164 | 45 |
# |
46 |
# Import hotspot |
|
47 |
# |
|
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
48 |
|
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
49 |
# Don't import jsig library for static builds |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
50 |
ifneq ($(STATIC_BUILD), true) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
51 |
JSIG_IMPORT = jsig.* |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
52 |
else |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
53 |
JSIG_IMPORT = |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
54 |
endif |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
55 |
|
27565 | 56 |
HOTSPOT_BASE_IMPORT_FILES := \ |
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
57 |
$(addprefix $(LIBRARY_PREFIX), jvm.* $(JSIG_IMPORT) jvm_db.* jvm_dtrace.*) \ |
27565 | 58 |
Xusage.txt \ |
59 |
# |
|
60 |
||
61 |
HOTSPOT_SA_IMPORT_FILES := \ |
|
62 |
$(addprefix $(LIBRARY_PREFIX), saproc.* sawindbg.*) \ |
|
63 |
# |
|
64 |
||
65 |
$(eval $(call SetupCopyFiles,COPY_HOTSPOT_BASE, \ |
|
66 |
SRC := $(HOTSPOT_LIB_DIR), \ |
|
67 |
DEST := $(BASE_INSTALL_LIBRARIES_HERE), \ |
|
68 |
FILES := $(shell $(FIND) $(HOTSPOT_LIB_DIR) -type f \ |
|
69 |
-a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE), $(HOTSPOT_BASE_IMPORT_FILES)) \) ))) |
|
70 |
||
71 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
72 |
$(eval $(call SetupCopyFiles,COPY_HOTSPOT_BASE_JVMLIB, \ |
|
73 |
SRC := $(HOTSPOT_DIST)/lib, \ |
|
74 |
DEST := $(BASE_INSTALL_LIBRARIES_HERE), \ |
|
75 |
FILES := $(wildcard $(HOTSPOT_DIST)/lib/*.lib))) |
|
76 |
endif |
|
77 |
||
78 |
BASE_TARGETS := $(COPY_HOTSPOT_BASE) $(COPY_HOTSPOT_BASE_JVMLIB) |
|
79 |
||
80 |
$(eval $(call SetupCopyFiles,COPY_HOTSPOT_SA, \ |
|
81 |
SRC := $(HOTSPOT_LIB_DIR), \ |
|
82 |
DEST := $(SA_INSTALL_LIBRARIES_HERE), \ |
|
83 |
FILES := $(shell $(FIND) $(HOTSPOT_LIB_DIR) -type f \ |
|
84 |
-a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE), $(HOTSPOT_SA_IMPORT_FILES)) \) ))) |
|
85 |
||
86 |
SA_TARGETS := $(COPY_HOTSPOT_SA) |
|
87 |
||
88 |
################################################################################ |
|
13164 | 89 |
|
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
90 |
ifneq ($(STATIC_BUILD), true) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
91 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
92 |
JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig$(SHARED_LIBRARY_SUFFIX).dSYM) \ |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
93 |
$(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) ) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
94 |
else |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
95 |
JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \ |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
96 |
$(wildcard $(HOTSPOT_DIST)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) ) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
97 |
endif |
13164 | 98 |
|
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
99 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
100 |
ifeq ($(JVM_VARIANT_SERVER), true) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
101 |
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
102 |
ifneq (, $(JSIG_DEBUGINFO)) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
103 |
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
104 |
endif |
13164 | 105 |
endif |
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
106 |
ifeq ($(JVM_VARIANT_CLIENT), true) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
107 |
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
108 |
ifneq (, $(JSIG_DEBUGINFO)) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
109 |
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
110 |
endif |
13164 | 111 |
endif |
33653
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
112 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
113 |
ifeq ($(JVM_VARIANT_MINIMAL1), true) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
114 |
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
115 |
ifneq (,$(JSIG_DEBUGINFO)) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
116 |
BASE_TARGETS += $(BASE_INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
c1ee09fe3274
8136556: Add the ability to perform static builds of MacOSX x64 binaries
bobv
parents:
30329
diff
changeset
|
117 |
endif |
21131
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
118 |
endif |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
119 |
endif |
21131
7171b82a14c3
8027117: adapt JDK-7165611 to new build-infra whitespace/indent policy
dcubed
parents:
20888
diff
changeset
|
120 |
endif |
13164 | 121 |
endif |
122 |
||
27565 | 123 |
$(BASE_INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX): $(BASE_INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
13702 | 124 |
$(MKDIR) -p $(@D) |
125 |
$(RM) $@ |
|
13164 | 126 |
$(LN) -s ../$(@F) $@ |
127 |
||
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
128 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
27565 | 129 |
$(BASE_INSTALL_LIBRARIES_HERE)/server/%.dSYM : $(BASE_INSTALL_LIBRARIES_HERE)/%.dSYM |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
130 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
131 |
$(RM) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
132 |
$(LN) -s ../$(@F) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
133 |
|
27565 | 134 |
$(BASE_INSTALL_LIBRARIES_HERE)/server/%.diz : $(BASE_INSTALL_LIBRARIES_HERE)/%.diz |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
135 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
136 |
$(RM) $@ |
21133 | 137 |
$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
138 |
$(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
139 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM |
|
140 |
$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
141 |
$(MV) $@.tmp $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
142 |
else |
27565 | 143 |
$(BASE_INSTALL_LIBRARIES_HERE)/server/%.debuginfo: $(BASE_INSTALL_LIBRARIES_HERE)/%.debuginfo |
13702 | 144 |
$(MKDIR) -p $(@D) |
145 |
$(RM) $@ |
|
13164 | 146 |
$(LN) -s ../$(@F) $@ |
147 |
||
27565 | 148 |
$(BASE_INSTALL_LIBRARIES_HERE)/server/%.diz: $(BASE_INSTALL_LIBRARIES_HERE)/%.diz |
13702 | 149 |
$(MKDIR) -p $(@D) |
150 |
$(RM) $@ |
|
151 |
$(RM) $@.tmp $(basename $@).debuginfo |
|
13164 | 152 |
$(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
|
153 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
13702 | 154 |
$(RM) $(basename $@).debuginfo |
155 |
$(MV) $@.tmp $@ |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
156 |
endif |
13164 | 157 |
|
27565 | 158 |
$(BASE_INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX): $(BASE_INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
13702 | 159 |
$(MKDIR) -p $(@D) |
160 |
$(RM) $@ |
|
13164 | 161 |
$(LN) -s ../$(@F) $@ |
162 |
||
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
163 |
ifeq ($(OPENJDK_TARGET_OS), macosx) |
27565 | 164 |
$(BASE_INSTALL_LIBRARIES_HERE)/client/%.dSYM : $(BASE_INSTALL_LIBRARIES_HERE)/%.dSYM |
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) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
167 |
$(LN) -s ../$(@F) $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
168 |
|
27565 | 169 |
$(BASE_INSTALL_LIBRARIES_HERE)/client/%.diz : $(BASE_INSTALL_LIBRARIES_HERE)/%.diz |
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
170 |
$(MKDIR) -p $(@D) |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
171 |
$(RM) $@ |
21133 | 172 |
$(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
173 |
$(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
174 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM |
|
175 |
$(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
176 |
$(MV) $@.tmp $@ |
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
177 |
else |
27565 | 178 |
$(BASE_INSTALL_LIBRARIES_HERE)/client/%.debuginfo: $(BASE_INSTALL_LIBRARIES_HERE)/%.debuginfo |
13702 | 179 |
$(MKDIR) -p $(@D) |
180 |
$(RM) $@ |
|
13164 | 181 |
$(LN) -s ../$(@F) $@ |
182 |
||
27565 | 183 |
$(BASE_INSTALL_LIBRARIES_HERE)/client/%.diz: $(BASE_INSTALL_LIBRARIES_HERE)/%.diz |
184 |
$(MKDIR) -p $(@D) |
|
185 |
$(RM) $@ |
|
186 |
$(RM) $@.tmp $(basename $@).debuginfo |
|
187 |
$(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
|
188 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
|
189 |
$(RM) $(basename $@).debuginfo |
|
190 |
$(MV) $@.tmp $@ |
|
191 |
endif |
|
192 |
||
193 |
$(BASE_INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX): $(BASE_INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
|
194 |
$(MKDIR) -p $(@D) |
|
195 |
$(RM) $@ |
|
196 |
$(LN) -s ../$(@F) $@ |
|
197 |
||
198 |
ifneq ($(OPENJDK_TARGET_OS), macosx) |
|
199 |
$(BASE_INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo: $(BASE_INSTALL_LIBRARIES_HERE)/%.debuginfo |
|
200 |
$(MKDIR) -p $(@D) |
|
201 |
$(RM) $@ |
|
202 |
$(LN) -s ../$(@F) $@ |
|
203 |
||
204 |
$(BASE_INSTALL_LIBRARIES_HERE)/minimal/%.diz: $(BASE_INSTALL_LIBRARIES_HERE)/%.diz |
|
13702 | 205 |
$(MKDIR) -p $(@D) |
206 |
$(RM) $@ |
|
207 |
$(RM) $@.tmp $(basename $@).debuginfo |
|
13164 | 208 |
$(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
|
209 |
$(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
13702 | 210 |
$(RM) $(basename $@).debuginfo |
211 |
$(MV) $@.tmp $@ |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
212 |
endif |
13164 | 213 |
|
27565 | 214 |
################################################################################ |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
215 |
|
27565 | 216 |
$(JDK_OUTPUTDIR)/modules/jdk.hotspot.agent/_the.sa.jar.unpacked: $(HOTSPOT_DIST)/lib/sa-jdi.jar \ |
217 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/_the.sa.services |
|
218 |
$(ECHO) $(LOG_INFO) Unzipping $(<F) |
|
219 |
$(RM) -r $(@D) |
|
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
220 |
$(MKDIR) -p $(@D) |
27565 | 221 |
$(CD) $(@D) && $(UNZIP) $< -x META-INF/MANIFEST.MF $(LOG_DEBUG) |
222 |
# We must move the service provider file out of the way so that |
|
223 |
# Gensrc-jdk.jdi.gmk can combine them. |
|
224 |
$(MKDIR) -p $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent |
|
225 |
$(MV) $(JDK_OUTPUTDIR)/modules/jdk.hotspot.agent/META-INF/services/com.sun.jdi.connect.Connector \ |
|
226 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/_the.sa.services |
|
227 |
$(TOUCH) $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/_the.sa.services |
|
228 |
$(TOUCH) $@ |
|
229 |
||
230 |
# Declaring this dependency guarantees that _the.sa.services will be rebuilt |
|
231 |
# even if zip is already unpacked. |
|
232 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/_the.sa.services: $(HOTSPOT_DIST)/lib/sa-jdi.jar |
|
233 |
||
27953
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
234 |
# Some platforms don't have the serviceability agent |
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
235 |
ifeq (, $(filter $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU), aix-ppc64)) |
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
236 |
ifneq ($(JVM_VARIANT_ZERO), true) |
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
237 |
SA_TARGETS += $(JDK_OUTPUTDIR)/modules/jdk.hotspot.agent/_the.sa.jar.unpacked \ |
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
238 |
$(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/_the.sa.services |
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
239 |
endif |
03e0e3891572
8066589: Make importing sa-jdi.jar optional on its existance
simonis
parents:
27799
diff
changeset
|
240 |
endif |
27565 | 241 |
|
242 |
################################################################################ |
|
243 |
||
244 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
245 |
$(eval $(call SetupCopyFiles,BASE_COPY_LIBS_BIN, \ |
|
246 |
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \ |
|
247 |
DEST := $(JDK_OUTPUTDIR)/bin, \ |
|
248 |
FILES := $(filter-out %.lib, $(BASE_TARGETS)))) |
|
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
249 |
|
27565 | 250 |
$(eval $(call SetupCopyFiles,BASE_COPY_LIBS_LIB, \ |
251 |
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \ |
|
252 |
DEST := $(JDK_OUTPUTDIR)/lib, \ |
|
253 |
FILES := $(filter %.lib, $(BASE_TARGETS)))) |
|
254 |
||
255 |
$(eval $(call SetupCopyFiles,SA_COPY_LIBS, \ |
|
256 |
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent, \ |
|
257 |
DEST := $(JDK_OUTPUTDIR)/lib, \ |
|
258 |
FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent/%, \ |
|
259 |
$(SA_TARGETS)))) |
|
260 |
||
261 |
$(eval $(call SetupCopyFiles,SA_COPY_LIBS, \ |
|
262 |
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent, \ |
|
263 |
DEST := $(JDK_OUTPUTDIR)/bin, \ |
|
264 |
FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent/%, \ |
|
265 |
$(SA_TARGETS)))) |
|
266 |
else |
|
267 |
$(eval $(call SetupCopyFiles,BASE_COPY_LIBS, \ |
|
268 |
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/java.base, \ |
|
269 |
DEST := $(JDK_OUTPUTDIR)/lib, \ |
|
270 |
FILES := $(BASE_TARGETS))) |
|
271 |
||
272 |
$(eval $(call SetupCopyFiles,SA_COPY_LIBS, \ |
|
273 |
SRC := $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent, \ |
|
274 |
DEST := $(JDK_OUTPUTDIR)/lib, \ |
|
275 |
FILES := $(filter $(SUPPORT_OUTPUTDIR)/modules_libs/jdk.hotspot.agent/%, $(SA_TARGETS)))) |
|
20887
e6ca3d58bfe9
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
17957
diff
changeset
|
276 |
endif |
15680
d379c4f7bb47
8006651: build-infra: Import.gmk needs to add support for the minimal VM
dholmes
parents:
15139
diff
changeset
|
277 |
|
27565 | 278 |
################################################################################ |
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
279 |
|
27565 | 280 |
all: $(BASE_TARGETS) $(SA_TARGETS) \ |
281 |
$(BASE_COPY_LIBS_BIN) $(BASE_COPY_LIBS_LIB) \ |
|
282 |
$(BASE_COPY_LIBS) $(SA_COPY_LIBS) |
|
17957
1a51992c6097
8010785: JDK 8 build on Linux fails with new build mechanism
erikj
parents:
15691
diff
changeset
|
283 |
|
27565 | 284 |
.PHONY: default all |