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

make/defs.make

Print this page




   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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 ifeq ($(HS_ALT_MAKE),)
  26   ifneq ($(OPENJDK),true)
  27     HS_ALT_MAKE=$(GAMMADIR)/make/closed
  28   else
  29     HS_ALT_MAKE=NO_SUCH_PATH
  30   endif
  31 endif
  32 
  33 # The common definitions for hotspot builds.
  34 
  35 # Optionally include SPEC file generated by configure.
  36 ifneq ($(SPEC),)
  37   include $(SPEC)
  38 endif
  39 
  40 # Default to verbose build logs (show all compile lines):
  41 MAKE_VERBOSE=y
  42 
  43 # Make macros for install files or preparing targets
  44 CD=cd
  45 CP=cp
  46 ECHO=echo
  47 GREP=grep
  48 MKDIR=mkdir
  49 MV=mv
  50 PWD=pwd
  51 RM=rm -f
  52 SED=sed
  53 TAR=tar
  54 ZIPEXE=zip
  55 
  56 define install-file
  57 @$(MKDIR) -p $(@D)
  58 @$(RM) $@


  67 # it already.
  68 ifeq ($(JVM_VARIANTS),)
  69   ifeq ($(ZERO_BUILD), true)
  70     ifeq ($(SHARK_BUILD), true)
  71       JVM_VARIANTS:=zeroshark
  72       JVM_VARIANT_ZEROSHARK:=true
  73     else
  74       JVM_VARIANTS:=zero
  75       JVM_VARIANT_ZERO:=true
  76     endif
  77   else
  78     # A default is needed
  79     ifeq ($(BUILD_CLIENT_ONLY), true)
  80       JVM_VARIANTS:=client
  81       JVM_VARIANT_CLIENT:=true
  82     endif
  83     # Further defaults are platform and arch specific
  84   endif
  85 endif
  86 
  87 # Directory paths and user name
  88 # Unless GAMMADIR is set on the command line, search upward from
  89 # the current directory for a parent directory containing "src/share/vm".
  90 # If that fails, look for $GAMMADIR in the environment.
  91 # When the tree of subdirs is built, this setting is stored in each flags.make.
  92 GAMMADIR := $(shell until ([ -d dev ]&&echo $${GAMMADIR:-/GAMMADIR/}) || ([ -d src/share/vm ]&&pwd); do cd ..; done)
  93 HS_SRC_DIR=$(GAMMADIR)/src
  94 HS_MAKE_DIR=$(GAMMADIR)/make
  95 HS_BUILD_DIR=$(GAMMADIR)/build
  96 
  97 ifeq ($(USER),)
  98   USER=$(USERNAME)
  99 endif
 100 
 101 # hotspot version definitions
 102 include $(GAMMADIR)/make/hotspot_version
 103 
 104 # Java versions needed
 105 ifeq ($(PREVIOUS_JDK_VERSION),)
 106   PREVIOUS_JDK_VERSION=$(JDK_PREVIOUS_VERSION)
 107 endif
 108 ifeq ($(JDK_MAJOR_VERSION),)
 109   JDK_MAJOR_VERSION=$(JDK_MAJOR_VER)
 110 endif
 111 ifeq ($(JDK_MINOR_VERSION),)
 112   JDK_MINOR_VERSION=$(JDK_MINOR_VER)
 113 endif
 114 ifeq ($(JDK_MICRO_VERSION),)
 115   JDK_MICRO_VERSION=$(JDK_MICRO_VER)
 116 endif


 319 EXPORT_JRE_LIB_ARCH_DIR = $(EXPORT_JRE_LIB_DIR)/$(LIBARCH)
 320 
 321 # non-universal macosx builds need to appear universal
 322 ifeq ($(OS_VENDOR), Darwin)
 323   ifneq ($(MACOSX_UNIVERSAL), true)
 324     EXPORT_JRE_LIB_ARCH_DIR = $(EXPORT_JRE_LIB_DIR)
 325   endif
 326 endif
 327 
 328 # Common export list of files
 329 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jvmti.h
 330 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jvmticmlr.h
 331 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jni.h
 332 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h
 333 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jmm.h
 334 
 335 ifndef JAVASE_EMBEDDED
 336 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jfr.h
 337 endif
 338 



   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  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 # The common definitions for hotspot builds.
  26 
  27 # Optionally include SPEC file generated by configure.
  28 ifneq ($(SPEC),)
  29   include $(SPEC)
  30 endif
  31 
  32 # Directory paths and user name
  33 # Unless GAMMADIR is set on the command line, search upward from
  34 # the current directory for a parent directory containing "src/share/vm".
  35 # If that fails, look for $GAMMADIR in the environment.
  36 # When the tree of subdirs is built, this setting is stored in each flags.make.
  37 GAMMADIR := $(shell until ([ -d dev ]&&echo $${GAMMADIR:-/GAMMADIR/}) || ([ -d src/share/vm ]&&pwd); do cd ..; done)
  38 HS_SRC_DIR=$(GAMMADIR)/src
  39 HS_MAKE_DIR=$(GAMMADIR)/make
  40 HS_BUILD_DIR=$(GAMMADIR)/build
  41 
  42 ifeq ($(HS_ALT_MAKE),)
  43   ifneq ($(OPENJDK),true)
  44     HS_ALT_MAKE=$(GAMMADIR)/make/closed
  45   else
  46     HS_ALT_MAKE=NO_SUCH_PATH
  47   endif
  48 endif
  49 
  50 #
  51 # Include alternate defs.make if it exists
  52 #
  53 -include $(HS_ALT_MAKE)/defs.make


  54 
  55 # Default to verbose build logs (show all compile lines):
  56 MAKE_VERBOSE=y
  57 
  58 # Make macros for install files or preparing targets
  59 CD=cd
  60 CP=cp
  61 ECHO=echo
  62 GREP=grep
  63 MKDIR=mkdir
  64 MV=mv
  65 PWD=pwd
  66 RM=rm -f
  67 SED=sed
  68 TAR=tar
  69 ZIPEXE=zip
  70 
  71 define install-file
  72 @$(MKDIR) -p $(@D)
  73 @$(RM) $@


  82 # it already.
  83 ifeq ($(JVM_VARIANTS),)
  84   ifeq ($(ZERO_BUILD), true)
  85     ifeq ($(SHARK_BUILD), true)
  86       JVM_VARIANTS:=zeroshark
  87       JVM_VARIANT_ZEROSHARK:=true
  88     else
  89       JVM_VARIANTS:=zero
  90       JVM_VARIANT_ZERO:=true
  91     endif
  92   else
  93     # A default is needed
  94     ifeq ($(BUILD_CLIENT_ONLY), true)
  95       JVM_VARIANTS:=client
  96       JVM_VARIANT_CLIENT:=true
  97     endif
  98     # Further defaults are platform and arch specific
  99   endif
 100 endif
 101 










 102 ifeq ($(USER),)
 103   USER=$(USERNAME)
 104 endif
 105 
 106 # hotspot version definitions
 107 include $(GAMMADIR)/make/hotspot_version
 108 
 109 # Java versions needed
 110 ifeq ($(PREVIOUS_JDK_VERSION),)
 111   PREVIOUS_JDK_VERSION=$(JDK_PREVIOUS_VERSION)
 112 endif
 113 ifeq ($(JDK_MAJOR_VERSION),)
 114   JDK_MAJOR_VERSION=$(JDK_MAJOR_VER)
 115 endif
 116 ifeq ($(JDK_MINOR_VERSION),)
 117   JDK_MINOR_VERSION=$(JDK_MINOR_VER)
 118 endif
 119 ifeq ($(JDK_MICRO_VERSION),)
 120   JDK_MICRO_VERSION=$(JDK_MICRO_VER)
 121 endif


 324 EXPORT_JRE_LIB_ARCH_DIR = $(EXPORT_JRE_LIB_DIR)/$(LIBARCH)
 325 
 326 # non-universal macosx builds need to appear universal
 327 ifeq ($(OS_VENDOR), Darwin)
 328   ifneq ($(MACOSX_UNIVERSAL), true)
 329     EXPORT_JRE_LIB_ARCH_DIR = $(EXPORT_JRE_LIB_DIR)
 330   endif
 331 endif
 332 
 333 # Common export list of files
 334 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jvmti.h
 335 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jvmticmlr.h
 336 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jni.h
 337 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/$(JDK_INCLUDE_SUBDIR)/jni_md.h
 338 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jmm.h
 339 
 340 ifndef JAVASE_EMBEDDED
 341 EXPORT_LIST += $(EXPORT_INCLUDE_DIR)/jfr.h
 342 endif
 343 
 344 .PHONY: $(HS_ALT_MAKE)/defs.make
make/defs.make
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File