< prev index next >

make/InitSupport.gmk

Print this page




  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ################################################################################
  27 # This file contains helper functions for Init.gmk.
  28 # It is divided in two parts, depending on if a SPEC is present or not
  29 # (HAS_SPEC is true or not).
  30 ################################################################################
  31 
  32 ifndef _INITSUPPORT_GMK
  33 _INITSUPPORT_GMK := 1
  34 
  35 ifeq ($(HAS_SPEC),)
  36 
  37   # Include the corresponding closed file, if present.
  38   # Normal hook mechanism cannot be used since we have no SPEC.
  39   -include $(topdir)/../closed/make/InitSupport.gmk

  40 
  41   ##############################################################################
  42   # Helper functions for the initial part of Init.gmk, before the spec file is
  43   # loaded. Most of these functions provide parsing and setting up make options
  44   # from the command-line.
  45   ##############################################################################
  46 
  47   # Make control variables, handled by Init.gmk
  48   INIT_CONTROL_VARIABLES += LOG CONF CONF_NAME SPEC JOBS TEST_JOBS CONF_CHECK \
  49       COMPARE_BUILD JTREG GTEST
  50 
  51   # All known make control variables
  52   MAKE_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) TEST JDK_FILTER
  53 
  54   # Define a simple reverse function.
  55   # Should maybe move to MakeBase.gmk, but we can't include that file now.
  56   reverse = \
  57       $(if $(strip $(1)), $(call reverse, $(wordlist 2, $(words $(1)), $(1)))) \
  58           $(firstword $(1))
  59 




  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 ################################################################################
  27 # This file contains helper functions for Init.gmk.
  28 # It is divided in two parts, depending on if a SPEC is present or not
  29 # (HAS_SPEC is true or not).
  30 ################################################################################
  31 
  32 ifndef _INITSUPPORT_GMK
  33 _INITSUPPORT_GMK := 1
  34 
  35 ifeq ($(HAS_SPEC),)
  36 
  37   # Include the corresponding closed file, if present.
  38   ifneq ($(CUSTOM_MAKE_DIR), )
  39     -include $(CUSTOM_MAKE_DIR)/InitSupport.gmk
  40   endif
  41 
  42   ##############################################################################
  43   # Helper functions for the initial part of Init.gmk, before the spec file is
  44   # loaded. Most of these functions provide parsing and setting up make options
  45   # from the command-line.
  46   ##############################################################################
  47 
  48   # Make control variables, handled by Init.gmk
  49   INIT_CONTROL_VARIABLES += LOG CONF CONF_NAME SPEC JOBS TEST_JOBS CONF_CHECK \
  50       COMPARE_BUILD JTREG GTEST
  51 
  52   # All known make control variables
  53   MAKE_CONTROL_VARIABLES := $(INIT_CONTROL_VARIABLES) TEST JDK_FILTER
  54 
  55   # Define a simple reverse function.
  56   # Should maybe move to MakeBase.gmk, but we can't include that file now.
  57   reverse = \
  58       $(if $(strip $(1)), $(call reverse, $(wordlist 2, $(words $(1)), $(1)))) \
  59           $(firstword $(1))
  60 


< prev index next >