author | darcy |
Tue, 12 Nov 2019 10:45:23 -0800 | |
changeset 59037 | 3d2575331a41 |
parent 58908 | 73bb9c4002cc |
permissions | -rw-r--r-- |
37437 | 1 |
# |
58908
73bb9c4002cc
8233381: Update copyright year in build system files
ihse
parents:
53717
diff
changeset
|
2 |
# Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. |
37437 | 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 |
||
49553 | 26 |
$(eval $(call IncludeCustomExtension, hotspot/lib/JvmFlags.gmk)) |
37437 | 27 |
|
28 |
################################################################################ |
|
49553 | 29 |
# Setup JVM_CFLAGS. These are shared between GensrcDtrace.gmk and CompileJvm.gmk. |
37437 | 30 |
|
31 |
# This variable may be added to by a custom extension |
|
47217 | 32 |
JVM_SRC_ROOTS += $(TOPDIR)/src/hotspot |
37437 | 33 |
|
34 |
JVM_SRC_DIRS += $(call uniq, $(wildcard $(foreach d, $(JVM_SRC_ROOTS), \ |
|
47217 | 35 |
$d/share \ |
36 |
$d/os/$(HOTSPOT_TARGET_OS) \ |
|
37 |
$d/os/$(HOTSPOT_TARGET_OS_TYPE) \ |
|
38 |
$d/cpu/$(HOTSPOT_TARGET_CPU_ARCH) \ |
|
39 |
$d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH) \ |
|
37437 | 40 |
))) \ |
49553 | 41 |
$(JVM_VARIANT_OUTPUTDIR)/gensrc |
37437 | 42 |
# |
43 |
||
44 |
JVM_CFLAGS_INCLUDES += \ |
|
49553 | 45 |
$(patsubst %,-I%,$(JVM_SRC_DIRS)) \ |
47217 | 46 |
-I$(TOPDIR)/src/hotspot/share/precompiled \ |
48300
8a5edac3d5a2
8190484: Move jvm.h, jmm.h et al to hotspot/*/include
ihse
parents:
48111
diff
changeset
|
47 |
-I$(TOPDIR)/src/hotspot/share/include \ |
8a5edac3d5a2
8190484: Move jvm.h, jmm.h et al to hotspot/*/include
ihse
parents:
48111
diff
changeset
|
48 |
-I$(TOPDIR)/src/hotspot/os/$(HOTSPOT_TARGET_OS_TYPE)/include \ |
48355 | 49 |
-I$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ |
50 |
-I$(SUPPORT_OUTPUTDIR)/modules_include/java.base/$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \ |
|
48011 | 51 |
-I$(TOPDIR)/src/java.base/share/native/libjimage \ |
37437 | 52 |
# |
53 |
||
40010 | 54 |
# INCLUDE_SUFFIX_* is only meant for including the proper |
55 |
# platform files. Don't use it to guard code. Use the value of |
|
56 |
# HOTSPOT_TARGET_CPU_DEFINE etc. instead. |
|
43402
caa829a4272a
8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents:
42664
diff
changeset
|
57 |
# Remaining TARGET_ARCH_* is needed to select the cpu specific |
42664 | 58 |
# sources for 64-bit ARM ports (arm versus aarch64). |
37437 | 59 |
JVM_CFLAGS_TARGET_DEFINES += \ |
60 |
-DTARGET_ARCH_$(HOTSPOT_TARGET_CPU_ARCH) \ |
|
40010 | 61 |
-DINCLUDE_SUFFIX_OS=_$(HOTSPOT_TARGET_OS) \ |
62 |
-DINCLUDE_SUFFIX_CPU=_$(HOTSPOT_TARGET_CPU_ARCH) \ |
|
46560
388aa8d67c80
8181449: Fix debug.hpp / globalDefinitions.hpp dependency inversion
kbarrett
parents:
44411
diff
changeset
|
63 |
-DINCLUDE_SUFFIX_COMPILER=_$(HOTSPOT_TOOLCHAIN_TYPE) \ |
37437 | 64 |
-DTARGET_COMPILER_$(HOTSPOT_TOOLCHAIN_TYPE) \ |
65 |
-D$(HOTSPOT_TARGET_CPU_DEFINE) \ |
|
66 |
-DHOTSPOT_LIB_ARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' \ |
|
67 |
# |
|
68 |
||
69 |
ifeq ($(DEBUG_LEVEL), release) |
|
70 |
# For hotspot, release builds differ internally between "optimized" and "product" |
|
71 |
# in that "optimize" does not define PRODUCT. |
|
72 |
ifneq ($(HOTSPOT_DEBUG_LEVEL), optimized) |
|
73 |
JVM_CFLAGS_DEBUGLEVEL := -DPRODUCT |
|
74 |
endif |
|
75 |
else ifeq ($(DEBUG_LEVEL), fastdebug) |
|
76 |
JVM_CFLAGS_DEBUGLEVEL := -DASSERT |
|
53717
f09d78e1fbfe
8218736: Build warning in lib/JvmFlags.gmk: extraneous text after 'ifeq' directive
ihse
parents:
53683
diff
changeset
|
77 |
ifeq ($(call isTargetOs, windows aix), false) |
37437 | 78 |
# NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX. |
79 |
JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS |
|
80 |
endif |
|
81 |
else ifeq ($(DEBUG_LEVEL), slowdebug) |
|
82 |
# _NMT_NOINLINE_ informs NMT that no inlining is done by the compiler |
|
83 |
JVM_CFLAGS_DEBUGLEVEL := -DASSERT -D_NMT_NOINLINE_ |
|
84 |
endif |
|
85 |
||
86 |
JVM_CFLAGS += \ |
|
87 |
$(JVM_CFLAGS_DEBUGLEVEL) \ |
|
88 |
$(JVM_CFLAGS_TARGET_DEFINES) \ |
|
89 |
$(JVM_CFLAGS_FEATURES) \ |
|
90 |
$(JVM_CFLAGS_INCLUDES) \ |
|
91 |
$(EXTRA_CFLAGS) \ |
|
92 |
# |
|
93 |
||
94 |
# -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. |
|
43402
caa829a4272a
8004842: Unify values of boolean make variables set in configure to true/false
ihse
parents:
42664
diff
changeset
|
95 |
ifeq ($(USE_PRECOMPILED_HEADER), false) |
37437 | 96 |
JVM_CFLAGS += -DDONT_USE_PRECOMPILED_HEADER |
97 |
endif |
|
52734
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
49761
diff
changeset
|
98 |
|
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
49761
diff
changeset
|
99 |
ifneq ($(HOTSPOT_OVERRIDE_LIBPATH), ) |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
49761
diff
changeset
|
100 |
JVM_CFLAGS += -DOVERRIDE_LIBPATH='"$(HOTSPOT_OVERRIDE_LIBPATH)"' |
d537553ed639
8214332: Add a flag for overriding default JNI library search path
dholmes
parents:
49761
diff
changeset
|
101 |
endif |