< prev index next >

make/autoconf/spec.gmk.in

Print this page


   1 #
   2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  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)
  57 
  58 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
  59 OUTPUT_SYNC:=@OUTPUT_SYNC@
  60 
  61 # Override the shell with bash
  62 BASH:=@BASH@
  63 BASH_ARGS:=@BASH_ARGS@


 110 OPENJDK_BUILD_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
 111 
 112 # Target platform value in ModuleTarget class file attribute.
 113 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
 114 
 115 # OS_* properties in release file
 116 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
 117 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
 118 
 119 LIBM:=@LIBM@
 120 LIBDL:=@LIBDL@
 121 
 122 # colon or semicolon
 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) \
 237     #
 238 
 239 ifneq ($(COMPANY_NAME),)
 240   # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
 241   # but can be customized with the '--with-vendor-name' configure option.
 242   # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
 243   # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
 244   # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
 245   # VersionProps.java.template in the jdk for "vm.vendor" and
 246   # vm_version.cpp in the VM for "java.vm.vendor")
 247   ifneq ($(COMPANY_NAME), N/A)
 248     VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
 249   endif
 250 endif
 251 
 252 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
 253 # they are not empty. Otherwise, default values which are defined in the sources
 254 # will be used.
 255 ifneq ($(VENDOR_URL),)
 256   VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
 257 endif
 258 ifneq ($(VENDOR_URL_BUG),)
 259   VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
 260 endif
 261 ifneq ($(VENDOR_URL_VM_BUG),)
 262   VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
 263 endif
 264 
 265 # Different naming strings generated from the above information.
 266 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)


 272 # Which JVM variants to build (space-separated list)
 273 JVM_VARIANTS := @JVM_VARIANTS@
 274 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 275 
 276 # Lists of features per variant. Only relevant for the variants listed in
 277 # JVM_VARIANTS.
 278 JVM_FEATURES_server := @JVM_FEATURES_server@
 279 JVM_FEATURES_client := @JVM_FEATURES_client@
 280 JVM_FEATURES_core := @JVM_FEATURES_core@
 281 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 282 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 283 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 284 
 285 # Used for make-time verifications
 286 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 287 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 288 
 289 # Control wether Hotspot builds gtest tests
 290 BUILD_GTEST := @BUILD_GTEST@
 291 
 292 # Allow overriding the default hotspot library path
 293 HOTSPOT_OVERRIDE_LIBPATH := @HOTSPOT_OVERRIDE_LIBPATH@
 294 
 295 # Control use of precompiled header in hotspot libjvm build
 296 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
 297 
 298 # Only build headless support or not
 299 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
 300 
 301 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
 302 
 303 # JDK_OUTPUTDIR specifies where a working jvm is built.
 304 # You can run $(JDK_OUTPUTDIR)/bin/java
 305 
 306 OUTPUTDIR := @OUTPUTDIR@
 307 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 308 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
 309 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
 310 
 311 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
 312 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
 313 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
 314 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles


 369 ALSA_CFLAGS:=@ALSA_CFLAGS@
 370 LIBFFI_LIBS:=@LIBFFI_LIBS@
 371 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 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 


 480 
 481 FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
 482 JVM_CFLAGS := @JVM_CFLAGS@
 483 JVM_LDFLAGS := @JVM_LDFLAGS@
 484 JVM_ASFLAGS := @JVM_ASFLAGS@
 485 JVM_LIBS := @JVM_LIBS@
 486 JVM_RCFLAGS := @JVM_RCFLAGS@
 487 
 488 # These flags might contain variables set by a custom extension that is included later.
 489 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 490 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 491 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 492 
 493 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 494 
 495 CPP:=@FIXPATH@ @CPP@
 496 
 497 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 498 LD:=@FIXPATH@ @LD@
 499 
 500 # Linker used by the jaotc tool for AOT compilation.
 501 LD_JAOTC:=@LD_JAOTC@
 502 
 503 # Xcode SDK path
 504 SDKROOT:=@SDKROOT@
 505 
 506 # LDFLAGS used to link the jdk native libraries (C-code)
 507 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 508 JDKLIB_LIBS:=@JDKLIB_LIBS@
 509 GLOBAL_LIBS:=@GLOBAL_LIBS@
 510 
 511 # LDFLAGS used to link the jdk native launchers (C-code)
 512 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 513 JDKEXE_LIBS:=@JDKEXE_LIBS@
 514 
 515 # LDFLAGS specific to C++ linking.
 516 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 517 
 518 # Sometimes a different linker is needed for c++ libs
 519 LDCXX:=@FIXPATH@ @LDCXX@
 520 # The flags for linking libstdc++ linker.
 521 LIBCXX:=@LIBCXX@
 522 


 725 RMDIR:=@RMDIR@
 726 SED:=@SED@
 727 SH:=@SH@
 728 SORT:=@SORT@
 729 TAR:=@TAR@
 730 TAIL:=@TAIL@
 731 TEE:=@TEE@
 732 TIME:=@TIME@
 733 IS_GNU_TIME:=@IS_GNU_TIME@
 734 TR:=@TR@
 735 TOUCH:=@TOUCH@
 736 UNIQ:=@UNIQ@
 737 WC:=@WC@
 738 XARGS:=@XARGS@
 739 ZIPEXE:=@ZIPEXE@
 740 UNZIP:=@UNZIP@
 741 MT:=@FIXPATH@ @MT@
 742 RC:=@FIXPATH@ @RC@
 743 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 744 CYGPATH:=@CYGPATH@
 745 WSLPATH:=@WSLPATH@
 746 LDD:=@LDD@
 747 OTOOL:=@OTOOL@
 748 READELF:=@READELF@
 749 ELFEDIT:=@ELFEDIT@
 750 EXPR:=@EXPR@
 751 FILE:=@FILE@
 752 DOT:=@DOT@
 753 HG:=@HG@
 754 GIT:=@GIT@
 755 OBJCOPY:=@OBJCOPY@
 756 SETFILE:=@SETFILE@
 757 XATTR:=@XATTR@
 758 JT_HOME:=@JT_HOME@
 759 JTREGEXE:=@JTREGEXE@
 760 JIB_HOME:=@JIB_HOME@
 761 XCODEBUILD=@XCODEBUILD@
 762 DTRACE := @DTRACE@
 763 FIXPATH:=@FIXPATH@
 764 
 765 TAR_TYPE:=@TAR_TYPE@
 766 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
 767 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
 768 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
 769 
 770 # Build setup
 771 ENABLE_AOT:=@ENABLE_AOT@
 772 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
 773 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 774 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 775 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 776 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
 777 LIBZ_LIBS:=@LIBZ_LIBS@
 778 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 779 MSVCR_DLL:=@MSVCR_DLL@
 780 MSVCP_DLL:=@MSVCP_DLL@
 781 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
 782 STLPORT_LIB:=@STLPORT_LIB@
 783 ENABLE_PANDOC:=@ENABLE_PANDOC@
 784 PANDOC_MARKDOWN_FLAG:=@PANDOC_MARKDOWN_FLAG@
 785 
 786 ####################################################
 787 #
 788 # INSTALLATION
 789 #
 790 
 791 # Common prefix for all installed files. Defaults to /usr/local,
 792 # but /opt/myjdk is another common version.
 793 INSTALL_PREFIX=@prefix@
 794 
 795 # Directories containing architecture-dependent files should be relative to exec_prefix
 796 INSTALL_EXECPREFIX=@exec_prefix@
 797 
 798 # java,javac,javap etc are installed here.
 799 INSTALL_BINDIR=@bindir@
 800 
 801 # Read only architecture-independent data
 802 INSTALL_DATADIR=@datadir@
 803 
 804 # Root of above.


 846 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 847 PNG_LIBS:=@PNG_LIBS@
 848 PNG_CFLAGS:=@PNG_CFLAGS@
 849 
 850 ####################################################
 851 #
 852 # Misc
 853 #
 854 
 855 INCLUDE_SA=@INCLUDE_SA@
 856 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 857 INCLUDE_JVMCI=@INCLUDE_JVMCI@
 858 
 859 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 860 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 861 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 862 
 863 # Images directory definitions
 864 JDK_IMAGE_SUBDIR:=jdk
 865 JRE_IMAGE_SUBDIR:=jre
 866 JCOV_IMAGE_SUBDIR := jdk-jcov
 867 
 868 # Colon left out to be able to override output dir for bootcycle-images
 869 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 870 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
 871 JCOV_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(JCOV_IMAGE_SUBDIR)
 872 
 873 # Test image, as above
 874 TEST_IMAGE_SUBDIR:=test
 875 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 876 
 877 # Symbols image
 878 SYMBOLS_IMAGE_SUBDIR:=symbols
 879 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 880 
 881 # Interim image
 882 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 883 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 884 
 885 # Docs image
 886 DOCS_IMAGE_SUBDIR := docs
 887 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 888 # Output docs directly into image
 889 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 890 
 891 # Macosx bundles directory definitions


 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
   1 #
   2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   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.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  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 # SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
  40 # some definitions here, and are needed if MakeBase.gmk is not included before
  41 # this file.
  42 X:=
  43 SPACE:=$(X) $(X)
  44 COMMA:=,
  45 
  46 # What make to use for main processing, after bootstrapping top-level Makefile.
  47 MAKE := @MAKE@
  48 
  49 # The default make arguments
  50 MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
  51     MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" $(MAKE_LOG_VARS)
  52 
  53 OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
  54 OUTPUT_SYNC:=@OUTPUT_SYNC@
  55 
  56 # Override the shell with bash
  57 BASH:=@BASH@
  58 BASH_ARGS:=@BASH_ARGS@


 105 OPENJDK_BUILD_OS_INCLUDE_SUBDIR:=@OPENJDK_TARGET_OS_INCLUDE_SUBDIR@
 106 
 107 # Target platform value in ModuleTarget class file attribute.
 108 OPENJDK_MODULE_TARGET_PLATFORM:=@OPENJDK_MODULE_TARGET_PLATFORM@
 109 
 110 # OS_* properties in release file
 111 RELEASE_FILE_OS_NAME:=@RELEASE_FILE_OS_NAME@
 112 RELEASE_FILE_OS_ARCH:=@RELEASE_FILE_OS_ARCH@
 113 
 114 LIBM:=@LIBM@
 115 LIBDL:=@LIBDL@
 116 
 117 # colon or semicolon
 118 PATH_SEP:=@PATH_SEP@
 119 
 120 # Save the original path before replacing it with the Visual Studio tools
 121 ORIGINAL_PATH:=@ORIGINAL_PATH@
 122 ifeq ($(OPENJDK_TARGET_OS), windows)
 123   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
 124   # to include Visual Studio tools (this needs to be in cygwin/msys style).
 125   export PATH:=@VS_PATH@





 126 endif
 127 
 128 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
 129 SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
 130 
 131 # The top-level directory of the source repository
 132 TOPDIR:=@TOPDIR@
 133 
 134 

 135 IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
 136 IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
 137 IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
 138 IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
 139 IMPORT_MODULES_LEGAL:=@IMPORT_MODULES_LEGAL@
 140 IMPORT_MODULES_MAN:=@IMPORT_MODULES_MAN@
 141 IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
 142 IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
 143 
 144 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
 145 
 146 # Platform naming variables
 147 LAUNCHER_NAME:=@LAUNCHER_NAME@
 148 PRODUCT_NAME:=@PRODUCT_NAME@
 149 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
 150 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@

 151 COMPANY_NAME:=@COMPANY_NAME@
 152 HOTSPOT_VM_DISTRO:=@HOTSPOT_VM_DISTRO@
 153 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
 154 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
 155 USERNAME:=@USERNAME@
 156 VENDOR_URL:=@VENDOR_URL@
 157 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
 158 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
 159 
 160 # New (JEP-223) version information
 161 
 162 ## Building blocks of the version string
 163 # First three version numbers, with well-specified meanings (numerical)
 164 VERSION_FEATURE := @VERSION_FEATURE@
 165 VERSION_INTERIM := @VERSION_INTERIM@
 166 VERSION_UPDATE := @VERSION_UPDATE@
 167 VERSION_PATCH := @VERSION_PATCH@
 168 VERSION_EXTRA1 := @VERSION_EXTRA1@
 169 VERSION_EXTRA2 := @VERSION_EXTRA2@
 170 VERSION_EXTRA3 := @VERSION_EXTRA3@


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


 203 # Convenience CFLAGS settings for passing version information into native programs.
 204 VERSION_CFLAGS := \
 205     -DVERSION_FEATURE=$(VERSION_FEATURE) \
 206     -DVERSION_INTERIM=$(VERSION_INTERIM) \
 207     -DVERSION_UPDATE=$(VERSION_UPDATE) \
 208     -DVERSION_PATCH=$(VERSION_PATCH) \
 209     -DVERSION_EXTRA1=$(VERSION_EXTRA1) \
 210     -DVERSION_EXTRA2=$(VERSION_EXTRA2) \
 211     -DVERSION_EXTRA3=$(VERSION_EXTRA3) \
 212     -DVERSION_PRE='"$(VERSION_PRE)"' \
 213     -DVERSION_BUILD=$(VERSION_BUILD) \
 214     -DVERSION_OPT='"$(VERSION_OPT)"' \
 215     -DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
 216     -DVERSION_STRING='"$(VERSION_STRING)"' \
 217     -DVERSION_SHORT='"$(VERSION_SHORT)"' \
 218     -DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
 219     -DVERSION_DATE='"$(VERSION_DATE)"' \
 220     -DVENDOR_VERSION_STRING='"$(VENDOR_VERSION_STRING)"' \
 221     -DVERSION_CLASSFILE_MAJOR=$(VERSION_CLASSFILE_MAJOR) \
 222     -DVERSION_CLASSFILE_MINOR=$(VERSION_CLASSFILE_MINOR) \
 223     #
 224 
 225 ifneq ($(COMPANY_NAME),)
 226   # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
 227   # but can be customized with the '--with-vendor-name' configure option.
 228   # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
 229   # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
 230   # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
 231   # System.c in the jdk for "vm.vendor" and vm_version.cpp in the VM for "java.vm.vendor")

 232   ifneq ($(COMPANY_NAME), N/A)
 233     VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
 234   endif
 235 endif
 236 
 237 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
 238 # they are not empty. Otherwise, default values which are defined in the sources
 239 # will be used.
 240 ifneq ($(VENDOR_URL),)
 241   VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
 242 endif
 243 ifneq ($(VENDOR_URL_BUG),)
 244   VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
 245 endif
 246 ifneq ($(VENDOR_URL_VM_BUG),)
 247   VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
 248 endif
 249 
 250 # Different naming strings generated from the above information.
 251 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)


 257 # Which JVM variants to build (space-separated list)
 258 JVM_VARIANTS := @JVM_VARIANTS@
 259 JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@
 260 
 261 # Lists of features per variant. Only relevant for the variants listed in
 262 # JVM_VARIANTS.
 263 JVM_FEATURES_server := @JVM_FEATURES_server@
 264 JVM_FEATURES_client := @JVM_FEATURES_client@
 265 JVM_FEATURES_core := @JVM_FEATURES_core@
 266 JVM_FEATURES_minimal := @JVM_FEATURES_minimal@
 267 JVM_FEATURES_zero := @JVM_FEATURES_zero@
 268 JVM_FEATURES_custom := @JVM_FEATURES_custom@
 269 
 270 # Used for make-time verifications
 271 VALID_JVM_FEATURES := @VALID_JVM_FEATURES@
 272 VALID_JVM_VARIANTS := @VALID_JVM_VARIANTS@
 273 
 274 # Control wether Hotspot builds gtest tests
 275 BUILD_GTEST := @BUILD_GTEST@
 276 



 277 # Control use of precompiled header in hotspot libjvm build
 278 USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
 279 
 280 # Only build headless support or not
 281 ENABLE_HEADLESS_ONLY := @ENABLE_HEADLESS_ONLY@
 282 
 283 ENABLE_FULL_DOCS := @ENABLE_FULL_DOCS@
 284 
 285 # JDK_OUTPUTDIR specifies where a working jvm is built.
 286 # You can run $(JDK_OUTPUTDIR)/bin/java
 287 
 288 OUTPUTDIR := @OUTPUTDIR@
 289 # Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
 290 SUPPORT_OUTPUTDIR=$(OUTPUTDIR)/support
 291 BUILDTOOLS_OUTPUTDIR=$(OUTPUTDIR)/buildtools
 292 
 293 HOTSPOT_OUTPUTDIR=$(OUTPUTDIR)/hotspot
 294 JDK_OUTPUTDIR=$(OUTPUTDIR)/jdk
 295 IMAGES_OUTPUTDIR=$(OUTPUTDIR)/images
 296 BUNDLES_OUTPUTDIR=$(OUTPUTDIR)/bundles


 351 ALSA_CFLAGS:=@ALSA_CFLAGS@
 352 LIBFFI_LIBS:=@LIBFFI_LIBS@
 353 LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
 354 ENABLE_LIBFFI_BUNDLING:=@ENABLE_LIBFFI_BUNDLING@
 355 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 356 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 357 
 358 JMH_CORE_JAR := @JMH_CORE_JAR@
 359 JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
 360 JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
 361 JMH_COMMONS_MATH_JAR := @JMH_COMMONS_MATH_JAR@
 362 JMH_VERSION := @JMH_VERSION@
 363 
 364 # Source file for cacerts
 365 CACERTS_FILE=@CACERTS_FILE@
 366 
 367 # Enable unlimited crypto policy
 368 UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
 369 
 370 GCOV_ENABLED=@GCOV_ENABLED@




 371 
 372 # AddressSanitizer
 373 export ASAN_ENABLED:=@ASAN_ENABLED@
 374 export DEVKIT_LIB_DIR:=@DEVKIT_LIB_DIR@
 375 ifeq ($(ASAN_ENABLED), yes)
 376   export ASAN_OPTIONS="handle_segv=0 detect_leaks=0"
 377   ifneq ($(DEVKIT_LIB_DIR),)
 378     export LD_LIBRARY_PATH:=$(LD_LIBRARY_PATH):$(DEVKIT_LIB_DIR)
 379   endif
 380 endif
 381 
 382 # Necessary additional compiler flags to compile X11
 383 X_CFLAGS:=@X_CFLAGS@
 384 X_LIBS:=@X_LIBS@
 385 
 386 # The lowest required version of macosx
 387 MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
 388 # The highest allowed version of macosx
 389 MACOSX_VERSION_MAX=@MACOSX_VERSION_MAX@
 390 
 391 # Toolchain type: gcc, clang, solstudio, lxc, microsoft...
 392 TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
 393 TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
 394 CC_VERSION_NUMBER := @CC_VERSION_NUMBER@
 395 CXX_VERSION_NUMBER := @CXX_VERSION_NUMBER@
 396 


 458 
 459 FDLIBM_CFLAGS := @FDLIBM_CFLAGS@
 460 JVM_CFLAGS := @JVM_CFLAGS@
 461 JVM_LDFLAGS := @JVM_LDFLAGS@
 462 JVM_ASFLAGS := @JVM_ASFLAGS@
 463 JVM_LIBS := @JVM_LIBS@
 464 JVM_RCFLAGS := @JVM_RCFLAGS@
 465 
 466 # These flags might contain variables set by a custom extension that is included later.
 467 EXTRA_CFLAGS = @EXTRA_CFLAGS@
 468 EXTRA_CXXFLAGS = @EXTRA_CXXFLAGS@
 469 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
 470 
 471 CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
 472 
 473 CPP:=@FIXPATH@ @CPP@
 474 
 475 # The linker can be gcc or ld on unix systems, or link.exe on windows systems.
 476 LD:=@FIXPATH@ @LD@
 477 



 478 # Xcode SDK path
 479 SDKROOT:=@SDKROOT@
 480 
 481 # LDFLAGS used to link the jdk native libraries (C-code)
 482 LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
 483 JDKLIB_LIBS:=@JDKLIB_LIBS@
 484 GLOBAL_LIBS:=@GLOBAL_LIBS@
 485 
 486 # LDFLAGS used to link the jdk native launchers (C-code)
 487 LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
 488 JDKEXE_LIBS:=@JDKEXE_LIBS@
 489 
 490 # LDFLAGS specific to C++ linking.
 491 LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
 492 
 493 # Sometimes a different linker is needed for c++ libs
 494 LDCXX:=@FIXPATH@ @LDCXX@
 495 # The flags for linking libstdc++ linker.
 496 LIBCXX:=@LIBCXX@
 497 


 700 RMDIR:=@RMDIR@
 701 SED:=@SED@
 702 SH:=@SH@
 703 SORT:=@SORT@
 704 TAR:=@TAR@
 705 TAIL:=@TAIL@
 706 TEE:=@TEE@
 707 TIME:=@TIME@
 708 IS_GNU_TIME:=@IS_GNU_TIME@
 709 TR:=@TR@
 710 TOUCH:=@TOUCH@
 711 UNIQ:=@UNIQ@
 712 WC:=@WC@
 713 XARGS:=@XARGS@
 714 ZIPEXE:=@ZIPEXE@
 715 UNZIP:=@UNZIP@
 716 MT:=@FIXPATH@ @MT@
 717 RC:=@FIXPATH@ @RC@
 718 DUMPBIN:=@FIXPATH@ @DUMPBIN@
 719 CYGPATH:=@CYGPATH@

 720 LDD:=@LDD@
 721 OTOOL:=@OTOOL@
 722 READELF:=@READELF@
 723 ELFEDIT:=@ELFEDIT@
 724 EXPR:=@EXPR@
 725 FILE:=@FILE@
 726 DOT:=@DOT@
 727 HG:=@HG@
 728 GIT:=@GIT@
 729 OBJCOPY:=@OBJCOPY@
 730 SETFILE:=@SETFILE@
 731 XATTR:=@XATTR@
 732 JT_HOME:=@JT_HOME@
 733 JTREGEXE:=@JTREGEXE@
 734 JIB_HOME:=@JIB_HOME@
 735 XCODEBUILD=@XCODEBUILD@
 736 DTRACE := @DTRACE@
 737 FIXPATH:=@FIXPATH@
 738 
 739 TAR_TYPE:=@TAR_TYPE@
 740 TAR_CREATE_EXTRA_PARAM:=@TAR_CREATE_EXTRA_PARAM@
 741 TAR_INCLUDE_PARAM:=@TAR_INCLUDE_PARAM@
 742 TAR_SUPPORTS_TRANSFORM:=@TAR_SUPPORTS_TRANSFORM@
 743 
 744 # Build setup
 745 ENABLE_AOT:=@ENABLE_AOT@
 746 ENABLE_INTREE_EC:=@ENABLE_INTREE_EC@
 747 USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
 748 USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
 749 USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
 750 LIBZ_CFLAGS:=@LIBZ_CFLAGS@
 751 LIBZ_LIBS:=@LIBZ_LIBS@
 752 LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
 753 MSVCR_DLL:=@MSVCR_DLL@
 754 MSVCP_DLL:=@MSVCP_DLL@
 755 UCRT_DLL_DIR:=@UCRT_DLL_DIR@
 756 STLPORT_LIB:=@STLPORT_LIB@


 757 
 758 ####################################################
 759 #
 760 # INSTALLATION
 761 #
 762 
 763 # Common prefix for all installed files. Defaults to /usr/local,
 764 # but /opt/myjdk is another common version.
 765 INSTALL_PREFIX=@prefix@
 766 
 767 # Directories containing architecture-dependent files should be relative to exec_prefix
 768 INSTALL_EXECPREFIX=@exec_prefix@
 769 
 770 # java,javac,javap etc are installed here.
 771 INSTALL_BINDIR=@bindir@
 772 
 773 # Read only architecture-independent data
 774 INSTALL_DATADIR=@datadir@
 775 
 776 # Root of above.


 818 USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
 819 PNG_LIBS:=@PNG_LIBS@
 820 PNG_CFLAGS:=@PNG_CFLAGS@
 821 
 822 ####################################################
 823 #
 824 # Misc
 825 #
 826 
 827 INCLUDE_SA=@INCLUDE_SA@
 828 INCLUDE_GRAAL=@INCLUDE_GRAAL@
 829 INCLUDE_JVMCI=@INCLUDE_JVMCI@
 830 
 831 OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
 832 OS_VERSION_MINOR:=@OS_VERSION_MINOR@
 833 OS_VERSION_MICRO:=@OS_VERSION_MICRO@
 834 
 835 # Images directory definitions
 836 JDK_IMAGE_SUBDIR:=jdk
 837 JRE_IMAGE_SUBDIR:=jre

 838 
 839 # Colon left out to be able to override output dir for bootcycle-images
 840 JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
 841 JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)

 842 
 843 # Test image, as above
 844 TEST_IMAGE_SUBDIR:=test
 845 TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
 846 
 847 # Symbols image
 848 SYMBOLS_IMAGE_SUBDIR:=symbols
 849 SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
 850 
 851 # Interim image
 852 INTERIM_JMODS_DIR := $(SUPPORT_OUTPUTDIR)/interim-jmods
 853 INTERIM_IMAGE_DIR := $(SUPPORT_OUTPUTDIR)/interim-image
 854 
 855 # Docs image
 856 DOCS_IMAGE_SUBDIR := docs
 857 DOCS_IMAGE_DIR = $(IMAGES_OUTPUTDIR)/$(DOCS_IMAGE_SUBDIR)
 858 # Output docs directly into image
 859 DOCS_OUTPUTDIR := $(DOCS_IMAGE_DIR)
 860 
 861 # Macosx bundles directory definitions


 864 JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
 865 JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
 866 JDK_MACOSX_CONTENTS_SUBDIR=jdk-$(VERSION_NUMBER).jdk/Contents
 867 JRE_MACOSX_CONTENTS_SUBDIR=jre-$(VERSION_NUMBER).jre/Contents
 868 JDK_MACOSX_CONTENTS_DIR=$(JDK_MACOSX_BUNDLE_DIR)/$(JDK_MACOSX_CONTENTS_SUBDIR)
 869 JRE_MACOSX_CONTENTS_DIR=$(JRE_MACOSX_BUNDLE_DIR)/$(JRE_MACOSX_CONTENTS_SUBDIR)
 870 
 871 # Bundle names
 872 BASE_NAME := $(VERSION_SHORT)+$(VERSION_BUILD)_$(OPENJDK_TARGET_BUNDLE_PLATFORM)
 873 ifeq ($(DEBUG_LEVEL), fastdebug)
 874   DEBUG_PART := -debug
 875 else ifneq ($(DEBUG_LEVEL), release)
 876   DEBUG_PART := -$(DEBUG_LEVEL)
 877 endif
 878 ifeq ($(OPENJDK_TARGET_OS), windows)
 879   JDK_BUNDLE_EXTENSION := zip
 880 else
 881   JDK_BUNDLE_EXTENSION := tar.gz
 882 endif
 883 JDK_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART).$(JDK_BUNDLE_EXTENSION)

 884 JDK_SYMBOLS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin$(DEBUG_PART)-symbols.tar.gz
 885 TEST_DEMOS_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests-demos$(DEBUG_PART).tar.gz
 886 TEST_BUNDLE_NAME := jdk-$(BASE_NAME)_bin-tests$(DEBUG_PART).tar.gz
 887 DOCS_BUNDLE_NAME := jdk-$(BASE_NAME)_doc-api-spec$(DEBUG_PART).tar.gz

 888 
 889 JDK_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(JDK_BUNDLE_NAME)

 890 JDK_SYMBOLS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(JDK_SYMBOLS_BUNDLE_NAME)
 891 TEST_DEMOS_BUNDLE := $(BUNDLES_OUTPUTDIR)/$(TEST_DEMOS_BUNDLE_NAME)
 892 TEST_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(TEST_BUNDLE_NAME)
 893 DOCS_BUNDLE :=  $(BUNDLES_OUTPUTDIR)/$(DOCS_BUNDLE_NAME)

 894 
 895 # This macro is called to allow inclusion of closed source counterparts.
 896 # Unless overridden in closed sources, it expands to nothing.
 897 # Usage: This function is called in an open makefile, with the following
 898 # argument:
 899 # $1 the name of the makefile
 900 define IncludeCustomExtension
 901 endef
 902 
 903 # Include the custom-spec.gmk file if it exists
 904 -include $(dir @SPEC@)/custom-spec.gmk
< prev index next >