make/altsrc.make
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff make

make/altsrc.make

Print this page




  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 
  25 # This file defines variables and macros which are used in the makefiles to 
  26 # allow distributions to augment or replace common hotspot code with 
  27 # distribution-specific source files.
  28 
  29 # Requires: GAMMADIR
  30 # Provides:
  31 #   variables: HS_COMMON_SRC, HS_ALT_SRC, HS_COMMON_SRC_REL, and HS_ALT_SRC_REL
  32 #   functions: altsrc-equiv, if-has-altsrc, altsrc, altsrc-replace
  33 
  34 HS_COMMON_SRC_REL=src
  35 
  36 # This needs to be changed to a more generic location, but we keep it as this 
  37 # for now for compatibility
  38 HS_ALT_SRC_REL=src/closed
  39 



  40 HS_COMMON_SRC=$(GAMMADIR)/$(HS_COMMON_SRC_REL)
  41 HS_ALT_SRC=$(GAMMADIR)/$(HS_ALT_SRC_REL)
  42 
  43 
  44 ## altsrc-equiv 
  45 # 
  46 # Convert a common source path to an alternative source path
  47 #
  48 # Parameter: An absolute path into the common sources
  49 # Result: The matching path to the alternate-source location
  50 #
  51 altsrc-equiv=$(subst $(HS_COMMON_SRC)/,$(HS_ALT_SRC)/,$(1))
  52 
  53 
  54 ## if-has-altsrc
  55 #
  56 # Conditional macro to test for the existence of an alternate source path
  57 #
  58 # Parameter: An absolute path into the common sources
  59 # Parameter: Result if the alternative-source location exists




  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 
  25 # This file defines variables and macros which are used in the makefiles to 
  26 # allow distributions to augment or replace common hotspot code with 
  27 # distribution-specific source files.
  28 
  29 # Requires: GAMMADIR
  30 # Provides:
  31 #   variables: HS_COMMON_SRC, HS_ALT_SRC, HS_COMMON_SRC_REL, and HS_ALT_SRC_REL
  32 #   functions: altsrc-equiv, if-has-altsrc, altsrc, altsrc-replace
  33 
  34 HS_COMMON_SRC_REL=src
  35 
  36 # This needs to be changed to a more generic location, but we keep it as this 
  37 # for now for compatibility
  38 ifneq ($(OPENJDK),true)
  39   HS_ALT_SRC_REL=src/closed
  40 else
  41   HS_ALT_SRC=NO_SUCH_PATH
  42 endif
  43 HS_COMMON_SRC=$(GAMMADIR)/$(HS_COMMON_SRC_REL)
  44 HS_ALT_SRC=$(GAMMADIR)/$(HS_ALT_SRC_REL)
  45 
  46 
  47 ## altsrc-equiv 
  48 # 
  49 # Convert a common source path to an alternative source path
  50 #
  51 # Parameter: An absolute path into the common sources
  52 # Result: The matching path to the alternate-source location
  53 #
  54 altsrc-equiv=$(subst $(HS_COMMON_SRC)/,$(HS_ALT_SRC)/,$(1))
  55 
  56 
  57 ## if-has-altsrc
  58 #
  59 # Conditional macro to test for the existence of an alternate source path
  60 #
  61 # Parameter: An absolute path into the common sources
  62 # Parameter: Result if the alternative-source location exists


make/altsrc.make
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File