duke@2: # ohair@182: # Copyright (c) 1995, 2009, Oracle and/or its affiliates. All rights reserved. duke@2: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@2: # duke@2: # This code is free software; you can redistribute it and/or modify it duke@2: # under the terms of the GNU General Public License version 2 only, as ohair@182: # published by the Free Software Foundation. Oracle designates this duke@2: # particular file as subject to the "Classpath" exception as provided ohair@182: # by Oracle in the LICENSE file that accompanied this code. duke@2: # duke@2: # This code is distributed in the hope that it will be useful, but WITHOUT duke@2: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@2: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@2: # version 2 for more details (a copy is included in the LICENSE file that duke@2: # accompanied this code). duke@2: # duke@2: # You should have received a copy of the GNU General Public License version duke@2: # 2 along with this work; if not, write to the Free Software Foundation, duke@2: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@2: # ohair@182: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@182: # or visit www.oracle.com if you need additional information or have any ohair@182: # questions. duke@2: # duke@2: ohair@7: BUILD_PARENT_DIRECTORY=. ohair@7: duke@2: ifndef TOPDIR ohair@10: TOPDIR:=. duke@2: endif duke@2: duke@2: ifndef CONTROL_TOPDIR ohair@10: CONTROL_TOPDIR=$(TOPDIR) duke@2: endif duke@2: ohair@6: # Openjdk sources (only used if SKIP_OPENJDK_BUILD!=true) ohair@6: OPENJDK_SOURCETREE=$(TOPDIR)/openjdk ohair@6: OPENJDK_BUILDDIR:=$(shell \ ohair@10: if [ -r $(OPENJDK_SOURCETREE)/Makefile ]; then \ ohair@6: echo "$(OPENJDK_SOURCETREE)"; \ ohair@6: else \ ohair@6: echo "."; \ ohair@6: fi) ohair@6: duke@2: ifndef JDK_TOPDIR duke@2: JDK_TOPDIR=$(TOPDIR)/jdk duke@2: endif duke@2: ifndef JDK_MAKE_SHARED_DIR duke@2: JDK_MAKE_SHARED_DIR=$(JDK_TOPDIR)/make/common/shared duke@2: endif duke@2: ohair@29: # For start and finish echo lines ohair@29: TITLE_TEXT = Control $(PLATFORM) $(ARCH) $(RELEASE) ohair@144: DATE_STAMP = `$(DATE) '+%y-%m-%d %H:%M'` ohair@29: START_ECHO = echo "$(TITLE_TEXT) $@ build started: $(DATE_STAMP)" ohair@29: FINISH_ECHO = echo "$(TITLE_TEXT) $@ build finished: $(DATE_STAMP)" ohair@29: ohair@29: default: all ohair@29: duke@2: include $(JDK_MAKE_SHARED_DIR)/Defs-control.gmk duke@2: include ./make/Defs-internal.gmk duke@2: include ./make/sanity-rules.gmk duke@2: include ./make/hotspot-rules.gmk duke@2: include ./make/langtools-rules.gmk duke@2: include ./make/corba-rules.gmk duke@2: include ./make/jaxp-rules.gmk duke@2: include ./make/jaxws-rules.gmk duke@2: include ./make/jdk-rules.gmk duke@2: include ./make/install-rules.gmk duke@2: include ./make/sponsors-rules.gmk duke@2: include ./make/deploy-rules.gmk duke@2: ohair@29: # What "all" means ohair@29: all:: ohair@29: @$(START_ECHO) duke@2: ohair@34: all:: openjdk_check sanity ohair@29: ohair@29: ifeq ($(SKIP_FASTDEBUG_BUILD), false) ohair@29: all:: fastdebug_build ohair@29: endif ohair@29: ohair@29: ifeq ($(SKIP_DEBUG_BUILD), false) ohair@29: all:: debug_build ohair@29: endif ohair@29: ohair@29: ifneq ($(SKIP_OPENJDK_BUILD), true) ohair@29: all:: openjdk_build ohair@29: endif ohair@29: ohair@34: all:: all_product_build ohair@34: ohair@29: all:: ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: # Everything for a full product build ohair@29: all_product_build:: ohair@29: @$(START_ECHO) ohair@29: ohair@29: ifeq ($(SKIP_PRODUCT_BUILD), false) ohair@29: ohair@29: all_product_build:: product_build ohair@29: ohair@29: ifeq ($(BUILD_INSTALL), true) ohair@29: all_product_build:: $(INSTALL) ohair@29: clobber:: install-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_SPONSORS), true) ohair@29: all_product_build:: $(SPONSORS) ohair@29: clobber:: sponsors-clobber ohair@29: endif ohair@29: ohair@29: ifneq ($(SKIP_COMPARE_IMAGES), true) ohair@29: all_product_build:: compare-image ohair@29: endif ohair@29: ohair@29: endif ohair@29: ohair@29: all_product_build:: ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: # Generis build of basic repo series ohair@29: generic_build_repo_series:: ohair@29: $(MKDIR) -p $(OUTPUTDIR) duke@2: $(MKDIR) -p $(OUTPUTDIR)/j2sdk-image duke@2: ohair@29: ifeq ($(BUILD_LANGTOOLS), true) ohair@29: generic_build_repo_series:: langtools ohair@29: clobber:: langtools-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_CORBA), true) ohair@29: generic_build_repo_series:: corba ohair@29: clobber:: corba-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_JAXP), true) ohair@29: generic_build_repo_series:: jaxp ohair@29: clobber:: jaxp-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_JAXWS), true) ohair@29: generic_build_repo_series:: jaxws ohair@29: clobber:: jaxws-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_HOTSPOT), true) ohair@29: generic_build_repo_series:: $(HOTSPOT) ohair@29: clobber:: hotspot-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_JDK), true) ohair@29: generic_build_repo_series:: $(JDK_JAVA_EXE) ohair@29: clobber:: jdk-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_DEPLOY), true) ohair@29: generic_build_repo_series:: $(DEPLOY) ohair@29: clobber:: deploy-clobber ohair@29: endif ohair@29: ohair@29: ifeq ($(BUILD_JDK), true) ohair@29: ifeq ($(BUNDLE_RULES_AVAILABLE), true) ohair@29: generic_build_repo_series:: openjdk-binary-plugs-bundles ohair@29: endif ohair@29: endif ohair@29: ohair@29: # The debug build, fastdebug or debug. Needs special handling. ohair@29: # Note that debug builds do NOT do INSTALL steps, but must be done ohair@29: # after the product build and before the INSTALL step of the product build. ohair@29: # ohair@29: # DEBUG_NAME is fastdebug or debug ohair@29: # ALT_OUTPUTDIR is changed to have -debug or -fastdebug suffix ohair@29: # The resulting j2sdk-image is used by the install makefiles to create a ohair@29: # debug install bundle jdk-*-debug-** bundle (tar or zip) ohair@29: # which will install in the debug or fastdebug subdirectory of the ohair@29: # normal product install area. ohair@29: # The install process needs to know what the DEBUG_NAME is, so ohair@29: # look for INSTALL_DEBUG_NAME in the install rules. ohair@29: # ohair@29: ohair@29: # Location of fresh bootdir output ohair@29: ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk ohair@29: FRESH_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/j2sdk-image ohair@29: FRESH_DEBUG_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME)/j2sdk-image ohair@29: ohair@29: create_fresh_product_bootdir: FRC ohair@29: @$(START_ECHO) ohair@29: $(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ ohair@144: GENERATE_DOCS=false \ ohair@29: BOOT_CYCLE_SETTINGS= \ ohair@29: build_product_image ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: create_fresh_debug_bootdir: FRC ohair@29: @$(START_ECHO) ohair@29: $(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ ohair@144: GENERATE_DOCS=false \ ohair@29: BOOT_CYCLE_DEBUG_SETTINGS= \ ohair@29: build_debug_image ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: create_fresh_fastdebug_bootdir: FRC ohair@29: @$(START_ECHO) ohair@29: $(MAKE) ALT_OUTPUTDIR=$(ABS_BOOTDIR_OUTPUTDIR) \ ohair@144: GENERATE_DOCS=false \ ohair@29: BOOT_CYCLE_DEBUG_SETTINGS= \ ohair@29: build_fastdebug_image ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: # Create boot image? ohair@29: ifeq ($(SKIP_BOOT_CYCLE),false) ohair@29: ifneq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64) ohair@29: DO_BOOT_CYCLE=true ohair@29: endif ohair@29: endif ohair@29: ohair@29: ifeq ($(DO_BOOT_CYCLE),true) ohair@29: ohair@29: # Create the bootdir to use in the build ohair@29: product_build:: create_fresh_product_bootdir ohair@29: debug_build:: create_fresh_debug_bootdir ohair@29: fastdebug_build:: create_fresh_fastdebug_bootdir ohair@29: ohair@29: # Define variables to be used now for the boot jdk ohair@29: BOOT_CYCLE_SETTINGS= \ ohair@29: ALT_BOOTDIR=$(FRESH_BOOTDIR) \ ohair@29: ALT_JDK_IMPORT_PATH=$(FRESH_BOOTDIR) ohair@29: BOOT_CYCLE_DEBUG_SETTINGS= \ ohair@29: ALT_BOOTDIR=$(FRESH_DEBUG_BOOTDIR) \ ohair@29: ALT_JDK_IMPORT_PATH=$(FRESH_DEBUG_BOOTDIR) ohair@29: ohair@29: else ohair@29: ohair@29: # Use the supplied ALT_BOOTDIR as the boot ohair@29: BOOT_CYCLE_SETTINGS= ohair@29: BOOT_CYCLE_DEBUG_SETTINGS= ohair@29: ohair@29: endif ohair@29: ohair@29: build_product_image: ohair@29: @$(START_ECHO) ohair@29: $(MAKE) \ ohair@29: SKIP_FASTDEBUG_BUILD=true \ ohair@29: SKIP_DEBUG_BUILD=true \ ohair@29: $(BOOT_CYCLE_SETTINGS) \ ohair@29: generic_build_repo_series ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: generic_debug_build: ohair@29: @$(START_ECHO) ohair@29: $(MAKE) \ ohair@29: ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)-$(DEBUG_NAME) \ ohair@29: DEBUG_NAME=$(DEBUG_NAME) \ ohair@144: GENERATE_DOCS=false \ ohair@29: $(BOOT_CYCLE_DEBUG_SETTINGS) \ ohair@29: generic_build_repo_series ohair@29: @$(FINISH_ECHO) ohair@29: ohair@29: build_debug_image: ohair@29: $(MAKE) DEBUG_NAME=debug generic_debug_build ohair@29: ohair@29: build_fastdebug_image: ohair@29: $(MAKE) DEBUG_NAME=fastdebug generic_debug_build ohair@29: ohair@29: # Build final image ohair@29: product_build:: build_product_image ohair@29: debug_build:: build_debug_image ohair@29: fastdebug_build:: build_fastdebug_image ohair@29: ohair@6: # Check on whether we really can build the openjdk, need source etc. ohair@7: openjdk_check: FRC ohair@6: ifneq ($(SKIP_OPENJDK_BUILD), true) ohair@6: @$(ECHO) " " ohair@6: @$(ECHO) "=================================================" ohair@6: @if [ ! -r $(OPENJDK_BUILDDIR)/Makefile ] ; then \ ohair@6: $(ECHO) "ERROR: No openjdk source tree available at: $(OPENJDK_BUILDDIR)"; \ ohair@6: exit 1; \ ohair@6: else \ ohair@6: $(ECHO) "OpenJDK will be built after JDK is built"; \ ohair@6: $(ECHO) " OPENJDK_BUILDDIR=$(OPENJDK_BUILDDIR)"; \ ohair@6: fi ohair@6: @$(ECHO) "=================================================" ohair@6: @$(ECHO) " " ohair@6: endif ohair@6: ohair@6: # If we have bundle rules, we have a chance here to do a complete cycle ohair@6: # build, of production and open build. ohair@6: # FIXUP: We should create the openjdk source bundle and build that? ohair@6: # But how do we reliable create or get at a formal openjdk source tree? ohair@6: # The one we have needs to be trimmed of built bits and closed dirs. ohair@6: # The repositories might not be available. ohair@6: # The openjdk source bundle is probably not available. ohair@6: ohair@6: ifneq ($(SKIP_OPENJDK_BUILD), true) duke@2: ifeq ($(BUILD_JDK), true) duke@2: ifeq ($(BUNDLE_RULES_AVAILABLE), true) ohair@6: ohair@6: OPENJDK_PLUGS=$(ABS_OUTPUTDIR)/$(OPENJDK_BINARY_PLUGS_INAME) ohair@6: OPENJDK_OUTPUTDIR=$(ABS_OUTPUTDIR)/open-output ohair@6: OPENJDK_BUILD_NAME \ ohair@6: = openjdk-$(JDK_MINOR_VERSION)-$(BUILD_NUMBER)-$(PLATFORM)-$(ARCH)-$(BUNDLE_DATE) ohair@6: OPENJDK_BUILD_BINARY_ZIP=$(ABS_BIN_BUNDLEDIR)/$(OPENJDK_BUILD_NAME).zip ohair@6: BUILT_IMAGE=$(ABS_OUTPUTDIR)/j2sdk-image ohair@6: ifeq ($(PLATFORM)$(ARCH_DATA_MODEL),solaris64) ohair@6: OPENJDK_BOOTDIR=$(BOOTDIR) ohair@6: OPENJDK_IMPORTJDK=$(JDK_IMPORT_PATH) ohair@6: else ohair@6: OPENJDK_BOOTDIR=$(BUILT_IMAGE) ohair@6: OPENJDK_IMPORTJDK=$(BUILT_IMAGE) ohair@6: endif ohair@6: ohair@6: openjdk_build: ohair@29: @$(START_ECHO) duke@2: @$(ECHO) " " duke@2: @$(ECHO) "=================================================" duke@2: @$(ECHO) "Starting openjdk build" ohair@6: @$(ECHO) " Using: ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR)" duke@2: @$(ECHO) "=================================================" duke@2: @$(ECHO) " " ohair@6: $(RM) -r $(OPENJDK_OUTPUTDIR) ohair@6: $(MKDIR) -p $(OPENJDK_OUTPUTDIR) ohair@6: ($(CD) $(OPENJDK_BUILDDIR) && $(MAKE) \ ohair@6: OPENJDK=true \ ohair@144: GENERATE_DOCS=false \ ohair@6: ALT_JDK_DEVTOOLS_DIR=$(JDK_DEVTOOLS_DIR) \ ohair@6: ALT_OUTPUTDIR=$(OPENJDK_OUTPUTDIR) \ ohair@6: ALT_BINARY_PLUGS_PATH=$(OPENJDK_PLUGS) \ ohair@6: ALT_BOOTDIR=$(OPENJDK_BOOTDIR) \ ohair@6: ALT_JDK_IMPORT_PATH=$(OPENJDK_IMPORTJDK) \ ohair@6: product_build ) duke@2: $(RM) $(OPENJDK_BUILD_BINARY_ZIP) ohair@6: ( $(CD) $(OPENJDK_OUTPUTDIR)/j2sdk-image && \ duke@2: $(ZIPEXE) -q -r $(OPENJDK_BUILD_BINARY_ZIP) .) ohair@6: $(RM) -r $(OPENJDK_OUTPUTDIR) ohair@6: @$(ECHO) " " ohair@6: @$(ECHO) "=================================================" ohair@6: @$(ECHO) "Finished openjdk build" ohair@6: @$(ECHO) " Binary Bundle: $(OPENJDK_BUILD_BINARY_ZIP)" ohair@6: @$(ECHO) "=================================================" ohair@6: @$(ECHO) " " ohair@29: @$(FINISH_ECHO) ohair@6: duke@2: endif duke@2: endif duke@2: endif duke@2: duke@2: clobber:: duke@2: $(RM) -r $(OUTPUTDIR)/* duke@2: $(RM) -r $(OUTPUTDIR)-debug/* duke@2: $(RM) -r $(OUTPUTDIR)-fastdebug/* duke@2: -($(RMDIR) -p $(OUTPUTDIR) > $(DEV_NULL) 2>&1; $(TRUE)) duke@2: duke@2: clean: clobber duke@2: ohair@29: # ohair@29: # Dev builds ohair@29: # ohair@29: ohair@29: dev : dev-build ohair@29: ohair@29: dev-build: ohair@29: $(MAKE) DEV_ONLY=true all ohair@29: dev-sanity: ohair@29: $(MAKE) DEV_ONLY=true sanity ohair@29: dev-clobber: ohair@29: $(MAKE) DEV_ONLY=true clobber duke@2: duke@2: # duke@2: # Quick jdk verification build duke@2: # duke@2: jdk_only: duke@2: $(MAKE) SKIP_FASTDEBUG_BUILD=true BUILD_HOTSPOT=false all duke@2: duke@2: duke@2: # duke@2: # Quick jdk verification fastdebug build duke@2: # duke@2: jdk_fastdebug_only: duke@2: $(MAKE) DEBUG_NAME=fastdebug BUILD_HOTSPOT=false BUILD_DEPLOY=false \ duke@2: BUILD_INSTALL=false BUILD_SPONSORS=false generic_debug_build duke@2: duke@2: # duke@2: # Quick deploy verification fastdebug build duke@2: # duke@2: deploy_fastdebug_only: duke@2: $(MAKE) \ duke@2: DEBUG_NAME=fastdebug \ duke@2: BUILD_HOTSPOT=false \ duke@2: BUILD_JDK=false \ duke@2: BUILD_LANGTOOLS=false \ duke@2: BUILD_CORBA=false \ duke@2: BUILD_JAXP=false \ duke@2: BUILD_JAXWS=false \ duke@2: BUILD_INSTALL=false \ duke@2: BUILD_SPONSORS=false \ duke@2: generic_debug_build duke@2: duke@2: # duke@2: # Product build (skip debug builds) duke@2: # duke@2: product_only: duke@2: $(MAKE) SKIP_FASTDEBUG_BUILD=true all duke@2: duke@2: # duke@2: # Check target duke@2: # duke@2: duke@2: check: variable_check duke@2: duke@2: # duke@2: # Help target duke@2: # duke@2: help: intro_help target_help variable_help notes_help examples_help duke@2: duke@2: # Intro help message duke@2: intro_help: duke@2: @$(ECHO) "\ duke@2: Makefile for the JDK builds (all the JDK). \n\ duke@2: " duke@2: duke@2: # Target help duke@2: target_help: duke@2: @$(ECHO) "\ duke@2: --- Common Targets --- \n\ duke@2: all -- build the core JDK (default target) \n\ duke@2: help -- Print out help information \n\ duke@2: check -- Check make variable values for correctness \n\ duke@2: sanity -- Perform detailed sanity checks on system and settings \n\ duke@2: fastdebug_build -- build the core JDK in 'fastdebug' mode (-g -O) \n\ duke@2: debug_build -- build the core JDK in 'debug' mode (-g) \n\ duke@2: clean -- remove all built and imported files \n\ duke@2: clobber -- same as clean \n\ duke@2: " duke@2: duke@2: # Variable help (only common ones used by this Makefile) duke@2: variable_help: variable_help_intro variable_list variable_help_end duke@2: variable_help_intro: duke@2: @$(ECHO) "--- Common Variables ---" duke@2: variable_help_end: duke@2: @$(ECHO) " " duke@2: duke@2: # One line descriptions for the variables duke@2: OUTPUTDIR.desc = Output directory duke@2: PARALLEL_COMPILE_JOBS.desc = Solaris/Linux parallel compile run count duke@2: SLASH_JAVA.desc = Root of all build tools, e.g. /java or J: duke@2: BOOTDIR.desc = JDK used to boot the build duke@2: JDK_IMPORT_PATH.desc = JDK used to import components of the build duke@2: COMPILER_PATH.desc = Compiler install directory duke@2: CACERTS_FILE.desc = Location of certificates file duke@2: DEVTOOLS_PATH.desc = Directory containing zip and gnumake duke@2: CUPS_HEADERS_PATH.desc = Include directory location for CUPS header files duke@2: DXSDK_PATH.desc = Root directory of DirectX SDK duke@2: MSDEVTOOLS_PATH.desc = Root directory of VC++ tools (e.g. rc.exe) duke@2: MSVCRT_DLL_PATH.desc = Directory containing mscvrt.dll duke@2: duke@2: # Make variables to print out (description and value) duke@2: VARIABLE_PRINTVAL_LIST += \ duke@2: OUTPUTDIR \ duke@2: PARALLEL_COMPILE_JOBS \ duke@2: SLASH_JAVA \ duke@2: BOOTDIR \ duke@2: JDK_IMPORT_PATH \ duke@2: COMPILER_PATH \ duke@2: CACERTS_FILE \ duke@2: DEVTOOLS_PATH duke@2: duke@2: # Make variables that should refer to directories that exist duke@2: VARIABLE_CHECKDIR_LIST += \ duke@2: SLASH_JAVA \ duke@2: BOOTDIR \ duke@2: JDK_IMPORT_PATH \ duke@2: COMPILER_PATH \ duke@2: DEVTOOLS_PATH duke@2: duke@2: # Make variables that should refer to files that exist duke@2: VARIABLE_CHECKFIL_LIST += \ duke@2: CACERTS_FILE duke@2: duke@2: # Some are windows specific duke@2: ifeq ($(PLATFORM), windows) duke@2: duke@2: VARIABLE_PRINTVAL_LIST += \ duke@2: DXSDK_PATH \ duke@2: MSDEVTOOLS_PATH \ duke@2: MSVCRT_DLL_PATH duke@2: duke@2: VARIABLE_CHECKDIR_LIST += \ duke@2: DXSDK_PATH \ duke@2: MSDEVTOOLS_PATH \ duke@2: MSVCRT_DLL_PATH duke@2: duke@2: endif duke@2: duke@2: # For pattern rules below, so all are treated the same duke@2: DO_PRINTVAL_LIST=$(VARIABLE_PRINTVAL_LIST:%=%.printval) duke@2: DO_CHECKDIR_LIST=$(VARIABLE_CHECKDIR_LIST:%=%.checkdir) duke@2: DO_CHECKFIL_LIST=$(VARIABLE_CHECKFIL_LIST:%=%.checkfil) duke@2: duke@2: # Complete variable check duke@2: variable_check: $(DO_CHECKDIR_LIST) $(DO_CHECKFIL_LIST) duke@2: variable_list: $(DO_PRINTVAL_LIST) variable_check duke@2: duke@2: # Pattern rule for printing out a variable duke@2: %.printval: duke@2: @$(ECHO) " ALT_$* - $($*.desc)" duke@2: @$(ECHO) " \t $*=$($*)" duke@2: duke@2: # Pattern rule for checking to see if a variable with a directory exists duke@2: %.checkdir: duke@2: @if [ ! -d $($*) ] ; then \ duke@2: $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ duke@2: fi duke@2: duke@2: # Pattern rule for checking to see if a variable with a file exists duke@2: %.checkfil: duke@2: @if [ ! -f $($*) ] ; then \ duke@2: $(ECHO) "WARNING: $* does not exist, try $(MAKE) sanity"; \ duke@2: fi duke@2: duke@2: # Misc notes on help duke@2: notes_help: duke@2: @$(ECHO) "\ duke@2: --- Notes --- \n\ duke@2: - All builds use same output directory unless overridden with \n\ duke@2: \t ALT_OUTPUTDIR=, changing from product to fastdebug you may want \n\ duke@2: \t to use the clean target first. \n\ duke@2: - JDK_IMPORT_PATH must refer to a compatible build, not all past promoted \n\ duke@2: \t builds or previous release JDK builds will work. \n\ duke@2: - The fastest builds have been when the sources and the BOOTDIR are on \n\ duke@2: \t local disk. \n\ duke@2: " duke@2: duke@2: examples_help: duke@2: @$(ECHO) "\ duke@2: --- Examples --- \n\ duke@2: $(MAKE) fastdebug_build \n\ duke@2: $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\ duke@2: $(MAKE) ALT_OUTPUTDIR=/tmp/foobar fastdebug_build \n\ duke@2: $(MAKE) ALT_OUTPUTDIR=/tmp/foobar all \n\ duke@2: $(MAKE) ALT_BOOTDIR=/opt/java/jdk1.5.0 \n\ duke@2: $(MAKE) ALT_JDK_IMPORT_PATH=/opt/java/jdk1.6.0 \n\ duke@2: " duke@2: duke@2: ################################################################ duke@2: # Source and binary plug bundling duke@2: ################################################################ duke@2: ifeq ($(BUNDLE_RULES_AVAILABLE), true) duke@2: include $(BUNDLE_RULES) duke@2: endif duke@2: duke@2: ################################################################ duke@2: # JPRT rule to build duke@2: ################################################################ duke@2: duke@2: include ./make/jprt.gmk duke@2: duke@2: ################################################################ duke@2: # PHONY duke@2: ################################################################ duke@2: ohair@29: .PHONY: all \ ohair@29: generic_build_repo_series \ ohair@29: what clobber insane \ ohair@29: dev dev-build dev-sanity dev-clobber \ ohair@29: product_build \ ohair@29: fastdebug_build \ ohair@29: debug_build \ ohair@29: build_product_image \ ohair@29: build_debug_image \ ohair@29: build_fastdebug_image \ ohair@29: create_fresh_product_bootdir \ ohair@29: create_fresh_debug_bootdir \ ohair@29: create_fresh_fastdebug_bootdir \ ohair@29: generic_debug_build duke@2: ohair@7: # Force target ohair@7: FRC: ohair@7: