2012-04-10 15:18:28 +00:00
|
|
|
#
|
2014-01-29 21:55:43 +00:00
|
|
|
# Copyright (c) 2011, 2014, 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
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
# When calling macros, the spaces between arguments are
|
|
|
|
# often semantically important! Sometimes we need to subst
|
2012-04-10 15:18:28 +00:00
|
|
|
# spaces and commas, therefore we need the following macros.
|
|
|
|
X:=
|
|
|
|
SPACE:=$(X) $(X)
|
|
|
|
COMMA:=,
|
2014-11-26 14:14:14 +00:00
|
|
|
DOLLAR:=$$
|
2012-04-10 15:18:28 +00:00
|
|
|
HASH:=\#
|
2014-02-04 09:01:20 +00:00
|
|
|
LEFT_PAREN:=(
|
|
|
|
RIGHT_PAREN:=)
|
2012-04-10 15:18:28 +00:00
|
|
|
SQUOTE:='
|
|
|
|
#'
|
|
|
|
DQUOTE:="
|
|
|
|
#"
|
2012-10-26 21:29:57 +00:00
|
|
|
define NEWLINE
|
|
|
|
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
endef
|
|
|
|
|
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@
|
|
|
|
|
|
|
|
# Specify where the spec file is.
|
|
|
|
MAKE_ARGS="SPEC=$(SPEC)"
|
|
|
|
|
2012-10-26 21:29:57 +00:00
|
|
|
MAKE:=@MAKE@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2013-05-21 11:18:28 +00:00
|
|
|
# Pass along the verbosity and log level settings.
|
2012-04-10 15:18:28 +00:00
|
|
|
ifeq (,$(findstring VERBOSE=,$(MAKE)))
|
2013-10-10 12:58:19 +00:00
|
|
|
MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)" LOG_LEVEL="$(LOG_LEVEL)"
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# No implicit variables or rules!
|
|
|
|
ifeq (,$(findstring -R,$(MAKE)))
|
2013-10-10 12:58:19 +00:00
|
|
|
MAKE:=$(MAKE) -R
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# Specify where the common include directory for makefiles is.
|
2014-02-24 12:29:26 +00:00
|
|
|
ifeq (,$(findstring -I @TOPDIR@/make/common,$(MAKE)))
|
|
|
|
MAKE:=$(MAKE) -I @TOPDIR@/make/common
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
|
2014-08-17 14:51:37 +00:00
|
|
|
OUTPUT_SYNC_SUPPORTED:=@OUTPUT_SYNC_SUPPORTED@
|
|
|
|
OUTPUT_SYNC:=@OUTPUT_SYNC@
|
|
|
|
|
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@
|
|
|
|
LIBM:=-lm
|
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@
|
|
|
|
|
2012-10-26 21:29:57 +00:00
|
|
|
ifeq ($(OPENJDK_TARGET_OS), windows)
|
|
|
|
# On Windows, the Visual Studio toolchain needs the LIB and INCLUDE
|
|
|
|
# environment variables (in Windows path style), and the PATH needs to
|
|
|
|
# be adjusted to include Visual Studio tools (but this needs to be in
|
|
|
|
# cygwin/msys style).
|
|
|
|
export PATH:=@VS_PATH@
|
|
|
|
export INCLUDE:=@VS_INCLUDE@
|
|
|
|
export LIB:=@VS_LIB@
|
|
|
|
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
|
|
|
|
|
|
|
# Paths to the source code
|
|
|
|
ADD_SRC_ROOT:=@ADD_SRC_ROOT@
|
|
|
|
OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@
|
2014-02-24 12:29:26 +00:00
|
|
|
|
|
|
|
# The top-level directory of the forest (SRC_ROOT is a traditional alias)
|
|
|
|
TOPDIR:=@TOPDIR@
|
|
|
|
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@
|
2012-04-10 15:18:28 +00:00
|
|
|
COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
|
|
|
|
|
|
|
|
# Information gathered from the version.numbers file.
|
|
|
|
JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
|
|
|
|
JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
|
|
|
|
JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
|
|
|
|
JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
|
|
|
|
JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
|
|
|
|
MILESTONE:=@MILESTONE@
|
|
|
|
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@
|
2013-10-07 16:19:15 +00:00
|
|
|
USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# Different version strings generated from the above information.
|
|
|
|
JDK_VERSION:=@JDK_VERSION@
|
2013-01-02 10:29:29 +00:00
|
|
|
RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
|
2012-04-10 15:18:28 +00:00
|
|
|
COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
|
2013-01-01 13:13:18 +00:00
|
|
|
# These variables need to be generated here so that MILESTONE and
|
|
|
|
# JDK_BUILD_NUMBER can be overridden on the make command line.
|
2014-02-10 13:25:17 +00:00
|
|
|
ifeq ($(MILESTONE), fcs)
|
2013-01-01 13:13:18 +00:00
|
|
|
RELEASE=$(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
|
|
|
|
else
|
|
|
|
RELEASE=$(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
|
|
|
|
endif
|
2013-10-07 16:19:15 +00:00
|
|
|
|
2013-10-10 12:58:19 +00:00
|
|
|
ifneq ($(USER_RELEASE_SUFFIX), )
|
2013-01-01 13:13:18 +00:00
|
|
|
FULL_VERSION=$(RELEASE)-$(USER_RELEASE_SUFFIX)-$(JDK_BUILD_NUMBER)
|
|
|
|
else
|
|
|
|
FULL_VERSION=$(RELEASE)-$(JDK_BUILD_NUMBER)
|
|
|
|
endif
|
2013-01-02 10:29:29 +00:00
|
|
|
JRE_RELEASE_VERSION:=$(FULL_VERSION)
|
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.
|
2012-12-20 06:44:02 +00:00
|
|
|
# The others can be selected by specifying -client -server -minimal1 -kernel -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_KERNEL:=@JVM_VARIANT_KERNEL@
|
|
|
|
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
|
|
|
|
MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/makesupport
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
|
|
|
|
JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
|
|
|
|
IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
|
2014-08-17 14:51:37 +00:00
|
|
|
TESTMAKE_OUTPUTDIR=$(BUILD_OUTPUT)/testmake
|
2014-09-16 10:08:04 +00:00
|
|
|
MAKESUPPORT_OUTPUTDIR=$(BUILD_OUTPUT)/make-support
|
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@
|
|
|
|
|
|
|
|
# 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@
|
|
|
|
# Store sjavac server synchronization files here, and
|
|
|
|
# the sjavac server log files.
|
|
|
|
SJAVAC_SERVER_DIR:=@SJAVAC_SERVER_DIR@
|
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@
|
|
|
|
|
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@
|
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@
|
|
|
|
|
2014-02-06 14:57:02 +00:00
|
|
|
# Enable RMIConnector IIOP transport
|
|
|
|
RMICONNECTOR_IIOP=@RMICONNECTOR_IIOP@
|
|
|
|
|
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@
|
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@
|
|
|
|
|
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@
|
|
|
|
|
2014-03-21 08:35:43 +00:00
|
|
|
CFLAGS_WARNINGS_ARE_ERRORS:=@CFLAGS_WARNINGS_ARE_ERRORS@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Tools that potentially need to be cross compilation aware.
|
2012-10-26 21:29:57 +00:00
|
|
|
CC:=@FIXPATH@ @CCACHE@ @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@
|
|
|
|
|
2012-10-26 21:29:57 +00:00
|
|
|
CXX:=@FIXPATH@ @CCACHE@ @CXX@
|
2012-04-10 15:18:28 +00:00
|
|
|
#CXXFLAGS:=@CXXFLAGS@
|
|
|
|
|
|
|
|
OBJC:=@CCACHE@ @OBJC@
|
|
|
|
#OBJCFLAGS:=@OBJCFLAGS@
|
|
|
|
|
2012-10-26 21:29:57 +00:00
|
|
|
CPP:=@FIXPATH@ @CPP@
|
2012-04-10 15:18:28 +00:00
|
|
|
#CPPFLAGS:=@CPPFLAGS@
|
|
|
|
|
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@
|
|
|
|
LDFLAGS_JDKLIB_SUFFIX:=@LDFLAGS_JDKLIB_SUFFIX@
|
|
|
|
|
|
|
|
# On some platforms the linker cannot be used to create executables, thus
|
|
|
|
# the need for a separate LDEXE command.
|
2012-10-26 21:29:57 +00:00
|
|
|
LDEXE:=@FIXPATH@ @LDEXE@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# LDFLAGS used to link the jdk native launchers (C-code)
|
|
|
|
LDFLAGS_JDKEXE:=@LDFLAGS_JDKEXE@
|
|
|
|
LDFLAGS_JDKEXE_SUFFIX:=@LDFLAGS_JDKEXE_SUFFIX@
|
|
|
|
|
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@
|
|
|
|
|
|
|
|
# Sometimes a different linker is needed for c++ executables
|
2012-10-26 21:29:57 +00:00
|
|
|
LDEXECXX:=@FIXPATH@ @LDEXECXX@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
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.
|
2012-10-26 21:29:57 +00:00
|
|
|
BUILD_CC:=@FIXPATH@ @BUILD_CC@
|
|
|
|
BUILD_LD:=@FIXPATH@ @BUILD_LD@
|
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@
|
|
|
|
MCS:=@MCS@
|
|
|
|
|
|
|
|
LIPO:=@LIPO@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# Command to create a shared library
|
|
|
|
SHARED_LIBRARY_FLAGS:=@SHARED_LIBRARY_FLAGS@
|
|
|
|
|
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
|
|
|
|
ENABLE_DEBUG_SYMBOLS:=@ENABLE_DEBUG_SYMBOLS@
|
|
|
|
CFLAGS_DEBUG_SYMBOLS:=@CFLAGS_DEBUG_SYMBOLS@
|
|
|
|
CXXFLAGS_DEBUG_SYMBOLS:=@CXXFLAGS_DEBUG_SYMBOLS@
|
|
|
|
ZIP_DEBUGINFO_FILES:=@ZIP_DEBUGINFO_FILES@
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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@
|
|
|
|
|
|
|
|
# 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@
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
POST_STRIP_CMD:=@POST_STRIP_CMD@
|
|
|
|
POST_MCS_CMD:=@POST_MCS_CMD@
|
|
|
|
|
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@
|
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@
|
|
|
|
NATIVE2ASCII_CMD:=@NATIVE2ASCII@
|
|
|
|
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)
|
|
|
|
JAVAC=@FIXPATH@ $(JAVAC_CMD)
|
|
|
|
JAVAH=@FIXPATH@ $(JAVAH_CMD)
|
|
|
|
JAR=@FIXPATH@ $(JAR_CMD)
|
|
|
|
NATIVE2ASCII=@FIXPATH@ $(NATIVE2ASCII_CMD) $(JAVA_TOOL_FLAGS_SMALL)
|
|
|
|
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.
|
|
|
|
SJAVAC_SERVER_JAVA=@FIXPATH@ $(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
|
|
|
|
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
|
|
|
|
INTERIM_LANGTOOLS_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_langtools.jar
|
|
|
|
INTERIM_LANGTOOLS_ARGS = "-Xbootclasspath/p:$(INTERIM_LANGTOOLS_JAR)" -cp $(INTERIM_LANGTOOLS_JAR)
|
2014-02-05 10:03:54 +00:00
|
|
|
NEW_JAVAC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javac.Main
|
|
|
|
NEW_JAVADOC = $(INTERIM_LANGTOOLS_ARGS) com.sun.tools.javadoc.Main
|
|
|
|
|
|
|
|
# The interim corba jar is needed for running rmic
|
2014-12-03 14:20:21 +00:00
|
|
|
INTERIM_CORBA_JAR = $(BUILDTOOLS_OUTPUTDIR)/interim_corba.jar
|
2013-01-31 13:00:09 +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-10-26 21:29:57 +00:00
|
|
|
BASH:=@BASH@
|
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@
|
|
|
|
PRINTF:=@PRINTF@
|
|
|
|
PWD:=@THEPWDCMD@
|
|
|
|
RM:=@RM@
|
|
|
|
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
|
|
|
|
|
|
|
# Where the build output is stored for your convenience.
|
|
|
|
BUILD_LOG:=@BUILD_LOG@
|
2012-07-03 23:11:12 +00:00
|
|
|
BUILD_LOG_PREVIOUS:=@BUILD_LOG_PREVIOUS@
|
2014-11-21 15:05:46 +00:00
|
|
|
# Disable the build log wrapper on sjavac+windows until
|
2012-11-13 23:54:33 +00:00
|
|
|
# we have solved how to prevent the log wrapper to wait
|
|
|
|
# for the background sjavac server process.
|
2014-11-21 15:05:46 +00:00
|
|
|
ifeq (@ENABLE_SJAVAC@X@OPENJDK_BUILD_OS@,yesXwindows)
|
2013-10-10 12:58:19 +00:00
|
|
|
BUILD_LOG_WRAPPER:=
|
2012-11-13 23:54:33 +00:00
|
|
|
else
|
2013-10-10 12:58:19 +00:00
|
|
|
BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
|
2012-11-13 23:54:33 +00:00
|
|
|
endif
|
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@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-07-03 23:11:12 +00:00
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# ADD_SRCS takes a single argument with source roots
|
|
|
|
# and appends any corresponding source roots found
|
|
|
|
# below --with-add-source-root and below
|
|
|
|
# --with-override-source-root. It is the responsibility
|
|
|
|
# of the next macro to get rid of superfluous files.
|
|
|
|
ADD_SRCS=$1
|
|
|
|
ifneq (,$(ADD_SRC_ROOT))
|
2013-10-10 12:58:19 +00:00
|
|
|
# Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT
|
|
|
|
ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1))
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
ifneq (,$(OVERRIDE_SRC_ROOT))
|
2013-10-10 12:58:19 +00:00
|
|
|
# Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT
|
|
|
|
ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1))
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
# OVR_SRCS creates a filter expression to filter out sources in
|
|
|
|
# the original source directory that lie inside directories below
|
|
|
|
# --with-override-source-root.
|
|
|
|
# Use := here since we want to scan for these files here. To avoid recomputation later.
|
|
|
|
# We cannot do the scan in configure, since that would force us to rerun configure when
|
|
|
|
# we add overridden sources.
|
|
|
|
ifneq (,$(OVERRIDE_SRC_ROOT))
|
2013-10-10 12:58:19 +00:00
|
|
|
OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
|
2012-04-10 15:18:28 +00:00
|
|
|
else
|
2013-10-10 12:58:19 +00:00
|
|
|
OVR_SRCS:=
|
2012-04-10 15:18:28 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
####################################################
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
# Name of Service Agent library
|
|
|
|
SALIB_NAME=@SALIB_NAME@
|
|
|
|
|
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
|
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
|
|
|
|
|
|
|
# Macosx bundles directory definitions
|
2014-12-03 14:20:21 +00:00
|
|
|
JDK_BUNDLE_SUBDIR=jdk-bundle/jdk$(JDK_VERSION).jdk/Contents
|
|
|
|
JRE_BUNDLE_SUBDIR=jre-bundle/jre$(JDK_VERSION).jre/Contents
|
2013-04-04 07:24:21 +00:00
|
|
|
JDK_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JDK_BUNDLE_SUBDIR)
|
|
|
|
JRE_BUNDLE_DIR=$(IMAGES_OUTPUTDIR)/$(JRE_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
|