2012-04-10 15:18:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
|
|
|
|
# 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
|
|
|
|
|
|
|
# When calling macros, the spaces between arguments are
|
|
|
|
# often semantically important! Sometimes we need to subst
|
|
|
|
# spaces and commas, therefore we need the following macros.
|
|
|
|
X:=
|
|
|
|
SPACE:=$(X) $(X)
|
|
|
|
COMMA:=,
|
|
|
|
HASH:=\#
|
|
|
|
SQUOTE:='
|
|
|
|
#'
|
|
|
|
DQUOTE:="
|
|
|
|
#"
|
|
|
|
define NEWLINE:=
|
|
|
|
endef
|
|
|
|
|
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)"
|
|
|
|
|
|
|
|
# TODO The logic for finding and setting MAKE is currently not working
|
|
|
|
# well on windows. Disable it TEMPORARILY there for now.
|
|
|
|
ifneq (@OPENJDK_TARGET_OS@,windows)
|
|
|
|
MAKE:=@MAKE@
|
|
|
|
endif
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# Pass along the verbosity setting.
|
|
|
|
ifeq (,$(findstring VERBOSE=,$(MAKE)))
|
|
|
|
MAKE:=$(MAKE) $(VERBOSE) VERBOSE="$(VERBOSE)"
|
|
|
|
endif
|
|
|
|
|
|
|
|
# No implicit variables or rules!
|
|
|
|
ifeq (,$(findstring -R,$(MAKE)))
|
|
|
|
MAKE:=$(MAKE) -R
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Specify where the common include directory for makefiles is.
|
|
|
|
ifeq (,$(findstring -I @SRC_ROOT@/common/makefiles,$(MAKE)))
|
|
|
|
MAKE:=$(MAKE) -I @SRC_ROOT@/common/makefiles
|
|
|
|
endif
|
|
|
|
|
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@
|
|
|
|
OPENJDK_TARGET_OS_API:=@OPENJDK_TARGET_OS_API@
|
|
|
|
|
|
|
|
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@
|
|
|
|
OPENJDK_TARGET_OS_API_DIR:=@OPENJDK_TARGET_OS_API_DIR@
|
|
|
|
|
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@
|
|
|
|
OPENJDK_BUILD_OS_API:=@OPENJDK_BUILD_OS_API@
|
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@
|
|
|
|
JIGSAW:=@JIGSAW@
|
|
|
|
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@
|
|
|
|
|
|
|
|
# Set special env variables, to be passed to external tools.
|
|
|
|
# Used for cygwin setups.
|
|
|
|
@SETUPDEVENV@
|
|
|
|
|
|
|
|
# The sys root where standard headers and libraries are found.
|
|
|
|
# Usually not needed since the configure script should have
|
|
|
|
# taken it into account already when setting CFLAGS et al.
|
|
|
|
SYS_ROOT:=@SYS_ROOT@
|
|
|
|
|
|
|
|
# Paths to the source code
|
|
|
|
SRC_ROOT:=@SRC_ROOT@
|
|
|
|
ADD_SRC_ROOT:=@ADD_SRC_ROOT@
|
|
|
|
OVERRIDE_SRC_ROOT:=@OVERRIDE_SRC_ROOT@
|
|
|
|
TOPDIR:=@SRC_ROOT@
|
|
|
|
OUTPUT_ROOT:=@OUTPUT_ROOT@
|
|
|
|
JDK_MAKE_SHARED_DIR:=@JDK_TOPDIR@/makefiles/common/shared
|
|
|
|
JDK_TOPDIR:=@JDK_TOPDIR@
|
|
|
|
LANGTOOLS_TOPDIR:=@LANGTOOLS_TOPDIR@
|
|
|
|
CORBA_TOPDIR:=@CORBA_TOPDIR@
|
|
|
|
JAXP_TOPDIR:=@JAXP_TOPDIR@
|
|
|
|
JAXWS_TOPDIR:=@JAXWS_TOPDIR@
|
|
|
|
HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
|
|
|
|
COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Location where build customization files may be found
|
|
|
|
CUSTOM_MAKE_DIR:=@CUSTOM_MAKE_DIR@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# 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@
|
|
|
|
|
|
|
|
# Different version strings generated from the above information.
|
|
|
|
JDK_VERSION:=@JDK_VERSION@
|
|
|
|
RUNTIME_NAME:=@RUNTIME_NAME@
|
|
|
|
FULL_VERSION:=@FULL_VERSION@
|
|
|
|
JRE_RELEASE_VERSION:=@FULL_VERSION@
|
|
|
|
RELEASE:=@RELEASE@
|
|
|
|
COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
# The other can be selected by specifying -client -server -kernel -zero or -zeroshark
|
|
|
|
# on the java launcher command line.
|
|
|
|
JVM_VARIANTS:=@JVM_VARIANTS@
|
|
|
|
JVM_VARIANT_SERVER:=@JVM_VARIANT_SERVER@
|
|
|
|
JVM_VARIANT_CLIENT:=@JVM_VARIANT_CLIENT@
|
|
|
|
JVM_VARIANT_KERNEL:=@JVM_VARIANT_KERNEL@
|
|
|
|
JVM_VARIANT_ZERO:=@JVM_VARIANT_ZERO@
|
|
|
|
JVM_VARIANT_ZEROSHARK:=@JVM_VARIANT_ZEROSHARK@
|
|
|
|
|
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@
|
|
|
|
LANGTOOLS_OUTPUTDIR=$(BUILD_OUTPUT)/langtools
|
|
|
|
CORBA_OUTPUTDIR=$(BUILD_OUTPUT)/corba
|
|
|
|
JAXP_OUTPUTDIR=$(BUILD_OUTPUT)/jaxp
|
|
|
|
JAXWS_OUTPUTDIR=$(BUILD_OUTPUT)/jaxws
|
|
|
|
HOTSPOT_OUTPUTDIR=$(BUILD_OUTPUT)/hotspot
|
|
|
|
JDK_OUTPUTDIR=$(BUILD_OUTPUT)/jdk
|
|
|
|
IMAGES_OUTPUTDIR=$(BUILD_OUTPUT)/images
|
|
|
|
|
|
|
|
LANGTOOLS_DIST=$(LANGTOOLS_OUTPUTDIR)/dist
|
|
|
|
CORBA_DIST=$(CORBA_OUTPUTDIR)/dist
|
|
|
|
JAXP_DIST=$(JAXP_OUTPUTDIR)/dist
|
|
|
|
JAXWS_DIST=$(JAXWS_OUTPUTDIR)/dist
|
|
|
|
HOTSPOT_DIST=$(HOTSPOT_OUTPUTDIR)/dist
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# The boot jdk to use
|
|
|
|
BOOT_JDK:=@BOOT_JDK@
|
|
|
|
BOOT_JDK_JVMARGS:=@BOOT_JDK_JVMARGS@
|
|
|
|
BOOT_RTJAR:=@BOOT_RTJAR@
|
2012-09-18 18:29:16 +00:00
|
|
|
BOOT_TOOLSJAR=$(BOOT_JDK)/lib/tools.jar
|
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@
|
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
|
|
|
# We can block the Javac server to never use more cores than this.
|
|
|
|
# This is not for performance reasons, but for memory usage, since each
|
|
|
|
# core requires its own JavaCompiler. We might have 64 cores and 4GB
|
|
|
|
# of memory, 64 JavaCompilers will currently not fit in a 3GB heap.
|
|
|
|
# Since there is no sharing of data between the JavaCompilers.
|
2012-09-18 18:29:16 +00:00
|
|
|
SJAVAC_SERVER_CORES:=@SJAVAC_SERVER_CORES@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# The OpenJDK makefiles should be changed to using the standard
|
|
|
|
# configure output ..._CFLAGS and ..._LIBS. In the meantime we
|
|
|
|
# extract the information here.
|
|
|
|
FREETYPE2_LIB_PATH:=@FREETYPE2_LIB_PATH@
|
|
|
|
FREETYPE2_LIBS:=@FREETYPE2_LIBS@
|
|
|
|
FREETYPE2_CFLAGS:=@FREETYPE2_CFLAGS@
|
|
|
|
USING_SYSTEM_FT_LIB=@USING_SYSTEM_FT_LIB@
|
|
|
|
CUPS_CFLAGS:=@CUPS_CFLAGS@
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
# Necessary additional compiler flags to compile X11
|
|
|
|
X_CFLAGS:=@X_CFLAGS@
|
|
|
|
X_LIBS:=@X_LIBS@
|
|
|
|
OPENWIN_HOME:=@OPENWIN_HOME@
|
|
|
|
|
|
|
|
# There are two types: CC or CL
|
|
|
|
# CC is gcc and others behaving reasonably similar.
|
|
|
|
# CL is cl.exe only.
|
|
|
|
COMPILER_TYPE:=@COMPILER_TYPE@
|
|
|
|
|
|
|
|
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@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
# Tools that potentially need to be cross compilation aware.
|
|
|
|
CC:=@UNCYGDRIVE@ @CCACHE@ @CC@
|
|
|
|
|
|
|
|
# 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@
|
|
|
|
|
|
|
|
CXX:=@UNCYGDRIVE@ @CCACHE@ @CXX@
|
|
|
|
#CXXFLAGS:=@CXXFLAGS@
|
|
|
|
|
|
|
|
OBJC:=@CCACHE@ @OBJC@
|
|
|
|
#OBJCFLAGS:=@OBJCFLAGS@
|
|
|
|
|
|
|
|
CPP:=@UNCYGDRIVE@ @CPP@
|
|
|
|
#CPPFLAGS:=@CPPFLAGS@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# The linker can be gcc or ld on posix systems, or link.exe on windows systems.
|
2012-04-10 15:18:28 +00:00
|
|
|
LD:=@UNCYGDRIVE@ @LD@
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
LDEXE:=@UNCYGDRIVE@ @LDEXE@
|
|
|
|
|
|
|
|
# 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
|
|
|
|
LDCXX:=@UNCYGDRIVE@ @LDCXX@
|
|
|
|
# The flags for linking libstdc++ linker.
|
|
|
|
LIBCXX:=@LIBCXX@
|
|
|
|
|
|
|
|
# Sometimes a different linker is needed for c++ executables
|
|
|
|
LDEXECXX:=@UNCYGDRIVE@ @LDEXECXX@
|
|
|
|
|
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.
|
|
|
|
BUILD_CC:=@UNCYGDRIVE@ @BUILD_CC@
|
|
|
|
BUILD_LD:=@UNCYGDRIVE@ @BUILD_LD@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-07-03 23:11:12 +00:00
|
|
|
AS:=@UNCYGDRIVE@ @AS@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# AR is used to create a static library (is ar in posix, lib.exe in windows)
|
2012-04-10 15:18:28 +00:00
|
|
|
AR:=@UNCYGDRIVE@ @AR@
|
|
|
|
ARFLAGS:=@ARFLAGS@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
NM:=@NM@
|
|
|
|
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@
|
|
|
|
|
|
|
|
# Options to linker to specify a mapfile.
|
|
|
|
# (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@
|
|
|
|
|
2012-04-10 15:18:28 +00:00
|
|
|
JAVA_FLAGS:=@BOOT_JDK_JVMARGS@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
JAVA=@UNCYGDRIVE@ $(BOOT_JDK)/bin/java $(JAVA_FLAGS)
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
JAVAC=@UNCYGDRIVE@ $(BOOT_JDK)/bin/javac
|
|
|
|
# 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
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
JAVAH=@UNCYGDRIVE@ $(BOOT_JDK)/bin/javah
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
JAR=@UNCYGDRIVE@ $(BOOT_JDK)/bin/jar
|
2012-04-10 15:18:28 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
RMIC=@UNCYGDRIVE@ $(BOOT_JDK)/bin/rmic
|
2012-06-08 03:25:06 +00:00
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
NATIVE2ASCII=@UNCYGDRIVE@ $(BOOT_JDK)/bin/native2ascii
|
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
|
|
|
|
RC_FLAGS:=@RC_FLAGS@
|
|
|
|
endif
|
|
|
|
|
|
|
|
# A specific java binary with specific options can be used to run
|
2012-09-18 18:29:16 +00:00
|
|
|
# the long running background sjavac servers and other long running tasks.
|
|
|
|
SJAVAC_SERVER_JAVA:=@UNCYGDRIVE@ @SJAVAC_SERVER_JAVA@
|
2012-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
# 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@
|
|
|
|
CP:=@CP@
|
|
|
|
CPIO:=@CPIO@
|
|
|
|
CUT:=@CUT@
|
|
|
|
DATE:=@DATE@
|
|
|
|
DF:=@DF@
|
|
|
|
DIFF:=@DIFF@
|
|
|
|
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@
|
|
|
|
TR:=@TR@
|
|
|
|
TOUCH:=@TOUCH@
|
|
|
|
WC:=@WC@
|
|
|
|
XARGS:=@XARGS@
|
|
|
|
ZIPEXE:=@ZIP@
|
|
|
|
ZIP:=@ZIP@
|
|
|
|
UNZIP:=@UNZIP@
|
|
|
|
MT:=@UNCYGDRIVE@ @MT@
|
|
|
|
RC:=@UNCYGDRIVE@ @RC@
|
|
|
|
DUMPBIN:=@UNCYGDRIVE@ @DUMPBIN@
|
|
|
|
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-04-10 15:18:28 +00:00
|
|
|
|
|
|
|
UNCYGDRIVE:=@UNCYGDRIVE@
|
|
|
|
|
|
|
|
# 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@
|
2012-04-10 15:18:28 +00:00
|
|
|
BUILD_LOG_WRAPPER:=@BUILD_LOG_WRAPPER@
|
|
|
|
|
|
|
|
# Build setup
|
|
|
|
DISABLE_NIMBUS:=@DISABLE_NIMBUS@
|
2012-07-03 23:11:12 +00:00
|
|
|
ENABLE_JFR=@ENABLE_JFR@
|
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-04-10 15:18:28 +00:00
|
|
|
CHECK_FOR_VCINSTALLDIR=@CHECK_FOR_VCINSTALLDIR@
|
|
|
|
MSVCRNN_DLL:=@MSVCR100DLL@
|
|
|
|
|
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))
|
|
|
|
# Append wildcard rule to pickup any matching source roots found below ADD_SRC_ROOT
|
|
|
|
ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(ADD_SRC_ROOT),$1))
|
|
|
|
endif
|
|
|
|
ifneq (,$(OVERRIDE_SRC_ROOT))
|
|
|
|
# Append wildcard rule to pickup any matching source roots found below OVERRIDE_SRC_ROOT
|
|
|
|
ADD_SRCS+=$(wildcard $(subst $(SRC_ROOT),$(OVERRIDE_SRC_ROOT),$1))
|
|
|
|
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))
|
|
|
|
OVR_SRCS:=$(addsuffix %,$(subst $(OVERRIDE_SRC_ROOT),$(SRC_ROOT),$(sort $(dir $(shell $(FIND) $(OVERRIDE_SRC_ROOT) -type f)))))
|
|
|
|
else
|
|
|
|
OVR_SRCS:=
|
|
|
|
endif
|
|
|
|
|
|
|
|
####################################################
|
|
|
|
#
|
|
|
|
# INSTALLATION
|
|
|
|
#
|
|
|
|
|
|
|
|
# Common prefix for all installed files. Defaults to /usr/local,
|
|
|
|
# but /opt/myjdk is another common version.
|
|
|
|
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@
|
|
|
|
|
|
|
|
# Locale-dependent but architecture-independent data, such as message catalogs.
|
|
|
|
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@
|
|
|
|
|
|
|
|
|
|
|
|
####################################################
|
|
|
|
#
|
|
|
|
# Misc
|
|
|
|
#
|
|
|
|
|
2012-06-08 03:25:06 +00:00
|
|
|
# Name of Service Agent library
|
|
|
|
SALIB_NAME=@SALIB_NAME@
|
|
|
|
|
|
|
|
OS_VERSION_MAJOR:=@OS_VERSION_MAJOR@
|
|
|
|
OS_VERSION_MINOR:=@OS_VERSION_MINOR@
|
|
|
|
OS_VERSION_MICRO:=@OS_VERSION_MICRO@
|
|
|
|
|
2012-09-18 18:29:16 +00:00
|
|
|
# Include the custom-spec.gmk file if it exists
|
|
|
|
-include $(dir @SPEC@)/custom-spec.gmk
|