ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
| 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 | include $(SPEC) |
| 27 | include MakeBase.gmk |
| 28 | include JavaCompilation.gmk |
| 29 | include Setup.gmk |
| 30 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 31 | default: images |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 32 | |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 33 | # Prepare the find cache. Only used if running on windows. |
| 34 | $(eval $(call FillCacheFind,\ |
| 35 | $(wildcard $(JDK_OUTPUTDIR)/bin \ |
| 36 | $(JDK_OUTPUTDIR)/lib \ |
| 37 | $(IMAGES_OUTPUTDIR)/lib \ |
| 38 | $(JDK_OUTPUTDIR)/include \ |
| 39 | $(JDK_OUTPUTDIR)/sample \ |
| 40 | $(JDK_OUTPUTDIR)/demo))) |
| 41 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 42 | include Tools.gmk |
| 43 | |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 44 | include Profiles.gmk |
| 45 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 46 | # Note: This double-colon rule is intentional, to support |
| 47 | # custom make file integration. |
| 48 | images:: jre-image jdk-image |
| 49 | |
| 50 | overlay-images: jre-overlay-image jdk-overlay-image |
| 51 | |
| 52 | |
| 53 | -include $(CUSTOM_MAKE_DIR)/Images.gmk |
| 54 | |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 55 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 56 | # Processing license files from source area to image area |
| 57 | # These will be modified to have the platform specific EOL chars. |
| 58 | define process-doc-file |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 59 | $(ECHO) $(LOG_INFO) Processing $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 60 | $(MKDIR) -p $(@D) |
| 61 | $(RM) $@ |
| 62 | $(SED) 's/$$//g' $< > $@ |
| 63 | $(CHMOD) 444 $@ |
| 64 | endef |
| 65 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 66 | define AddFileToCopy |
| 67 | # Param 1 - src root dir |
| 68 | # Param 2 - dest root dir |
| 69 | # Param 3 - src file |
| 70 | # Param 4 - variable to add targets to |
| 71 | |
| 72 | # Remove src dir root from src file |
| 73 | $2_$3_FILE := $$(patsubst $1/%,%,$3) |
| 74 | |
| 75 | $2/$$($2_$3_FILE): $3 |
| 76 | $(ECHO) $(LOG_INFO) Copying $$(patsubst $(OUTPUT_ROOT)/%,%,$$@) |
| 77 | $$(install-file) |
| 78 | |
| 79 | $4 += $2/$$($2_$3_FILE) |
| 80 | endef |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 81 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 82 | ################################################################################ |
| 83 | # |
| 84 | # JRE and JDK build rules |
| 85 | # |
| 86 | ################################################################################ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 87 | # |
| 88 | # Variable prefixes explained: |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 89 | # JRE_ refers to files in the j2re-*-image. |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 90 | # JDK_ refers to files in the j2sdk-image outside of the jre subdir. |
| 91 | # JDKJRE_ refers to files in the j2sdk-image inside the jre subdir. |
| 92 | # |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 93 | |
| 94 | ################################################################################ |
| 95 | # /bin dir |
| 96 | |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 97 | ifeq ($(PROFILE),) |
| 98 | NOT_JRE_BIN_FILES := \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 99 | appletviewer$(EXE_SUFFIX) \ |
| 100 | extcheck$(EXE_SUFFIX) \ |
| 101 | idlj$(EXE_SUFFIX) \ |
| 102 | jar$(EXE_SUFFIX) \ |
| 103 | jarsigner$(EXE_SUFFIX) \ |
| 104 | java-rmi.cgi \ |
| 105 | javac$(EXE_SUFFIX) \ |
| 106 | javadoc$(EXE_SUFFIX) \ |
| 107 | javah$(EXE_SUFFIX) \ |
| 108 | javap$(EXE_SUFFIX) \ |
mchung | 98b6e50 | 2012-12-28 22:21:40 -0800 | [diff] [blame] | 109 | jdeps$(EXE_SUFFIX) \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 110 | jcmd$(EXE_SUFFIX) \ |
| 111 | jdb$(EXE_SUFFIX) \ |
| 112 | jps$(EXE_SUFFIX) \ |
| 113 | jrunscript$(EXE_SUFFIX) \ |
| 114 | jstat$(EXE_SUFFIX) \ |
| 115 | jstatd$(EXE_SUFFIX) \ |
| 116 | jstack$(EXE_SUFFIX) \ |
| 117 | packagebean$(SCRIPT_SUFFIX) \ |
| 118 | rmic$(EXE_SUFFIX) \ |
| 119 | serialver$(EXE_SUFFIX) \ |
| 120 | unregbean$(EXE_SUFFIX) \ |
| 121 | jconsole$(EXE_SUFFIX) \ |
| 122 | jinfo$(EXE_SUFFIX) \ |
| 123 | jmap$(EXE_SUFFIX) \ |
| 124 | native2ascii$(EXE_SUFFIX) \ |
| 125 | xjc$(EXE_SUFFIX) \ |
| 126 | wsgen$(EXE_SUFFIX) \ |
| 127 | wsimport$(EXE_SUFFIX) \ |
| 128 | schemagen$(EXE_SUFFIX) \ |
| 129 | jsadebugd$(EXE_SUFFIX) \ |
| 130 | jhat$(EXE_SUFFIX) |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 131 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 132 | |
| 133 | WINDOWS_JDK_BIN_FILES = \ |
| 134 | $(EXE_SUFFIX) \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 135 | $(LIBRARY_PREFIX)jli$(SHARED_LIBRARY_SUFFIX) \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 136 | $(notdir $(MSVCR_DLL)) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 137 | |
| 138 | WINDOWS_JDKJRE_BIN_FILES := \ |
| 139 | $(LIBRARY_PREFIX)attach$(SHARED_LIBRARY_SUFFIX) \ |
| 140 | $(SALIB_NAME) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 141 | |
| 142 | # Find all files in bin dir |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 143 | ALL_BIN_LIST := $(call CacheFind,$(JDK_OUTPUTDIR)/bin) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 144 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 145 | # Prevent sjavac from entering the images. |
| 146 | ALL_BIN_LIST := $(filter-out %/sjavac,$(ALL_BIN_LIST)) |
| 147 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 148 | # For unknown reason the debuginfo files for executables are not put into images |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 149 | # e.g filter them out |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 150 | ifneq ($(OPENJDK_TARGET_OS),windows) |
| 151 | ALL_BIN_LIST := $(filter-out %.debuginfo %.diz, $(ALL_BIN_LIST)) |
| 152 | else |
| 153 | # On windows, the libraries are in the bin dir, only filter out debuginfo files |
| 154 | # for executables. "java" is both a library and executable. |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 155 | ALL_BIN_EXEC_FILES := $(filter-out java.exe,$(notdir $(filter %.exe,$(ALL_BIN_LIST)))) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 156 | ALL_BIN_DEBUG_FILTER := $(addprefix %,$(patsubst %.exe,%.debuginfo,$(ALL_BIN_EXEC_FILES)) \ |
| 157 | $(patsubst %.exe,%.diz,$(ALL_BIN_EXEC_FILES))) %.pdb |
| 158 | ALL_BIN_LIST := $(filter-out $(ALL_BIN_DEBUG_FILTER),$(ALL_BIN_LIST)) |
| 159 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 160 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 161 | JDKJRE_BIN_LIST := $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES)), $(ALL_BIN_LIST)) |
| 162 | JRE_BIN_LIST := $(filter-out $(addprefix %,$(WINDOWS_JDKJRE_BIN_FILES)), $(JDKJRE_BIN_LIST)) |
| 163 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 164 | ifeq ($(OPENJDK_TARGET_OS),windows) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 165 | JDK_BIN_LIST := $(filter $(addprefix %,$(WINDOWS_JDK_BIN_FILES)), $(ALL_BIN_LIST)) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 166 | # On windows x86, the server jvm is filtered out from the j2re image. This could possibly |
| 167 | # be handled by profiles in the future. If no client jvm is built, leave server in. |
| 168 | ifeq ($(OPENJDK_TARGET_CPU),x86) |
| 169 | ifeq ($(JVM_VARIANT_CLIENT),true) |
| 170 | JRE_BIN_LIST := $(filter-out $(JDK_OUTPUTDIR)/bin/server/%,$(JRE_BIN_LIST)) |
| 171 | endif |
| 172 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 173 | else |
| 174 | JDK_BIN_LIST := $(ALL_BIN_LIST) |
| 175 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 176 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 177 | ifneq ($(OPENJDK_TARGET_CPU_ISADIR),) |
| 178 | OVERLAY_FILTER := $(JDK_OUTPUTDIR)/bin$(OPENJDK_TARGET_CPU_ISADIR)% |
| 179 | endif |
| 180 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 181 | $(foreach f,$(filter-out $(OVERLAY_FILTER),$(JRE_BIN_LIST)),\ |
| 182 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JRE_IMAGE_DIR),$f,JRE_BIN_TARGETS))) |
| 183 | $(foreach f,$(filter-out $(OVERLAY_FILTER),$(JDK_BIN_LIST)),\ |
| 184 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_BIN_TARGETS))) |
| 185 | $(foreach f,$(filter-out $(OVERLAY_FILTER),$(JDKJRE_BIN_LIST)),\ |
| 186 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR)/jre,$f,JDKJRE_BIN_TARGETS))) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 187 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 188 | $(foreach f,$(filter $(OVERLAY_FILTER),$(JRE_BIN_LIST)),\ |
| 189 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JRE_OVERLAY_IMAGE_DIR),$f,JRE_BIN_TARGETS))) |
| 190 | $(foreach f,$(filter $(OVERLAY_FILTER),$(JDK_BIN_LIST)),\ |
| 191 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_OVERLAY_IMAGE_DIR),$f,JDK_BIN_TARGETS))) |
| 192 | $(foreach f,$(filter $(OVERLAY_FILTER),$(JDKJRE_BIN_LIST)),\ |
| 193 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_OVERLAY_IMAGE_DIR)/jre,$f,JDKJRE_BIN_TARGETS))) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 194 | |
| 195 | ################################################################################ |
| 196 | # /lib dir |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 197 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
| 198 | JDKJRE_LIB_FILES := \ |
| 199 | $(LIBRARY_PREFIX)attach$(SHARED_LIBRARY_SUFFIX) \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 200 | $(SALIB_NAME) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 201 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 202 | |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 203 | ifeq ($(PROFILE),) |
| 204 | NOT_JRE_LIB_FILES := \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 205 | tools.jar \ |
| 206 | jconsole.jar \ |
| 207 | sa-jdi.jar \ |
| 208 | dt.jar \ |
| 209 | orb.idl \ |
| 210 | ir.idl \ |
| 211 | ct.sym |
| 212 | |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 213 | ifeq ($(OPENJDK_TARGET_OS), windows) |
| 214 | NOT_JRE_LIB_FILES += jawt.lib jvm.lib |
| 215 | endif |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 216 | endif |
| 217 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 218 | JDK_LIB_FILES := $(NOT_JRE_LIB_FILES) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 219 | ifeq ($(OPENJDK_TARGET_OS), linux) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 220 | JDK_LIB_FILES += jexec |
| 221 | endif |
| 222 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 223 | # Find all files to copy from $(JDK_OUTPUTDIR)/lib |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 224 | # Jar files are not expected to be here |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 225 | ALL_JDKOUT_LIB_LIST := $(call not-containing,_the.,$(filter-out %.jar,\ |
| 226 | $(call CacheFind,$(JDK_OUTPUTDIR)/lib))) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 227 | # Find all files to copy from $(IMAGES_OUTPUTDIR)/lib |
erikj | 62187db | 2012-12-05 10:12:57 +0100 | [diff] [blame] | 228 | # This is were the jar files are and might not exist if building overlay-images |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 229 | ifneq ($(wildcard $(IMAGES_OUTPUTDIR)/lib),) |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 230 | ALL_IMAGES_LIB_LIST := $(call not-containing,_the.,\ |
| 231 | $(call CacheFind,$(IMAGES_OUTPUTDIR)/lib)) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 232 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 233 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 234 | # Filter files to copy for each destination |
| 235 | JRE_JDKOUT_LIB_LIST := $(filter-out $(addprefix %,$(NOT_JRE_LIB_FILES) $(JDKJRE_LIB_FILES)),\ |
| 236 | $(ALL_JDKOUT_LIB_LIST)) |
| 237 | JDKJRE_JDKOUT_LIB_LIST := $(filter-out $(addprefix %,$(NOT_JRE_LIB_FILES)),$(ALL_JDKOUT_LIB_LIST)) |
| 238 | JDK_JDKOUT_LIB_LIST := $(filter $(addprefix %,$(JDK_LIB_FILES)),$(ALL_JDKOUT_LIB_LIST)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 239 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 240 | JRE_IMAGES_LIB_LIST := $(filter-out $(addprefix %,$(NOT_JRE_LIB_FILES) $(JDKJRE_LIB_FILES)),\ |
| 241 | $(ALL_IMAGES_LIB_LIST)) |
| 242 | JDKJRE_IMAGES_LIB_LIST := $(filter-out $(addprefix %,$(NOT_JRE_LIB_FILES)),$(ALL_IMAGES_LIB_LIST)) |
| 243 | JDK_IMAGES_LIB_LIST := $(filter $(addprefix %,$(JDK_LIB_FILES)),$(ALL_IMAGES_LIB_LIST)) |
| 244 | |
| 245 | # Iterate over files to copy to create rules for each one |
| 246 | $(foreach f,$(JRE_JDKOUT_LIB_LIST),\ |
| 247 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JRE_IMAGE_DIR),$f,JRE_LIB_TARGETS))) |
| 248 | $(foreach f,$(JDK_JDKOUT_LIB_LIST),\ |
| 249 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_LIB_TARGETS))) |
| 250 | $(foreach f,$(JDKJRE_JDKOUT_LIB_LIST),\ |
| 251 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR)/jre,$f,JDKJRE_LIB_TARGETS))) |
| 252 | |
| 253 | $(foreach f,$(JRE_IMAGES_LIB_LIST),\ |
| 254 | $(eval $(call AddFileToCopy,$(IMAGES_OUTPUTDIR),$(JRE_IMAGE_DIR),$f,JRE_LIB_TARGETS))) |
| 255 | $(foreach f,$(JDK_IMAGES_LIB_LIST),\ |
| 256 | $(eval $(call AddFileToCopy,$(IMAGES_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_LIB_TARGETS))) |
| 257 | $(foreach f,$(JDKJRE_IMAGES_LIB_LIST),\ |
| 258 | $(eval $(call AddFileToCopy,$(IMAGES_OUTPUTDIR),$(JDK_IMAGE_DIR)/jre,$f,JDKJRE_LIB_TARGETS))) |
| 259 | |
| 260 | $(foreach f,$(filter $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_ISADIR)/%,$(JRE_JDKOUT_LIB_LIST)),\ |
| 261 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JRE_OVERLAY_IMAGE_DIR),$f,JRE_OVERLAY_LIB_TARGETS))) |
| 262 | $(foreach f,$(filter $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_ISADIR)/%,$(JDK_JDKOUT_LIB_LIST)),\ |
| 263 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_OVERLAY_IMAGE_DIR),$f,JDK_OVERLAY_LIB_TARGETS))) |
| 264 | $(foreach f,$(filter $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_ISADIR)/%,$(JDKJRE_JDKOUT_LIB_LIST)),\ |
| 265 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_OVERLAY_IMAGE_DIR)/jre,$f,JDKJRE_OVERLAY_LIB_TARGETS))) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 266 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 267 | # CTE plugin security change require new empty directory lib/applet |
| 268 | $(JRE_IMAGE_DIR)/lib/applet: |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 269 | $(ECHO) $(LOG_INFO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 270 | $(MKDIR) -p $@ |
| 271 | |
| 272 | $(JDK_IMAGE_DIR)/jre/lib/applet: |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 273 | $(ECHO) $(LOG_INFO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 274 | $(MKDIR) -p $@ |
| 275 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 276 | # In the old build, JObjC.jar is not part of the meta-index |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 277 | $(JRE_IMAGE_DIR)/lib/meta-index: $(JRE_LIB_TARGETS) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 278 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 279 | $(CD) $(@D) && $(TOOL_BUILDMETAINDEX) -o meta-index `$(LS) *.jar | $(SED) 's/JObjC\.jar//g'` |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 280 | |
| 281 | $(JDK_IMAGE_DIR)/jre/lib/meta-index: $(JDKJRE_LIB_TARGETS) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 282 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 283 | $(CD) $(@D) && $(TOOL_BUILDMETAINDEX) -o meta-index `$(LS) *.jar | $(SED) 's/JObjC\.jar//g'` |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 284 | |
| 285 | $(JRE_IMAGE_DIR)/lib/ext/meta-index: $(JRE_LIB_TARGETS) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 286 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 287 | $(CD) $(@D) && $(TOOL_BUILDMETAINDEX) -o meta-index *.jar |
| 288 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 289 | $(JDK_IMAGE_DIR)/jre/lib/ext/meta-index: $(JDKJRE_LIB_TARGETS) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 290 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 291 | $(CD) $(@D) && $(TOOL_BUILDMETAINDEX) -o meta-index *.jar |
| 292 | |
| 293 | ################################################################################ |
| 294 | # /man dir |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 295 | # Avoid evaluating this whole section on windows for speed and stability |
| 296 | ifneq ($(OPENJDK_TARGET_OS),windows) |
| 297 | JRE_MAN_PAGES := \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 298 | java.1 \ |
| 299 | keytool.1 \ |
| 300 | orbd.1 \ |
| 301 | pack200.1 \ |
| 302 | policytool.1 \ |
| 303 | rmid.1 \ |
| 304 | rmiregistry.1 \ |
| 305 | servertool.1 \ |
| 306 | tnameserv.1 \ |
| 307 | unpack200.1 |
| 308 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 309 | ifndef OPENJDK |
| 310 | JRE_MAN_PAGES += javaws.1 |
| 311 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 312 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 313 | JDK_MAN_PAGES = \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 314 | $(JRE_MAN_PAGES) \ |
| 315 | appletviewer.1 \ |
| 316 | extcheck.1 \ |
| 317 | idlj.1 \ |
| 318 | jar.1 \ |
| 319 | jarsigner.1 \ |
| 320 | javac.1 \ |
| 321 | javadoc.1 \ |
| 322 | javah.1 \ |
| 323 | javap.1 \ |
| 324 | jconsole.1 \ |
| 325 | jcmd.1 \ |
| 326 | jdb.1 \ |
| 327 | jhat.1 \ |
| 328 | jinfo.1 \ |
| 329 | jmap.1 \ |
| 330 | jps.1 \ |
| 331 | jrunscript.1 \ |
| 332 | jsadebugd.1 \ |
| 333 | jstack.1 \ |
| 334 | jstat.1 \ |
| 335 | jstatd.1 \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 336 | native2ascii.1 \ |
| 337 | rmic.1 \ |
| 338 | schemagen.1 \ |
| 339 | serialver.1 \ |
| 340 | wsgen.1 \ |
| 341 | wsimport.1 \ |
| 342 | xjc.1 |
| 343 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 344 | ifndef OPENJDK |
| 345 | JDK_MAN_PAGES += jvisualvm.1 |
| 346 | endif |
andrew | 5aaf353 | 2012-08-23 15:42:23 +0100 | [diff] [blame] | 347 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 348 | ifeq ($(OPENJDK_TARGET_OS), linux) |
| 349 | MAN_SRC_DIR:=$(JDK_TOPDIR)/src/linux/doc |
| 350 | MAN1_SUBDIR:=man |
| 351 | endif |
| 352 | ifeq ($(OPENJDK_TARGET_OS), solaris) |
| 353 | MAN_SRC_DIR:=$(JDK_TOPDIR)/src/solaris/doc |
| 354 | MAN1_SUBDIR:=sun/man/man1 |
| 355 | endif |
| 356 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 357 | MAN_SRC_DIR:=$(JDK_TOPDIR)/src/bsd/doc |
| 358 | MAN1_SUBDIR:=man |
| 359 | JDK_MAN_PAGES := $(filter-out jcmd.1, $(JDK_MAN_PAGES)) |
| 360 | JDK_MAN_PAGES := $(filter-out jvisualvm.1, $(JDK_MAN_PAGES)) |
| 361 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 362 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 363 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 364 | $(JRE_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/% |
| 365 | $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 366 | $(install-file) |
| 367 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 368 | $(JDK_IMAGE_DIR)/man/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/% |
| 369 | $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 370 | $(install-file) |
| 371 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 372 | $(JRE_IMAGE_DIR)/man/man1/%: $(JDK_OUTPUTDIR)/impdoc/$(MAN1_SUBDIR)/% |
| 373 | $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 374 | $(install-file) |
| 375 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 376 | $(JDK_IMAGE_DIR)/man/man1/%: $(JDK_OUTPUTDIR)/impdoc/$(MAN1_SUBDIR)/% |
| 377 | $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 378 | $(install-file) |
| 379 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 380 | define install-ja-manpage |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 381 | $(MKDIR) -p $(@D) |
| 382 | $(CAT) $< \ |
| 383 | | $(NATIVE2ASCII) -encoding eucJP \ |
| 384 | | $(SED) 's/@@VERSION@@/$(THIS_JDK_VERSION)/g' \ |
| 385 | | $(NATIVE2ASCII) -reverse -encoding $1 \ |
| 386 | > $@ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 387 | endef |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 388 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 389 | $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% |
| 390 | $(ECHO) $(LOG_INFO) Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 391 | $(call install-ja-manpage,UTF-8) |
| 392 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 393 | $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% |
| 394 | $(ECHO) $(LOG_INFO) Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 395 | $(call install-ja-manpage,UTF-8) |
| 396 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 397 | $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% |
| 398 | $(ECHO) $(LOG_INFO) Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 399 | $(call install-ja-manpage,PCK) |
| 400 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 401 | $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% |
| 402 | $(ECHO) $(LOG_INFO) Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 403 | $(call install-ja-manpage,PCK) |
| 404 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 405 | ifeq ($(OPENJDK_TARGET_OS), solaris) |
| 406 | $(JRE_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% |
| 407 | $(ECHO) $(LOG_INFO) Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
| 408 | $(install-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 409 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 410 | $(JDK_IMAGE_DIR)/man/ja/man1/%: $(MAN_SRC_DIR)/$(MAN1_SUBDIR)/ja/% |
| 411 | $(ECHO) $(LOG_INFO) Converting $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
| 412 | $(install-file) |
| 413 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 414 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 415 | # Old build creates empty man page for this, mimicing behaviour. |
| 416 | $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/jcmd.1 $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/jcmd.1 $(JDK_IMAGE_DIR)/man/ja/man1/jcmd.1: |
| 417 | $(ECHO) $(LOG_INFO) Creating dummy $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 418 | $(MKDIR) -p $(@D) |
ohair | 92de566 | 2012-04-10 08:22:03 -0700 | [diff] [blame] | 419 | $(TOUCH) $@ |
| 420 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 421 | ifeq ($(OPENJDK_TARGET_OS), linux) |
| 422 | $(JRE_IMAGE_DIR)/man/ja: |
| 423 | $(ECHO) $(LOG_INFO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
| 424 | $(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 425 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 426 | $(JDK_IMAGE_DIR)/man/ja: |
| 427 | $(ECHO) $(LOG_INFO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
| 428 | $(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja |
| 429 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 430 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 431 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 432 | $(JRE_IMAGE_DIR)/man/ja: |
| 433 | $(ECHO) $(LOG_INFO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
| 434 | $(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 435 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 436 | $(JDK_IMAGE_DIR)/man/ja: |
| 437 | $(ECHO) $(LOG_INFO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
| 438 | $(CD) $(@D) && $(RM) ja && $(LN) -s ja_JP.UTF-8 ja |
| 439 | endif |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 440 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 441 | ifeq ($(OPENJDK_TARGET_OS), linux) |
| 442 | JRE_MAN_PAGE_LIST := $(addprefix $(JRE_IMAGE_DIR)/man/man1/,$(JRE_MAN_PAGES)) \ |
| 443 | $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/,$(JRE_MAN_PAGES)) \ |
| 444 | $(JRE_IMAGE_DIR)/man/ja |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 445 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 446 | JDK_MAN_PAGE_LIST := $(addprefix $(JDK_IMAGE_DIR)/man/man1/,$(JDK_MAN_PAGES)) \ |
| 447 | $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/,$(JDK_MAN_PAGES)) \ |
| 448 | $(JDK_IMAGE_DIR)/man/ja |
| 449 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 450 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 451 | ifeq ($(OPENJDK_TARGET_OS), solaris) |
| 452 | JRE_MAN_PAGE_LIST := $(addprefix $(JRE_IMAGE_DIR)/man/man1/,$(JRE_MAN_PAGES)) \ |
| 453 | $(addprefix $(JRE_IMAGE_DIR)/man/ja/man1/,$(JRE_MAN_PAGES)) \ |
| 454 | $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/,$(JRE_MAN_PAGES)) \ |
| 455 | $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.PCK/man1/,$(JRE_MAN_PAGES)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 456 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 457 | JDK_MAN_PAGE_LIST := $(addprefix $(JDK_IMAGE_DIR)/man/man1/,$(JDK_MAN_PAGES)) \ |
| 458 | $(addprefix $(JDK_IMAGE_DIR)/man/ja/man1/,$(JDK_MAN_PAGES)) \ |
| 459 | $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/,$(JDK_MAN_PAGES)) \ |
| 460 | $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.PCK/man1/,$(JDK_MAN_PAGES)) |
| 461 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 462 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 463 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
| 464 | JRE_MAN_PAGE_LIST := $(addprefix $(JRE_IMAGE_DIR)/man/man1/,$(JRE_MAN_PAGES)) \ |
| 465 | $(addprefix $(JRE_IMAGE_DIR)/man/ja_JP.UTF-8/man1/,$(JRE_MAN_PAGES)) \ |
| 466 | $(JRE_IMAGE_DIR)/man/ja |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 467 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 468 | JDK_MAN_PAGE_LIST := $(addprefix $(JDK_IMAGE_DIR)/man/man1/,$(JDK_MAN_PAGES)) \ |
| 469 | $(addprefix $(JDK_IMAGE_DIR)/man/ja_JP.UTF-8/man1/,$(JDK_MAN_PAGES)) \ |
| 470 | $(JDK_IMAGE_DIR)/man/ja |
| 471 | endif |
| 472 | |
| 473 | endif # Windows |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 474 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 475 | ################################################################################ |
| 476 | # /demo dir |
| 477 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 478 | # FIXME: demo/applets/GraphLayout/GraphPanel$2.class is sometimes not copied. |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 479 | |
| 480 | # The db demo contains an empty dir that needs to be copied. The other |
| 481 | # directories will always trigger the rule for recompile since |
| 482 | # _the.list_of_packages files are touched. |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 483 | $(JDK_IMAGE_DIR)/demo/%: $(JDK_OUTPUTDIR)/demo/% |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 484 | if [ ! -d "$@" ]; then \ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 485 | $(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)'; \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 486 | $(MKDIR) -p $(@D); \ |
| 487 | if [ -d "$<" ]; then $(MKDIR) -p $@; else $(CP) '$<' '$@'; fi \ |
| 488 | fi |
| 489 | |
| 490 | # Find all files including directories |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 491 | JDK_DEMO_TARGETS := $(patsubst $(JDK_OUTPUTDIR)/demo/%,$(JDK_IMAGE_DIR)/demo/%,\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 492 | $(shell $(FIND) $(JDK_OUTPUTDIR)/demo ! \( -name "_the*" -o -name "javac_state" \) )) |
| 493 | |
| 494 | |
| 495 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 496 | # Param 1 is source file |
| 497 | define CreateOverlayDemoRule |
| 498 | $1_TARGET:=$$(subst $(JDK_OUTPUTDIR),$(JDK_OVERLAY_IMAGE_DIR),\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 499 | $$(dir $1)$(OPENJDK_TARGET_CPU_ISADIR)/$$(notdir $1)) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 500 | $$($1_TARGET): $1 |
| 501 | $(ECHO) $(LOG_INFO) Copying '$$(patsubst $(OUTPUT_ROOT)/%,%,$$@)' |
| 502 | $$(call install-file) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 503 | |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 504 | JDK_OVERLAY_DEMO_TARGETS += $$($1_TARGET) |
| 505 | endef |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 506 | JDK_OVERLAY_DEMO_SOURCES := $(filter %$(SHARED_LIBRARY_SUFFIX),$(call CacheFind,$(JDK_OUTPUTDIR)/demo)) |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 507 | $(foreach lib,$(JDK_OVERLAY_DEMO_SOURCES),$(eval $(call CreateOverlayDemoRule,$(lib)))) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 508 | |
| 509 | ################################################################################ |
| 510 | # /sample dir |
| 511 | |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 512 | $(foreach f,$(call CacheFind,$(JDK_OUTPUTDIR)/sample),\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 513 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_SAMPLE_TARGETS))) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 514 | |
| 515 | ################################################################################ |
| 516 | # /db dir |
| 517 | |
| 518 | ifndef OPENJDK |
| 519 | $(IMAGES_OUTPUTDIR)/_unzip/%.unzipped: $(JDK_TOPDIR)/src/closed/share/db/% |
| 520 | $(ECHO) Unzipping $(patsubst $(SRC_ROOT)/%,%,$<) |
| 521 | $(MKDIR) -p $(JDK_IMAGE_DIR)/db |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 522 | cd $(JDK_IMAGE_DIR)/db && $(UNZIP) -q -o $< -x index.html 2> /dev/null |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 523 | $(MKDIR) -p $(@D) |
| 524 | $(TOUCH) $@ |
| 525 | |
| 526 | $(JDK_IMAGE_DIR)/db/README-JDK.html: $(JDK_TOPDIR)/src/closed/share/db/README-JDK.html |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 527 | $(ECHO) $(LOG_INFO) Copying '$(patsubst $(OUTPUT_ROOT)/%,%,$@)' |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 528 | $(install-file) |
| 529 | |
| 530 | JDK_DB_TARGETS := $(patsubst $(JDK_TOPDIR)/src/closed/share/db/%,$(IMAGES_OUTPUTDIR)/_unzip/%.unzipped,\ |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 531 | $(call not-containing,demo,$(wildcard $(JDK_TOPDIR)/src/closed/share/db/*.zip))) \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 532 | $(JDK_IMAGE_DIR)/db/README-JDK.html |
| 533 | |
| 534 | endif |
| 535 | |
| 536 | ################################################################################ |
| 537 | # /include dir |
| 538 | |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 539 | $(foreach f,$(call CacheFind,$(JDK_OUTPUTDIR)/include),\ |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 540 | $(eval $(call AddFileToCopy,$(JDK_OUTPUTDIR),$(JDK_IMAGE_DIR),$f,JDK_INCLUDE_TARGETS))) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 541 | |
| 542 | ################################################################################ |
| 543 | # doc files |
| 544 | |
| 545 | ifdef OPENJDK |
| 546 | JRE_DOC_FILES := LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README |
| 547 | JDK_DOC_FILES := LICENSE ASSEMBLY_EXCEPTION THIRD_PARTY_README |
| 548 | JRE_DOC_LOCATION := $(JDK_TOPDIR) |
| 549 | JDK_DOC_LOCATION := $(JDK_TOPDIR) |
| 550 | else |
| 551 | JRE_DOC_FILES := COPYRIGHT Welcome.html LICENSE THIRDPARTYLICENSEREADME.txt |
| 552 | JDK_DOC_FILES := COPYRIGHT README.html LICENSE THIRDPARTYLICENSEREADME.txt |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 553 | ifeq ($(OPENJDK_TARGET_OS), windows) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 554 | JRE_DOC_FILES += README.txt |
| 555 | else |
| 556 | JRE_DOC_FILES += README |
| 557 | endif |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 558 | JDK_DOC_FILES += demo/DEMOS_LICENSE sample/SAMPLES_LICENSE |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 559 | JRE_DOC_LOCATION := $(JDK_TOPDIR)/src/closed/share/doc/jre |
| 560 | JDK_DOC_LOCATION := $(JDK_TOPDIR)/src/closed/share/doc/jdk |
| 561 | endif |
| 562 | JRE_DOC_TARGETS := $(addprefix $(JRE_IMAGE_DIR)/,$(JRE_DOC_FILES)) |
| 563 | JDKJRE_DOC_TARGETS := $(addprefix $(JDK_IMAGE_DIR)/jre/,$(JRE_DOC_FILES)) |
| 564 | JDK_DOC_TARGETS := $(addprefix $(JDK_IMAGE_DIR)/,$(JDK_DOC_FILES)) |
| 565 | |
| 566 | $(JRE_IMAGE_DIR)/%: $(JRE_DOC_LOCATION)/% |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 567 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 568 | |
| 569 | $(JDK_IMAGE_DIR)/jre/%: $(JRE_DOC_LOCATION)/% |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 570 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 571 | |
| 572 | $(JRE_IMAGE_DIR)/README.txt: $(JRE_DOC_LOCATION)/README |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 573 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 574 | |
| 575 | $(JDK_IMAGE_DIR)/jre/README.txt: $(JRE_DOC_LOCATION)/README |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 576 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 577 | |
| 578 | $(JDK_IMAGE_DIR)/%: $(JDK_DOC_LOCATION)/% |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 579 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 580 | |
| 581 | $(JDK_IMAGE_DIR)/demo/%: $(JDK_DOC_LOCATION)/% |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 582 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 583 | |
| 584 | $(JDK_IMAGE_DIR)/sample/%: $(JDK_DOC_LOCATION)/% |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 585 | $(process-doc-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 586 | |
| 587 | JRE_INFO_FILE := $(JRE_IMAGE_DIR)/release |
| 588 | JDK_INFO_FILE := $(JDK_IMAGE_DIR)/release |
| 589 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 590 | JRE_OVERLAY_INFO_FILE := $(JRE_OVERLAY_IMAGE_DIR)/release |
| 591 | JDK_OVERLAY_INFO_FILE := $(JDK_OVERLAY_IMAGE_DIR)/release |
| 592 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 593 | # Common way to emit a line into the release or info file |
| 594 | define info-file-item # name value |
| 595 | $(PRINTF) '%s="%s"\n' $1 $2 >> $@ |
| 596 | endef |
| 597 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 598 | define create-info-file |
| 599 | $(MKDIR) -p $(@D) |
| 600 | $(RM) $@ |
| 601 | $(call info-file-item, "JAVA_VERSION", "$(JDK_VERSION)") |
| 602 | $(call info-file-item, "OS_NAME", "$(REQUIRED_OS_NAME)") |
| 603 | $(call info-file-item, "OS_VERSION", "$(REQUIRED_OS_VERSION)") |
| 604 | $(call info-file-item, "OS_ARCH", "$(OPENJDK_TARGET_CPU_LEGACY)") |
| 605 | $(call info-file-item, "SOURCE", "$(ALL_SOURCE_TIPS)") |
| 606 | endef |
| 607 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 608 | ALL_SOURCE_TIPS = $(shell \ |
| 609 | if [ -f $(OUTPUT_ROOT)/source_tips ] ; then \ |
| 610 | $(CAT) $(OUTPUT_ROOT)/source_tips ; \ |
| 611 | fi) |
| 612 | |
| 613 | $(JRE_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 614 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 615 | $(call create-info-file) |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 616 | ifneq ($(PROFILE),) |
| 617 | $(call info-file-item, "JAVA_PROFILE", "$(call profile_name, $(call profile_number, $(PROFILE)))") |
| 618 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 619 | |
| 620 | $(JDK_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 621 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 622 | $(call create-info-file) |
| 623 | |
| 624 | $(JRE_OVERLAY_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 625 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 626 | $(call create-info-file) |
| 627 | |
| 628 | $(JDK_OVERLAY_INFO_FILE): $(OUTPUT_ROOT)/spec.gmk $(OUTPUT_ROOT)/source_tips |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 629 | $(ECHO) $(LOG_INFO) Generating $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 630 | $(call create-info-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 631 | |
| 632 | $(JDK_IMAGE_DIR)/src.zip: $(IMAGES_OUTPUTDIR)/src.zip |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 633 | $(ECHO) $(LOG_INFO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 634 | $(install-file) |
| 635 | |
| 636 | ################################################################################ |
| 637 | # Post processing (strip etc) |
| 638 | |
| 639 | ifneq ($(POST_STRIP_CMD),) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 640 | ifeq ($(OPENJDK_TARGET_OS), windows) |
erikj | 754c744 | 2012-12-27 20:18:42 +0100 | [diff] [blame] | 641 | EXEC_LIST_BIN:=$(filter-out %$(notdir $(MSVCR_DLL)),$(filter %.exe %.dll,$(ALL_BIN_LIST))) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 642 | else |
| 643 | # Find all executables in JDK_OUTPUTDIR since they exist when this makefile is parsed |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 644 | EXEC_LIST_BIN:=$(shell $(FILE) `$(FIND) $(JDK_OUTPUTDIR)/bin -type f -name \*$(EXE_SUFFIX)` \ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 645 | | $(EGREP) 'ELF' | $(CUT) -d':' -f1) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 646 | # On mac, the old build searches for static libraries for stripping instead of shared. |
| 647 | # Not clear if it's intentional. |
| 648 | ifneq ($(OPENJDK_TARGET_OS), macosx) |
| 649 | EXEC_LIST_LIB:=$(shell $(FIND) $(JDK_OUTPUTDIR)/lib -type f -name \*$(SHARED_LIBRARY_SUFFIX)) |
| 650 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 651 | endif |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 652 | # Filter out sjavac |
| 653 | EXEC_LIST_BIN:=$(filter-out %sjavac$(EXE_SUFFIX),$(EXEC_LIST_BIN)) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 654 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 655 | # Filter out the overlay specific bin files |
| 656 | EXEC_LIST:=$(filter-out $(OVERLAY_FILTER),$(EXEC_LIST_BIN)) $(EXEC_LIST_LIB) |
| 657 | EXEC_LIST_OVERLAY:=$(filter $(OVERLAY_FILTER),$(EXEC_LIST_BIN)) $(EXEC_LIST_LIB) |
| 658 | |
| 659 | # Filter out non JRE files and convert to unique touch files to depend on |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 660 | JRE_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%,$(IMAGES_OUTPUTDIR)/_strip_jre$(PROFILE)/%.stripped,\ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 661 | $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES) $(NOT_JRE_LIB_FILES) $(JDKJRE_LIB_FILES)),\ |
| 662 | $(EXEC_LIST))) |
| 663 | |
| 664 | JDKJRE_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%, \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 665 | $(IMAGES_OUTPUTDIR)/_strip_jdk/jre/%.stripped, \ |
| 666 | $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES) $(NOT_JRE_LIB_FILES)), $(EXEC_LIST))) |
| 667 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 668 | JDK_BIN_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%, \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 669 | $(IMAGES_OUTPUTDIR)/_strip_jdk/%.stripped, \ |
| 670 | $(filter-out $(JDK_OUTPUTDIR)/lib/%, $(EXEC_LIST))) |
| 671 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 672 | # Do the same for overlay image |
| 673 | JRE_OVERLAY_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%,$(IMAGES_OUTPUTDIR)/_strip_jre_overlay/%.stripped,\ |
| 674 | $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES) $(NOT_JRE_LIB_FILES) $(JDKJRE_LIB_FILES)),\ |
| 675 | $(EXEC_LIST_OVERLAY))) |
| 676 | |
| 677 | JDKJRE_OVERLAY_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%, \ |
| 678 | $(IMAGES_OUTPUTDIR)/_strip_jdk_overlay/jre/%.stripped, \ |
| 679 | $(filter-out $(addprefix %,$(NOT_JRE_BIN_FILES) $(NOT_JRE_LIB_FILES)), $(EXEC_LIST_OVERLAY))) |
| 680 | |
| 681 | JDK_OVERLAY_BIN_STRIP_LIST:=$(patsubst $(JDK_OUTPUTDIR)/%, \ |
| 682 | $(IMAGES_OUTPUTDIR)/_strip_jdk_overlay/%.stripped, \ |
| 683 | $(filter-out $(JDK_OUTPUTDIR)/lib/%, $(EXEC_LIST_OVERLAY))) |
| 684 | |
| 685 | define mcs-file |
| 686 | $(if $(POST_MCS_CMD),$(POST_MCS_CMD) $<) |
| 687 | endef |
| 688 | |
| 689 | define strip-file |
ohair | b71409c | 2012-10-26 14:23:29 -0700 | [diff] [blame] | 690 | $(ECHO) Stripping $(LOG_INFO) $(patsubst $(OUTPUT_ROOT)/%,%,$<) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 691 | $(CHMOD) u+w $< |
| 692 | $(POST_STRIP_CMD) $< |
| 693 | $(call mcs-file) |
| 694 | $(CHMOD) go-w $< |
| 695 | $(MKDIR) -p $(@D) |
| 696 | $(TOUCH) $@ |
| 697 | endef |
| 698 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 699 | # Setup a rule for stripping files based on touch files |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 700 | $(IMAGES_OUTPUTDIR)/_strip_jre$(PROFILE)/%.stripped: $(JRE_IMAGE_DIR)/% |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 701 | $(call strip-file) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 702 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 703 | $(IMAGES_OUTPUTDIR)/_strip_jdk/%.stripped: $(JDK_IMAGE_DIR)/% |
| 704 | $(call strip-file) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 705 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 706 | $(IMAGES_OUTPUTDIR)/_strip_jre_overlay/%.stripped: $(JRE_OVERLAY_IMAGE_DIR)/% |
| 707 | $(call strip-file) |
| 708 | |
| 709 | $(IMAGES_OUTPUTDIR)/_strip_jdk_overlay/%.stripped: $(JDK_OVERLAY_IMAGE_DIR)/% |
| 710 | $(call strip-file) |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 711 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 712 | endif |
| 713 | |
| 714 | ################################################################################ |
| 715 | # Main targets |
| 716 | |
| 717 | jre-image: $(JRE_BIN_TARGETS) $(JRE_LIB_TARGETS) $(JRE_IMAGE_DIR)/lib/applet \ |
| 718 | $(JRE_IMAGE_DIR)/lib/meta-index $(JRE_IMAGE_DIR)/lib/ext/meta-index \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 719 | $(JRE_MAN_PAGE_LIST) $(JRE_DOC_TARGETS) $(JRE_INFO_FILE) $(JRE_STRIP_LIST) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 720 | |
| 721 | jdk-image: $(JDK_BIN_TARGETS) $(JDKJRE_BIN_TARGETS) \ |
| 722 | $(JDK_LIB_TARGETS) $(JDKJRE_LIB_TARGETS) \ |
| 723 | $(JDK_IMAGE_DIR)/jre/lib/applet \ |
| 724 | $(JDK_DEMO_TARGETS) \ |
| 725 | $(JDK_IMAGE_DIR)/jre/lib/meta-index $(JDK_IMAGE_DIR)/jre/lib/ext/meta-index \ |
| 726 | $(JDK_MAN_PAGE_LIST) $(JDK_SAMPLE_TARGETS) \ |
| 727 | $(JDK_DB_TARGETS) $(JDK_INCLUDE_TARGETS) \ |
| 728 | $(JDKJRE_DOC_TARGETS) $(JDK_DOC_TARGETS) \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 729 | $(JDK_INFO_FILE) $(JDKJRE_STRIP_LIST) $(JDK_BIN_STRIP_LIST) \ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 730 | $(JDK_IMAGE_DIR)/src.zip |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 731 | |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 732 | jre-overlay-image: $(JRE_OVERLAY_BIN_TARGETS) $(JRE_OVERLAY_LIB_TARGETS) \ |
| 733 | $(JRE_OVERLAY_INFO_FILE) $(JRE_OVERLAY_STRIP_LIST) |
| 734 | |
| 735 | jdk-overlay-image: $(JDK_OVERLAY_BIN_TARGETS) $(JDKJRE_OVERLAY_BIN_TARGETS) \ |
| 736 | $(JDK_OVERLAY_LIB_TARGETS) $(JDKJRE_OVERLAY_LIB_TARGETS) \ |
| 737 | $(JDK_OVERLAY_DEMO_TARGETS) $(JDK_OVERLAY_INFO_FILE) \ |
| 738 | $(JDKJRE_OVERLAY_STRIP_LIST) $(JDK_OVERLAY_BIN_STRIP_LIST) |
| 739 | |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 740 | ifneq ($(PROFILE),) |
| 741 | # Files in lib$(PROFILE) are excluded from the generic copying routines so |
| 742 | # we have to add them back in here |
| 743 | $(foreach f,$(CUSTOM_PROFILE_JARS),\ |
| 744 | $(eval $(call AddFileToCopy,$(IMAGES_OUTPUTDIR)/lib$(PROFILE),$(JRE_IMAGE_DIR)/lib,$f,JRE_LIB_TARGETS))) |
| 745 | |
alanb | 95225a5 | 2013-02-19 11:08:43 +0000 | [diff] [blame] | 746 | PROFILE_IMAGE_JARS := $(filter %.jar, $(JRE_LIB_TARGETS)) |
| 747 | |
| 748 | PROFILE_IMAGE_JARS_CHECKED := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_jars_checked |
| 749 | |
| 750 | $(PROFILE_IMAGE_JARS_CHECKED) : $(PROFILE_IMAGE_JARS) |
| 751 | $(TOOL_CHECKDEPS) $(JRE_IMAGE_DIR) \ |
| 752 | $(call profile_name, $(call profile_number, $(PROFILE))) |
| 753 | $(TOUCH) $@ |
| 754 | |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 755 | profile-image: $(JRE_BIN_TARGETS) $(JRE_LIB_TARGETS) \ |
| 756 | $(JRE_IMAGE_DIR)/lib/meta-index $(JRE_IMAGE_DIR)/lib/ext/meta-index \ |
alanb | 95225a5 | 2013-02-19 11:08:43 +0000 | [diff] [blame] | 757 | $(JRE_INFO_FILE) $(JRE_STRIP_LIST) $(PROFILE_IMAGE_JARS_CHECKED) |
dholmes | 85dd5c8 | 2013-01-21 23:17:58 -0500 | [diff] [blame] | 758 | |
| 759 | .PHONY: profile-image |
| 760 | |
| 761 | endif # Profile |
| 762 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 763 | ################################################################################ |
| 764 | |
| 765 | .PHONY: default images jre-image jdk-image |