2012-04-10 15:18:28 +00:00
|
|
|
#
|
2016-02-12 10:07:35 +00:00
|
|
|
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
|
2012-04-10 15:18:28 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation. Oracle designates this
|
|
|
|
# particular file as subject to the "Classpath" exception as provided
|
|
|
|
# by Oracle in the LICENSE file that accompanied this code.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Configured @DATE_WHEN_CONFIGURED@ to build
|
|
|
|
# for target system @OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU@
|
|
|
|
# (called @OPENJDK_TARGET_AUTOCONF_NAME@ by autoconf)
|
|
|
|
# on build system @OPENJDK_BUILD_OS@-@OPENJDK_BUILD_CPU@
|
|
|
|
# (called @OPENJDK_BUILD_AUTOCONF_NAME@ by autoconf)
|
2012-07-03 23:11:12 +00:00
|
|
|
# using 'configure @CONFIGURE_COMMAND_LINE@'
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-02-13 22:30:08 +00:00
|
|
|
# The command line given to configure.
|
|
|
|
CONFIGURE_COMMAND_LINE:=@CONFIGURE_COMMAND_LINE@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# A self-referential reference to this file.
|
|
|
|
SPEC:=@SPEC@
|
|
|
|
|
2016-02-12 10:07:35 +00:00
|
|
|
# SPACE and COMMA are defined in MakeBase.gmk, but they are also used in
|
|
|
|
# some definitions here, and are needed if MakeBase.gmk is not included before
|
|
|
|
# this file.
|
2015-09-25 06:43:21 +00:00
|
|
|
X:=
|
|
|
|
SPACE:=$(X) $(X)
|
2016-02-12 10:07:35 +00:00
|
|
|
COMMA:=,
|
2015-09-25 06:43:21 +00:00
|
|
|
|
2015-03-26 15:17:30 +00:00
|
|
|
# What make to use for main processing, after bootstrapping top-level Makefile.
|
|
|
|
MAKE := @MAKE@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2015-03-26 15:17:30 +00:00
|
|
|
# The default make arguments
|
2015-04-07 07:06:24 +00:00
|
|
|
MAKE_ARGS = $(MAKE_LOG_FLAGS) -r -R -I $(TOPDIR)/make/common SPEC=$(SPEC) \
|
2015-03-26 15:17:30 +00:00
|
|
|
MAKE_LOG_FLAGS="$(MAKE_LOG_FLAGS)" LOG_LEVEL=$(LOG_LEVEL)
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-08-17 14:51:37 +00:00
|
|
|
OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
|
|
|
|
OUTPUT_SYNC:=@OUTPUT_SYNC@
|
|
|
|
|
2015-01-14 15:03:59 +00:00
|
|
|
# Override the shell with bash
|
|
|
|
BASH:=@BASH@
|
|
|
|
BASH_ARGS:=@BASH_ARGS@
|
|
|
|
SHELL:=$(BASH) $(BASH_ARGS)
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
# The "human readable" name of this configuration
|
|
|
|
CONF_NAME:=@CONF_NAME@
|
|
|
|
|
2012-07-03 23:11:12 +00:00
|
|
|
# The built jdk will run in this target system.
|
|
|
|
OPENJDK_TARGET_OS:=@OPENJDK_TARGET_OS@
|
2014-11-21 15:05:46 +00:00
|
|
|
OPENJDK_TARGET_OS_TYPE:=@OPENJDK_TARGET_OS_TYPE@
|
2012-10-26 21:29:57 +00:00
|
|
|
OPENJDK_TARGET_OS_ENV:=@OPENJDK_TARGET_OS_ENV@
|
2012-07-03 23:11:12 +00:00
|
|
|
|
|
|
|
OPENJDK_TARGET_CPU:=@OPENJDK_TARGET_CPU@
|
|
|
|
OPENJDK_TARGET_CPU_ARCH:=@OPENJDK_TARGET_CPU_ARCH@
|
|
|
|
OPENJDK_TARGET_CPU_BITS:=@OPENJDK_TARGET_CPU_BITS@
|
|
|
|
OPENJDK_TARGET_CPU_ENDIAN:=@OPENJDK_TARGET_CPU_ENDIAN@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
COMPILE_TYPE:=@COMPILE_TYPE@
|
|
|
|
|
|
|
|
# Legacy support
|
|
|
|
OPENJDK_TARGET_CPU_ISADIR:=@OPENJDK_TARGET_CPU_ISADIR@
|
|
|
|
OPENJDK_TARGET_CPU_LIBDIR:=@OPENJDK_TARGET_CPU_LIBDIR@
|
|
|
|
OPENJDK_TARGET_CPU_LEGACY:=@OPENJDK_TARGET_CPU_LEGACY@
|
|
|
|
OPENJDK_TARGET_CPU_LEGACY_LIB:=@OPENJDK_TARGET_CPU_LEGACY_LIB@
|
|
|
|
OPENJDK_TARGET_CPU_OSARCH:=@OPENJDK_TARGET_CPU_OSARCH@
|
|
|
|
OPENJDK_TARGET_CPU_JLI_CFLAGS:=@OPENJDK_TARGET_CPU_JLI_CFLAGS@
|
2013-10-25 00:45:43 +00:00
|
|
|
OPENJDK_TARGET_OS_EXPORT_DIR:=@OPENJDK_TARGET_OS_EXPORT_DIR@
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# We are building on this build system.
|
2012-07-03 23:11:12 +00:00
|
|
|
# When not cross-compiling, it is the same as the target.
|
|
|
|
OPENJDK_BUILD_OS:=@OPENJDK_BUILD_OS@
|
2014-11-21 15:05:46 +00:00
|
|
|
OPENJDK_BUILD_OS_TYPE:=@OPENJDK_BUILD_OS_TYPE@
|
2014-08-19 11:43:40 +00:00
|
|
|
OPENJDK_BUILD_OS_ENV:=@OPENJDK_BUILD_OS_ENV@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-07-03 23:11:12 +00:00
|
|
|
OPENJDK_BUILD_CPU:=@OPENJDK_BUILD_CPU@
|
|
|
|
OPENJDK_BUILD_CPU_ARCH:=@OPENJDK_BUILD_CPU_ARCH@
|
|
|
|
OPENJDK_BUILD_CPU_BITS:=@OPENJDK_BUILD_CPU_BITS@
|
|
|
|
OPENJDK_BUILD_CPU_ENDIAN:=@OPENJDK_BUILD_CPU_ENDIAN@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
# Legacy OS values for use in release file.
|
|
|
|
REQUIRED_OS_NAME:=@REQUIRED_OS_NAME@
|
|
|
|
REQUIRED_OS_VERSION:=@REQUIRED_OS_VERSION@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
@SET_OPENJDK@
|
2015-10-07 13:26:48 +00:00
|
|
|
LIBM:=@LIBM@
|
2012-06-08 03:25:06 +00:00
|
|
|
LIBDL:=@LIBDL@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# colon or semicolon
|
|
|
|
PATH_SEP:=@PATH_SEP@
|
|
|
|
|
2015-02-06 08:56:30 +00:00
|
|
|
# Save the original path before replacing it with the Visual Studio tools
|
|
|
|
ORIGINAL_PATH:=@ORIGINAL_PATH@
|
2012-10-26 21:29:57 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
2015-02-06 08:56:30 +00:00
|
|
|
# On Windows, the Visual Studio toolchain needs the PATH to be adjusted
|
|
|
|
# to include Visual Studio tools (this needs to be in cygwin/msys style).
|
2012-10-26 21:29:57 +00:00
|
|
|
export PATH:=@VS_PATH@
|
|
|
|
endif
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-03-28 13:59:56 +00:00
|
|
|
SYSROOT_CFLAGS := @SYSROOT_CFLAGS@
|
|
|
|
SYSROOT_LDFLAGS := @SYSROOT_LDFLAGS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-02-24 12:29:26 +00:00
|
|
|
# The top-level directory of the forest (SRC_ROOT is a traditional alias)
|
|
|
|
TOPDIR:=@TOPDIR@
|
2015-03-27 13:11:26 +00:00
|
|
|
# These two versions of TOPDIR are used in string comparisons
|
|
|
|
ORIGINAL_TOPDIR:=@ORIGINAL_TOPDIR@
|
|
|
|
CANONICAL_TOPDIR:=@CANONICAL_TOPDIR@
|
2014-02-24 12:29:26 +00:00
|
|
|
SRC_ROOT:=@TOPDIR@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
OUTPUT_ROOT:=@OUTPUT_ROOT@
|
|
|
|
JDK_TOPDIR:=@JDK_TOPDIR@
|
|
|
|
LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
|
|
|
|
CORBA_TOPDIR:=@CORBA_TOPDIR@
|
|
|
|
JAXP_TOPDIR:=@JAXP_TOPDIR@
|
|
|
|
JAXWS_TOPDIR:=@JAXWS_TOPDIR@
|
|
|
|
HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
|
2013-02-25 23:08:11 +00:00
|
|
|
NASHORN_TOPDIR:=@NASHORN_TOPDIR@
|
2016-03-17 19:03:53 +00:00
|
|
|
|
|
|
|
IMPORT_MODULES_CLASSES:=@IMPORT_MODULES_CLASSES@
|
|
|
|
IMPORT_MODULES_CMDS:=@IMPORT_MODULES_CMDS@
|
|
|
|
IMPORT_MODULES_LIBS:=@IMPORT_MODULES_LIBS@
|
|
|
|
IMPORT_MODULES_CONF:=@IMPORT_MODULES_CONF@
|
|
|
|
IMPORT_MODULES_SRC:=@IMPORT_MODULES_SRC@
|
|
|
|
IMPORT_MODULES_MAKE:=@IMPORT_MODULES_MAKE@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
|
|
|
|
|
2015-06-10 22:21:56 +00:00
|
|
|
# New (JEP-223) version information
|
|
|
|
|
|
|
|
## Building blocks of the version string
|
|
|
|
# First three version numbers, with well-specified meanings (numerical)
|
|
|
|
VERSION_MAJOR := @VERSION_MAJOR@
|
|
|
|
VERSION_MINOR := @VERSION_MINOR@
|
|
|
|
VERSION_SECURITY := @VERSION_SECURITY@
|
|
|
|
# Optional fourth element for use by OpenJDK consumers (numerical)
|
|
|
|
VERSION_PATCH := @VERSION_PATCH@
|
|
|
|
# The pre-release identifier (string)
|
|
|
|
VERSION_PRE := @VERSION_PRE@
|
|
|
|
# The build number (numerical)
|
|
|
|
VERSION_BUILD := @VERSION_BUILD@
|
|
|
|
# Optional build information (string)
|
|
|
|
VERSION_OPT := @VERSION_OPT@
|
|
|
|
|
|
|
|
## Composite variables
|
|
|
|
# The version number as a dot separated sequence of numbers, e.g. 9.0.1
|
|
|
|
VERSION_NUMBER := @VERSION_NUMBER@
|
|
|
|
# VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions.
|
|
|
|
VERSION_NUMBER_FOUR_POSITIONS := @VERSION_NUMBER_FOUR_POSITIONS@
|
|
|
|
# The complete version string, with additional build information
|
|
|
|
VERSION_STRING := @VERSION_STRING@
|
|
|
|
# The short version string, without trailing zeroes and just PRE, if present.
|
|
|
|
VERSION_SHORT := @VERSION_SHORT@
|
|
|
|
# The Java specification version. It should be equal to version number.
|
|
|
|
VERSION_SPECIFICATION := @VERSION_NUMBER@
|
2015-06-26 08:09:55 +00:00
|
|
|
# A GA version is defined by the PRE string being empty. Rather than testing for
|
|
|
|
# that, this variable defines it with true/false.
|
|
|
|
VERSION_IS_GA := @VERSION_IS_GA@
|
2015-06-10 22:21:56 +00:00
|
|
|
|
|
|
|
# Convenience CFLAGS settings for passing version information into native programs.
|
|
|
|
VERSION_CFLAGS := \
|
|
|
|
-DVERSION_MAJOR=$(VERSION_MAJOR) \
|
|
|
|
-DVERSION_MINOR=$(VERSION_MINOR) \
|
|
|
|
-DVERSION_SECURITY=$(VERSION_SECURITY) \
|
|
|
|
-DVERSION_PATCH=$(VERSION_PATCH) \
|
|
|
|
-DVERSION_PRE='"$(VERSION_PRE)"' \
|
|
|
|
-DVERSION_BUILD=$(VERSION_BUILD) \
|
|
|
|
-DVERSION_OPT='"$(VERSION_OPT)"' \
|
|
|
|
-DVERSION_NUMBER='"$(VERSION_NUMBER)"' \
|
|
|
|
-DVERSION_STRING='"$(VERSION_STRING)"' \
|
|
|
|
-DVERSION_SHORT='"$(VERSION_SHORT)"' \
|
|
|
|
-DVERSION_SPECIFICATION='"$(VERSION_SPECIFICATION)"' \
|
|
|
|
#
|
|
|
|
|
|
|
|
# Platform naming variables
|
2012-04-10 15:18:28 +00:00
|
|
|
LAUNCHER_NAME:=@LAUNCHER_NAME@
|
|
|
|
PRODUCT_NAME:=@PRODUCT_NAME@
|
|
|
|
PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
|
|
|
|
JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
|
|
|
|
COMPANY_NAME:=@COMPANY_NAME@
|
2012-10-26 21:29:57 +00:00
|
|
|
MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
|
|
|
|
MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
|
2016-02-02 14:02:55 +00:00
|
|
|
USERNAME:=@USERNAME@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2015-06-10 22:21:56 +00:00
|
|
|
# Different naming strings generated from the above information.
|
2013-01-02 10:29:29 +00:00
|
|
|
RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# How to compile the code: release, fastdebug or slowdebug
|
|
|
|
DEBUG_LEVEL:=@DEBUG_LEVEL@
|
|
|
|
|
|
|
|
# This is the JDK variant to build.
|
|
|
|
# The JDK variant is a name for a specific set of modules to be compiled for the JDK.
|
|
|
|
JDK_VARIANT:=@JDK_VARIANT@
|
|
|
|
|
|
|
|
# Should we compile support for running with a graphical UI? (ie headful)
|
|
|
|
# Should we compile support for running without? (ie headless)
|
|
|
|
SUPPORT_HEADFUL:=@SUPPORT_HEADFUL@
|
|
|
|
SUPPORT_HEADLESS:=@SUPPORT_HEADLESS@
|
|
|
|
# Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options.
|
|
|
|
@BUILD_HEADLESS@
|
|
|
|
|
|
|
|
# These are the libjvms that we want to build.
|
|
|
|
# The java launcher uses the default.
|
2015-12-15 10:02:03 +00:00
|
|
|
# The others can be selected by specifying -client -server -minimal1 -zero or -zeroshark
|
2012-04-10 15:18:28 +00:00
|
|
|
# on the java launcher command line.
|
|
|
|
JVM_VARIANTS:=@JVM_VARIANTS@
|
|
|
|
JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
|
|
|
|
JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
|
2012-12-20 06:44:02 +00:00
|
|
|
JVM_VARIANT_MINIMAL1:=@JVM_VARIANT_MINIMAL1@
|
2012-04-10 15:18:28 +00:00
|
|
|
JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
|
|
|
|
JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
|
2013-07-03 00:38:10 +00:00
|
|
|
JVM_VARIANT_CORE:=@JVM_VARIANT_CORE@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Universal binaries on macosx
|
|
|
|
MACOSX_UNIVERSAL=@MACOSX_UNIVERSAL@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Legacy setting: -debug or -fastdebug
|
2012-09-18 18:29:16 +00:00
|
|
|
# Still used in version string...
|
2012-04-10 15:18:28 +00:00
|
|
|
BUILD_VARIANT_RELEASE:=@BUILD_VARIANT_RELEASE@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# JDK_OUTPUTDIR specifies where a working jvm is built.
|
2012-04-10 15:18:28 +00:00
|
|
|
# You can run $(JDK_OUTPUTDIR)/bin/java
|
|
|
|
# Though the layout of the contents of $(JDK_OUTPUTDIR) is not
|
|
|
|
# yet the same as a default installation.
|
2012-09-18 18:29:16 +00:00
|
|
|
#
|
2012-04-10 15:18:28 +00:00
|
|
|
# When you run "make install" it will create the standardized
|
2012-09-18 18:29:16 +00:00
|
|
|
# layout for the jdk and the jre inside the IMAGES_OUTPUTDIR subdir.
|
2012-04-10 15:18:28 +00:00
|
|
|
# Then it will copy the contents of the jdk into the installation
|
|
|
|
# directory.
|
2012-07-03 23:11:12 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
BUILD_OUTPUT:=@BUILD_OUTPUT@
|
2013-04-04 07:24:21 +00:00
|
|
|
# Colon left out to be able to override IMAGES_OUTPUTDIR for bootcycle-images
|
2014-12-03 14:20:21 +00:00
|
|
|
SUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/support
|
|
|
|
BUILDTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/buildtools
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
|
|
|
|
JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
|
|
|
|
IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
|
2015-01-26 09:28:53 +00:00
|
|
|
TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/test-make
|
2014-09-16 10:08:04 +00:00
|
|
|
MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
|
2015-04-10 14:32:00 +00:00
|
|
|
# This does not get overridden in a bootcycle build
|
|
|
|
CONFIGURESUPPORT_OUTPUTDIR:=@CONFIGURESUPPORT_OUTPUTDIR@
|
2016-03-17 19:03:53 +00:00
|
|
|
BUILDJDK_OUTPUTDIR=$(BUILD_OUTPUT)/buildjdk
|
2012-09-18 18:29:16 +00:00
|
|
|
|
2012-11-12 20:34:11 +00:00
|
|
|
HOTSPOT_DIST=@HOTSPOT_DIST@
|
|
|
|
|
|
|
|
BUILD_HOTSPOT=@BUILD_HOTSPOT@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-12-03 14:20:21 +00:00
|
|
|
# The boot jdk to use. This is overridden in bootcycle-spec.gmk. Make sure to keep
|
|
|
|
# it in sync.
|
2012-04-10 15:18:28 +00:00
|
|
|
BOOT_JDK:=@BOOT_JDK@
|
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
BUILD_JDK:=@BUILD_JDK@
|
|
|
|
CREATE_BUILDJDK:=@CREATE_BUILDJDK@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# When compiling Java source to be run by the boot jdk
|
|
|
|
# use these extra flags, eg -source 6 -target 6
|
|
|
|
BOOT_JDK_SOURCETARGET:=@BOOT_JDK_SOURCETARGET@
|
|
|
|
|
|
|
|
# Information about the build system
|
|
|
|
NUM_CORES:=@NUM_CORES@
|
2014-04-22 19:56:41 +00:00
|
|
|
MEMORY_SIZE:=@MEMORY_SIZE@
|
2012-09-18 18:29:16 +00:00
|
|
|
# Enable sjavac support = use a javac server,
|
|
|
|
# multi core javac compilation and dependency tracking.
|
|
|
|
ENABLE_SJAVAC:=@ENABLE_SJAVAC@
|
2015-10-27 16:51:36 +00:00
|
|
|
ENABLE_JAVAC_SERVER:=@ENABLE_JAVAC_SERVER@
|
2012-09-18 18:29:16 +00:00
|
|
|
# Store sjavac server synchronization files here, and
|
|
|
|
# the sjavac server log files.
|
2015-04-10 14:32:00 +00:00
|
|
|
SJAVAC_SERVER_DIR=$(MAKESUPPORT_OUTPUTDIR)/javacservers
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2013-03-04 15:45:07 +00:00
|
|
|
# Number of parallel jobs to use for compilation
|
|
|
|
JOBS?=@JOBS@
|
2015-12-15 10:04:18 +00:00
|
|
|
TEST_JOBS?=@TEST_JOBS@
|
2013-03-04 15:45:07 +00:00
|
|
|
|
2015-12-09 10:44:40 +00:00
|
|
|
# Default make target
|
|
|
|
DEFAULT_MAKE_TARGET:=@DEFAULT_MAKE_TARGET@
|
|
|
|
|
2013-10-23 11:05:58 +00:00
|
|
|
FREETYPE_LIBS:=@FREETYPE_LIBS@
|
|
|
|
FREETYPE_CFLAGS:=@FREETYPE_CFLAGS@
|
|
|
|
FREETYPE_BUNDLE_LIB_PATH=@FREETYPE_BUNDLE_LIB_PATH@
|
2012-04-10 15:18:28 +00:00
|
|
|
CUPS_CFLAGS:=@CUPS_CFLAGS@
|
2013-06-13 12:04:32 +00:00
|
|
|
ALSA_LIBS:=@ALSA_LIBS@
|
|
|
|
ALSA_CFLAGS:=@ALSA_CFLAGS@
|
2015-12-15 10:02:03 +00:00
|
|
|
LIBFFI_LIBS:=@LIBFFI_LIBS@
|
|
|
|
LIBFFI_CFLAGS:=@LIBFFI_CFLAGS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
PACKAGE_PATH=@PACKAGE_PATH@
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
# Source file for cacerts
|
|
|
|
CACERTS_FILE=@CACERTS_FILE@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-10-29 21:06:57 +00:00
|
|
|
# Enable unlimited crypto policy
|
|
|
|
UNLIMITED_CRYPTO=@UNLIMITED_CRYPTO@
|
|
|
|
|
2015-03-10 13:36:56 +00:00
|
|
|
GCOV_ENABLED=@GCOV_ENABLED@
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
# Necessary additional compiler flags to compile X11
|
2012-04-10 15:18:28 +00:00
|
|
|
X_CFLAGS:=@X_CFLAGS@
|
|
|
|
X_LIBS:=@X_LIBS@
|
|
|
|
|
2013-02-15 09:40:46 +00:00
|
|
|
# The lowest required version of macosx to enforce compatiblity for
|
2013-02-21 13:16:56 +00:00
|
|
|
MACOSX_VERSION_MIN=@MACOSX_VERSION_MIN@
|
2013-02-15 09:40:46 +00:00
|
|
|
|
2014-02-24 11:16:58 +00:00
|
|
|
# Toolchain type: gcc, clang, solstudio, lxc, microsoft...
|
|
|
|
TOOLCHAIN_TYPE:=@TOOLCHAIN_TYPE@
|
2015-12-15 10:02:03 +00:00
|
|
|
TOOLCHAIN_VERSION := @TOOLCHAIN_VERSION@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2013-09-12 19:29:17 +00:00
|
|
|
# Option used to tell the compiler whether to create 32- or 64-bit executables
|
|
|
|
COMPILER_TARGET_BITS_FLAG:=@COMPILER_TARGET_BITS_FLAG@
|
2013-04-29 16:34:30 +00:00
|
|
|
COMPILER_SUPPORTS_TARGET_BITS_FLAG=@COMPILER_SUPPORTS_TARGET_BITS_FLAG@
|
|
|
|
|
2015-12-15 10:02:03 +00:00
|
|
|
# Option used to pass a command file to the compiler
|
|
|
|
COMPILER_COMMAND_FILE_FLAG:=@COMPILER_COMMAND_FILE_FLAG@
|
|
|
|
|
2016-02-22 10:27:09 +00:00
|
|
|
# Option for specifying a file which saves the binder commands
|
|
|
|
# produced by the link step (for debugging, currently AIX only)
|
|
|
|
COMPILER_BINDCMD_FILE_FLAG:=@COMPILER_BINDCMD_FILE_FLAG@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
CC_OUT_OPTION:=@CC_OUT_OPTION@
|
|
|
|
EXE_OUT_OPTION:=@EXE_OUT_OPTION@
|
|
|
|
LD_OUT_OPTION:=@LD_OUT_OPTION@
|
|
|
|
AR_OUT_OPTION:=@AR_OUT_OPTION@
|
|
|
|
|
|
|
|
# Flags used for overriding the default opt setting for a C/C++ source file.
|
2012-06-08 03:25:06 +00:00
|
|
|
C_O_FLAG_HIGHEST:=@C_O_FLAG_HIGHEST@
|
2012-04-10 15:18:28 +00:00
|
|
|
C_O_FLAG_HI:=@C_O_FLAG_HI@
|
|
|
|
C_O_FLAG_NORM:=@C_O_FLAG_NORM@
|
|
|
|
C_O_FLAG_NONE:=@C_O_FLAG_NONE@
|
2012-06-08 03:25:06 +00:00
|
|
|
CXX_O_FLAG_HIGHEST:=@CXX_O_FLAG_HIGHEST@
|
2012-04-10 15:18:28 +00:00
|
|
|
CXX_O_FLAG_HI:=@CXX_O_FLAG_HI@
|
|
|
|
CXX_O_FLAG_NORM:=@CXX_O_FLAG_NORM@
|
|
|
|
CXX_O_FLAG_NONE:=@CXX_O_FLAG_NONE@
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
C_FLAG_DEPS:=@C_FLAG_DEPS@
|
|
|
|
CXX_FLAG_DEPS:=@CXX_FLAG_DEPS@
|
|
|
|
|
2015-03-09 09:39:16 +00:00
|
|
|
DISABLE_WARNING_PREFIX := @DISABLE_WARNING_PREFIX@
|
2014-03-21 08:35:43 +00:00
|
|
|
CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
|
|
|
|
|
2015-05-08 08:37:13 +00:00
|
|
|
# A global flag (true or false) determining if native warnings are considered errors.
|
|
|
|
WARNINGS_AS_ERRORS := @WARNINGS_AS_ERRORS@
|
|
|
|
|
2015-02-10 11:25:44 +00:00
|
|
|
CFLAGS_CCACHE:=@CFLAGS_CCACHE@
|
2016-03-19 01:28:49 +00:00
|
|
|
NO_NULL_POINTER_CHECK_FLAG=@NO_NULL_POINTER_CHECK_CFLAG@
|
|
|
|
NO_LIFETIME_DSE_CFLAG=@NO_LIFETIME_DSE_CFLAG@
|
|
|
|
CXXSTD_CXXFLAG=@CXXSTD_CXXFLAG@
|
2015-02-10 11:25:44 +00:00
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Tools that potentially need to be cross compilation aware.
|
2015-11-24 16:45:59 +00:00
|
|
|
CC:=@FIXPATH@ @CCACHE@ @ICECC@ @CC@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# CFLAGS used to compile the jdk native libraries (C-code)
|
|
|
|
CFLAGS_JDKLIB:=@CFLAGS_JDKLIB@
|
|
|
|
CXXFLAGS_JDKLIB:=@CXXFLAGS_JDKLIB@
|
|
|
|
|
|
|
|
# CFLAGS used to compile the jdk native launchers (C-code)
|
|
|
|
CFLAGS_JDKEXE:=@CFLAGS_JDKEXE@
|
|
|
|
CXXFLAGS_JDKEXE:=@CXXFLAGS_JDKEXE@
|
|
|
|
|
2016-02-22 10:22:55 +00:00
|
|
|
LDFLAGS_HASH_STYLE := @LDFLAGS_HASH_STYLE@
|
|
|
|
|
2015-11-24 16:45:59 +00:00
|
|
|
CXX:=@FIXPATH@ @CCACHE@ @ICECC@ @CXX@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-10-26 21:29:57 +00:00
|
|
|
CPP:=@FIXPATH@ @CPP@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-11-21 15:05:46 +00:00
|
|
|
# The linker can be gcc or ld on unix systems, or link.exe on windows systems.
|
2012-10-26 21:29:57 +00:00
|
|
|
LD:=@FIXPATH@ @LD@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-06-18 19:52:13 +00:00
|
|
|
# Xcode SDK path
|
|
|
|
SDKROOT:=@SDKROOT@
|
|
|
|
|
2013-07-03 00:38:10 +00:00
|
|
|
# The linker on older SuSE distros (e.g. on SLES 10) complains with:
|
|
|
|
# "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
|
|
|
|
# if feeded with a version script which contains named tags.
|
|
|
|
USING_BROKEN_SUSE_LD:=@USING_BROKEN_SUSE_LD@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# LDFLAGS used to link the jdk native libraries (C-code)
|
|
|
|
LDFLAGS_JDKLIB:=@LDFLAGS_JDKLIB@
|
2015-10-29 15:30:02 +00:00
|
|
|
JDKLIB_LIBS:=@JDKLIB_LIBS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# LDFLAGS used to link the jdk native launchers (C-code)
|
|
|
|
LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
|
2015-10-29 15:30:02 +00:00
|
|
|
JDKEXE_LIBS:=@JDKEXE_LIBS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# LDFLAGS specific to C++ linking.
|
|
|
|
LDFLAGS_CXX_JDK:=@LDFLAGS_CXX_JDK@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Sometimes a different linker is needed for c++ libs
|
2012-10-26 21:29:57 +00:00
|
|
|
LDCXX:=@FIXPATH@ @LDCXX@
|
2012-04-10 15:18:28 +00:00
|
|
|
# The flags for linking libstdc++ linker.
|
|
|
|
LIBCXX:=@LIBCXX@
|
|
|
|
|
2015-03-10 13:36:56 +00:00
|
|
|
# Compiler and linker flags used when building native tests
|
|
|
|
CFLAGS_TESTLIB:=@CFLAGS_TESTLIB@
|
|
|
|
CXXFLAGS_TESTLIB:=@CXXFLAGS_TESTLIB@
|
|
|
|
CFLAGS_TESTEXE:=@CFLAGS_TESTEXE@
|
|
|
|
CXXFLAGS_TESTEXE:=@CXXFLAGS_TESTEXE@
|
|
|
|
LDFLAGS_TESTLIB:=@LDFLAGS_TESTLIB@
|
|
|
|
LDFLAGS_TESTEXE:=@LDFLAGS_TESTEXE@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# BUILD_CC/BUILD_LD is a compiler/linker that generates code that is runnable on the
|
|
|
|
# build platform.
|
2015-11-24 16:45:59 +00:00
|
|
|
BUILD_CC:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CC@
|
|
|
|
BUILD_CXX:=@FIXPATH@ @BUILD_ICECC@ @BUILD_CXX@
|
2012-10-26 21:29:57 +00:00
|
|
|
BUILD_LD:=@FIXPATH@ @BUILD_LD@
|
2015-12-15 10:02:03 +00:00
|
|
|
BUILD_LDCXX:=@FIXPATH@ @BUILD_LDCXX@
|
2015-11-24 14:46:04 +00:00
|
|
|
BUILD_AS:=@FIXPATH@ @BUILD_AS@
|
|
|
|
BUILD_AR:=@FIXPATH@ @BUILD_AR@
|
|
|
|
BUILD_NM:=@FIXPATH@ @BUILD_NM@
|
2016-03-17 19:03:53 +00:00
|
|
|
BUILD_OBJCOPY:=@BUILD_OBJCOPY@
|
|
|
|
BUILD_STRIP:=@BUILD_STRIP@
|
2015-10-05 11:44:40 +00:00
|
|
|
BUILD_SYSROOT_CFLAGS:=@BUILD_SYSROOT_CFLAGS@
|
|
|
|
BUILD_SYSROOT_LDFLAGS:=@BUILD_SYSROOT_LDFLAGS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-10-26 21:29:57 +00:00
|
|
|
AS:=@FIXPATH@ @AS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2014-11-21 15:05:46 +00:00
|
|
|
# AR is used to create a static library (is ar in unix, lib.exe in windows)
|
2012-10-26 21:29:57 +00:00
|
|
|
AR:=@FIXPATH@ @AR@
|
2012-04-10 15:18:28 +00:00
|
|
|
ARFLAGS:=@ARFLAGS@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
NM:=@NM@
|
2013-04-09 07:42:20 +00:00
|
|
|
GNM:=@GNM@
|
2012-09-18 18:29:16 +00:00
|
|
|
STRIP:=@STRIP@
|
|
|
|
|
|
|
|
LIPO:=@LIPO@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
# Options to linker to specify a mapfile.
|
2012-04-10 15:18:28 +00:00
|
|
|
# (Note absence of := assignment, because we do not want to evaluate the macro body here)
|
|
|
|
SET_SHARED_LIBRARY_MAPFILE=@SET_SHARED_LIBRARY_MAPFILE@
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
# Options for C/CXX compiler to be used if linking is performed
|
|
|
|
# using reorder file
|
|
|
|
C_FLAG_REORDER:=@C_FLAG_REORDER@
|
|
|
|
CXX_FLAG_REORDER:=@CXX_FLAG_REORDER@
|
|
|
|
|
2012-07-03 23:11:12 +00:00
|
|
|
#
|
|
|
|
# Options for generating debug symbols
|
2016-01-20 08:53:52 +00:00
|
|
|
COMPILE_WITH_DEBUG_SYMBOLS := @COMPILE_WITH_DEBUG_SYMBOLS@
|
|
|
|
COPY_DEBUG_SYMBOLS := @COPY_DEBUG_SYMBOLS@
|
|
|
|
ZIP_EXTERNAL_DEBUG_SYMBOLS := @ZIP_EXTERNAL_DEBUG_SYMBOLS@
|
|
|
|
|
2012-07-03 23:11:12 +00:00
|
|
|
CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
|
|
|
|
CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compress (or not) jars
|
|
|
|
COMPRESS_JARS=@COMPRESS_JARS@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Options to linker to specify the library name.
|
|
|
|
# (Note absence of := assignment, because we do not want to evaluate the macro body here)
|
|
|
|
SET_SHARED_LIBRARY_NAME=@SET_SHARED_LIBRARY_NAME@
|
|
|
|
|
2015-12-15 10:02:03 +00:00
|
|
|
SHARED_LIBRARY_FLAGS=@SHARED_LIBRARY_FLAGS@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Set origin using the linker, ie use the relative path to the dependent library to find the dependees.
|
|
|
|
# (Note absence of := assignment, because we do not want to evaluate the macro body here)
|
|
|
|
SET_SHARED_LIBRARY_ORIGIN=@SET_SHARED_LIBRARY_ORIGIN@
|
2012-09-18 18:29:16 +00:00
|
|
|
SET_EXECUTABLE_ORIGIN=@SET_EXECUTABLE_ORIGIN@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# Different OS:es have different ways of naming shared libraries.
|
|
|
|
# The SHARED_LIBRARY macro takes "verify" as and argument and returns:
|
|
|
|
# "libverify.so" or "libverify.dylib" or "verify.dll" depending on platform.
|
|
|
|
# (Note absence of := assignment, because we do not want to evaluate the macro body here)
|
|
|
|
SHARED_LIBRARY=@SHARED_LIBRARY@
|
|
|
|
STATIC_LIBRARY=@STATIC_LIBRARY@
|
|
|
|
LIBRARY_PREFIX:=@LIBRARY_PREFIX@
|
|
|
|
SHARED_LIBRARY_SUFFIX:=@SHARED_LIBRARY_SUFFIX@
|
|
|
|
STATIC_LIBRARY_SUFFIX:=@STATIC_LIBRARY_SUFFIX@
|
|
|
|
EXE_SUFFIX:=@EXE_SUFFIX@
|
|
|
|
OBJ_SUFFIX:=@OBJ_SUFFIX@
|
2015-10-19 17:21:27 +00:00
|
|
|
STATIC_BUILD:=@STATIC_BUILD@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2015-09-28 13:51:29 +00:00
|
|
|
STRIPFLAGS:=@STRIPFLAGS@
|
2012-06-08 03:25:06 +00:00
|
|
|
|
2014-03-03 17:21:42 +00:00
|
|
|
JAVA_FLAGS:=@JAVA_FLAGS@
|
2014-03-14 12:16:46 +00:00
|
|
|
JAVA_FLAGS_BIG:=@JAVA_FLAGS_BIG@
|
|
|
|
JAVA_FLAGS_SMALL:=@JAVA_FLAGS_SMALL@
|
2015-11-24 14:36:32 +00:00
|
|
|
JAVA_FLAGS_JAVAC:=@JAVA_FLAGS_JAVAC@
|
2014-08-17 14:51:37 +00:00
|
|
|
JAVA_TOOL_FLAGS_SMALL:=@JAVA_TOOL_FLAGS_SMALL@
|
2014-10-06 12:37:54 +00:00
|
|
|
SJAVAC_SERVER_JAVA_FLAGS:=@SJAVAC_SERVER_JAVA_FLAGS@
|
|
|
|
|
2014-11-27 14:41:56 +00:00
|
|
|
# The *_CMD variables are defined separately to be easily overridden in bootcycle-spec.gmk
|
2014-10-06 12:37:54 +00:00
|
|
|
# for bootcycle-images build. Make sure to keep them in sync. Do not use the *_CMD
|
|
|
|
# versions of the variables directly.
|
|
|
|
JAVA_CMD:=@JAVA@
|
|
|
|
JAVAC_CMD:=@JAVAC@
|
|
|
|
JAVAH_CMD:=@JAVAH@
|
|
|
|
JAR_CMD:=@JAR@
|
|
|
|
JARSIGNER_CMD:=@JARSIGNER@
|
|
|
|
SJAVAC_SERVER_JAVA_CMD:=@SJAVAC_SERVER_JAVA@
|
|
|
|
# These variables are meant to be used. They are defined with = instead of := to make
|
|
|
|
# it possible to override only the *_CMD variables.
|
|
|
|
JAVA=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_BIG) $(JAVA_FLAGS)
|
|
|
|
JAVA_SMALL=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_SMALL) $(JAVA_FLAGS)
|
2015-11-24 14:36:32 +00:00
|
|
|
JAVA_JAVAC=@FIXPATH@ $(JAVA_CMD) $(JAVA_FLAGS_JAVAC) $(JAVA_FLAGS)
|
2014-10-06 12:37:54 +00:00
|
|
|
JAVAC=@FIXPATH@ $(JAVAC_CMD)
|
|
|
|
JAVAH=@FIXPATH@ $(JAVAH_CMD)
|
|
|
|
JAR=@FIXPATH@ $(JAR_CMD)
|
|
|
|
JARSIGNER=@FIXPATH@ $(JARSIGNER_CMD)
|
|
|
|
# A specific java binary with specific options can be used to run
|
|
|
|
# the long running background sjavac servers and other long running tasks.
|
2015-11-24 14:36:32 +00:00
|
|
|
SJAVAC_SERVER_JAVA=@FIXPATH@ @FIXPATH_DETACH_FLAG@ $(SJAVAC_SERVER_JAVA_CMD) \
|
|
|
|
$(SJAVAC_SERVER_JAVA_FLAGS)
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Hotspot sets this variable before reading the SPEC when compiling sa-jdi.jar. Avoid
|
|
|
|
# overriding that value by using ?=.
|
|
|
|
JAVAC_FLAGS?=@JAVAC_FLAGS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2016-03-17 19:03:53 +00:00
|
|
|
|
|
|
|
BUILD_JAVA_FLAGS:=-Xms64M -Xmx1100M
|
|
|
|
BUILD_JAVA=@FIXPATH@ $(BUILD_JDK)/bin/java $(BUILD_JAVA_FLAGS)
|
|
|
|
|
|
|
|
# Use ?= as this can be overridden from bootcycle-spec.gmk
|
|
|
|
BOOT_JDK_MODULAR ?= @BOOT_JDK_MODULAR@
|
|
|
|
|
|
|
|
ifeq ($(BOOT_JDK_MODULAR), true)
|
|
|
|
INTERIM_OVERRIDE_MODULES_ARGS = -Xpatch:$(BUILDTOOLS_OUTPUTDIR)/override_modules
|
|
|
|
INTERIM_LANGTOOLS_ARGS = $(INTERIM_OVERRIDE_MODULES_ARGS)
|
|
|
|
JAVAC_MAIN_CLASS = -m jdk.compiler/com.sun.tools.javac.Main
|
|
|
|
JAVADOC_MAIN_CLASS = -m jdk.javadoc/jdk.javadoc.internal.tool.Main
|
|
|
|
else
|
|
|
|
INTERIM_OVERRIDE_MODULES := java.compiler jdk.compiler \
|
|
|
|
jdk.jdeps jdk.javadoc jdk.rmic
|
|
|
|
INTERIM_OVERRIDE_MODULES_ARGS = \
|
|
|
|
-Xbootclasspath/p:$(call PathList, \
|
|
|
|
$(addprefix $(BUILDTOOLS_OUTPUTDIR)/override_modules/, \
|
|
|
|
$(INTERIM_OVERRIDE_MODULES)))
|
|
|
|
INTERIM_LANGTOOLS_ARGS = $(INTERIM_OVERRIDE_MODULES_ARGS) \
|
|
|
|
-cp $(BUILDTOOLS_OUTPUTDIR)/override_modules/jdk.compiler
|
|
|
|
JAVAC_MAIN_CLASS = com.sun.tools.javac.Main
|
|
|
|
JAVADOC_MAIN_CLASS = jdk.javadoc.internal.tool.Main
|
|
|
|
endif
|
2013-01-31 13:00:09 +00:00
|
|
|
# You run the new javac using the boot jdk with $(BOOT_JDK)/bin/java $(NEW_JAVAC) ...
|
2014-12-03 14:20:21 +00:00
|
|
|
# Use = assignment to be able to override in bootcycle-spec.gmk
|
2016-03-17 19:03:53 +00:00
|
|
|
NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) $(JAVAC_MAIN_CLASS)
|
|
|
|
NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) $(JAVADOC_MAIN_CLASS)
|
|
|
|
|
|
|
|
# JLink/Jmod are run using the BUILD_JDK, which is normally the jdk output dir.
|
|
|
|
JLINK_KEEP_PACKAGED_MODULES:=@JLINK_KEEP_PACKAGED_MODULES@
|
|
|
|
|
|
|
|
JLINK = @FIXPATH@ $(BUILD_JDK)/bin/jlink $(JAVA_TOOL_FLAGS_SMALL)
|
|
|
|
JMOD = @FIXPATH@ $(BUILD_JDK)/bin/jmod $(JAVA_TOOL_FLAGS_SMALL)
|
2014-02-05 10:03:54 +00:00
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Base flags for RC
|
|
|
|
# Guarding this against resetting value. Legacy make files include spec multiple
|
|
|
|
# times.
|
|
|
|
ifndef RC_FLAGS
|
2013-10-10 12:58:19 +00:00
|
|
|
RC_FLAGS:=@RC_FLAGS@
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Tools adhering to a minimal and common standard of posix compliance.
|
|
|
|
AWK:=@AWK@
|
2012-09-18 18:29:16 +00:00
|
|
|
BASENAME:=@BASENAME@
|
2012-04-10 15:18:28 +00:00
|
|
|
CAT:=@CAT@
|
|
|
|
CCACHE:=@CCACHE@
|
|
|
|
# CD is going away, but remains to cater for legacy makefiles.
|
|
|
|
CD:=cd
|
|
|
|
CHMOD:=@CHMOD@
|
2013-05-29 12:01:04 +00:00
|
|
|
CODESIGN:=@CODESIGN@
|
2013-01-02 10:29:29 +00:00
|
|
|
COMM:=@COMM@
|
2012-04-10 15:18:28 +00:00
|
|
|
CP:=@CP@
|
2013-01-02 10:29:29 +00:00
|
|
|
CPIO:=@CPIO@
|
2012-04-10 15:18:28 +00:00
|
|
|
CUT:=@CUT@
|
|
|
|
DATE:=@DATE@
|
|
|
|
DIFF:=@DIFF@
|
2013-01-02 10:29:29 +00:00
|
|
|
DIRNAME:=@DIRNAME@
|
2013-10-15 15:24:31 +00:00
|
|
|
DSYMUTIL:=@DSYMUTIL@
|
2012-04-10 15:18:28 +00:00
|
|
|
FIND:=@FIND@
|
|
|
|
FIND_DELETE:=@FIND_DELETE@
|
|
|
|
ECHO:=@ECHO@
|
|
|
|
EGREP:=@EGREP@
|
|
|
|
FGREP:=@FGREP@
|
|
|
|
GREP:=@GREP@
|
|
|
|
HEAD:=@HEAD@
|
|
|
|
LS:=@LS@
|
|
|
|
LN:=@LN@
|
|
|
|
MKDIR:=@MKDIR@
|
|
|
|
MV:=@MV@
|
|
|
|
NAWK:=@NAWK@
|
2015-10-07 09:58:03 +00:00
|
|
|
NICE:=@NICE@
|
2015-09-21 07:32:07 +00:00
|
|
|
PATCH:=@PATCH@
|
2012-04-10 15:18:28 +00:00
|
|
|
PRINTF:=@PRINTF@
|
|
|
|
PWD:=@THEPWDCMD@
|
|
|
|
RM:=@RM@
|
2015-10-22 14:41:24 +00:00
|
|
|
RMDIR:=@RMDIR@
|
2012-04-10 15:18:28 +00:00
|
|
|
SED:=@SED@
|
|
|
|
SH:=@SH@
|
|
|
|
SORT:=@SORT@
|
|
|
|
TAR:=@TAR@
|
|
|
|
TAIL:=@TAIL@
|
|
|
|
TEE:=@TEE@
|
2012-10-26 21:29:57 +00:00
|
|
|
TIME:=@TIME@
|
2013-06-28 10:02:37 +00:00
|
|
|
IS_GNU_TIME:=@IS_GNU_TIME@
|
2012-04-10 15:18:28 +00:00
|
|
|
TR:=@TR@
|
|
|
|
TOUCH:=@TOUCH@
|
2013-01-02 10:29:29 +00:00
|
|
|
UNIQ:=@UNIQ@
|
2012-04-10 15:18:28 +00:00
|
|
|
WC:=@WC@
|
|
|
|
XARGS:=@XARGS@
|
|
|
|
ZIPEXE:=@ZIP@
|
|
|
|
ZIP:=@ZIP@
|
|
|
|
UNZIP:=@UNZIP@
|
2012-10-26 21:29:57 +00:00
|
|
|
MT:=@FIXPATH@ @MT@
|
|
|
|
RC:=@FIXPATH@ @RC@
|
|
|
|
DUMPBIN:=@FIXPATH@ @DUMPBIN@
|
2012-04-10 15:18:28 +00:00
|
|
|
CYGPATH:=@CYGPATH@
|
|
|
|
LDD:=@LDD@
|
|
|
|
OTOOL:=@OTOOL@
|
|
|
|
READELF:=@READELF@
|
|
|
|
EXPR:=@EXPR@
|
|
|
|
FILE:=@FILE@
|
2012-06-08 03:25:06 +00:00
|
|
|
HG:=@HG@
|
2012-07-03 23:11:12 +00:00
|
|
|
OBJCOPY:=@OBJCOPY@
|
2012-10-26 21:29:57 +00:00
|
|
|
SETFILE:=@SETFILE@
|
2013-04-05 07:38:54 +00:00
|
|
|
XATTR:=@XATTR@
|
2013-05-28 06:50:52 +00:00
|
|
|
JT_HOME:=@JT_HOME@
|
|
|
|
JTREGEXE:=@JTREGEXE@
|
2014-06-18 19:52:13 +00:00
|
|
|
XCODEBUILD=@XCODEBUILD@
|
2012-10-26 21:29:57 +00:00
|
|
|
FIXPATH:=@FIXPATH@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# Build setup
|
2012-07-03 23:11:12 +00:00
|
|
|
ENABLE_JFR=@ENABLE_JFR@
|
2013-03-18 14:47:37 +00:00
|
|
|
ENABLE_INTREE_EC=@ENABLE_INTREE_EC@
|
2012-04-10 15:18:28 +00:00
|
|
|
USE_EXTERNAL_LIBJPEG:=@USE_EXTERNAL_LIBJPEG@
|
|
|
|
USE_EXTERNAL_LIBGIF:=@USE_EXTERNAL_LIBGIF@
|
|
|
|
USE_EXTERNAL_LIBZ:=@USE_EXTERNAL_LIBZ@
|
2012-07-03 23:11:12 +00:00
|
|
|
LIBZIP_CAN_USE_MMAP:=@LIBZIP_CAN_USE_MMAP@
|
2012-10-26 21:29:57 +00:00
|
|
|
MSVCR_DLL:=@MSVCR_DLL@
|
2015-01-15 15:36:24 +00:00
|
|
|
MSVCP_DLL:=@MSVCP_DLL@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
####################################################
|
|
|
|
#
|
|
|
|
# INSTALLATION
|
|
|
|
#
|
|
|
|
|
|
|
|
# Common prefix for all installed files. Defaults to /usr/local,
|
2013-10-10 12:58:19 +00:00
|
|
|
# but /opt/myjdk is another common version.
|
2012-04-10 15:18:28 +00:00
|
|
|
INSTALL_PREFIX=@prefix@
|
|
|
|
|
|
|
|
# Directories containing architecture-dependent files should be relative to exec_prefix
|
|
|
|
INSTALL_EXECPREFIX=@exec_prefix@
|
|
|
|
|
|
|
|
# java,javac,javah,javap etc are installed here.
|
|
|
|
INSTALL_BINDIR=@bindir@
|
|
|
|
|
|
|
|
# Read only architecture-independent data
|
|
|
|
INSTALL_DATADIR=@datadir@
|
|
|
|
|
|
|
|
# Root of above.
|
|
|
|
INSTALL_DATAROOTDIR=@datarootdir@
|
|
|
|
|
|
|
|
# Doc files, other than info and man.
|
|
|
|
INSTALL_DOCDIR=@docdir@
|
|
|
|
|
|
|
|
# Html documentation
|
|
|
|
INSTALL_HTMLDIR=@htmldir@
|
|
|
|
|
|
|
|
# Installing C header files, JNI headers for example.
|
|
|
|
INSTALL_INCLUDEDIR=@includedir@
|
|
|
|
|
|
|
|
# Installing library files....
|
|
|
|
INSTALL_INCLUDEDIR=@libdir@
|
|
|
|
|
|
|
|
# Executables that other programs run.
|
|
|
|
INSTALL_LIBEXECDIR=@libexecdir@
|
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
# Locale-dependent but architecture-independent data, such as message catalogs.
|
2012-04-10 15:18:28 +00:00
|
|
|
INSTALL_LOCALEDIR=@localedir@
|
|
|
|
|
|
|
|
# Modifiable single-machine data
|
|
|
|
INSTALL_LOCALSTATEDIR=@localstatedir@
|
|
|
|
|
|
|
|
# Man pages
|
|
|
|
INSTALL_MANDIR=@mandir@
|
|
|
|
|
|
|
|
# Modifiable architecture-independent data.
|
|
|
|
INSTALL_SHAREDSTATEDIR=@sharedstatedir@
|
|
|
|
|
|
|
|
# Read-only single-machine data
|
|
|
|
INSTALL_SYSCONFDIR=@sysconfdir@
|
|
|
|
|
2014-02-20 15:07:46 +00:00
|
|
|
####################################################
|
|
|
|
#
|
|
|
|
# Libraries
|
|
|
|
#
|
|
|
|
|
2014-04-29 19:44:14 +00:00
|
|
|
USE_EXTERNAL_LCMS:=@USE_EXTERNAL_LCMS@
|
|
|
|
LCMS_CFLAGS:=@LCMS_CFLAGS@
|
|
|
|
LCMS_LIBS:=@LCMS_LIBS@
|
|
|
|
|
2014-02-20 15:07:46 +00:00
|
|
|
USE_EXTERNAL_LIBPNG:=@USE_EXTERNAL_LIBPNG@
|
|
|
|
PNG_LIBS:=@PNG_LIBS@
|
|
|
|
PNG_CFLAGS:=@PNG_CFLAGS@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
####################################################
|
|
|
|
#
|
|
|
|
# Misc
|
|
|
|
#
|
|
|
|
|
2013-04-08 18:07:32 +00:00
|
|
|
INCLUDE_SA=@INCLUDE_SA@
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
|
|
|
|
OS_VERSION_MINOR:=@OS_VERSION_MINOR@
|
|
|
|
OS_VERSION_MICRO:=@OS_VERSION_MICRO@
|
|
|
|
|
2013-01-03 19:54:38 +00:00
|
|
|
# Images directory definitions
|
2014-12-03 14:20:21 +00:00
|
|
|
JDK_IMAGE_SUBDIR:=jdk
|
|
|
|
JRE_IMAGE_SUBDIR:=jre
|
2015-01-09 15:45:39 +00:00
|
|
|
|
2013-04-04 07:24:21 +00:00
|
|
|
# Colon left out to be able to override output dir for bootcycle-images
|
|
|
|
JDK_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_IMAGE_SUBDIR)
|
|
|
|
JRE_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_IMAGE_SUBDIR)
|
2013-01-03 19:54:38 +00:00
|
|
|
|
2015-01-09 15:45:39 +00:00
|
|
|
# Test image, as above
|
|
|
|
TEST_IMAGE_SUBDIR:=test
|
|
|
|
TEST_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(TEST_IMAGE_SUBDIR)
|
|
|
|
|
2015-03-10 13:36:56 +00:00
|
|
|
# Symbols image
|
|
|
|
SYMBOLS_IMAGE_SUBDIR:=symbols
|
|
|
|
SYMBOLS_IMAGE_DIR=$(IMAGES_OUTPUTDIR)/$(SYMBOLS_IMAGE_SUBDIR)
|
|
|
|
|
2013-01-03 19:54:38 +00:00
|
|
|
# Macosx bundles directory definitions
|
2015-10-12 14:31:23 +00:00
|
|
|
JDK_MACOSX_BUNDLE_SUBDIR=jdk-bundle/jdk-$(VERSION_NUMBER).jdk/Contents
|
|
|
|
JRE_MACOSX_BUNDLE_SUBDIR=jre-bundle/jre-$(VERSION_NUMBER).jre/Contents
|
2015-05-06 08:47:21 +00:00
|
|
|
JDK_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_MACOSX_BUNDLE_SUBDIR)
|
|
|
|
JRE_MACOSX_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_MACOSX_BUNDLE_SUBDIR)
|
2013-01-03 19:54:38 +00:00
|
|
|
|
2014-02-12 23:00:20 +00:00
|
|
|
# This macro is called to allow inclusion of closed source counterparts.
|
|
|
|
# Unless overridden in closed sources, it expands to nothing.
|
2014-11-27 14:41:56 +00:00
|
|
|
# Usage: This function is called in an open makefile, with the following
|
2014-02-12 23:00:20 +00:00
|
|
|
# arguments:
|
|
|
|
# $1 the name of the repo, or empty if the top-level repo.
|
|
|
|
# $2 the name of the makefile
|
|
|
|
define IncludeCustomExtension
|
|
|
|
endef
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Include the custom-spec.gmk file if it exists
|
|
|
|
-include $(dir @SPEC@)/custom-spec.gmk
|