make/Makefile

Mon, 15 Apr 2013 16:20:05 -0700

author
twisti
date
Mon, 15 Apr 2013 16:20:05 -0700
changeset 4946
1c6887c9afaa
parent 4942
f36e073d56a4
child 5109
aabf54ccedb1
permissions
-rw-r--r--

7172922: export_ makefile targets do not work unless all supported variants are built
Reviewed-by: dholmes, kvn

duke@435 1 #
zgu@4492 2 # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
duke@435 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@435 4 #
duke@435 5 # This code is free software; you can redistribute it and/or modify it
duke@435 6 # under the terms of the GNU General Public License version 2 only, as
duke@435 7 # published by the Free Software Foundation.
duke@435 8 #
duke@435 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@435 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@435 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@435 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@435 13 # accompanied this code).
duke@435 14 #
duke@435 15 # You should have received a copy of the GNU General Public License version
duke@435 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@435 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@435 18 #
trims@1907 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@1907 20 # or visit www.oracle.com if you need additional information or have any
trims@1907 21 # questions.
drchase@4942 22 #
duke@435 23 #
duke@435 24
duke@435 25 # Top level gnumake file for hotspot builds
duke@435 26 #
duke@435 27 # Default is to build the both product images and construct an export dir.
duke@435 28 # The default export directory name is `pwd`/export-$(PLATFORM).
duke@435 29 #
duke@435 30 # Use: 'gnumake help' for more information.
duke@435 31 #
duke@435 32 # This makefile uses the default settings for where to find compilers and
duke@435 33 # tools, and obeys the ALT_* variable settings used by the other JDK
duke@435 34 # workspaces.
duke@435 35 #
duke@435 36
duke@435 37 # Expected/optional make variables defined on make command line:
duke@435 38 # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build
duke@435 39 #
duke@435 40 # Expected/optional make variables or environment variables:
duke@435 41 # ALT_SLASH_JAVA Location of /java or J:
duke@435 42 # ALT_BOOTDIR Previous JDK home directory for javac compiler
duke@435 43 # ALT_OUTPUTDIR Output directory to use for hotspot build
duke@435 44 # ALT_EXPORT_PATH Directory to export hotspot build to
duke@435 45 # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules)
dholmes@2544 46 # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling
duke@435 47 # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default.
duke@435 48 # Set ALT_BUILD_WIN_SA=1 to enable building SA on
duke@435 49 # Windows.
duke@435 50 # Version strings and numbers:
duke@435 51 # JDK_VERSION Current JDK version (e.g. 1.6.0)
duke@435 52 # PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0)
duke@435 53 # FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42")
duke@435 54 #
duke@435 55 # Version strings and numbers especially needed on Windows:
duke@435 56 # COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02)
duke@435 57 # COOKED_BUILD_NUMBER Just the build number (e.g. 42)
duke@435 58 # JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0)
duke@435 59 # JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1?
duke@435 60 # JDK_MINOR_VERSION Minor number for version (e.g. 6)
duke@435 61 # JDK_MICRO_VERSION Micro number for version (e.g. 0)
duke@435 62 #
duke@435 63
duke@435 64 # Default is build both product fastdebug and create export area
duke@435 65
duke@435 66 # Allow to build HotSpot in local directory from sources specified by GAMMADIR.
duke@435 67 # After make/defs.make GAMMADIR is defined.
duke@435 68 ifdef GAMMADIR
duke@435 69 ifndef ALT_OUTPUTDIR
duke@435 70 ALT_OUTPUTDIR := $(shell pwd)
duke@435 71 endif
duke@435 72 include $(GAMMADIR)/make/defs.make
duke@435 73 else
duke@435 74 include defs.make
duke@435 75 endif
duke@435 76
kamg@2515 77 include $(GAMMADIR)/make/altsrc.make
duke@435 78
jprovino@4165 79 -include $(HS_ALT_MAKE)/Makefile.make
jprovino@4165 80
duke@435 81 ifneq ($(ALT_OUTPUTDIR),)
duke@435 82 ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR)
duke@435 83 else
duke@435 84 ALT_OUT=
duke@435 85 endif
duke@435 86
duke@435 87 # Typical C1/C2 targets made available with this Makefile
drchase@4942 88 C1_VM_TARGETS=product1 fastdebug1 optimized1 debug1
drchase@4942 89 C2_VM_TARGETS=product fastdebug optimized debug
drchase@4942 90 ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero debugzero
drchase@4942 91 SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark debugshark
drchase@4942 92 MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 debugminimal1
duke@435 93
jprovino@4165 94 COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product
jprovino@4165 95 COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 docs export_fastdebug
drchase@4942 96 COMMON_VM_DEBUG_TARGETS=debug debug1 docs export_debug
phh@3492 97
coleenp@548 98 # JDK directory list
coleenp@548 99 JDK_DIRS=bin include jre lib demo
coleenp@548 100
duke@435 101 all: all_product all_fastdebug
phh@3492 102
jprovino@4165 103 ifeq ($(JVM_VARIANT_MINIMAL1),true)
jprovino@4165 104 all_product: productminimal1
jprovino@4165 105 all_fastdebug: fastdebugminimal1
drchase@4942 106 all_debug: debugminimal1
jprovino@4165 107 endif
jprovino@4165 108
phh@3492 109 ifdef BUILD_CLIENT_ONLY
bobv@2036 110 all_product: product1 docs export_product
bobv@2036 111 all_fastdebug: fastdebug1 docs export_fastdebug
drchase@4942 112 all_debug: debug1 docs export_debug
phh@3492 113 else
phh@3492 114 ifeq ($(MACOSX_UNIVERSAL),true)
phh@3492 115 all_product: universal_product
phh@3492 116 all_fastdebug: universal_fastdebug
phh@3492 117 all_debug: universal_debug
phh@3492 118 else
phh@3492 119 all_product: $(COMMON_VM_PRODUCT_TARGETS)
phh@3492 120 all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS)
phh@3492 121 all_debug: $(COMMON_VM_DEBUG_TARGETS)
bobv@2036 122 endif
phh@3492 123 endif
phh@3492 124
jprovino@4165 125 all_optimized: optimized optimized1 docs export_optimized
duke@435 126
never@1445 127 allzero: all_productzero all_fastdebugzero
never@1445 128 all_productzero: productzero docs export_product
never@1445 129 all_fastdebugzero: fastdebugzero docs export_fastdebug
drchase@4942 130 all_debugzero: debugzero docs export_debug
never@1445 131 all_optimizedzero: optimizedzero docs export_optimized
never@1445 132
twisti@2047 133 allshark: all_productshark all_fastdebugshark
twisti@2047 134 all_productshark: productshark docs export_product
twisti@2047 135 all_fastdebugshark: fastdebugshark docs export_fastdebug
drchase@4942 136 all_debugshark: debugshark docs export_debug
twisti@2047 137 all_optimizedshark: optimizedshark docs export_optimized
twisti@2047 138
duke@435 139 # Do everything
duke@435 140 world: all create_jdk
duke@435 141
duke@435 142 # Build or export docs
duke@435 143 docs:
duke@435 144 ifeq ($(OSNAME),windows)
duke@435 145 @$(ECHO) "No docs ($(VM_TARGET)) for windows"
duke@435 146 else
dcubed@3725 147 # We specify 'BUILD_FLAVOR=product' so that the proper
dcubed@3725 148 # ENABLE_FULL_DEBUG_SYMBOLS value is used.
duke@435 149 $(CD) $(OUTPUTDIR); \
duke@435 150 $(MAKE) -f $(ABS_OS_MAKEFILE) \
dcubed@3725 151 $(MAKE_ARGS) BUILD_FLAVOR=product docs
duke@435 152 endif
duke@435 153
duke@435 154 # Build variation of hotspot
duke@435 155 $(C1_VM_TARGETS):
duke@435 156 $(CD) $(GAMMADIR)/make; \
dcubed@3725 157 $(MAKE) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT)
duke@435 158
duke@435 159 $(C2_VM_TARGETS):
duke@435 160 $(CD) $(GAMMADIR)/make; \
dcubed@3725 161 $(MAKE) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT)
duke@435 162
never@1445 163 $(ZERO_VM_TARGETS):
never@1445 164 $(CD) $(GAMMADIR)/make; \
dcubed@3725 165 $(MAKE) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ \
dcubed@3725 166 generic_buildzero $(ALT_OUT)
never@1445 167
twisti@2047 168 $(SHARK_VM_TARGETS):
twisti@2047 169 $(CD) $(GAMMADIR)/make; \
dcubed@3725 170 $(MAKE) BUILD_FLAVOR=$(@:%shark=%) VM_TARGET=$@ \
dcubed@3725 171 generic_buildshark $(ALT_OUT)
twisti@2047 172
jprovino@4165 173 $(MINIMAL1_VM_TARGETS):
jprovino@4165 174 $(CD) $(GAMMADIR)/make; \
jprovino@4165 175 $(MAKE) BUILD_FLAVOR=$(@:%minimal1=%) VM_TARGET=$@ \
jprovino@4165 176 generic_buildminimal1 $(ALT_OUT)
jprovino@4165 177
duke@435 178 # Build compiler1 (client) rule, different for platforms
duke@435 179 generic_build1:
duke@435 180 $(MKDIR) -p $(OUTPUTDIR)
duke@435 181 ifeq ($(OSNAME),windows)
duke@435 182 ifeq ($(ARCH_DATA_MODEL), 32)
duke@435 183 $(CD) $(OUTPUTDIR); \
duke@435 184 $(NMAKE) -f $(ABS_OS_MAKEFILE) \
duke@435 185 Variant=compiler1 \
duke@435 186 WorkSpace=$(ABS_GAMMADIR) \
duke@435 187 BootStrapDir=$(ABS_BOOTDIR) \
duke@435 188 BuildUser=$(USERNAME) \
duke@435 189 $(MAKE_ARGS) $(VM_TARGET:%1=%)
duke@435 190 else
duke@435 191 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
duke@435 192 endif
duke@435 193 else
duke@435 194 ifeq ($(ARCH_DATA_MODEL), 32)
duke@435 195 $(CD) $(OUTPUTDIR); \
duke@435 196 $(MAKE) -f $(ABS_OS_MAKEFILE) \
duke@435 197 $(MAKE_ARGS) $(VM_TARGET)
duke@435 198 else
duke@435 199 @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
duke@435 200 endif
duke@435 201 endif
duke@435 202
duke@435 203 # Build compiler2 (server) rule, different for platforms
duke@435 204 generic_build2:
duke@435 205 $(MKDIR) -p $(OUTPUTDIR)
duke@435 206 ifeq ($(OSNAME),windows)
duke@435 207 $(CD) $(OUTPUTDIR); \
duke@435 208 $(NMAKE) -f $(ABS_OS_MAKEFILE) \
duke@435 209 Variant=compiler2 \
duke@435 210 WorkSpace=$(ABS_GAMMADIR) \
duke@435 211 BootStrapDir=$(ABS_BOOTDIR) \
duke@435 212 BuildUser=$(USERNAME) \
duke@435 213 $(MAKE_ARGS) $(VM_TARGET)
duke@435 214 else
duke@435 215 $(CD) $(OUTPUTDIR); \
duke@435 216 $(MAKE) -f $(ABS_OS_MAKEFILE) \
duke@435 217 $(MAKE_ARGS) $(VM_TARGET)
duke@435 218 endif
duke@435 219
never@1445 220 generic_buildzero:
never@1445 221 $(MKDIR) -p $(OUTPUTDIR)
never@1445 222 $(CD) $(OUTPUTDIR); \
never@1445 223 $(MAKE) -f $(ABS_OS_MAKEFILE) \
never@1445 224 $(MAKE_ARGS) $(VM_TARGET)
never@1445 225
twisti@2047 226 generic_buildshark:
twisti@2047 227 $(MKDIR) -p $(OUTPUTDIR)
twisti@2047 228 $(CD) $(OUTPUTDIR); \
twisti@2047 229 $(MAKE) -f $(ABS_OS_MAKEFILE) \
drchase@4942 230 $(MAKE_ARGS) $(VM_TARGET)
twisti@2047 231
jprovino@4165 232 generic_buildminimal1:
jprovino@4165 233 ifeq ($(JVM_VARIANT_MINIMAL1),true)
jprovino@4165 234 $(MKDIR) -p $(OUTPUTDIR)
jprovino@4165 235 ifeq ($(ARCH_DATA_MODEL), 32)
jprovino@4165 236 ifeq ($(OSNAME),windows)
jprovino@4165 237 $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ;
jprovino@4165 238 else
jprovino@4165 239 ifeq ($(OSNAME),solaris)
jprovino@4165 240 $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ;
jprovino@4165 241 else
jprovino@4165 242 $(CD) $(OUTPUTDIR); \
jprovino@4165 243 $(MAKE) -f $(ABS_OS_MAKEFILE) $(MAKE_ARGS) $(VM_TARGET) ;
jprovino@4165 244 endif
jprovino@4165 245 endif
jprovino@4165 246 else
jprovino@4165 247 @$(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
jprovino@4165 248 endif
jprovino@4165 249 else
jprovino@4165 250 @$(ECHO) "Error: trying to build a minimal target but JVM_VARIANT_MINIMAL1 is not true."
jprovino@4165 251 endif
jprovino@4165 252
duke@435 253 # Export file rule
duke@435 254 generic_export: $(EXPORT_LIST)
duke@435 255 export_product:
dcubed@3725 256 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3725 257 generic_export
duke@435 258 export_fastdebug:
dcubed@3725 259 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3725 260 EXPORT_SUBDIR=/$(@:export_%=%) \
dcubed@3725 261 generic_export
duke@435 262 export_debug:
drchase@4942 263 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3725 264 EXPORT_SUBDIR=/$(@:export_%=%) \
dcubed@3725 265 generic_export
duke@435 266 export_optimized:
dcubed@3725 267 $(MAKE) BUILD_FLAVOR=$(@:export_%=%) VM_SUBDIR=$(@:export_%=%) \
dcubed@3725 268 EXPORT_SUBDIR=/$(@:export_%=%) \
dcubed@3725 269 generic_export
phh@3492 270 export_product_jdk::
dcubed@3725 271 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
dcubed@3725 272 VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
dcubed@3725 273 generic_export
phh@3492 274 export_optimized_jdk::
dcubed@3725 275 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
dcubed@3725 276 VM_SUBDIR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) \
dcubed@3725 277 generic_export
phh@3492 278 export_fastdebug_jdk::
dcubed@3725 279 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) \
dcubed@3725 280 VM_SUBDIR=$(@:export_%_jdk=%) \
dcubed@3725 281 ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
dcubed@3725 282 generic_export
phh@3492 283 export_debug_jdk::
drchase@4942 284 $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) VM_SUBDIR=$(@:export_%_jdk=%) \
dcubed@3725 285 ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) \
dcubed@3725 286 generic_export
duke@435 287
duke@435 288 # Export file copy rules
duke@435 289 XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt
twisti@4946 290 DOCS_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_docs
twisti@4946 291 C1_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1/$(VM_SUBDIR)
twisti@4946 292 C2_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2/$(VM_SUBDIR)
twisti@4946 293 MINIMAL1_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1/$(VM_SUBDIR)
twisti@4946 294 ZERO_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_zero/$(VM_SUBDIR)
twisti@4946 295 SHARK_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_shark/$(VM_SUBDIR)
duke@435 296
twisti@4946 297 # Server (C2)
erikj@3649 298 ifeq ($(JVM_VARIANT_SERVER), true)
twisti@4946 299 # Common
twisti@4946 300 $(EXPORT_SERVER_DIR)/%.diz: $(C2_DIR)/%.diz
duke@435 301 $(install-file)
twisti@4946 302 $(EXPORT_LIB_DIR)/%.jar: $(C2_DIR)/../generated/%.jar
dcubed@3724 303 $(install-file)
twisti@4946 304 $(EXPORT_INCLUDE_DIR)/%: $(C2_DIR)/../generated/jvmtifiles/%
duke@435 305 $(install-file)
twisti@4946 306 # Windows
twisti@4946 307 $(EXPORT_SERVER_DIR)/%.dll: $(C2_DIR)/%.dll
duke@435 308 $(install-file)
twisti@4946 309 $(EXPORT_SERVER_DIR)/%.pdb: $(C2_DIR)/%.pdb
duke@435 310 $(install-file)
twisti@4946 311 $(EXPORT_SERVER_DIR)/%.map: $(C2_DIR)/%.map
dcubed@3724 312 $(install-file)
twisti@4946 313 $(EXPORT_LIB_DIR)/%.lib: $(C2_DIR)/%.lib
duke@435 314 $(install-file)
twisti@4946 315 $(EXPORT_JRE_BIN_DIR)/%.diz: $(C2_DIR)/%.diz
duke@435 316 $(install-file)
twisti@4946 317 $(EXPORT_JRE_BIN_DIR)/%.dll: $(C2_DIR)/%.dll
duke@435 318 $(install-file)
twisti@4946 319 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(C2_DIR)/%.pdb
dcubed@3724 320 $(install-file)
twisti@4946 321 $(EXPORT_JRE_BIN_DIR)/%.map: $(C2_DIR)/%.map
duke@435 322 $(install-file)
twisti@4946 323 # Unix
twisti@4946 324 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX)
duke@435 325 $(install-file)
twisti@4946 326 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 327 $(install-file)
twisti@4946 328 $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 329 $(install-file)
twisti@4946 330 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo
twisti@4946 331 $(install-file)
twisti@4946 332 $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_DIR)/%.debuginfo
twisti@4946 333 $(install-file)
twisti@4946 334 $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_DIR)/%.debuginfo
twisti@4946 335 $(install-file)
twisti@4946 336 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C2_DIR)/%.diz
twisti@4946 337 $(install-file)
twisti@4946 338 $(EXPORT_SERVER_DIR)/64/%.diz: $(C2_DIR)/%.diz
duke@435 339 $(install-file)
duke@435 340 endif
duke@435 341
twisti@4946 342 # Client (C1)
twisti@4946 343 ifeq ($(JVM_VARIANT_CLIENT), true)
twisti@4946 344 # Common
twisti@4946 345 $(EXPORT_CLIENT_DIR)/%.diz: $(C1_DIR)/%.diz
jprovino@4165 346 $(install-file)
twisti@4946 347 $(EXPORT_LIB_DIR)/%.jar: $(C1_DIR)/../generated/%.jar
jprovino@4165 348 $(install-file)
twisti@4946 349 $(EXPORT_INCLUDE_DIR)/%: $(C1_DIR)/../generated/jvmtifiles/%
jprovino@4165 350 $(install-file)
twisti@4946 351 # Windows
twisti@4946 352 $(EXPORT_CLIENT_DIR)/%.dll: $(C1_DIR)/%.dll
jprovino@4165 353 $(install-file)
twisti@4946 354 $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_DIR)/%.pdb
twisti@4946 355 $(install-file)
twisti@4946 356 $(EXPORT_CLIENT_DIR)/%.map: $(C1_DIR)/%.map
twisti@4946 357 $(install-file)
twisti@4946 358 $(EXPORT_LIB_DIR)/%.lib: $(C1_DIR)/%.lib
twisti@4946 359 $(install-file)
twisti@4946 360 $(EXPORT_JRE_BIN_DIR)/%.diz: $(C1_DIR)/%.diz
twisti@4946 361 $(install-file)
twisti@4946 362 $(EXPORT_JRE_BIN_DIR)/%.dll: $(C1_DIR)/%.dll
twisti@4946 363 $(install-file)
twisti@4946 364 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(C1_DIR)/%.pdb
twisti@4946 365 $(install-file)
twisti@4946 366 $(EXPORT_JRE_BIN_DIR)/%.map: $(C1_DIR)/%.map
twisti@4946 367 $(install-file)
twisti@4946 368 # Unix
twisti@4946 369 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 370 $(install-file)
twisti@4946 371 $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 372 $(install-file)
twisti@4946 373 $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 374 $(install-file)
twisti@4946 375 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo
twisti@4946 376 $(install-file)
twisti@4946 377 $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_DIR)/%.debuginfo
twisti@4946 378 $(install-file)
twisti@4946 379 $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_DIR)/%.debuginfo
twisti@4946 380 $(install-file)
twisti@4946 381 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C1_DIR)/%.diz
twisti@4946 382 $(install-file)
twisti@4946 383 $(EXPORT_CLIENT_DIR)/64/%.diz: $(C1_DIR)/%.diz
twisti@4946 384 $(install-file)
duke@435 385 endif
duke@435 386
twisti@4946 387 # Minimal1
twisti@4946 388 ifeq ($(JVM_VARIANT_MINIMAL1), true)
twisti@4946 389 # Common
twisti@4946 390 $(EXPORT_MINIMAL_DIR)/%.diz: $(MINIMAL1_DIR)/%.diz
duke@435 391 $(install-file)
twisti@4946 392 $(EXPORT_LIB_DIR)/%.jar: $(MINIMAL1_DIR)/../generated/%.jar
twisti@4946 393 $(install-file)
twisti@4946 394 $(EXPORT_INCLUDE_DIR)/%: $(MINIMAL1_DIR)/../generated/jvmtifiles/%
twisti@4946 395 $(install-file)
twisti@4946 396 # Windows
twisti@4946 397 $(EXPORT_MINIMAL_DIR)/%.dll: $(MINIMAL1_DIR)/%.dll
twisti@4946 398 $(install-file)
twisti@4946 399 $(EXPORT_MINIMAL_DIR)/%.pdb: $(MINIMAL1_DIR)/%.pdb
twisti@4946 400 $(install-file)
twisti@4946 401 $(EXPORT_MINIMAL_DIR)/%.map: $(MINIMAL1_DIR)/%.map
twisti@4946 402 $(install-file)
twisti@4946 403 $(EXPORT_LIB_DIR)/%.lib: $(MINIMAL1_DIR)/%.lib
twisti@4946 404 $(install-file)
twisti@4946 405 $(EXPORT_JRE_BIN_DIR)/%.diz: $(MINIMAL1_DIR)/%.diz
twisti@4946 406 $(install-file)
twisti@4946 407 $(EXPORT_JRE_BIN_DIR)/%.dll: $(MINIMAL1_DIR)/%.dll
twisti@4946 408 $(install-file)
twisti@4946 409 $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MINIMAL1_DIR)/%.pdb
twisti@4946 410 $(install-file)
twisti@4946 411 $(EXPORT_JRE_BIN_DIR)/%.map: $(MINIMAL1_DIR)/%.map
twisti@4946 412 $(install-file)
twisti@4946 413 # Unix
twisti@4946 414 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(MINIMAL1_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 415 $(install-file)
twisti@4946 416 $(EXPORT_MINIMAL_DIR)/%.$(LIBRARY_SUFFIX): $(MINIMAL1_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 417 $(install-file)
twisti@4946 418 $(EXPORT_MINIMAL_DIR)/64/%.$(LIBRARY_SUFFIX): $(MINIMAL1_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 419 $(install-file)
twisti@4946 420 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(MINIMAL1_DIR)/%.debuginfo
twisti@4946 421 $(install-file)
twisti@4946 422 $(EXPORT_MINIMAL_DIR)/%.debuginfo: $(MINIMAL1_DIR)/%.debuginfo
twisti@4946 423 $(install-file)
twisti@4946 424 $(EXPORT_MINIMAL_DIR)/64/%.debuginfo: $(MINIMAL1_DIR)/%.debuginfo
twisti@4946 425 $(install-file)
twisti@4946 426 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(MINIMAL1_DIR)/%.diz
twisti@4946 427 $(install-file)
twisti@4946 428 $(EXPORT_MINIMAL_DIR)/64/%.diz: $(MINIMAL1_DIR)/%.diz
twisti@4946 429 $(install-file)
twisti@4946 430 endif
duke@435 431
twisti@4946 432 # Zero
twisti@4946 433 ifeq ($(JVM_VARIANT_ZERO), true)
twisti@4946 434 # Common
twisti@4946 435 $(EXPORT_LIB_DIR)/%.jar: $(ZERO_DIR)/../generated/%.jar
duke@435 436 $(install-file)
twisti@4946 437 $(EXPORT_INCLUDE_DIR)/%: $(ZERO_DIR)/../generated/jvmtifiles/%
twisti@4946 438 $(install-file)
twisti@4946 439 # Unix
twisti@4946 440 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 441 $(install-file)
twisti@4946 442 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(ZERO_DIR)/%.debuginfo
twisti@4946 443 $(install-file)
twisti@4946 444 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(ZERO_DIR)/%.diz
twisti@4946 445 $(install-file)
twisti@4946 446 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 447 $(install-file)
twisti@4946 448 $(EXPORT_SERVER_DIR)/%.debuginfo: $(ZERO_DIR)/%.debuginfo
twisti@4946 449 $(install-file)
twisti@4946 450 $(EXPORT_SERVER_DIR)/%.diz: $(ZERO_DIR)/%.diz
twisti@4946 451 $(install-file)
twisti@4946 452 endif
twisti@4946 453
twisti@4946 454 # Shark
twisti@4946 455 ifeq ($(JVM_VARIANT_ZEROSHARK), true)
twisti@4946 456 # Common
twisti@4946 457 $(EXPORT_LIB_DIR)/%.jar: $(SHARK_DIR)/../generated/%.jar
twisti@4946 458 $(install-file)
twisti@4946 459 $(EXPORT_INCLUDE_DIR)/%: $(SHARK_DIR)/../generated/jvmtifiles/%
twisti@4946 460 $(install-file)
twisti@4946 461 # Unix
twisti@4946 462 $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 463 $(install-file)
twisti@4946 464 $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo): $(SHARK_DIR)/%.debuginfo
twisti@4946 465 $(install-file)
twisti@4946 466 $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(SHARK_DIR)/%.diz
twisti@4946 467 $(install-file)
twisti@4946 468 $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_DIR)/%.$(LIBRARY_SUFFIX)
twisti@4946 469 $(install-file)
twisti@4946 470 $(EXPORT_SERVER_DIR)/%.debuginfo: $(SHARK_DIR)/%.debuginfo
twisti@4946 471 $(install-file)
twisti@4946 472 $(EXPORT_SERVER_DIR)/%.diz: $(SHARK_DIR)/%.diz
twisti@4946 473 $(install-file)
twisti@4946 474 endif
duke@435 475
dcubed@1619 476 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/code/%
dcubed@1619 477 $(install-file)
dcubed@1619 478
duke@435 479 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/%
duke@435 480 $(install-file)
duke@435 481
kamg@2515 482 HS_JNI_ARCH_SRC=$(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h)
kamg@2515 483 $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC)
duke@435 484 $(install-file)
duke@435 485
duke@435 486 $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/%
duke@435 487 $(install-file)
duke@435 488
phh@3427 489 JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi)
phh@3427 490 # export jfr.h
phh@3427 491 ifeq ($JFR_EXISTS,1)
phh@3427 492 $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/agent/%
phh@3427 493 $(install-file)
phh@3427 494 else
phh@3427 495 $(EXPORT_INCLUDE_DIR)/jfr.h:
phh@3427 496 endif
phh@3427 497
duke@435 498 # Doc files (jvmti.html)
duke@435 499 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/%
duke@435 500 $(install-file)
duke@435 501
duke@435 502 # Xusage file
zgu@4492 503 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_MINIMAL_DIR)/Xusage.txt: $(XUSAGE)
duke@435 504 $(prep-target)
duke@435 505 $(RM) $@.temp
duke@435 506 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp
duke@435 507 $(MV) $@.temp $@
duke@435 508
duke@435 509 #
duke@435 510 # Clean rules
duke@435 511 #
duke@435 512 clobber clean: clean_build clean_export clean_jdk
duke@435 513 clean_build:
duke@435 514 $(RM) -r $(C1_DIR)
duke@435 515 $(RM) -r $(C2_DIR)
never@1445 516 $(RM) -r $(ZERO_DIR)
twisti@2047 517 $(RM) -r $(SHARK_DIR)
jprovino@4165 518 $(RM) -r $(MINIMAL1_DIR)
duke@435 519 clean_export:
duke@435 520 $(RM) -r $(EXPORT_PATH)
duke@435 521 clean_jdk:
duke@435 522 $(RM) -r $(JDK_IMAGE_DIR)
duke@435 523
duke@435 524 #
duke@435 525 # Create JDK and place this build into it
duke@435 526 #
duke@435 527 create_jdk: copy_jdk update_jdk
duke@435 528
duke@435 529 update_jdk: export_product_jdk export_fastdebug_jdk test_jdk
duke@435 530
duke@435 531 copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar
duke@435 532
duke@435 533 $(JDK_IMAGE_DIR)/jre/lib/rt.jar:
duke@435 534 $(RM) -r $(JDK_IMAGE_DIR)
duke@435 535 $(MKDIR) -p $(JDK_IMAGE_DIR)
duke@435 536 ($(CD) $(JDK_IMPORT_PATH) && \
duke@435 537 $(TAR) -cf - *) | \
duke@435 538 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
duke@435 539
twisti@4780 540
twisti@4780 541 # Testing the built JVM
twisti@4780 542 RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -Dsun.java.launcher=gamma
twisti@4780 543 generic_test:
twisti@4780 544 @$(ECHO) "Running with: $(ALTJVM_DIR)"
twisti@4780 545 @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -Xinternalversion
twisti@4780 546 @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -showversion -help
twisti@4780 547
twisti@4780 548 # C2 test targets
drchase@4942 549 test_product test_optimized test_fastdebug test_debug:
twisti@4780 550 @$(MAKE) generic_test ALTJVM_DIR="$(C2_DIR)/$(@:test_%=%)"
twisti@4780 551
twisti@4780 552 # C1 test targets
drchase@4942 553 test_product1 test_optimized1 test_fastdebug1 test_debug1:
twisti@4780 554 ifeq ($(ARCH_DATA_MODEL), 32)
twisti@4780 555 @$(MAKE) generic_test ALTJVM_DIR="$(C1_DIR)/$(@:test_%1=%)"
twisti@4780 556 else
twisti@4780 557 @$(ECHO) "No compiler1 ($(@:test_%=%)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)"
twisti@4780 558 endif
twisti@4780 559
twisti@4780 560 # Zero test targets
drchase@4942 561 test_productzero test_optimizedzero test_fastdebugzero test_debugzero:
twisti@4780 562 @$(MAKE) generic_test ALTJVM_DIR="$(ZERO_DIR)/$(@:test_%zero=%)"
twisti@4780 563
twisti@4780 564 # Shark test targets
drchase@4942 565 test_productshark test_optimizedshark test_fastdebugshark test_debugshark:
twisti@4780 566 @$(MAKE) generic_test ALTJVM_DIR="$(SHARK_DIR)/$(@:test_%shark=%)"
twisti@4780 567
twisti@4780 568 # Minimal1 test targets
drchase@4942 569 test_productminimal1 test_optimizedminimal1 test_fastdebugminimal1 test_debugminimal1:
twisti@4780 570 @$(MAKE) generic_test ALTJVM_DIR="$(MINIMAL1_DIR)/$(@:test_%minimal1=%)"
twisti@4780 571
twisti@4780 572
duke@435 573 test_jdk:
erikj@3649 574 ifeq ($(JVM_VARIANT_CLIENT), true)
erikj@3649 575 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion
erikj@3649 576 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version
erikj@3649 577 endif
erikj@3649 578 ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\
erikj@3649 579 $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true)
erikj@3649 580 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion
erikj@3649 581 $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version
erikj@3649 582 endif
duke@435 583
phh@3492 584 copy_product_jdk::
duke@435 585 $(RM) -r $(JDK_IMAGE_DIR)
duke@435 586 $(MKDIR) -p $(JDK_IMAGE_DIR)
duke@435 587 ($(CD) $(JDK_IMPORT_PATH) && \
coleenp@548 588 $(TAR) -cf - $(JDK_DIRS)) | \
duke@435 589 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -)
duke@435 590
phh@3492 591 copy_fastdebug_jdk::
duke@435 592 $(RM) -r $(JDK_IMAGE_DIR)/fastdebug
duke@435 593 $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug
duke@435 594 if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
duke@435 595 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
coleenp@548 596 $(TAR) -cf - $(JDK_DIRS)) | \
duke@435 597 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
duke@435 598 else \
duke@435 599 ($(CD) $(JDK_IMPORT_PATH) && \
coleenp@548 600 $(TAR) -cf - $(JDK_DIRS)) | \
duke@435 601 ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \
duke@435 602 fi
duke@435 603
phh@3492 604 copy_debug_jdk::
duke@435 605 $(RM) -r $(JDK_IMAGE_DIR)/debug
duke@435 606 $(MKDIR) -p $(JDK_IMAGE_DIR)/debug
duke@435 607 if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \
duke@435 608 ($(CD) $(JDK_IMPORT_PATH)/debug && \
coleenp@548 609 $(TAR) -cf - $(JDK_DIRS)) | \
duke@435 610 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
duke@435 611 elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \
duke@435 612 ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \
coleenp@548 613 $(TAR) -cf - $(JDK_DIRS)) | \
duke@435 614 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
duke@435 615 else \
duke@435 616 ($(CD) $(JDK_IMPORT_PATH) && \
coleenp@548 617 $(TAR) -cf - $(JDK_DIRS)) | \
duke@435 618 ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \
duke@435 619 fi
duke@435 620
duke@435 621 #
duke@435 622 # Check target
duke@435 623 #
duke@435 624 check: variable_check
duke@435 625
duke@435 626 #
duke@435 627 # Help target
duke@435 628 #
duke@435 629 help: intro_help target_help variable_help notes_help examples_help
duke@435 630
duke@435 631 # Intro help message
duke@435 632 intro_help:
duke@435 633 @$(ECHO) \
drchase@4942 634 "Makefile for the Hotspot workspace."
duke@435 635 @$(ECHO) \
duke@435 636 "Default behavior is to build and create an export area for the j2se builds."
duke@435 637
duke@435 638 # Target help
duke@435 639 target_help:
duke@435 640 @$(ECHO) "help: This help message"
duke@435 641 @$(ECHO) "all: Same as: all_product all_fastdebug"
duke@435 642 @$(ECHO) "world: Same as: all create_jdk"
duke@435 643 @$(ECHO) "all_product: Same as: product product1 export_product"
duke@435 644 @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug"
drchase@4942 645 @$(ECHO) "all_debug: Same as: debug debug1 export_debug"
duke@435 646 @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized"
duke@435 647 @$(ECHO) "clean: Clean all areas"
duke@435 648 @$(ECHO) "export_product: Export product files to EXPORT_PATH"
duke@435 649 @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH"
duke@435 650 @$(ECHO) "export_debug: Export debug files to EXPORT_PATH"
duke@435 651 @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH"
duke@435 652 @$(ECHO) "create_jdk: Create JDK image, export all files into it"
duke@435 653 @$(ECHO) "update_jdk: Update JDK image with fresh exported files"
duke@435 654 @$(ECHO) " "
jprovino@4165 655 @$(ECHO) "Other targets are:"
duke@435 656 @$(ECHO) " $(C1_VM_TARGETS)"
duke@435 657 @$(ECHO) " $(C2_VM_TARGETS)"
jprovino@4165 658 @$(ECHO) " $(MINIMAL1_VM_TARGETS)"
duke@435 659
duke@435 660 # Variable help (only common ones used by this workspace)
duke@435 661 variable_help: variable_help_intro variable_list variable_help_end
duke@435 662 variable_help_intro:
duke@435 663 @$(ECHO) "--- Common Variables ---"
duke@435 664 variable_help_end:
duke@435 665 @$(ECHO) " "
duke@435 666 @$(ECHO) "--- Make Arguments ---"
duke@435 667 @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)"
duke@435 668
duke@435 669 # One line descriptions for the variables
duke@435 670 SLASH_JAVA.desc = Root of all build tools, e.g. /java or J:
duke@435 671 OUTPUTDIR.desc = Output directory, default is build/<osname>
duke@435 672 BOOTDIR.desc = JDK used to compile agent java source and test with
duke@435 673 JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk'
twisti@3567 674 JDK_IMAGE_DIR.desc = Directory to place JDK to copy
duke@435 675 EXPORT_PATH.desc = Directory to place files to export for JDK build
duke@435 676
duke@435 677 # Make variables to print out (description and value)
duke@435 678 VARIABLE_PRINTVAL_LIST += \
duke@435 679 SLASH_JAVA \
duke@435 680 OUTPUTDIR \
duke@435 681 BOOTDIR \
duke@435 682 JDK_IMPORT_PATH \
twisti@3567 683 JDK_IMAGE_DIR \
duke@435 684 EXPORT_PATH
duke@435 685
duke@435 686 # Make variables that should refer to directories that exist
duke@435 687 VARIABLE_CHECKDIR_LIST += \
duke@435 688 SLASH_JAVA \
duke@435 689 BOOTDIR \
duke@435 690 JDK_IMPORT_PATH
duke@435 691
duke@435 692 # For pattern rules below, so all are treated the same
duke@435 693 DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval)
duke@435 694 DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir)
duke@435 695
duke@435 696 # Complete variable check
duke@435 697 variable_check: $(DO_CHECKDIR_LIST)
duke@435 698 variable_list: $(DO_PRINTVAL_LIST) variable_check
duke@435 699
duke@435 700 # Pattern rule for printing out a variable
duke@435 701 %.printval:
duke@435 702 @$(ECHO) " ALT_$* - $($*.desc)"
duke@435 703 @$(ECHO) " $*=$($*)"
duke@435 704
duke@435 705 # Pattern rule for checking to see if a variable with a directory exists
duke@435 706 %.checkdir:
duke@435 707 @if [ ! -d $($*) ] ; then \
duke@435 708 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
duke@435 709 fi
duke@435 710
duke@435 711 # Pattern rule for checking to see if a variable with a file exists
duke@435 712 %.checkfil:
duke@435 713 @if [ ! -f $($*) ] ; then \
duke@435 714 $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \
duke@435 715 fi
duke@435 716
duke@435 717 # Misc notes on help
duke@435 718 notes_help:
duke@435 719 @$(ECHO) \
duke@435 720 "--- Notes --- "
duke@435 721 @$(ECHO) \
duke@435 722 "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted"
duke@435 723 @$(ECHO) \
duke@435 724 " builds or previous release JDK builds will work."
duke@435 725 @$(ECHO) \
duke@435 726 "- The fastest builds have been when the workspace and the BOOTDIR are on"
duke@435 727 @$(ECHO) \
duke@435 728 " local disk."
duke@435 729
duke@435 730 examples_help:
duke@435 731 @$(ECHO) \
duke@435 732 "--- Examples --- "
duke@435 733 @$(ECHO) \
duke@435 734 " $(MAKE) all"
duke@435 735 @$(ECHO) \
duke@435 736 " $(MAKE) world"
duke@435 737 @$(ECHO) \
drchase@4942 738 " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)"
duke@435 739 @$(ECHO) \
duke@435 740 " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)"
duke@435 741
phh@3492 742 # Universal build support
phh@3492 743 ifeq ($(OS_VENDOR), Darwin)
phh@3492 744 ifeq ($(MACOSX_UNIVERSAL),true)
phh@3492 745 include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk
phh@3492 746 endif
phh@3492 747 endif
phh@3492 748
drchase@4942 749 # Compatibility for transition to new naming
drchase@4942 750 warn_jvmg_deprecated:
drchase@4942 751 echo "Warning: The jvmg target has been replaced with debug"
drchase@4942 752 echo "Warning: Please update your usage"
drchase@4942 753
drchase@4942 754 jvmg: warn_jvmg_deprecated debug
drchase@4942 755
drchase@4942 756 jvmg1: warn_jvmg_deprecated debug1
drchase@4942 757
drchase@4942 758 jvmgminimal1: warn_jvmg_deprecated debugminimal1
drchase@4942 759
drchase@4942 760 jvmgcore: warn_jvmg_deprecated debugcore
drchase@4942 761
drchase@4942 762 jvmgzero: warn_jvmg_deprecated debugzero
drchase@4942 763
drchase@4942 764 jvmgshark: warn_jvmg_deprecated debugshark
drchase@4942 765
duke@435 766 # JPRT rule to build this workspace
duke@435 767 include $(GAMMADIR)/make/jprt.gmk
duke@435 768
duke@435 769 .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \
zgu@4492 770 $(MINIMAL1_VM_TARGETS) \
zgu@4492 771 generic_build1 generic_build2 generic_buildminimal1 generic_export \
duke@435 772 export_product export_fastdebug export_debug export_optimized \
duke@435 773 export_jdk_product export_jdk_fastdebug export_jdk_debug \
duke@435 774 create_jdk copy_jdk update_jdk test_jdk \
jprovino@4165 775 copy_product_jdk copy_fastdebug_jdk copy_debug_jdk \
jprovino@4165 776 $(HS_ALT_MAKE)/Makefile.make

mercurial