< prev index next >

make/InitSupport.gmk

Print this page
rev 52573 : 8061281: Microbenchmark suite build support, directory layout and sample benchmarks
8061282: Migrate jmh-jdk-microbenchmarks into the JDK
Reviewed-by: ecaspole, mchung, erikj, ihse
Contributed-by: magnus.ihse.bursie@oracle.com, erik.joelsson@oracle.com, claes.redestad@oracle.com, sfriberg@kth.se


  33 _INITSUPPORT_GMK := 1
  34 
  35 ifeq ($(HAS_SPEC),)
  36 
  37   # COMMA is defined in spec.gmk, but that is not included yet
  38   COMMA := ,
  39 
  40   # Include the corresponding closed file, if present.
  41   ifneq ($(CUSTOM_MAKE_DIR), )
  42     -include $(CUSTOM_MAKE_DIR)/InitSupport.gmk
  43   endif
  44 
  45   ##############################################################################
  46   # Helper functions for the initial part of Init.gmk, before the spec file is
  47   # loaded. Most of these functions provide parsing and setting up make options
  48   # from the command-line.
  49   ##############################################################################
  50 
  51   # Make control variables, handled by Init.gmk
  52   INIT_CONTROL_VARIABLES += LOG CONF CONF_NAME SPEC JOBS TEST_JOBS CONF_CHECK \
  53       COMPARE_BUILD JTREG GTEST TEST_OPTS TEST_VM_OPTS
  54 
  55   # All known make control variables
  56   MAKE_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) TEST JDK_FILTER
  57 
  58   # Define a simple reverse function.
  59   # Should maybe move to MakeBase.gmk, but we can't include that file now.
  60   reverse = \
  61       $(if $(strip $(1)), $(call reverse, $(wordlist 2, $(words $(1)), $(1)))) \
  62           $(firstword $(1))
  63 
  64   # The variable MAKEOVERRIDES contains variable assignments from the command
  65   # line, but in reverse order to what the user entered.
  66   # The '\#' <=> '\ 'dance is needed to keep values with space in them connected.
  67   COMMAND_LINE_VARIABLES := $(subst \#,\ , $(call reverse, $(subst \ ,\#,$(MAKEOVERRIDES))))
  68 
  69   # A list like FOO="val1" BAR="val2" containing all user-supplied make
  70   # variables that we should propagate.
  71   # The '\#' <=> '\ 'dance is needed to keep values with space in them connected.
  72   USER_MAKE_VARS := $(subst \#,\ , $(filter-out $(addsuffix =%, $(INIT_CONTROL_VARIABLES)), \
  73       $(subst \ ,\#,$(MAKEOVERRIDES))))




  33 _INITSUPPORT_GMK := 1
  34 
  35 ifeq ($(HAS_SPEC),)
  36 
  37   # COMMA is defined in spec.gmk, but that is not included yet
  38   COMMA := ,
  39 
  40   # Include the corresponding closed file, if present.
  41   ifneq ($(CUSTOM_MAKE_DIR), )
  42     -include $(CUSTOM_MAKE_DIR)/InitSupport.gmk
  43   endif
  44 
  45   ##############################################################################
  46   # Helper functions for the initial part of Init.gmk, before the spec file is
  47   # loaded. Most of these functions provide parsing and setting up make options
  48   # from the command-line.
  49   ##############################################################################
  50 
  51   # Make control variables, handled by Init.gmk
  52   INIT_CONTROL_VARIABLES += LOG CONF CONF_NAME SPEC JOBS TEST_JOBS CONF_CHECK \
  53       COMPARE_BUILD JTREG GTEST MICRO TEST_OPTS TEST_VM_OPTS
  54 
  55   # All known make control variables
  56   MAKE_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) TEST JDK_FILTER
  57 
  58   # Define a simple reverse function.
  59   # Should maybe move to MakeBase.gmk, but we can't include that file now.
  60   reverse = \
  61       $(if $(strip $(1)), $(call reverse, $(wordlist 2, $(words $(1)), $(1)))) \
  62           $(firstword $(1))
  63 
  64   # The variable MAKEOVERRIDES contains variable assignments from the command
  65   # line, but in reverse order to what the user entered.
  66   # The '\#' <=> '\ 'dance is needed to keep values with space in them connected.
  67   COMMAND_LINE_VARIABLES := $(subst \#,\ , $(call reverse, $(subst \ ,\#,$(MAKEOVERRIDES))))
  68 
  69   # A list like FOO="val1" BAR="val2" containing all user-supplied make
  70   # variables that we should propagate.
  71   # The '\#' <=> '\ 'dance is needed to keep values with space in them connected.
  72   USER_MAKE_VARS := $(subst \#,\ , $(filter-out $(addsuffix =%, $(INIT_CONTROL_VARIABLES)), \
  73       $(subst \ ,\#,$(MAKEOVERRIDES))))


< prev index next >