duke@435: # zgu@4492: # Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. duke@435: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@435: # duke@435: # This code is free software; you can redistribute it and/or modify it duke@435: # under the terms of the GNU General Public License version 2 only, as duke@435: # published by the Free Software Foundation. duke@435: # duke@435: # This code is distributed in the hope that it will be useful, but WITHOUT duke@435: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@435: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@435: # version 2 for more details (a copy is included in the LICENSE file that duke@435: # accompanied this code). duke@435: # duke@435: # You should have received a copy of the GNU General Public License version duke@435: # 2 along with this work; if not, write to the Free Software Foundation, duke@435: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@435: # trims@1907: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: # or visit www.oracle.com if you need additional information or have any trims@1907: # questions. drchase@4942: # duke@435: # duke@435: duke@435: # Top level gnumake file for hotspot builds duke@435: # duke@435: # Default is to build the both product images and construct an export dir. duke@435: # The default export directory name is `pwd`/export-$(PLATFORM). duke@435: # duke@435: # Use: 'gnumake help' for more information. duke@435: # duke@435: # This makefile uses the default settings for where to find compilers and duke@435: # tools, and obeys the ALT_* variable settings used by the other JDK duke@435: # workspaces. duke@435: # duke@435: duke@435: # Expected/optional make variables defined on make command line: duke@435: # LP64=1 or ARCH_DATA_MODEL=64 for 64bit build duke@435: # duke@435: # Expected/optional make variables or environment variables: duke@435: # ALT_SLASH_JAVA Location of /java or J: duke@435: # ALT_BOOTDIR Previous JDK home directory for javac compiler duke@435: # ALT_OUTPUTDIR Output directory to use for hotspot build duke@435: # ALT_EXPORT_PATH Directory to export hotspot build to duke@435: # ALT_JDK_IMPORT_PATH Current JDK build (only for create_jdk rules) dholmes@2544: # ALT_JDK_TARGET_IMPORT_PATH Current JDK build when cross-compiling duke@435: # ALT_BUILD_WIN_SA Building SA on Windows is disabled by default. duke@435: # Set ALT_BUILD_WIN_SA=1 to enable building SA on duke@435: # Windows. duke@435: # Version strings and numbers: duke@435: # JDK_VERSION Current JDK version (e.g. 1.6.0) duke@435: # PREVIOUS_JDK_VERSION Previous (bootdir) JDK version (e.g. 1.5.0) duke@435: # FULL_VERSION Full version string to use (e.g. "1.6.0-ea-b42") duke@435: # duke@435: # Version strings and numbers especially needed on Windows: duke@435: # COOKED_JDK_UPDATE_VERSION Just the update release number (e.g. 02) duke@435: # COOKED_BUILD_NUMBER Just the build number (e.g. 42) duke@435: # JDK_MKTG_VERSION Marketing JDK version (e.g. 6.0) duke@435: # JDK_MAJOR_VERSION Major number for version (e.g. 1) always 1? duke@435: # JDK_MINOR_VERSION Minor number for version (e.g. 6) duke@435: # JDK_MICRO_VERSION Micro number for version (e.g. 0) duke@435: # duke@435: duke@435: # Default is build both product fastdebug and create export area duke@435: duke@435: # Allow to build HotSpot in local directory from sources specified by GAMMADIR. duke@435: # After make/defs.make GAMMADIR is defined. duke@435: ifdef GAMMADIR duke@435: ifndef ALT_OUTPUTDIR duke@435: ALT_OUTPUTDIR := $(shell pwd) duke@435: endif duke@435: include $(GAMMADIR)/make/defs.make duke@435: else duke@435: include defs.make duke@435: endif duke@435: kamg@2515: include $(GAMMADIR)/make/altsrc.make duke@435: jprovino@4165: -include $(HS_ALT_MAKE)/Makefile.make jprovino@4165: duke@435: ifneq ($(ALT_OUTPUTDIR),) duke@435: ALT_OUT=ALT_OUTPUTDIR=$(ALT_OUTPUTDIR) duke@435: else duke@435: ALT_OUT= duke@435: endif duke@435: duke@435: # Typical C1/C2 targets made available with this Makefile drchase@4942: C1_VM_TARGETS=product1 fastdebug1 optimized1 debug1 drchase@4942: C2_VM_TARGETS=product fastdebug optimized debug goetz@6439: CORE_VM_TARGETS=productcore fastdebugcore optimizedcore debugcore drchase@4942: ZERO_VM_TARGETS=productzero fastdebugzero optimizedzero debugzero drchase@4942: SHARK_VM_TARGETS=productshark fastdebugshark optimizedshark debugshark drchase@4942: MINIMAL1_VM_TARGETS=productminimal1 fastdebugminimal1 debugminimal1 duke@435: jprovino@4165: COMMON_VM_PRODUCT_TARGETS=product product1 docs export_product jprovino@4165: COMMON_VM_FASTDEBUG_TARGETS=fastdebug fastdebug1 docs export_fastdebug drchase@4942: COMMON_VM_DEBUG_TARGETS=debug debug1 docs export_debug phh@3492: coleenp@548: # JDK directory list coleenp@548: JDK_DIRS=bin include jre lib demo coleenp@548: duke@435: all: all_product all_fastdebug phh@3492: jprovino@4165: ifeq ($(JVM_VARIANT_MINIMAL1),true) jprovino@4165: all_product: productminimal1 jprovino@4165: all_fastdebug: fastdebugminimal1 drchase@4942: all_debug: debugminimal1 jprovino@4165: endif jprovino@4165: phh@3492: ifdef BUILD_CLIENT_ONLY bobv@2036: all_product: product1 docs export_product bobv@2036: all_fastdebug: fastdebug1 docs export_fastdebug drchase@4942: all_debug: debug1 docs export_debug phh@3492: else phh@3492: ifeq ($(MACOSX_UNIVERSAL),true) phh@3492: all_product: universal_product phh@3492: all_fastdebug: universal_fastdebug phh@3492: all_debug: universal_debug phh@3492: else phh@3492: all_product: $(COMMON_VM_PRODUCT_TARGETS) phh@3492: all_fastdebug: $(COMMON_VM_FASTDEBUG_TARGETS) phh@3492: all_debug: $(COMMON_VM_DEBUG_TARGETS) bobv@2036: endif phh@3492: endif phh@3492: jprovino@4165: all_optimized: optimized optimized1 docs export_optimized duke@435: never@1445: allzero: all_productzero all_fastdebugzero never@1445: all_productzero: productzero docs export_product never@1445: all_fastdebugzero: fastdebugzero docs export_fastdebug drchase@4942: all_debugzero: debugzero docs export_debug never@1445: all_optimizedzero: optimizedzero docs export_optimized never@1445: twisti@2047: allshark: all_productshark all_fastdebugshark twisti@2047: all_productshark: productshark docs export_product twisti@2047: all_fastdebugshark: fastdebugshark docs export_fastdebug drchase@4942: all_debugshark: debugshark docs export_debug twisti@2047: all_optimizedshark: optimizedshark docs export_optimized twisti@2047: goetz@6439: allcore: all_productcore all_fastdebugcore goetz@6439: all_productcore: productcore docs export_product goetz@6439: all_fastdebugcore: fastdebugcore docs export_fastdebug goetz@6439: all_debugcore: debugcore docs export_debug goetz@6439: all_optimizedcore: optimizedcore docs export_optimized goetz@6439: duke@435: # Do everything duke@435: world: all create_jdk duke@435: duke@435: # Build or export docs duke@435: docs: duke@435: ifeq ($(OSNAME),windows) duke@435: @$(ECHO) "No docs ($(VM_TARGET)) for windows" duke@435: else dcubed@3725: # We specify 'BUILD_FLAVOR=product' so that the proper dcubed@3725: # ENABLE_FULL_DEBUG_SYMBOLS value is used. duke@435: $(CD) $(OUTPUTDIR); \ duke@435: $(MAKE) -f $(ABS_OS_MAKEFILE) \ dcubed@3725: $(MAKE_ARGS) BUILD_FLAVOR=product docs duke@435: endif duke@435: twisti@5109: # Output directories twisti@5109: C1_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler1 twisti@5109: C2_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_compiler2 goetz@6439: CORE_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_core twisti@5109: MINIMAL1_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_minimal1 twisti@5109: ZERO_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_zero twisti@5109: SHARK_DIR =$(OUTPUTDIR)/$(VM_PLATFORM)_shark twisti@5109: duke@435: # Build variation of hotspot duke@435: $(C1_VM_TARGETS): duke@435: $(CD) $(GAMMADIR)/make; \ twisti@5109: $(MAKE) BUILD_DIR=$(C1_DIR) BUILD_FLAVOR=$(@:%1=%) VM_TARGET=$@ generic_build1 $(ALT_OUT) duke@435: duke@435: $(C2_VM_TARGETS): duke@435: $(CD) $(GAMMADIR)/make; \ twisti@5109: $(MAKE) BUILD_DIR=$(C2_DIR) BUILD_FLAVOR=$@ VM_TARGET=$@ generic_build2 $(ALT_OUT) duke@435: goetz@6439: $(CORE_VM_TARGETS): goetz@6439: $(CD) $(GAMMADIR)/make; \ simonis@6452: $(MAKE) BUILD_DIR=$(CORE_DIR) BUILD_FLAVOR=$(@:%core=%) VM_TARGET=$@ generic_buildcore $(ALT_OUT) goetz@6439: never@1445: $(ZERO_VM_TARGETS): never@1445: $(CD) $(GAMMADIR)/make; \ twisti@5109: $(MAKE) BUILD_DIR=$(ZERO_DIR) BUILD_FLAVOR=$(@:%zero=%) VM_TARGET=$@ generic_buildzero $(ALT_OUT) never@1445: twisti@2047: $(SHARK_VM_TARGETS): twisti@2047: $(CD) $(GAMMADIR)/make; \ twisti@5109: $(MAKE) BUILD_DIR=$(SHARK_DIR) BUILD_FLAVOR=$(@:%shark=%) VM_TARGET=$@ generic_buildshark $(ALT_OUT) twisti@2047: jprovino@4165: $(MINIMAL1_VM_TARGETS): jprovino@4165: $(CD) $(GAMMADIR)/make; \ twisti@5109: $(MAKE) BUILD_DIR=$(MINIMAL1_DIR) BUILD_FLAVOR=$(@:%minimal1=%) VM_TARGET=$@ generic_buildminimal1 $(ALT_OUT) twisti@5109: twisti@5109: # Install hotspot script in build directory twisti@5109: HOTSPOT_SCRIPT=$(BUILD_DIR)/$(BUILD_FLAVOR)/hotspot twisti@5109: $(HOTSPOT_SCRIPT): $(GAMMADIR)/make/hotspot.script twisti@5109: $(QUIETLY) $(MKDIR) -p $(BUILD_DIR)/$(BUILD_FLAVOR) twisti@5109: $(QUIETLY) cat $< | sed -e 's|@@LIBARCH@@|$(LIBARCH)|g' | sed -e 's|@@JDK_IMPORT_PATH@@|$(JDK_IMPORT_PATH)|g' > $@ twisti@5109: $(QUIETLY) chmod +x $@ jprovino@4165: duke@435: # Build compiler1 (client) rule, different for platforms twisti@5109: generic_build1: $(HOTSPOT_SCRIPT) duke@435: $(MKDIR) -p $(OUTPUTDIR) duke@435: ifeq ($(OSNAME),windows) duke@435: ifeq ($(ARCH_DATA_MODEL), 32) duke@435: $(CD) $(OUTPUTDIR); \ duke@435: $(NMAKE) -f $(ABS_OS_MAKEFILE) \ duke@435: Variant=compiler1 \ duke@435: WorkSpace=$(ABS_GAMMADIR) \ duke@435: BootStrapDir=$(ABS_BOOTDIR) \ duke@435: BuildUser=$(USERNAME) \ duke@435: $(MAKE_ARGS) $(VM_TARGET:%1=%) duke@435: else duke@435: @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" duke@435: endif duke@435: else duke@435: ifeq ($(ARCH_DATA_MODEL), 32) duke@435: $(CD) $(OUTPUTDIR); \ duke@435: $(MAKE) -f $(ABS_OS_MAKEFILE) \ duke@435: $(MAKE_ARGS) $(VM_TARGET) duke@435: else duke@435: @$(ECHO) "No compiler1 ($(VM_TARGET)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" duke@435: endif duke@435: endif duke@435: duke@435: # Build compiler2 (server) rule, different for platforms twisti@5109: generic_build2: $(HOTSPOT_SCRIPT) duke@435: $(MKDIR) -p $(OUTPUTDIR) duke@435: ifeq ($(OSNAME),windows) duke@435: $(CD) $(OUTPUTDIR); \ duke@435: $(NMAKE) -f $(ABS_OS_MAKEFILE) \ duke@435: Variant=compiler2 \ duke@435: WorkSpace=$(ABS_GAMMADIR) \ duke@435: BootStrapDir=$(ABS_BOOTDIR) \ duke@435: BuildUser=$(USERNAME) \ duke@435: $(MAKE_ARGS) $(VM_TARGET) duke@435: else duke@435: $(CD) $(OUTPUTDIR); \ duke@435: $(MAKE) -f $(ABS_OS_MAKEFILE) \ duke@435: $(MAKE_ARGS) $(VM_TARGET) duke@435: endif duke@435: goetz@6439: generic_buildcore: $(HOTSPOT_SCRIPT) goetz@6439: ifeq ($(HS_ARCH),ppc) goetz@6439: ifeq ($(ARCH_DATA_MODEL),64) goetz@6439: $(MKDIR) -p $(OUTPUTDIR) goetz@6439: $(CD) $(OUTPUTDIR); \ goetz@6439: $(MAKE) -f $(ABS_OS_MAKEFILE) \ goetz@6439: $(MAKE_ARGS) $(VM_TARGET) goetz@6439: else goetz@6439: @$(ECHO) "No ($(VM_TARGET)) for ppc ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" goetz@6439: endif goetz@6439: else goetz@6439: @$(ECHO) "No ($(VM_TARGET)) for $(HS_ARCH)" goetz@6439: endif goetz@6439: twisti@5109: generic_buildzero: $(HOTSPOT_SCRIPT) never@1445: $(MKDIR) -p $(OUTPUTDIR) never@1445: $(CD) $(OUTPUTDIR); \ never@1445: $(MAKE) -f $(ABS_OS_MAKEFILE) \ never@1445: $(MAKE_ARGS) $(VM_TARGET) never@1445: twisti@5109: generic_buildshark: $(HOTSPOT_SCRIPT) twisti@2047: $(MKDIR) -p $(OUTPUTDIR) twisti@2047: $(CD) $(OUTPUTDIR); \ twisti@2047: $(MAKE) -f $(ABS_OS_MAKEFILE) \ drchase@4942: $(MAKE_ARGS) $(VM_TARGET) twisti@2047: twisti@5109: generic_buildminimal1: $(HOTSPOT_SCRIPT) jprovino@4165: ifeq ($(JVM_VARIANT_MINIMAL1),true) jprovino@4165: $(MKDIR) -p $(OUTPUTDIR) jprovino@4165: ifeq ($(ARCH_DATA_MODEL), 32) jprovino@4165: ifeq ($(OSNAME),windows) jprovino@4165: $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ; jprovino@4165: else jprovino@4165: ifeq ($(OSNAME),solaris) jprovino@4165: $(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" ; jprovino@4165: else jprovino@4165: $(CD) $(OUTPUTDIR); \ jprovino@4165: $(MAKE) -f $(ABS_OS_MAKEFILE) $(MAKE_ARGS) $(VM_TARGET) ; jprovino@4165: endif jprovino@4165: endif jprovino@4165: else jprovino@4165: @$(ECHO) "No ($(VM_TARGET)) for $(OSNAME) ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" jprovino@4165: endif jprovino@4165: else jprovino@4165: @$(ECHO) "Error: trying to build a minimal target but JVM_VARIANT_MINIMAL1 is not true." jprovino@4165: endif jprovino@4165: duke@435: # Export file rule duke@435: generic_export: $(EXPORT_LIST) twisti@5109: duke@435: export_product: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%=%) generic_export duke@435: export_fastdebug: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%=%) EXPORT_SUBDIR=/$(@:export_%=%) generic_export duke@435: export_debug: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%=%) EXPORT_SUBDIR=/$(@:export_%=%) generic_export duke@435: export_optimized: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%=%) EXPORT_SUBDIR=/$(@:export_%=%) generic_export twisti@5109: phh@3492: export_product_jdk:: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) generic_export phh@3492: export_optimized_jdk:: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR) generic_export phh@3492: export_fastdebug_jdk:: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) generic_export phh@3492: export_debug_jdk:: twisti@5109: $(MAKE) BUILD_FLAVOR=$(@:export_%_jdk=%) ALT_EXPORT_PATH=$(JDK_IMAGE_DIR)/$(@:export_%_jdk=%) generic_export duke@435: duke@435: # Export file copy rules duke@435: XUSAGE=$(HS_SRC_DIR)/share/vm/Xusage.txt twisti@5109: DOCS_DIR=$(OUTPUTDIR)/$(VM_PLATFORM)_docs twisti@5109: C1_BUILD_DIR =$(C1_DIR)/$(BUILD_FLAVOR) twisti@5109: C2_BUILD_DIR =$(C2_DIR)/$(BUILD_FLAVOR) goetz@6439: CORE_BUILD_DIR =$(CORE_DIR)/$(BUILD_FLAVOR) twisti@5109: MINIMAL1_BUILD_DIR=$(MINIMAL1_DIR)/$(BUILD_FLAVOR) twisti@5109: ZERO_BUILD_DIR =$(ZERO_DIR)/$(BUILD_FLAVOR) twisti@5109: SHARK_BUILD_DIR =$(SHARK_DIR)/$(BUILD_FLAVOR) duke@435: twisti@4946: # Server (C2) erikj@3649: ifeq ($(JVM_VARIANT_SERVER), true) twisti@4946: # Common twisti@5109: $(EXPORT_SERVER_DIR)/%.diz: $(C2_BUILD_DIR)/%.diz duke@435: $(install-file) twisti@5109: $(EXPORT_LIB_DIR)/%.jar: $(C2_BUILD_DIR)/../generated/%.jar dcubed@3724: $(install-file) twisti@5109: $(EXPORT_INCLUDE_DIR)/%: $(C2_BUILD_DIR)/../generated/jvmtifiles/% duke@435: $(install-file) twisti@4946: # Windows twisti@5109: $(EXPORT_SERVER_DIR)/%.dll: $(C2_BUILD_DIR)/%.dll duke@435: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.pdb: $(C2_BUILD_DIR)/%.pdb duke@435: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.map: $(C2_BUILD_DIR)/%.map dcubed@3724: $(install-file) twisti@5109: $(EXPORT_LIB_DIR)/%.lib: $(C2_BUILD_DIR)/%.lib duke@435: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.diz: $(C2_BUILD_DIR)/%.diz duke@435: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.dll: $(C2_BUILD_DIR)/%.dll duke@435: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.pdb: $(C2_BUILD_DIR)/%.pdb dcubed@3724: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.map: $(C2_BUILD_DIR)/%.map duke@435: $(install-file) twisti@4946: # Unix twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C2_BUILD_DIR)/%.$(LIBRARY_SUFFIX) duke@435: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(C2_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/64/%.$(LIBRARY_SUFFIX): $(C2_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C2_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.debuginfo: $(C2_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/64/%.debuginfo: $(C2_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C2_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/64/%.diz: $(C2_BUILD_DIR)/%.diz duke@435: $(install-file) dcubed@5898: # MacOS X dcubed@5898: $(EXPORT_JRE_LIB_ARCH_DIR)/%.dSYM: $(C2_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) dcubed@5898: $(EXPORT_SERVER_DIR)/%.dSYM: $(C2_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) duke@435: endif duke@435: twisti@4946: # Client (C1) twisti@4946: ifeq ($(JVM_VARIANT_CLIENT), true) twisti@4946: # Common twisti@5109: $(EXPORT_CLIENT_DIR)/%.diz: $(C1_BUILD_DIR)/%.diz jprovino@4165: $(install-file) twisti@5109: $(EXPORT_LIB_DIR)/%.jar: $(C1_BUILD_DIR)/../generated/%.jar jprovino@4165: $(install-file) twisti@5109: $(EXPORT_INCLUDE_DIR)/%: $(C1_BUILD_DIR)/../generated/jvmtifiles/% jprovino@4165: $(install-file) twisti@4946: # Windows twisti@5109: $(EXPORT_CLIENT_DIR)/%.dll: $(C1_BUILD_DIR)/%.dll jprovino@4165: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/%.pdb: $(C1_BUILD_DIR)/%.pdb twisti@4946: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/%.map: $(C1_BUILD_DIR)/%.map twisti@4946: $(install-file) twisti@5109: $(EXPORT_LIB_DIR)/%.lib: $(C1_BUILD_DIR)/%.lib twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.diz: $(C1_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.dll: $(C1_BUILD_DIR)/%.dll twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.pdb: $(C1_BUILD_DIR)/%.pdb twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.map: $(C1_BUILD_DIR)/%.map twisti@4946: $(install-file) twisti@4946: # Unix twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(C1_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/%.$(LIBRARY_SUFFIX): $(C1_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/64/%.$(LIBRARY_SUFFIX): $(C1_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(C1_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/%.debuginfo: $(C1_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/64/%.debuginfo: $(C1_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(C1_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_CLIENT_DIR)/64/%.diz: $(C1_BUILD_DIR)/%.diz twisti@4946: $(install-file) dcubed@5898: # MacOS X dcubed@5898: $(EXPORT_JRE_LIB_ARCH_DIR)/%.dSYM: $(C1_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) dcubed@5898: $(EXPORT_CLIENT_DIR)/%.dSYM: $(C1_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) duke@435: endif duke@435: twisti@4946: # Minimal1 twisti@4946: ifeq ($(JVM_VARIANT_MINIMAL1), true) twisti@4946: # Common twisti@5109: $(EXPORT_MINIMAL_DIR)/%.diz: $(MINIMAL1_BUILD_DIR)/%.diz duke@435: $(install-file) twisti@5109: $(EXPORT_LIB_DIR)/%.jar: $(MINIMAL1_BUILD_DIR)/../generated/%.jar twisti@4946: $(install-file) twisti@5109: $(EXPORT_INCLUDE_DIR)/%: $(MINIMAL1_BUILD_DIR)/../generated/jvmtifiles/% twisti@4946: $(install-file) twisti@4946: # Windows twisti@5109: $(EXPORT_MINIMAL_DIR)/%.dll: $(MINIMAL1_BUILD_DIR)/%.dll twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/%.pdb: $(MINIMAL1_BUILD_DIR)/%.pdb twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/%.map: $(MINIMAL1_BUILD_DIR)/%.map twisti@4946: $(install-file) twisti@5109: $(EXPORT_LIB_DIR)/%.lib: $(MINIMAL1_BUILD_DIR)/%.lib twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.diz: $(MINIMAL1_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.dll: $(MINIMAL1_BUILD_DIR)/%.dll twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.pdb: $(MINIMAL1_BUILD_DIR)/%.pdb twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_BIN_DIR)/%.map: $(MINIMAL1_BUILD_DIR)/%.map twisti@4946: $(install-file) twisti@4946: # Unix twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(MINIMAL1_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/%.$(LIBRARY_SUFFIX): $(MINIMAL1_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/64/%.$(LIBRARY_SUFFIX): $(MINIMAL1_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(MINIMAL1_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/%.debuginfo: $(MINIMAL1_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/64/%.debuginfo: $(MINIMAL1_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(MINIMAL1_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_MINIMAL_DIR)/64/%.diz: $(MINIMAL1_BUILD_DIR)/%.diz twisti@4946: $(install-file) dcubed@5898: # MacOS X does not support Minimal1 config twisti@4946: endif duke@435: twisti@4946: # Zero twisti@4946: ifeq ($(JVM_VARIANT_ZERO), true) twisti@4946: # Common twisti@5109: $(EXPORT_LIB_DIR)/%.jar: $(ZERO_BUILD_DIR)/../generated/%.jar duke@435: $(install-file) twisti@5109: $(EXPORT_INCLUDE_DIR)/%: $(ZERO_BUILD_DIR)/../generated/jvmtifiles/% twisti@4946: $(install-file) twisti@4946: # Unix twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(ZERO_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(ZERO_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(ZERO_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.debuginfo: $(ZERO_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.diz: $(ZERO_BUILD_DIR)/%.diz twisti@4946: $(install-file) dcubed@5898: # MacOS X dcubed@5898: $(EXPORT_JRE_LIB_ARCH_DIR)/%.dSYM: $(ZERO_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) dcubed@5898: $(EXPORT_SERVER_DIR)/%.dSYM: $(ZERO_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) twisti@4946: endif twisti@4946: goetz@6439: # Core goetz@6439: ifeq ($(JVM_VARIANT_CORE), true) goetz@6439: # Common simonis@6452: $(EXPORT_LIB_DIR)/%.jar: $(CORE_BUILD_DIR)/../generated/%.jar goetz@6439: $(install-file) simonis@6452: $(EXPORT_INCLUDE_DIR)/%: $(CORE_BUILD_DIR)/../generated/jvmtifiles/% goetz@6439: $(install-file) goetz@6439: # Unix simonis@6452: $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(CORE_BUILD_DIR)/%.$(LIBRARY_SUFFIX) goetz@6439: $(install-file) simonis@6452: $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo: $(CORE_BUILD_DIR)/%.debuginfo goetz@6439: $(install-file) simonis@6452: $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(CORE_BUILD_DIR)/%.diz goetz@6439: $(install-file) simonis@6452: $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(CORE_BUILD_DIR)/%.$(LIBRARY_SUFFIX) goetz@6439: $(install-file) simonis@6452: $(EXPORT_SERVER_DIR)/%.debuginfo: $(CORE_BUILD_DIR)/%.debuginfo goetz@6439: $(install-file) simonis@6452: $(EXPORT_SERVER_DIR)/%.diz: $(CORE_BUILD_DIR)/%.diz goetz@6439: $(install-file) goetz@6439: endif goetz@6439: twisti@4946: # Shark twisti@4946: ifeq ($(JVM_VARIANT_ZEROSHARK), true) twisti@4946: # Common twisti@5109: $(EXPORT_LIB_DIR)/%.jar: $(SHARK_BUILD_DIR)/../generated/%.jar twisti@4946: $(install-file) twisti@5109: $(EXPORT_INCLUDE_DIR)/%: $(SHARK_BUILD_DIR)/../generated/jvmtifiles/% twisti@4946: $(install-file) twisti@4946: # Unix twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.debuginfo): $(SHARK_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_JRE_LIB_ARCH_DIR)/%.diz: $(SHARK_BUILD_DIR)/%.diz twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.$(LIBRARY_SUFFIX): $(SHARK_BUILD_DIR)/%.$(LIBRARY_SUFFIX) twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.debuginfo: $(SHARK_BUILD_DIR)/%.debuginfo twisti@4946: $(install-file) twisti@5109: $(EXPORT_SERVER_DIR)/%.diz: $(SHARK_BUILD_DIR)/%.diz twisti@4946: $(install-file) dcubed@5898: # MacOS X dcubed@5898: $(EXPORT_JRE_LIB_ARCH_DIR)/%.dSYM: $(SHARK_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) dcubed@5898: $(EXPORT_SERVER_DIR)/%.dSYM: $(SHARK_BUILD_DIR)/%.dSYM dcubed@5898: $(install-dir) twisti@4946: endif duke@435: dcubed@1619: $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/code/% dcubed@1619: $(install-file) dcubed@1619: duke@435: $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/prims/% duke@435: $(install-file) duke@435: kamg@2515: HS_JNI_ARCH_SRC=$(call altsrc-replace,$(HS_COMMON_SRC)/cpu/$(HS_ARCH)/vm/jni_$(HS_ARCH).h) kamg@2515: $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h: $(HS_JNI_ARCH_SRC) duke@435: $(install-file) duke@435: duke@435: $(EXPORT_INCLUDE_DIR)/%: $(HS_SRC_DIR)/share/vm/services/% duke@435: $(install-file) duke@435: phh@3427: JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi) phh@3427: # export jfr.h phh@3427: ifeq ($JFR_EXISTS,1) sla@5237: $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/% phh@3427: $(install-file) phh@3427: else phh@3427: $(EXPORT_INCLUDE_DIR)/jfr.h: phh@3427: endif phh@3427: duke@435: # Doc files (jvmti.html) duke@435: $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% duke@435: $(install-file) duke@435: duke@435: # Xusage file zgu@4492: $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_MINIMAL_DIR)/Xusage.txt: $(XUSAGE) duke@435: $(prep-target) duke@435: $(RM) $@.temp duke@435: $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp duke@435: $(MV) $@.temp $@ duke@435: duke@435: # duke@435: # Clean rules duke@435: # duke@435: clobber clean: clean_build clean_export clean_jdk duke@435: clean_build: duke@435: $(RM) -r $(C1_DIR) duke@435: $(RM) -r $(C2_DIR) goetz@6439: $(RM) -r $(CORE_DIR) never@1445: $(RM) -r $(ZERO_DIR) twisti@2047: $(RM) -r $(SHARK_DIR) jprovino@4165: $(RM) -r $(MINIMAL1_DIR) duke@435: clean_export: duke@435: $(RM) -r $(EXPORT_PATH) duke@435: clean_jdk: duke@435: $(RM) -r $(JDK_IMAGE_DIR) duke@435: duke@435: # duke@435: # Create JDK and place this build into it duke@435: # duke@435: create_jdk: copy_jdk update_jdk duke@435: duke@435: update_jdk: export_product_jdk export_fastdebug_jdk test_jdk duke@435: duke@435: copy_jdk: $(JDK_IMAGE_DIR)/jre/lib/rt.jar duke@435: duke@435: $(JDK_IMAGE_DIR)/jre/lib/rt.jar: duke@435: $(RM) -r $(JDK_IMAGE_DIR) duke@435: $(MKDIR) -p $(JDK_IMAGE_DIR) duke@435: ($(CD) $(JDK_IMPORT_PATH) && \ duke@435: $(TAR) -cf - *) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) duke@435: twisti@4780: twisti@4780: # Testing the built JVM twisti@4780: RUN_JVM=JAVA_HOME=$(JDK_IMPORT_PATH) $(JDK_IMPORT_PATH)/bin/java -d$(ARCH_DATA_MODEL) -Dsun.java.launcher=gamma twisti@4780: generic_test: twisti@4780: @$(ECHO) "Running with: $(ALTJVM_DIR)" twisti@4780: @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -Xinternalversion twisti@4780: @$(RUN_JVM) -XXaltjvm=$(ALTJVM_DIR) -showversion -help twisti@4780: twisti@4780: # C2 test targets drchase@4942: test_product test_optimized test_fastdebug test_debug: twisti@4780: @$(MAKE) generic_test ALTJVM_DIR="$(C2_DIR)/$(@:test_%=%)" twisti@4780: twisti@4780: # C1 test targets drchase@4942: test_product1 test_optimized1 test_fastdebug1 test_debug1: twisti@4780: ifeq ($(ARCH_DATA_MODEL), 32) twisti@4780: @$(MAKE) generic_test ALTJVM_DIR="$(C1_DIR)/$(@:test_%1=%)" twisti@4780: else twisti@4780: @$(ECHO) "No compiler1 ($(@:test_%=%)) for ARCH_DATA_MODEL=$(ARCH_DATA_MODEL)" twisti@4780: endif twisti@4780: twisti@4780: # Zero test targets drchase@4942: test_productzero test_optimizedzero test_fastdebugzero test_debugzero: twisti@4780: @$(MAKE) generic_test ALTJVM_DIR="$(ZERO_DIR)/$(@:test_%zero=%)" twisti@4780: twisti@4780: # Shark test targets drchase@4942: test_productshark test_optimizedshark test_fastdebugshark test_debugshark: twisti@4780: @$(MAKE) generic_test ALTJVM_DIR="$(SHARK_DIR)/$(@:test_%shark=%)" twisti@4780: twisti@4780: # Minimal1 test targets drchase@4942: test_productminimal1 test_optimizedminimal1 test_fastdebugminimal1 test_debugminimal1: twisti@4780: @$(MAKE) generic_test ALTJVM_DIR="$(MINIMAL1_DIR)/$(@:test_%minimal1=%)" twisti@4780: twisti@4780: duke@435: test_jdk: erikj@3649: ifeq ($(JVM_VARIANT_CLIENT), true) erikj@3649: $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -Xinternalversion erikj@3649: $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -client -version erikj@3649: endif erikj@3649: ifeq ($(findstring true, $(JVM_VARIANT_SERVER)\ erikj@3649: $(JVM_VARIANT_ZERO)$(JVM_VARIANT_ZEROSHARK)), true) erikj@3649: $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -Xinternalversion erikj@3649: $(JDK_IMAGE_DIR)/bin/java -d$(ARCH_DATA_MODEL) -server -version erikj@3649: endif duke@435: phh@3492: copy_product_jdk:: duke@435: $(RM) -r $(JDK_IMAGE_DIR) duke@435: $(MKDIR) -p $(JDK_IMAGE_DIR) duke@435: ($(CD) $(JDK_IMPORT_PATH) && \ coleenp@548: $(TAR) -cf - $(JDK_DIRS)) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xf -) duke@435: phh@3492: copy_fastdebug_jdk:: duke@435: $(RM) -r $(JDK_IMAGE_DIR)/fastdebug duke@435: $(MKDIR) -p $(JDK_IMAGE_DIR)/fastdebug duke@435: if [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ duke@435: ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \ coleenp@548: $(TAR) -cf - $(JDK_DIRS)) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ duke@435: else \ duke@435: ($(CD) $(JDK_IMPORT_PATH) && \ coleenp@548: $(TAR) -cf - $(JDK_DIRS)) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR)/fastdebug && $(TAR) -xf -) ; \ duke@435: fi duke@435: phh@3492: copy_debug_jdk:: duke@435: $(RM) -r $(JDK_IMAGE_DIR)/debug duke@435: $(MKDIR) -p $(JDK_IMAGE_DIR)/debug duke@435: if [ -d $(JDK_IMPORT_PATH)/debug ] ; then \ duke@435: ($(CD) $(JDK_IMPORT_PATH)/debug && \ coleenp@548: $(TAR) -cf - $(JDK_DIRS)) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ duke@435: elif [ -d $(JDK_IMPORT_PATH)/fastdebug ] ; then \ duke@435: ($(CD) $(JDK_IMPORT_PATH)/fastdebug && \ coleenp@548: $(TAR) -cf - $(JDK_DIRS)) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ duke@435: else \ duke@435: ($(CD) $(JDK_IMPORT_PATH) && \ coleenp@548: $(TAR) -cf - $(JDK_DIRS)) | \ duke@435: ($(CD) $(JDK_IMAGE_DIR)/debug && $(TAR) -xf -) ; \ duke@435: fi duke@435: duke@435: # duke@435: # Check target duke@435: # duke@435: check: variable_check duke@435: duke@435: # duke@435: # Help target duke@435: # duke@435: help: intro_help target_help variable_help notes_help examples_help duke@435: duke@435: # Intro help message duke@435: intro_help: duke@435: @$(ECHO) \ drchase@4942: "Makefile for the Hotspot workspace." duke@435: @$(ECHO) \ duke@435: "Default behavior is to build and create an export area for the j2se builds." duke@435: duke@435: # Target help duke@435: target_help: duke@435: @$(ECHO) "help: This help message" duke@435: @$(ECHO) "all: Same as: all_product all_fastdebug" duke@435: @$(ECHO) "world: Same as: all create_jdk" duke@435: @$(ECHO) "all_product: Same as: product product1 export_product" duke@435: @$(ECHO) "all_fastdebug: Same as: fastdebug fastdebug1 export_fastdebug" drchase@4942: @$(ECHO) "all_debug: Same as: debug debug1 export_debug" duke@435: @$(ECHO) "all_optimized: Same as: optimized optimized1 export_optimized" duke@435: @$(ECHO) "clean: Clean all areas" duke@435: @$(ECHO) "export_product: Export product files to EXPORT_PATH" duke@435: @$(ECHO) "export_fastdebug: Export fastdebug files to EXPORT_PATH" duke@435: @$(ECHO) "export_debug: Export debug files to EXPORT_PATH" duke@435: @$(ECHO) "export_optimized: Export optimized files to EXPORT_PATH" duke@435: @$(ECHO) "create_jdk: Create JDK image, export all files into it" duke@435: @$(ECHO) "update_jdk: Update JDK image with fresh exported files" duke@435: @$(ECHO) " " jprovino@4165: @$(ECHO) "Other targets are:" duke@435: @$(ECHO) " $(C1_VM_TARGETS)" duke@435: @$(ECHO) " $(C2_VM_TARGETS)" jprovino@4165: @$(ECHO) " $(MINIMAL1_VM_TARGETS)" duke@435: duke@435: # Variable help (only common ones used by this workspace) duke@435: variable_help: variable_help_intro variable_list variable_help_end duke@435: variable_help_intro: duke@435: @$(ECHO) "--- Common Variables ---" duke@435: variable_help_end: duke@435: @$(ECHO) " " duke@435: @$(ECHO) "--- Make Arguments ---" duke@435: @$(ECHO) "MAKE_ARGS=$(MAKE_ARGS)" duke@435: duke@435: # One line descriptions for the variables duke@435: SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: duke@435: OUTPUTDIR.desc = Output directory, default is build/ duke@435: BOOTDIR.desc = JDK used to compile agent java source and test with duke@435: JDK_IMPORT_PATH.desc = Promoted JDK to copy for 'create_jdk' twisti@3567: JDK_IMAGE_DIR.desc = Directory to place JDK to copy duke@435: EXPORT_PATH.desc = Directory to place files to export for JDK build duke@435: duke@435: # Make variables to print out (description and value) duke@435: VARIABLE_PRINTVAL_LIST += \ duke@435: SLASH_JAVA \ duke@435: OUTPUTDIR \ duke@435: BOOTDIR \ duke@435: JDK_IMPORT_PATH \ twisti@3567: JDK_IMAGE_DIR \ duke@435: EXPORT_PATH duke@435: duke@435: # Make variables that should refer to directories that exist duke@435: VARIABLE_CHECKDIR_LIST += \ duke@435: SLASH_JAVA \ duke@435: BOOTDIR \ duke@435: JDK_IMPORT_PATH duke@435: duke@435: # For pattern rules below, so all are treated the same duke@435: DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) duke@435: DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) duke@435: duke@435: # Complete variable check duke@435: variable_check: $(DO_CHECKDIR_LIST) duke@435: variable_list: $(DO_PRINTVAL_LIST) variable_check duke@435: duke@435: # Pattern rule for printing out a variable duke@435: %.printval: duke@435: @$(ECHO) " ALT_$* - $($*.desc)" duke@435: @$(ECHO) " $*=$($*)" duke@435: duke@435: # Pattern rule for checking to see if a variable with a directory exists duke@435: %.checkdir: duke@435: @if [ ! -d $($*) ] ; then \ duke@435: $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ duke@435: fi duke@435: duke@435: # Pattern rule for checking to see if a variable with a file exists duke@435: %.checkfil: duke@435: @if [ ! -f $($*) ] ; then \ duke@435: $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ duke@435: fi duke@435: duke@435: # Misc notes on help duke@435: notes_help: duke@435: @$(ECHO) \ duke@435: "--- Notes --- " duke@435: @$(ECHO) \ duke@435: "- JDK_IMPORT_PATH must refer to a compatible build, not all past promoted" duke@435: @$(ECHO) \ duke@435: " builds or previous release JDK builds will work." duke@435: @$(ECHO) \ duke@435: "- The fastest builds have been when the workspace and the BOOTDIR are on" duke@435: @$(ECHO) \ duke@435: " local disk." duke@435: duke@435: examples_help: duke@435: @$(ECHO) \ duke@435: "--- Examples --- " duke@435: @$(ECHO) \ duke@435: " $(MAKE) all" duke@435: @$(ECHO) \ duke@435: " $(MAKE) world" duke@435: @$(ECHO) \ drchase@4942: " $(MAKE) ALT_BOOTDIR=/opt/java/jdk$(PREVIOUS_JDK_VERSION)" duke@435: @$(ECHO) \ duke@435: " $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk$(JDK_VERSION)" duke@435: phh@3492: # Universal build support phh@3492: ifeq ($(OS_VENDOR), Darwin) phh@3492: ifeq ($(MACOSX_UNIVERSAL),true) phh@3492: include $(GAMMADIR)/make/$(OSNAME)/makefiles/universal.gmk phh@3492: endif phh@3492: endif phh@3492: drchase@4942: # Compatibility for transition to new naming drchase@4942: warn_jvmg_deprecated: drchase@4942: echo "Warning: The jvmg target has been replaced with debug" drchase@4942: echo "Warning: Please update your usage" drchase@4942: drchase@4942: jvmg: warn_jvmg_deprecated debug drchase@4942: drchase@4942: jvmg1: warn_jvmg_deprecated debug1 drchase@4942: drchase@4942: jvmgminimal1: warn_jvmg_deprecated debugminimal1 drchase@4942: drchase@4942: jvmgcore: warn_jvmg_deprecated debugcore drchase@4942: drchase@4942: jvmgzero: warn_jvmg_deprecated debugzero drchase@4942: drchase@4942: jvmgshark: warn_jvmg_deprecated debugshark drchase@4942: duke@435: # JPRT rule to build this workspace duke@435: include $(GAMMADIR)/make/jprt.gmk duke@435: duke@435: .PHONY: all world clobber clean help $(C1_VM_TARGETS) $(C2_VM_TARGETS) \ zgu@4492: $(MINIMAL1_VM_TARGETS) \ zgu@4492: generic_build1 generic_build2 generic_buildminimal1 generic_export \ duke@435: export_product export_fastdebug export_debug export_optimized \ duke@435: export_jdk_product export_jdk_fastdebug export_jdk_debug \ duke@435: create_jdk copy_jdk update_jdk test_jdk \ jprovino@4165: copy_product_jdk copy_fastdebug_jdk copy_debug_jdk \ jprovino@4165: $(HS_ALT_MAKE)/Makefile.make