erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 1 | # |
dholmes | bb58887 | 2014-12-17 20:25:47 -0500 | [diff] [blame] | 2 | # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 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. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 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) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 46 | else |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 47 | INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/bin |
| 48 | HOTSPOT_LIB_DIR := $(HOTSPOT_DIST)/jre/bin |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 49 | endif |
| 50 | |
| 51 | ####### |
| 52 | |
| 53 | # |
| 54 | # jar xf/unzip fails when executing them all in parallel |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 55 | # introduce artificial dependency (_DEP) buuhhh |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 56 | |
| 57 | define ImportClasses |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 58 | $1_CLASSES_DEP := $$(IMPORT_TARGET_CLASSES) |
| 59 | IMPORT_TARGET_CLASSES += $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 60 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 61 | $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported: $$($1_DIST)/lib/classes.jar $$($1_CLASSES_DEP) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 62 | $(ECHO) Importing $1 classes.jar |
| 63 | $(MKDIR) -p $$(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 64 | $(RM) $$@ $$@.tmp |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 65 | ($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp) |
| 66 | $(MV) $$@.tmp $$@ |
| 67 | endef |
| 68 | |
| 69 | define ImportSources |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 70 | $1_SOURCES_DEP := $$(IMPORT_TARGET_SOURCES) |
| 71 | IMPORT_TARGET_SOURCES += $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 72 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 73 | $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported: $$($1_DIST)/lib/src.zip $$($1_SOURCES_DEP) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 74 | $(ECHO) Importing $1 src.zip |
| 75 | $(MKDIR) -p $$(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 76 | $(RM) $$@ $$@.tmp |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 77 | ($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp) |
| 78 | $(MV) $$@.tmp $$@ |
| 79 | endef |
| 80 | |
| 81 | define ImportBinaries |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 82 | $1_BINARIES_DEP := $$(IMPORT_TARGET_BINARIES) |
| 83 | IMPORT_TARGET_BINARIES += $(JDK_OUTPUTDIR)/_the.$1.binaries.imported |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 84 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 85 | $(JDK_OUTPUTDIR)/_the.$1.binaries.imported: $$($1_DIST)/lib/bin.zip $$($1_BINARIES_DEP) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 86 | $(ECHO) Importing $1 bin.zip |
| 87 | $(MKDIR) -p $$(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 88 | $(RM) $$@ $$@.tmp |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 89 | ($(CD) $$(@D) && $(JAR) xvf $$< > $$@.tmp) |
| 90 | $(MV) $$@.tmp $$@ |
| 91 | endef |
| 92 | |
| 93 | ####### |
| 94 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 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))) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 98 | |
| 99 | IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES) |
| 100 | |
| 101 | ####### |
| 102 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 103 | define CopyDir |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 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/% |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 108 | $(ECHO) $(LOG_INFO) Copying $$(@F) |
erikj | c784c0e | 2013-02-18 11:27:43 +0100 | [diff] [blame] | 109 | $$(install-file) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 110 | endef |
| 111 | |
| 112 | ####### |
| 113 | |
| 114 | # |
| 115 | # Import hotspot |
| 116 | # |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 117 | HOTSPOT_IMPORT_FILES := $(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \ |
| 118 | Xusage.txt sa-jdi.jar |
dholmes | bb58887 | 2014-12-17 20:25:47 -0500 | [diff] [blame] | 119 | |
| 120 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 121 | # additional debug file |
| 122 | HOTSPOT_IMPORT_FILES += Info.plist |
| 123 | endif |
| 124 | |
tbell | 9eea0b0 | 2012-11-12 12:35:20 -0800 | [diff] [blame] | 125 | $(eval $(call CopyDir,HOTSPOT0, $(HOTSPOT_LIB_DIR), $(INSTALL_LIBRARIES_HERE), $(HOTSPOT_IMPORT_FILES))) |
| 126 | $(eval $(call CopyDir,HOTSPOT1, $(HOTSPOT_DIST)/lib, $(JDK_OUTPUTDIR)/lib, $(HOTSPOT_IMPORT_FILES))) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 127 | |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 128 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 129 | JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig$(SHARED_LIBRARY_SUFFIX).dSYM) \ |
| 130 | $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) ) |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 131 | else |
dcubed | 10a5a93 | 2013-10-25 10:16:40 -0700 | [diff] [blame] | 132 | JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.debuginfo) \ |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 133 | $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjsig.diz) ) |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 134 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 135 | |
| 136 | ifneq ($(OPENJDK_TARGET_OS), windows) |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 137 | ifeq ($(JVM_VARIANT_SERVER), true) |
| 138 | IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
| 139 | ifneq (, $(JSIG_DEBUGINFO)) |
| 140 | IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 141 | endif |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 142 | endif |
| 143 | ifeq ($(JVM_VARIANT_CLIENT), true) |
| 144 | IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
| 145 | ifneq (, $(JSIG_DEBUGINFO)) |
| 146 | IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 147 | endif |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 148 | endif |
dcubed | 10a5a93 | 2013-10-25 10:16:40 -0700 | [diff] [blame] | 149 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
| 150 | ifeq ($(JVM_VARIANT_MINIMAL1), true) |
| 151 | IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX) |
| 152 | ifneq (,$(JSIG_DEBUGINFO)) |
| 153 | IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I)) |
| 154 | endif |
dholmes | 9bfdb14 | 2013-01-21 21:54:51 -0500 | [diff] [blame] | 155 | endif |
dcubed | 10a5a93 | 2013-10-25 10:16:40 -0700 | [diff] [blame] | 156 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 157 | endif |
| 158 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 159 | $(INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 160 | $(MKDIR) -p $(@D) |
| 161 | $(RM) $@ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 162 | $(LN) -s ../$(@F) $@ |
| 163 | |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 164 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 165 | $(INSTALL_LIBRARIES_HERE)/server/%.dSYM : $(INSTALL_LIBRARIES_HERE)/%.dSYM |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 166 | $(MKDIR) -p $(@D) |
| 167 | $(RM) $@ |
| 168 | $(LN) -s ../$(@F) $@ |
| 169 | |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 170 | $(INSTALL_LIBRARIES_HERE)/server/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 171 | $(MKDIR) -p $(@D) |
| 172 | $(RM) $@ |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 173 | $(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
| 174 | $(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
| 175 | $(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM |
| 176 | $(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 177 | $(MV) $@.tmp $@ |
| 178 | else |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 179 | $(INSTALL_LIBRARIES_HERE)/server/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 180 | $(MKDIR) -p $(@D) |
| 181 | $(RM) $@ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 182 | $(LN) -s ../$(@F) $@ |
| 183 | |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 184 | $(INSTALL_LIBRARIES_HERE)/server/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 185 | $(MKDIR) -p $(@D) |
| 186 | $(RM) $@ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 187 | $(RM) $@.tmp $(basename $@).debuginfo |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 188 | $(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
erikj | 967f29d | 2013-01-16 16:40:16 +0100 | [diff] [blame] | 189 | $(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 190 | $(RM) $(basename $@).debuginfo |
| 191 | $(MV) $@.tmp $@ |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 192 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 193 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 194 | $(INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 195 | $(MKDIR) -p $(@D) |
| 196 | $(RM) $@ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 197 | $(LN) -s ../$(@F) $@ |
| 198 | |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 199 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 200 | $(INSTALL_LIBRARIES_HERE)/client/%.dSYM : $(INSTALL_LIBRARIES_HERE)/%.dSYM |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 201 | $(MKDIR) -p $(@D) |
| 202 | $(RM) $@ |
| 203 | $(LN) -s ../$(@F) $@ |
| 204 | |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 205 | $(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 206 | $(MKDIR) -p $(@D) |
| 207 | $(RM) $@ |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 208 | $(RM) $@.tmp $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
| 209 | $(LN) -s ../$(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
| 210 | $(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F))$(SHARED_LIBRARY_SUFFIX).dSYM |
| 211 | $(RM) $(basename $@)$(SHARED_LIBRARY_SUFFIX).dSYM |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 212 | $(MV) $@.tmp $@ |
| 213 | else |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 214 | $(INSTALL_LIBRARIES_HERE)/client/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 215 | $(MKDIR) -p $(@D) |
| 216 | $(RM) $@ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 217 | $(LN) -s ../$(@F) $@ |
| 218 | |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 219 | $(INSTALL_LIBRARIES_HERE)/client/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 220 | $(MKDIR) -p $(@D) |
| 221 | $(RM) $@ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 222 | $(RM) $@.tmp $(basename $@).debuginfo |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 223 | $(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
erikj | 967f29d | 2013-01-16 16:40:16 +0100 | [diff] [blame] | 224 | $(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 225 | $(RM) $(basename $@).debuginfo |
| 226 | $(MV) $@.tmp $@ |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 227 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 228 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 229 | $(INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX) |
dholmes | 9bfdb14 | 2013-01-21 21:54:51 -0500 | [diff] [blame] | 230 | $(MKDIR) -p $(@D) |
| 231 | $(RM) $@ |
| 232 | $(LN) -s ../$(@F) $@ |
| 233 | |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 234 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 235 | $(INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo |
dholmes | 9bfdb14 | 2013-01-21 21:54:51 -0500 | [diff] [blame] | 236 | $(MKDIR) -p $(@D) |
| 237 | $(RM) $@ |
| 238 | $(LN) -s ../$(@F) $@ |
| 239 | |
erikj | a0cf85d | 2013-10-29 15:44:30 +0100 | [diff] [blame] | 240 | $(INSTALL_LIBRARIES_HERE)/minimal/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz |
dholmes | 9bfdb14 | 2013-01-21 21:54:51 -0500 | [diff] [blame] | 241 | $(MKDIR) -p $(@D) |
| 242 | $(RM) $@ |
| 243 | $(RM) $@.tmp $(basename $@).debuginfo |
| 244 | $(LN) -s ../$(basename $(@F)).debuginfo $(basename $@).debuginfo |
| 245 | $(CD) $(@D) && $(ZIP) -q -y $@.tmp $(basename $(@F)).debuginfo |
| 246 | $(RM) $(basename $@).debuginfo |
| 247 | $(MV) $@.tmp $@ |
dcubed | b2db7f0 | 2013-10-15 08:26:38 -0700 | [diff] [blame] | 248 | endif |
dholmes | 9bfdb14 | 2013-01-21 21:54:51 -0500 | [diff] [blame] | 249 | |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 250 | ########################################################################################## |
| 251 | # Unpack the binary distributions of the crypto classes if they exist. |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 252 | SEC_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/sec-bin.zip |
| 253 | SEC_FILES_WIN_ZIP := $(JDK_TOPDIR)/make/tools/crypto/sec-windows-bin.zip |
| 254 | JGSS_WIN32_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/jgss-windows-i586-bin.zip |
| 255 | JGSS_WIN64_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/jgss-windows-x64-bin.zip |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 256 | |
| 257 | define unzip-sec-file |
| 258 | $(ECHO) Unzipping $(<F) |
| 259 | $(MKDIR) -p $(@D) |
| 260 | $(RM) $@ |
erikj | d22fbd2 | 2014-03-18 14:55:34 +0100 | [diff] [blame] | 261 | ($(CD) $(JDK_OUTPUTDIR) && $(UNZIP) -q -o $< > $@.tmp) |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 262 | $(MV) $@.tmp $@ |
| 263 | endef |
| 264 | |
| 265 | $(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped: $(SEC_FILES_ZIP) |
| 266 | $(call unzip-sec-file) |
| 267 | |
| 268 | $(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped: $(SEC_FILES_WIN_ZIP) |
| 269 | $(call unzip-sec-file) |
| 270 | |
| 271 | $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped: $(JGSS_WIN32_FILES_ZIP) |
| 272 | $(call unzip-sec-file) |
| 273 | |
| 274 | $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped: $(JGSS_WIN64_FILES_ZIP) |
| 275 | $(call unzip-sec-file) |
| 276 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 277 | ifneq ($(wildcard $(SEC_FILES_ZIP)), ) |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 278 | IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 279 | ifeq ($(OPENJDK_TARGET_OS), windows) |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 280 | IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 281 | ifeq ($(OPENJDK_TARGET_CPU), x86) |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 282 | IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped |
| 283 | endif |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 284 | ifeq ($(OPENJDK_TARGET_CPU), x86_64) |
erikj | 41f8260 | 2013-06-11 13:26:15 +0200 | [diff] [blame] | 285 | IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped |
| 286 | endif |
| 287 | endif |
| 288 | endif |
| 289 | |
| 290 | ########################################################################################## |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 291 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 292 | all: $(IMPORT_TARGET_FILES) |