< prev index next >

make/autoconf/spec.gmk.in

Print this page




  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  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 # Configured @DATE_WHEN_CONFIGURED@ to build
  27 # for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
  28 #   (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
  29 # on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
  30 #   (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
  31 # using 'configure @CONFIGURE_COMMAND_LINE@'
  32 
  33 # The command line given to configure.
  34 CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
  35 # The current directory when configure was run
  36 CONFIGURE_START_DIR:=@CONFIGURE_START_DIR@
  37 
  38 # A self-referential reference to this file.
  39 SPEC:=@SPEC@
  40 
  41 # Path to autoconf if overriden by the user, to be used by "make reconfigure"
  42 AUTOCONF := @AUTOCONF@
  43 
  44 # SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
  45 # some definitions here, and are needed if MakeBase.gmk is not included before
  46 # this file.
  47 X:=
  48 SPACE:=$(X) $(X)
  49 COMMA:=,
  50 
  51 # What make to use for main processing, after bootstrapping top-level Makefile.
  52 MAKE := @MAKE@
  53 
  54 # The default make arguments
  55 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
  56     MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" $(MAKE_LOG_VARS)


 123 PATH_SEP:=@PATH_SEP@
 124 
 125 # Save the original path before replacing it with the Visual Studio tools
 126 ORIGINAL_PATH:=@ORIGINAL_PATH@
 127 ifeq ($(OPENJDK_TARGET_OS), windows)
 128   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 129   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 130   ifeq ($(OPENJDK_TARGET_OS_ENV), windows.wsl)
 131     export FIXPATH_PATH:=@VS_PATH_WINDOWS@
 132     export WSLENV:=$(WSLENV):FIXPATH_PATH:DEBUG_FIXPATH
 133   else
 134     export PATH:=@VS_PATH@
 135   endif
 136 endif
 137 
 138 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 139 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 140 
 141 # The top-level directory of the source repository
 142 TOPDIR:=@TOPDIR@
 143 # Usually the top level directory, but could be something else if a custom
 144 # root is defined.
 145 WORKSPACE_ROOT:=@WORKSPACE_ROOT@
 146 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 147 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 148 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 149 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 150 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 151 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 152 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 153 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 154 
 155 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 156 
 157 # Platform naming variables
 158 LAUNCHER_NAME:=@LAUNCHER_NAME@
 159 PRODUCT_NAME:=@PRODUCT_NAME@
 160 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 161 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
 162 JDK_RC_NAME:=@JDK_RC_NAME@
 163 COMPANY_NAME:=@COMPANY_NAME@
 164 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 165 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 166 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 167 USERNAME:=@USERNAME@
 168 VENDOR_URL:=@VENDOR_URL@
 169 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
 170 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
 171 
 172 # New (JEP-223) version information
 173 
 174 ## Building blocks of the version string
 175 # First three version numbers, with well-specified meanings (numerical)
 176 VERSION_FEATURE := @VERSION_FEATURE@
 177 VERSION_INTERIM := @VERSION_INTERIM@
 178 VERSION_UPDATE := @VERSION_UPDATE@
 179 VERSION_PATCH := @VERSION_PATCH@
 180 VERSION_EXTRA1 := @VERSION_EXTRA1@
 181 VERSION_EXTRA2 := @VERSION_EXTRA2@
 182 VERSION_EXTRA3 := @VERSION_EXTRA3@


 195 # The complete version string, with additional build information
 196 VERSION_STRING := @VERSION_STRING@
 197 # The short version string, without trailing zeroes and just PRE, if present.
 198 VERSION_SHORT := @VERSION_SHORT@
 199 # The Java specification version. It usually equals the feature version number.
 200 VERSION_SPECIFICATION := @VERSION_FEATURE@
 201 # A GA version is defined by the PRE string being empty. Rather than testing for
 202 # that, this variable defines it with true/false.
 203 VERSION_IS_GA := @VERSION_IS_GA@
 204 
 205 # Version date
 206 VERSION_DATE := @VERSION_DATE@
 207 
 208 # Vendor version string
 209 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
 210 
 211 # Class-file version
 212 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
 213 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
 214 
 215 JDK_SOURCE_TARGET_VERSION := @JDK_SOURCE_TARGET_VERSION@
 216 
 217 # Convenience CFLAGS settings for passing version information into native programs.
 218 VERSION_CFLAGS := \
 219     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 220     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 221     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 222     -DVERSION_PATCH=$(VERSION_PATCH) \
 223     -DVERSION_EXTRA1=$(VERSION_EXTRA1) \
 224     -DVERSION_EXTRA2=$(VERSION_EXTRA2) \
 225     -DVERSION_EXTRA3=$(VERSION_EXTRA3) \
 226     -DVERSION_PRE='"$(VERSION_PRE)"' \
 227     -DVERSION_BUILD=$(VERSION_BUILD) \
 228     -DVERSION_OPT='"$(VERSION_OPT)"' \
 229     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 230     -DVERSION_STRING='"$(VERSION_STRING)"' \
 231     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 232     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 233     -DVERSION_DATE='"$(VERSION_DATE)"' \
 234     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 235     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 236     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \


 372 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 373 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 374 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 375 
 376 JMH_CORE_JAR := @JMH_CORE_JAR@
 377 JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
 378 JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
 379 JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
 380 JMH_VERSION := @JMH_VERSION@
 381 
 382 # Source file for cacerts
 383 CACERTS_FILE=@CACERTS_FILE@
 384 
 385 # Enable unlimited crypto policy
 386 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 387 
 388 GCOV_ENABLED=@GCOV_ENABLED@
 389 JCOV_ENABLED=@JCOV_ENABLED@
 390 JCOV_HOME=@JCOV_HOME@
 391 JCOV_INPUT_JDK=@JCOV_INPUT_JDK@
 392 JCOV_FILTERS=@JCOV_FILTERS@
 393 
 394 # AddressSanitizer
 395 export ASAN_ENABLED:=@ASAN_ENABLED@
 396 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 397 ifeq ($(ASAN_ENABLED), yes)
 398   export ASAN_OPTIONS=handle_segv=0 detect_leaks=0
 399   ifneq ($(DEVKIT_LIB_DIR),)
 400     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 401   endif
 402 endif
 403 
 404 # Necessary additional compiler flags to compile X11
 405 X_CFLAGS:=@X_CFLAGS@
 406 X_LIBS:=@X_LIBS@
 407 
 408 # The lowest required version of macosx
 409 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 410 # The highest allowed version of macosx
 411 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 412 
 413 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 414 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 415 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 416 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 417 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 418 


 632 # the long running background sjavac servers and other long running tasks.
 633 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 634     $(SJAVAC_SERVER_JAVA_FLAGS)
 635 
 636 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 637 # overriding that value by using ?=.
 638 JAVAC_FLAGS?=@JAVAC_FLAGS@
 639 
 640 
 641 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
 642 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
 643 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
 644 
 645 # Interim langtools and rmic modules and arguments
 646 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
 647 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
 648 INTERIM_LANGTOOLS_ADD_EXPORTS := \
 649     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
 650     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
 651     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \

 652     #
 653 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
 654     $(INTERIM_LANGTOOLS_MODULES))))
 655 INTERIM_LANGTOOLS_ARGS := \
 656     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
 657     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
 658     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
 659     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
 660     #
 661 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
 662 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
 663 
 664 INTERIM_RMIC_BASE_MODULES := jdk.rmic
 665 INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
 666     #
 667 # Use = to delay expansion of PathList since it's not available in this file.
 668 INTERIM_RMIC_ARGS = --limit-modules java.base,jdk.compiler,jdk.javadoc \
 669     --module-path $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules \
 670         $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules) \
 671     #


 894 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 895 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 896 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 897 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 898 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 899 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 900 
 901 # Bundle names
 902 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 903 ifeq ($(DEBUG_LEVEL), fastdebug)
 904   DEBUG_PART := -debug
 905 else ifneq ($(DEBUG_LEVEL), release)
 906   DEBUG_PART := -$(DEBUG_LEVEL)
 907 endif
 908 ifeq ($(OPENJDK_TARGET_OS), windows)
 909   JDK_BUNDLE_EXTENSION := zip
 910 else
 911   JDK_BUNDLE_EXTENSION := tar.gz
 912 endif
 913 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 914 JRE_BUNDLE_NAME := jre-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 915 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 916 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 917 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 918 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 919 JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 920 
 921 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)
 922 JRE_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JRE_BUNDLE_NAME)
 923 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 924 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 925 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 926 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 927 JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
 928 
 929 # This macro is called to allow inclusion of closed source counterparts.
 930 # Unless overridden in closed sources, it expands to nothing.
 931 # Usage: This function is called in an open makefile, with the following
 932 # argument:
 933 # $1 the name of the makefile
 934 define IncludeCustomExtension
 935 endef
 936 
 937 # Include the custom-spec.gmk file if it exists
 938 -include $(dir @SPEC@)/custom-spec.gmk


  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  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 # Configured @DATE_WHEN_CONFIGURED@ to build
  27 # for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
  28 #   (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
  29 # on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
  30 #   (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
  31 # using 'configure @CONFIGURE_COMMAND_LINE@'
  32 
  33 # The command line given to configure.
  34 CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@


  35 
  36 # A self-referential reference to this file.
  37 SPEC:=@SPEC@
  38 
  39 # Path to autoconf if overriden by the user, to be used by "make reconfigure"
  40 AUTOCONF := @AUTOCONF@
  41 
  42 # SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
  43 # some definitions here, and are needed if MakeBase.gmk is not included before
  44 # this file.
  45 X:=
  46 SPACE:=$(X) $(X)
  47 COMMA:=,
  48 
  49 # What make to use for main processing, after bootstrapping top-level Makefile.
  50 MAKE := @MAKE@
  51 
  52 # The default make arguments
  53 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
  54     MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" $(MAKE_LOG_VARS)


 121 PATH_SEP:=@PATH_SEP@
 122 
 123 # Save the original path before replacing it with the Visual Studio tools
 124 ORIGINAL_PATH:=@ORIGINAL_PATH@
 125 ifeq ($(OPENJDK_TARGET_OS), windows)
 126   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 127   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 128   ifeq ($(OPENJDK_TARGET_OS_ENV), windows.wsl)
 129     export FIXPATH_PATH:=@VS_PATH_WINDOWS@
 130     export WSLENV:=$(WSLENV):FIXPATH_PATH:DEBUG_FIXPATH
 131   else
 132     export PATH:=@VS_PATH@
 133   endif
 134 endif
 135 
 136 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 137 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 138 
 139 # The top-level directory of the source repository
 140 TOPDIR:=@TOPDIR@
 141 
 142 

 143 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 144 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 145 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 146 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 147 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 148 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 149 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 150 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 151 
 152 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 153 
 154 # Platform naming variables
 155 LAUNCHER_NAME:=@LAUNCHER_NAME@
 156 PRODUCT_NAME:=@PRODUCT_NAME@
 157 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 158 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@

 159 COMPANY_NAME:=@COMPANY_NAME@
 160 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 161 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 162 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 163 USERNAME:=@USERNAME@
 164 VENDOR_URL:=@VENDOR_URL@
 165 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
 166 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
 167 
 168 # New (JEP-223) version information
 169 
 170 ## Building blocks of the version string
 171 # First three version numbers, with well-specified meanings (numerical)
 172 VERSION_FEATURE := @VERSION_FEATURE@
 173 VERSION_INTERIM := @VERSION_INTERIM@
 174 VERSION_UPDATE := @VERSION_UPDATE@
 175 VERSION_PATCH := @VERSION_PATCH@
 176 VERSION_EXTRA1 := @VERSION_EXTRA1@
 177 VERSION_EXTRA2 := @VERSION_EXTRA2@
 178 VERSION_EXTRA3 := @VERSION_EXTRA3@


 191 # The complete version string, with additional build information
 192 VERSION_STRING := @VERSION_STRING@
 193 # The short version string, without trailing zeroes and just PRE, if present.
 194 VERSION_SHORT := @VERSION_SHORT@
 195 # The Java specification version. It usually equals the feature version number.
 196 VERSION_SPECIFICATION := @VERSION_FEATURE@
 197 # A GA version is defined by the PRE string being empty. Rather than testing for
 198 # that, this variable defines it with true/false.
 199 VERSION_IS_GA := @VERSION_IS_GA@
 200 
 201 # Version date
 202 VERSION_DATE := @VERSION_DATE@
 203 
 204 # Vendor version string
 205 VENDOR_VERSION_STRING := @VENDOR_VERSION_STRING@
 206 
 207 # Class-file version
 208 VERSION_CLASSFILE_MAJOR := @VERSION_CLASSFILE_MAJOR@
 209 VERSION_CLASSFILE_MINOR := @VERSION_CLASSFILE_MINOR@
 210 


 211 # Convenience CFLAGS settings for passing version information into native programs.
 212 VERSION_CFLAGS := \
 213     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 214     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 215     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 216     -DVERSION_PATCH=$(VERSION_PATCH) \
 217     -DVERSION_EXTRA1=$(VERSION_EXTRA1) \
 218     -DVERSION_EXTRA2=$(VERSION_EXTRA2) \
 219     -DVERSION_EXTRA3=$(VERSION_EXTRA3) \
 220     -DVERSION_PRE='"$(VERSION_PRE)"' \
 221     -DVERSION_BUILD=$(VERSION_BUILD) \
 222     -DVERSION_OPT='"$(VERSION_OPT)"' \
 223     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 224     -DVERSION_STRING='"$(VERSION_STRING)"' \
 225     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 226     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 227     -DVERSION_DATE='"$(VERSION_DATE)"' \
 228     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 229     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 230     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \


 366 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 367 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 368 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 369 
 370 JMH_CORE_JAR := @JMH_CORE_JAR@
 371 JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
 372 JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
 373 JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
 374 JMH_VERSION := @JMH_VERSION@
 375 
 376 # Source file for cacerts
 377 CACERTS_FILE=@CACERTS_FILE@
 378 
 379 # Enable unlimited crypto policy
 380 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 381 
 382 GCOV_ENABLED=@GCOV_ENABLED@
 383 JCOV_ENABLED=@JCOV_ENABLED@
 384 JCOV_HOME=@JCOV_HOME@
 385 JCOV_INPUT_JDK=@JCOV_INPUT_JDK@

 386 
 387 # AddressSanitizer
 388 export ASAN_ENABLED:=@ASAN_ENABLED@
 389 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 390 ifeq ($(ASAN_ENABLED), yes)
 391   export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
 392   ifneq ($(DEVKIT_LIB_DIR),)
 393     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 394   endif
 395 endif
 396 
 397 # Necessary additional compiler flags to compile X11
 398 X_CFLAGS:=@X_CFLAGS@
 399 X_LIBS:=@X_LIBS@
 400 
 401 # The lowest required version of macosx
 402 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 403 # The highest allowed version of macosx
 404 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 405 
 406 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 407 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 408 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 409 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 410 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 411 


 625 # the long running background sjavac servers and other long running tasks.
 626 SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
 627     $(SJAVAC_SERVER_JAVA_FLAGS)
 628 
 629 # Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
 630 # overriding that value by using ?=.
 631 JAVAC_FLAGS?=@JAVAC_FLAGS@
 632 
 633 
 634 BUILD_JAVA_FLAGS := @BOOTCYCLE_JVM_ARGS_BIG@
 635 BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
 636 BUILD_JAR=@FIXPATH@ $(BUILD_JDK)/bin/jar
 637 
 638 # Interim langtools and rmic modules and arguments
 639 INTERIM_LANGTOOLS_BASE_MODULES := java.compiler jdk.compiler jdk.javadoc
 640 INTERIM_LANGTOOLS_MODULES := $(addsuffix .interim, $(INTERIM_LANGTOOLS_BASE_MODULES))
 641 INTERIM_LANGTOOLS_ADD_EXPORTS := \
 642     --add-exports java.base/sun.reflect.annotation=jdk.compiler.interim \
 643     --add-exports java.base/jdk.internal.jmod=jdk.compiler.interim \
 644     --add-exports java.base/jdk.internal.misc=jdk.compiler.interim \
 645     --add-exports java.base/sun.invoke.util=jdk.compiler.interim \
 646     #
 647 INTERIM_LANGTOOLS_MODULES_COMMA := $(strip $(subst $(SPACE),$(COMMA),$(strip \
 648     $(INTERIM_LANGTOOLS_MODULES))))
 649 INTERIM_LANGTOOLS_ARGS := \
 650     --limit-modules java.base,jdk.zipfs,$(INTERIM_LANGTOOLS_MODULES_COMMA) \
 651     --add-modules $(INTERIM_LANGTOOLS_MODULES_COMMA) \
 652     --module-path $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules \
 653     $(INTERIM_LANGTOOLS_ADD_EXPORTS) \
 654     #
 655 JAVAC_MAIN_CLASS = -m jdk.compiler.interim/com.sun.tools.javac.Main
 656 JAVADOC_MAIN_CLASS = -m jdk.javadoc.interim/jdk.javadoc.internal.tool.Main
 657 
 658 INTERIM_RMIC_BASE_MODULES := jdk.rmic
 659 INTERIM_RMIC_MODULES := $(addsuffix .interim, $(INTERIM_RMIC_BASE_MODULES))
 660     #
 661 # Use = to delay expansion of PathList since it's not available in this file.
 662 INTERIM_RMIC_ARGS = --limit-modules java.base,jdk.compiler,jdk.javadoc \
 663     --module-path $(call PathList, $(BUILDTOOLS_OUTPUTDIR)/interim_rmic_modules \
 664         $(BUILDTOOLS_OUTPUTDIR)/interim_langtools_modules) \
 665     #


 888 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 889 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 890 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 891 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 892 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 893 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 894 
 895 # Bundle names
 896 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 897 ifeq ($(DEBUG_LEVEL), fastdebug)
 898   DEBUG_PART := -debug
 899 else ifneq ($(DEBUG_LEVEL), release)
 900   DEBUG_PART := -$(DEBUG_LEVEL)
 901 endif
 902 ifeq ($(OPENJDK_TARGET_OS), windows)
 903   JDK_BUNDLE_EXTENSION := zip
 904 else
 905   JDK_BUNDLE_EXTENSION := tar.gz
 906 endif
 907 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)

 908 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 909 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 910 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 911 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz
 912 JCOV_BUNDLE_NAME := jdk-jcov-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)
 913 
 914 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)

 915 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 916 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 917 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 918 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)
 919 JCOV_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JCOV_BUNDLE_NAME)
 920 
 921 # This macro is called to allow inclusion of closed source counterparts.
 922 # Unless overridden in closed sources, it expands to nothing.
 923 # Usage: This function is called in an open makefile, with the following
 924 # argument:
 925 # $1 the name of the makefile
 926 define IncludeCustomExtension
 927 endef
 928 
 929 # Include the custom-spec.gmk file if it exists
 930 -include $(dir @SPEC@)/custom-spec.gmk
< prev index next >