common/autoconf/buildjdk-spec.gmk.in
author iignatyev
Tue, 03 May 2016 23:49:27 +0300
changeset 37967 8dd54c3bf02a
parent 37402 62b5f067032e
child 37969 2203863bfe3e
permissions -rw-r--r--
8148244: Finalize and integrate GTest implementation Reviewed-by: jwilhelm, erikj Contributed-by: stefan.karlsson@oracle.com, stefan.sarne@oracle.com, jesper.wilhelmsson@oracle.com, erik.helin@oracle.com, alexandre.iline@oracle.com, igor.ignatyev@oracle.com, erik.joelsson@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     1
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     2
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     4
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    10
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    15
# accompanied this code).
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    16
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    20
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    23
# questions.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    24
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    25
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    26
# This spec file is used to compile a BUILD_JDK while cross compiling. The
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    27
# BUILD_JDK runs on the build/host platform and is of the same version as
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    28
# the main build.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    29
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    30
# First include the real base spec.gmk file
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    31
include @SPEC@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    32
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    33
CC := @BUILD_CC@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    34
CXX := @BUILD_CXX@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    35
LD := @BUILD_LD@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    36
AS := @BUILD_AS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    37
NM := @BUILD_NM@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    38
AR := @BUILD_AR@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    39
OBJCOPY := @BUILD_OBJCOPY@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    40
STRIP := @BUILD_STRIP@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    41
SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    42
SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    43
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    44
# These directories should not be moved to BUILDJDK_OUTPUTDIR
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    45
HOTSPOT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    46
HOTSPOT_DIST := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_DIST))
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    47
SUPPORT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    48
JDK_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    49
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    50
OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    51
OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    52
OPENJDK_BUILD_CPU_LIBDIR := @OPENJDK_BUILD_CPU_LIBDIR@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    53
OPENJDK_TARGET_CPU_LIBDIR := @OPENJDK_BUILD_CPU_LIBDIR@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    54
OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    55
OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    56
OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    57
OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    58
OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    59
37402
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    60
HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    61
HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    62
HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    63
HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    64
HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    65
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    66
CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    67
CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    68
LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    69
CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    70
CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    71
LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    72
OPENJDK_TARGET_CPU_JLI_CFLAGS := @OPENJDK_BUILD_CPU_JLI_CFLAGS@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    73
37402
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    74
JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    75
JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    76
JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    77
JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@
62b5f067032e 8152666: The new Hotspot Build System
erikj
parents: 36506
diff changeset
    78
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    79
# The compiler for the build platform is likely not warning compatible with the official
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    80
# compiler.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    81
WARNINGS_AS_ERRORS := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    82
DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    83
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    84
# Save speed and disk space by not enabling debug symbols for the buildjdk
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    85
ENABLE_DEBUG_SYMBOLS := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    86
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    87
####################################################
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    88
#
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    89
# Legacy Hotspot support
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    90
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    91
# Legacy setting: OPT or DBG
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    92
VARIANT := OPT
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    93
# Legacy setting: true or false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    94
FASTDEBUG := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    95
# Legacy setting: debugging the class files?
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    96
DEBUG_CLASSFILES := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    97
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    98
# Some users still set EXTRA_*FLAGS on the make command line. Must
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
    99
# make sure to override that when building buildjdk.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   100
override EXTRA_CFLAGS :=
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   101
override EXTRA_CXXFLAGS :=
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   102
override EXTRA_LDFLAGS :=
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   103
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   104
# The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   105
# compiler that produces code that can be run on the build platform.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   106
HOSTCC := $(BUILD_CC)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   107
HOSTCXX := $(BUILD_CXX)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   108
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   109
# Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   110
PLATFORM := $(OPENJDK_BUILD_OS)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   111
# 32 or 64 bit
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   112
ARCH_DATA_MODEL := $(OPENJDK_BUILD_CPU_BITS)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   113
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   114
ALT_BOOTDIR := $(BOOT_JDK)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   115
# Yet another name for arch used for an extra subdir below the jvm lib.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   116
# Uses i386 and amd64, instead of x86 and x86_64.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   117
LIBARCH := @OPENJDK_BUILD_CPU_LEGACY_LIB@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   118
# Set the cpu architecture. Some users still set ARCH on the make command line. Must
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   119
# make sure to override that when building buildjdk.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   120
override ARCH := $(OPENJDK_BUILD_CPU_ARCH)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   121
# Legacy setting for building for a 64 bit machine.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   122
# If yes then this expands to _LP64 := 1
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   123
ifeq ($(OPENJDK_BUILD_CPU_BITS), 64)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   124
  _LP64 := 1
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   125
endif
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   126
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   127
ALT_OUTPUTDIR := $(HOTSPOT_OUTPUTDIR)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   128
ALT_EXPORT_PATH := $(HOTSPOT_DIST)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   129
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   130
JVM_INTERPRETER := @JVM_INTERPRETER@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   131
ifeq ($(JVM_INTERPRETER), cpp)
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   132
  CC_INTERP=true
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   133
endif
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   134
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   135
HOTSPOT_MAKE_ARGS := product docs export_product
37967
8dd54c3bf02a 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37402
diff changeset
   136
8dd54c3bf02a 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37402
diff changeset
   137
# Control wether Hotspot builds gtest tests
8dd54c3bf02a 8148244: Finalize and integrate GTest implementation
iignatyev
parents: 37402
diff changeset
   138
BUILD_GTEST := false
36506
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   139
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   140
USE_PRECOMPILED_HEADER := @USE_PRECOMPILED_HEADER@
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   141
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   142
# Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   143
# creation.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   144
FULL_DEBUG_SYMBOLS := 0
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   145
ZIP_DEBUGINFO_FILES := 0
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   146
# Disable stripping
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   147
STRIP_POLICY := none
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   148
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   149
JVM_VARIANTS := server
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   150
JVM_VARIANT_SERVER := true
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   151
JVM_VARIANT_CLIENT := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   152
JVM_VARIANT_MINIMAL1 := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   153
JVM_VARIANT_KERNEL := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   154
JVM_VARIANT_ZERO := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   155
JVM_VARIANT_ZEROSHARK := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   156
JVM_VARIANT_CORE := false
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   157
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   158
# Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   159
# This is needed to get the LOG setting to work properly.
17612cee3530 8142968: Module System implementation
alanb
parents:
diff changeset
   160
include $(SRC_ROOT)/make/common/MakeBase.gmk