buildjdk-spec.gmk.in revision 2359:decb36b58f99
1#
2# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# This code is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation.  Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
10#
11# This code is distributed in the hope that it will be useful, but WITHOUT
12# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14# version 2 for more details (a copy is included in the LICENSE file that
15# accompanied this code).
16#
17# You should have received a copy of the GNU General Public License version
18# 2 along with this work; if not, write to the Free Software Foundation,
19# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20#
21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22# or visit www.oracle.com if you need additional information or have any
23# questions.
24#
25
26# This spec file is used to compile a BUILD_JDK while cross compiling. The
27# BUILD_JDK runs on the build/host platform and is of the same version as
28# the main build.
29
30# First include the real base spec.gmk file
31include @SPEC@
32
33CC := @BUILD_CC@
34CXX := @BUILD_CXX@
35LD := @BUILD_LD@
36LDCXX := @BUILD_LDCXX@
37AS := @BUILD_AS@
38NM := @BUILD_NM@
39AR := @BUILD_AR@
40OBJCOPY := @BUILD_OBJCOPY@
41STRIP := @BUILD_STRIP@
42SYSROOT_CFLAGS := @BUILD_SYSROOT_CFLAGS@
43SYSROOT_LDFLAGS := @BUILD_SYSROOT_LDFLAGS@
44
45# These directories should not be moved to BUILDJDK_OUTPUTDIR
46HOTSPOT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_OUTPUTDIR))
47HOTSPOT_DIST := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(HOTSPOT_DIST))
48SUPPORT_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(SUPPORT_OUTPUTDIR))
49JDK_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(JDK_OUTPUTDIR))
50IMAGES_OUTPUTDIR := $(patsubst $(BUILD_OUTPUT)%,$(BUILDJDK_OUTPUTDIR)%,$(IMAGES_OUTPUTDIR))
51
52OPENJDK_BUILD_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
53OPENJDK_BUILD_CPU_LEGACY_LIB := @OPENJDK_BUILD_CPU_LEGACY_LIB@
54OPENJDK_BUILD_CPU_LIBDIR := @OPENJDK_BUILD_CPU_LIBDIR@
55OPENJDK_TARGET_CPU_LIBDIR := @OPENJDK_BUILD_CPU_LIBDIR@
56OPENJDK_TARGET_CPU := @OPENJDK_BUILD_CPU@
57OPENJDK_TARGET_CPU_ARCH := @OPENJDK_BUILD_CPU_ARCH@
58OPENJDK_TARGET_CPU_BITS := @OPENJDK_BUILD_CPU_BITS@
59OPENJDK_TARGET_CPU_ENDIAN := @OPENJDK_BUILD_CPU_ENDIAN@
60OPENJDK_TARGET_CPU_LEGACY := @OPENJDK_BUILD_CPU_LEGACY@
61
62HOTSPOT_TARGET_OS := @HOTSPOT_BUILD_OS@
63HOTSPOT_TARGET_OS_TYPE := @HOTSPOT_BUILD_OS_TYPE@
64HOTSPOT_TARGET_CPU := @HOTSPOT_BUILD_CPU@
65HOTSPOT_TARGET_CPU_ARCH := @HOTSPOT_BUILD_CPU_ARCH@
66HOTSPOT_TARGET_CPU_DEFINE := @HOTSPOT_BUILD_CPU_DEFINE@
67
68CFLAGS_JDKLIB := @OPENJDK_BUILD_CFLAGS_JDKLIB@
69CXXFLAGS_JDKLIB := @OPENJDK_BUILD_CXXFLAGS_JDKLIB@
70LDFLAGS_JDKLIB := @OPENJDK_BUILD_LDFLAGS_JDKLIB@
71CFLAGS_JDKEXE := @OPENJDK_BUILD_CFLAGS_JDKEXE@
72CXXFLAGS_JDKEXE := @OPENJDK_BUILD_CXXFLAGS_JDKEXE@
73LDFLAGS_JDKEXE := @OPENJDK_BUILD_LDFLAGS_JDKEXE@
74OPENJDK_TARGET_CPU_JLI_CFLAGS := @OPENJDK_BUILD_CPU_JLI_CFLAGS@
75
76JVM_CFLAGS := @OPENJDK_BUILD_JVM_CFLAGS@
77JVM_LDFLAGS := @OPENJDK_BUILD_JVM_LDFLAGS@
78JVM_ASFLAGS := @OPENJDK_BUILD_JVM_ASFLAGS@
79JVM_LIBS := @OPENJDK_BUILD_JVM_LIBS@
80
81# The compiler for the build platform is likely not warning compatible with the official
82# compiler.
83WARNINGS_AS_ERRORS := false
84DISABLE_WARNING_PREFIX := @BUILD_CC_DISABLE_WARNING_PREFIX@
85
86# Save speed and disk space by not enabling debug symbols for the buildjdk
87ENABLE_DEBUG_SYMBOLS := false
88
89# Control wether Hotspot builds gtest tests
90BUILD_GTEST := false
91
92JVM_VARIANTS := server