105 106 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ 107 $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) 108 $(call LogWarn, Creating legacy jre image) 109 $(RM) -r $(JRE_IMAGE_DIR) 110 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \ 111 $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ 112 $(JLINK_JRE_EXTRA_OPTS) \ 113 --output $(JRE_IMAGE_DIR) \ 114 ) 115 ifeq ($(BUILD_CDS_ARCHIVE), true) 116 $(call LogWarn, Creating CDS archive for jre image) 117 $(JRE_IMAGE_DIR)/bin/java -Xshare:dump -Xmx128M -Xms128M $(LOG_INFO) 118 endif 119 $(TOUCH) $@ 120 121 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 122 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 123 124 ################################################################################ 125 # /man dir 126 # 127 # All variables in this section are assigned with simple =, without :, to enable 128 # more selective overriding from the custom version of this file. 129 # 130 # Avoid evaluating this whole section on windows for speed and stability 131 ifneq ($(OPENJDK_TARGET_OS), windows) 132 ifeq ($(BUILD_MANPAGES), true) 133 JRE_MAN_PAGES += \ 134 java.1 \ 135 jjs.1 \ 136 keytool.1 \ 137 orbd.1 \ 138 pack200.1 \ 139 rmid.1 \ 140 rmiregistry.1 \ 141 servertool.1 \ 142 unpack200.1 143 144 JDK_MAN_PAGES += \ 145 $(JRE_MAN_PAGES) \ 146 idlj.1 \ 147 jar.1 \ 148 jarsigner.1 \ 149 javac.1 \ 150 javadoc.1 \ 151 javap.1 \ 152 jconsole.1 \ 153 jcmd.1 \ 154 jdb.1 \ 155 jdeps.1 \ 156 jinfo.1 \ 157 jmap.1 \ 158 jps.1 \ 159 jrunscript.1 \ 160 jstack.1 \ 161 jstat.1 \ 162 jstatd.1 \ 163 rmic.1 \ 164 serialver.1 165 166 # This variable is potentially overridden in the closed makefile. 167 MAN_SRC_BASEDIR ?= $(TOPDIR)/src 168 169 ifeq ($(OPENJDK_TARGET_OS), linux) 170 MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/linux/doc 171 MAN1_SUBDIR = man 172 endif 173 ifeq ($(OPENJDK_TARGET_OS), solaris) 174 MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/solaris/doc 175 MAN1_SUBDIR = sun/man/man1 176 endif 177 ifeq ($(OPENJDK_TARGET_OS), macosx) 178 MAN_SRC_DIR = $(MAN_SRC_BASEDIR)/bsd/doc 179 MAN1_SUBDIR = man 180 endif 181 182 $(JRE_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/% 183 $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@)) 184 $(install-file) 185 186 $(JDK_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/% 187 $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@)) 188 $(install-file) 189 190 $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% 191 $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@)) 192 $(install-file) 193 194 $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% 195 $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@)) 196 $(install-file) 197 198 ifeq ($(OPENJDK_TARGET_OS), solaris) 199 $(JRE_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% 200 $(call LogInfo, Converting $(patsubst $(OUTPUTDIR)/%,%,$@)) 201 $(install-file) 202 203 $(JDK_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% 204 $(call LogInfo, Converting $(patsubst $(OUTPUTDIR)/%,%,$@)) 205 $(install-file) 206 endif 207 208 ifneq ($(findstring $(OPENJDK_TARGET_OS), linux macosx), ) 209 $(JRE_IMAGE_DIR)/man/ja: 210 $(call LogInfo, Creating $(patsubst $(OUTPUTDIR)/%,%,$@)) 211 $(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja 212 213 $(JDK_IMAGE_DIR)/man/ja: 214 $(call LogInfo, Creating $(patsubst $(OUTPUTDIR)/%,%,$@)) 215 $(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja 216 endif 217 218 ifeq ($(OPENJDK_TARGET_OS), solaris) 219 JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \ 220 $(addprefix $(JRE_IMAGE_DIR)/man/ja/man1/, $(JRE_MAN_PAGES)) \ 221 $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \ 222 $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JRE_MAN_PAGES)) 223 224 JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \ 225 $(addprefix $(JDK_IMAGE_DIR)/man/ja/man1/, $(JDK_MAN_PAGES)) \ 226 $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \ 227 $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/, $(JDK_MAN_PAGES)) 228 endif 229 230 ifneq ($(findstring $(OPENJDK_TARGET_OS), linux macosx), ) 231 JRE_MAN_PAGE_LIST = $(addprefix $(JRE_IMAGE_DIR)/man/man1/, $(JRE_MAN_PAGES)) \ 232 $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JRE_MAN_PAGES)) \ 233 $(JRE_IMAGE_DIR)/man/ja 234 235 JDK_MAN_PAGE_LIST = $(addprefix $(JDK_IMAGE_DIR)/man/man1/, $(JDK_MAN_PAGES)) \ 236 $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/, $(JDK_MAN_PAGES)) \ 237 $(JDK_IMAGE_DIR)/man/ja 238 endif 239 240 JRE_TARGETS += $(JRE_MAN_PAGE_LIST) 241 JDK_TARGETS += $(JDK_MAN_PAGE_LIST) 242 endif # BUILD_MANPAGES 243 endif # Windows 244 245 ################################################################################ 246 # src.zip 247 248 $(JDK_IMAGE_DIR)/lib/src.zip: $(SUPPORT_OUTPUTDIR)/src.zip 249 $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@)) 250 $(install-file) 251 252 JDK_TARGETS += $(JDK_IMAGE_DIR)/lib/src.zip 253 254 ################################################################################ 255 # /demo dir 256 # Avoid doing the expensive find unless called with "jdk" as target. 257 ifneq ($(filter jdk, $(MAKECMDGOALS)), ) 258 259 DEMO_FILES := \ 260 $(if $(wildcard $(SUPPORT_OUTPUTDIR)/demos/image), \ 261 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/demos/image \ 262 -type f -a ! \( -name "_the*" -o -name "javac_state" \) ) \ 263 ) 264 265 ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true) | 105 106 $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE): $(JMODS) \ 107 $(call DependOnVariable, JRE_MODULES_LIST) $(BASE_RELEASE_FILE) 108 $(call LogWarn, Creating legacy jre image) 109 $(RM) -r $(JRE_IMAGE_DIR) 110 $(call ExecuteWithLog, $(SUPPORT_OUTPUTDIR)/images/jre, \ 111 $(JLINK_TOOL) --add-modules $(JRE_MODULES_LIST) \ 112 $(JLINK_JRE_EXTRA_OPTS) \ 113 --output $(JRE_IMAGE_DIR) \ 114 ) 115 ifeq ($(BUILD_CDS_ARCHIVE), true) 116 $(call LogWarn, Creating CDS archive for jre image) 117 $(JRE_IMAGE_DIR)/bin/java -Xshare:dump -Xmx128M -Xms128M $(LOG_INFO) 118 endif 119 $(TOUCH) $@ 120 121 TOOL_JRE_TARGETS := $(JRE_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 122 TOOL_JDK_TARGETS := $(JDK_IMAGE_DIR)/$(JIMAGE_TARGET_FILE) 123 124 ################################################################################ 125 # src.zip 126 127 $(JDK_IMAGE_DIR)/lib/src.zip: $(SUPPORT_OUTPUTDIR)/src.zip 128 $(call LogInfo, Copying $(patsubst $(OUTPUTDIR)/%,%,$@)) 129 $(install-file) 130 131 JDK_TARGETS += $(JDK_IMAGE_DIR)/lib/src.zip 132 133 ################################################################################ 134 # /demo dir 135 # Avoid doing the expensive find unless called with "jdk" as target. 136 ifneq ($(filter jdk, $(MAKECMDGOALS)), ) 137 138 DEMO_FILES := \ 139 $(if $(wildcard $(SUPPORT_OUTPUTDIR)/demos/image), \ 140 $(shell $(FIND) $(SUPPORT_OUTPUTDIR)/demos/image \ 141 -type f -a ! \( -name "_the*" -o -name "javac_state" \) ) \ 142 ) 143 144 ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true) |