duke@2: # ohair@330: # Copyright (c) 1995, 2011, 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: ohair@340: # Basename of any originally supplied ALT_OUTPUTDIR directory ohair@340: ifndef ORIG_OUTPUTDIR_BASENAME ohair@340: ifdef ALT_OUTPUTDIR ohair@340: ORIG_OUTPUTDIR_BASENAME := $(shell basename $(ALT_OUTPUTDIR)) ohair@340: else ohair@340: ORIG_OUTPUTDIR_BASENAME = $(PLATFORM)-$(ARCH) ohair@340: endif ohair@340: endif ohair@340: export ORIG_OUTPUTDIR_BASENAME ohair@340: ohair@340: # The three possible directories created for output (3 build flavors) ohair@340: OUTPUTDIR_BASENAME- = $(ORIG_OUTPUTDIR_BASENAME) ohair@340: OUTPUTDIR_BASENAME-debug = $(ORIG_OUTPUTDIR_BASENAME)-debug ohair@340: OUTPUTDIR_BASENAME-fastdebug = $(ORIG_OUTPUTDIR_BASENAME)-fastdebug ohair@340: ohair@340: # Relative path to a debug output area ohair@340: REL_JDK_OUTPUTDIR = ../$(OUTPUTDIR_BASENAME-$(DEBUG_NAME)) ohair@340: ohair@340: # The created jdk image directory ohair@340: JDK_IMAGE_DIRNAME = j2sdk-image ohair@340: JDK_IMAGE_DIR = $(OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) ohair@340: ABS_JDK_IMAGE_DIR = $(ABS_OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) ohair@340: ohair@340: # Relative path from an output directory to the image directory ohair@340: REL_JDK_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-$(DEBUG_NAME))/$(JDK_IMAGE_DIRNAME) ohair@340: REL_JDK_DEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-debug)/$(JDK_IMAGE_DIRNAME) ohair@340: REL_JDK_FASTDEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-fastdebug)/$(JDK_IMAGE_DIRNAME) ohair@340: duke@2: ifndef TOPDIR ohair@10: TOPDIR:=. duke@2: endif duke@2: 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: 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@288: all:: 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@34: all:: all_product_build ohair@34: ohair@317: all_product_build:: ohair@317: ohrstrom@313: # Everything for a full product build ohrstrom@313: 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 ohrstrom@313: ohair@29: ifeq ($(BUILD_SPONSORS), true) ohair@29: all_product_build:: $(SPONSORS) ohair@29: clobber:: sponsors-clobber ohair@29: endif ohrstrom@313: ohair@29: ifneq ($(SKIP_COMPARE_IMAGES), true) ohair@29: all_product_build:: compare-image ohair@29: endif ohair@29: ohair@29: endif ohair@29: ohrstrom@313: define StartTimer ohrstrom@313: $(MKDIR) -p $(BUILDTIMESDIR) ohrstrom@313: $(RM) $(BUILDTIMESDIR)/build_time_* ohrstrom@313: $(call RecordStartTime,TOTAL) ohrstrom@313: endef ohrstrom@313: ohrstrom@313: define StopTimer ohrstrom@313: $(if $(REPORT_BUILD_TIMES),$(call RecordEndTime,TOTAL) && $(call ReportBuildTimes,$1),) ohrstrom@313: endef ohair@29: ohair@191: # Generic build of basic repo series ohair@334: generic_build_repo_series:: $(SOURCE_TIPS) ohair@340: $(MKDIR) -p $(JDK_IMAGE_DIR) ohrstrom@313: @$(call StartTimer) 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: ohrstrom@313: generic_build_repo_series:: ohrstrom@313: @$(call StopTimer,$(if $(DEBUG_NAME),$(DEBUG_NAME)_build,all_product_build)) ohrstrom@313: 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@340: # The resulting image directory (j2sdk-image) is used by the install makefiles ohair@340: # to create a 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@191: # NOTE: On windows, do not use $(ABS_BOOTDIR_OUTPUTDIR)-$(DEBUG_NAME). ohair@191: # Due to the use of short paths in $(ABS_OUTPUTDIR), this may ohair@191: # not be the same location. ohair@191: # ohair@29: ohair@29: # Location of fresh bootdir output ohair@29: ABS_BOOTDIR_OUTPUTDIR=$(ABS_OUTPUTDIR)/bootjdk ohair@340: FRESH_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/$(JDK_IMAGE_DIRNAME) ohair@340: FRESH_DEBUG_BOOTDIR=$(ABS_BOOTDIR_OUTPUTDIR)/$(REL_JDK_IMAGE_DIR) ohair@29: ohair@29: create_fresh_product_bootdir: FRC 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: ohair@29: create_fresh_debug_bootdir: FRC 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: ohair@29: create_fresh_fastdebug_bootdir: FRC 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: 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: ohrstrom@313: ohrstrom@313: 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: $(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: ohair@191: # NOTE: On windows, do not use $(ABS_OUTPUTDIR)-$(DEBUG_NAME). ohair@191: # Due to the use of short paths in $(ABS_OUTPUTDIR), this may ohair@191: # not be the same location. ohair@191: ohair@29: generic_debug_build: ohair@29: $(MAKE) \ ohair@340: ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)/$(REL_JDK_OUTPUTDIR) \ 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: 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@334: # The source tips are stored with the relative path to the repo. ohair@334: # This file will be used when constructing the jdk image. ohair@334: source_tips: $(SOURCE_TIPS) ohair@334: $(CAT) $< ohair@334: $(SOURCE_TIPS): FRC ohair@334: @$(prep-target) ohair@334: @$(call GetSourceTips) ohair@334: ohrstrom@313: clobber:: REPORT_BUILD_TIMES= ohrstrom@313: clobber:: duke@2: $(RM) -r $(OUTPUTDIR)/* 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: 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 += \ ohair@291: DXSDK_PATH duke@2: duke@2: VARIABLE_CHECKDIR_LIST += \ ohair@291: DXSDK_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: ################################################################ ohair@278: # Source bundling duke@2: ################################################################ duke@2: ifeq ($(BUNDLE_RULES_AVAILABLE), true) duke@2: include $(BUNDLE_RULES) duke@2: endif duke@2: duke@2: ################################################################ ohair@191: # rule to test ohair@191: ################################################################ ohair@191: ohair@224: .NOTPARALLEL: test_run ohair@191: ohair@224: test: ohair@224: $(MAKE) test_run ohair@224: ohair@224: test_run: test_clean test_start test_summary ohair@191: ohair@191: test_start: ohair@191: @$(ECHO) "Tests started at `$(DATE)`" ohair@191: ohair@191: test_clean: ohair@191: $(RM) $(OUTPUTDIR)/test_failures.txt $(OUTPUTDIR)/test_log.txt ohair@191: ohair@191: test_summary: $(OUTPUTDIR)/test_failures.txt ohair@191: @$(ECHO) "#################################################" ohair@191: @$(ECHO) "Tests completed at `$(DATE)`" ohair@191: @( $(EGREP) '^TEST STATS:' $(OUTPUTDIR)/test_log.txt \ ohair@191: || $(ECHO) "No TEST STATS seen in log" ) ohair@191: @$(ECHO) "For complete details see: $(OUTPUTDIR)/test_log.txt" ohair@191: @$(ECHO) "#################################################" ohair@191: @if [ -s $< ] ; then \ ohair@191: $(ECHO) "ERROR: Test failure count: `$(CAT) $< | $(WC) -l`"; \ ohair@191: $(CAT) $<; \ ohair@191: exit 1; \ ohair@191: else \ ohair@191: $(ECHO) "Success! No failures detected"; \ ohair@191: fi ohair@191: ohair@191: # Get failure list from log ohair@191: $(OUTPUTDIR)/test_failures.txt: $(OUTPUTDIR)/test_log.txt ohair@191: @$(RM) $@ ohair@224: @( $(EGREP) '^FAILED:' $< || $(ECHO) "" ) | $(NAWK) 'length>0' > $@ ohair@191: ohair@191: # Get log file of all tests run ohair@191: JDK_TO_TEST := $(shell \ ohair@340: if [ -d "$(ABS_JDK_IMAGE_DIR)" ] ; then \ ohair@340: $(ECHO) "$(ABS_JDK_IMAGE_DIR)"; \ ohair@191: elif [ -d "$(ABS_OUTPUTDIR)/bin" ] ; then \ ohair@191: $(ECHO) "$(ABS_OUTPUTDIR)"; \ ohair@191: elif [ "$(PRODUCT_HOME)" != "" -a -d "$(PRODUCT_HOME)/bin" ] ; then \ ohair@191: $(ECHO) "$(PRODUCT_HOME)"; \ ohair@191: fi \ ohair@191: ) ohair@224: TEST_TARGETS=all ohair@191: $(OUTPUTDIR)/test_log.txt: ohair@191: $(RM) $@ ohair@224: ( $(CD) test && \ ohair@224: $(MAKE) NO_STOPPING=- PRODUCT_HOME=$(JDK_TO_TEST) $(TEST_TARGETS) \ ohair@191: ) | tee $@ ohair@191: ohair@191: ################################################################ 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@224: .PHONY: all test test_run test_start test_summary test_clean \ 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: