annotate make/bsd/makefiles/defs.make @ 14518:d8041d695d19

Merged with jdk9/dev/hotspot changeset 3812c088b945
author twisti
date Tue, 11 Mar 2014 18:45:59 -0700
parents f509b8f4699b
children 4ca6dc0799b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
1 #
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8098
diff changeset
2 # Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
4 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
7 # published by the Free Software Foundation.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
8 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
13 # accompanied this code).
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
14 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
18 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
21 # questions.
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8098
diff changeset
22 #
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
23 #
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
24
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
25 # The common definitions for hotspot bsd builds.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
26 # Include the top level defs.make under make directory instead of this one.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
27 # This file is included into make/defs.make.
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
28
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
29 SLASH_JAVA ?= /java
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
30
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
31 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
32 ARCH:=$(shell uname -m)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
33 PATH_SEP = :
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
34 ifeq ($(LP64), 1)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
35 ARCH_DATA_MODEL ?= 64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
36 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
37 ARCH_DATA_MODEL ?= 32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
38 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
39
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
40 # zero
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
41 ifeq ($(findstring true, $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
42 ifeq ($(ARCH_DATA_MODEL), 64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
43 MAKE_ARGS += LP64=1
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
44 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
45 PLATFORM = bsd-zero
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
46 VM_PLATFORM = bsd_$(subst i386,i486,$(ZERO_LIBARCH))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
47 HS_ARCH = zero
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
48 ARCH = zero
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
49 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
50
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
51 # ia64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
52 ifeq ($(ARCH), ia64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
53 ARCH_DATA_MODEL = 64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
54 MAKE_ARGS += LP64=1
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
55 PLATFORM = bsd-ia64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
56 VM_PLATFORM = bsd_ia64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
57 HS_ARCH = ia64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
58 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
59
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
60 # sparc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
61 ifeq ($(ARCH), sparc64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
62 ifeq ($(ARCH_DATA_MODEL), 64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
63 ARCH_DATA_MODEL = 64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
64 MAKE_ARGS += LP64=1
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
65 PLATFORM = bsd-sparcv9
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
66 VM_PLATFORM = bsd_sparcv9
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
67 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
68 ARCH_DATA_MODEL = 32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
69 PLATFORM = bsd-sparc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
70 VM_PLATFORM = bsd_sparc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
71 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
72 HS_ARCH = sparc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
73 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
74
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
75 # amd64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
76 ifneq (,$(findstring $(ARCH), amd64 x86_64))
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
77 ifeq ($(ARCH_DATA_MODEL), 64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
78 ARCH_DATA_MODEL = 64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
79 MAKE_ARGS += LP64=1
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
80 PLATFORM = bsd-amd64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
81 VM_PLATFORM = bsd_amd64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
82 HS_ARCH = x86
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
83 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
84 ARCH_DATA_MODEL = 32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
85 PLATFORM = bsd-i586
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
86 VM_PLATFORM = bsd_i486
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
87 HS_ARCH = x86
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
88 # We have to reset ARCH to i386 since SRCARCH relies on it
9152
f36e073d56a4 7104565: trim jprt build targets
drchase
parents: 8098
diff changeset
89 ARCH = i386
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
90 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
91 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
92
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
93 # i386
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
94 ifeq ($(ARCH), i386)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
95 ifeq ($(ARCH_DATA_MODEL), 64)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
96 ARCH_DATA_MODEL = 64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
97 MAKE_ARGS += LP64=1
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
98 PLATFORM = bsd-amd64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
99 VM_PLATFORM = bsd_amd64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
100 HS_ARCH = x86
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
101 # We have to reset ARCH to amd64 since SRCARCH relies on it
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
102 ARCH = amd64
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
103 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
104 ARCH_DATA_MODEL = 32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
105 PLATFORM = bsd-i586
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
106 VM_PLATFORM = bsd_i486
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
107 HS_ARCH = x86
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
108 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
109 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
110
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
111 # ARM
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
112 ifeq ($(ARCH), arm)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
113 ARCH_DATA_MODEL = 32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
114 PLATFORM = bsd-arm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
115 VM_PLATFORM = bsd_arm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
116 HS_ARCH = arm
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
117 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
118
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
119 # PPC
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
120 ifeq ($(ARCH), ppc)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
121 ARCH_DATA_MODEL = 32
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
122 PLATFORM = bsd-ppc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
123 VM_PLATFORM = bsd_ppc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
124 HS_ARCH = ppc
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
125 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
126
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
127 # On 32 bit bsd we build server and client, on 64 bit just server.
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
128 ifeq ($(JVM_VARIANTS),)
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
129 ifeq ($(ARCH_DATA_MODEL), 32)
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
130 JVM_VARIANTS:=client,server
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
131 JVM_VARIANT_CLIENT:=true
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
132 JVM_VARIANT_SERVER:=true
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
133 else
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
134 JVM_VARIANTS:=server
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
135 JVM_VARIANT_SERVER:=true
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
136 endif
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
137 endif
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
138
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
139 OS_VENDOR:=$(shell uname -s)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
140
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
141 # determine if HotSpot is being built in JDK6 or earlier version
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
142 JDK6_OR_EARLIER=0
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
143 ifeq "$(shell expr \( '$(JDK_MAJOR_VERSION)' != '' \& '$(JDK_MINOR_VERSION)' != '' \& '$(JDK_MICRO_VERSION)' != '' \))" "1"
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
144 # if the longer variable names (newer build style) are set, then check those
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
145 ifeq "$(shell expr \( $(JDK_MAJOR_VERSION) = 1 \& $(JDK_MINOR_VERSION) \< 7 \))" "1"
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
146 JDK6_OR_EARLIER=1
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
147 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
148 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
149 # the longer variables aren't set so check the shorter variable names
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
150 ifeq "$(shell expr \( '$(JDK_MAJOR_VER)' = 1 \& '$(JDK_MINOR_VER)' \< 7 \))" "1"
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
151 JDK6_OR_EARLIER=1
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
152 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
153 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
154
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
155 ifeq ($(JDK6_OR_EARLIER),0)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
156 # Full Debug Symbols is supported on JDK7 or newer.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
157 # The Full Debug Symbols (FDS) default for BUILD_FLAVOR == product
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
158 # builds is enabled with debug info files ZIP'ed to save space. For
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
159 # BUILD_FLAVOR != product builds, FDS is always enabled, after all a
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
160 # debug build without debug info isn't very useful.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
161 # The ZIP_DEBUGINFO_FILES option only has meaning when FDS is enabled.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
162 #
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
163 # If you invoke a build with FULL_DEBUG_SYMBOLS=0, then FDS will be
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
164 # disabled for a BUILD_FLAVOR == product build.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
165 #
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
166 # Note: Use of a different variable name for the FDS override option
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
167 # versus the FDS enabled check is intentional (FULL_DEBUG_SYMBOLS
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
168 # versus ENABLE_FULL_DEBUG_SYMBOLS). For auto build systems that pass
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
169 # in options via environment variables, use of distinct variables
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
170 # prevents strange behaviours. For example, in a BUILD_FLAVOR !=
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
171 # product build, the FULL_DEBUG_SYMBOLS environment variable will be
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
172 # 0, but the ENABLE_FULL_DEBUG_SYMBOLS make variable will be 1. If
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
173 # the same variable name is used, then different values can be picked
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
174 # up by different parts of the build. Just to be clear, we only need
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
175 # two variable names because the incoming option value can be
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
176 # overridden in some situations, e.g., a BUILD_FLAVOR != product
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
177 # build.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
178
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
179 # Due to the multiple sub-make processes that occur this logic gets
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
180 # executed multiple times. We reduce the noise by at least checking that
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
181 # BUILD_FLAVOR has been set.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
182 ifneq ($(BUILD_FLAVOR),)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
183 ifeq ($(BUILD_FLAVOR), product)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
184 FULL_DEBUG_SYMBOLS ?= 1
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
185 ENABLE_FULL_DEBUG_SYMBOLS = $(FULL_DEBUG_SYMBOLS)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
186 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
187 # debug variants always get Full Debug Symbols (if available)
14518
d8041d695d19 Merged with jdk9/dev/hotspot changeset 3812c088b945
twisti
parents: 12859
diff changeset
188 ENABLE_FULL_DEBUG_SYMBOLS ?= 1
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
189 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
190 _JUNK_ := $(shell \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
191 echo >&2 "INFO: ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
192 # since objcopy is optional, we set ZIP_DEBUGINFO_FILES later
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
193
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
194 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
195 ifeq ($(OS_VENDOR), Darwin)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
196 # MacOS X doesn't use OBJCOPY or STRIP_POLICY
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
197 OBJCOPY=
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
198 STRIP_POLICY=
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
199 ZIP_DEBUGINFO_FILES ?= 1
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
200 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
201 # Default OBJCOPY comes from GNU Binutils on BSD
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
202 ifeq ($(CROSS_COMPILE_ARCH),)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
203 DEF_OBJCOPY=/usr/bin/objcopy
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
204 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
205 # Assume objcopy is part of the cross-compilation toolset
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
206 ifneq ($(ALT_COMPILER_PATH),)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
207 DEF_OBJCOPY=$(ALT_COMPILER_PATH)/objcopy
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
208 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
209 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
210 OBJCOPY=$(shell test -x $(DEF_OBJCOPY) && echo $(DEF_OBJCOPY))
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
211 ifneq ($(ALT_OBJCOPY),)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
212 _JUNK_ := $(shell echo >&2 "INFO: ALT_OBJCOPY=$(ALT_OBJCOPY)")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
213 OBJCOPY=$(shell test -x $(ALT_OBJCOPY) && echo $(ALT_OBJCOPY))
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
214 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
215
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
216 ifeq ($(OBJCOPY),)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
217 _JUNK_ := $(shell \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
218 echo >&2 "INFO: no objcopy cmd found so cannot create .debuginfo" \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
219 "files. You may need to set ALT_OBJCOPY.")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
220 ENABLE_FULL_DEBUG_SYMBOLS=0
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
221 _JUNK_ := $(shell \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
222 echo >&2 "INFO:" \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
223 "ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS)")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
224 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
225 _JUNK_ := $(shell \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
226 echo >&2 "INFO: $(OBJCOPY) cmd found so will create .debuginfo" \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
227 "files.")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
228
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
229 # Library stripping policies for .debuginfo configs:
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
230 # all_strip - strips everything from the library
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
231 # min_strip - strips most stuff from the library; leaves
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
232 # minimum symbols
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
233 # no_strip - does not strip the library at all
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
234 #
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
235 # Oracle security policy requires "all_strip". A waiver was
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
236 # granted on 2011.09.01 that permits using "min_strip" in the
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
237 # Java JDK and Java JRE.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
238 #
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
239 # Currently, STRIP_POLICY is only used when Full Debug Symbols
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
240 # is enabled.
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
241 #
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
242 STRIP_POLICY ?= min_strip
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
243
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
244 _JUNK_ := $(shell \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
245 echo >&2 "INFO: STRIP_POLICY=$(STRIP_POLICY)")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
246
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
247 ZIP_DEBUGINFO_FILES ?= 1
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
248 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
249
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
250 _JUNK_ := $(shell \
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
251 echo >&2 "INFO: ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES)")
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
252 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
253 endif # ENABLE_FULL_DEBUG_SYMBOLS=1
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
254 endif # BUILD_FLAVOR
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
255 endif # JDK_6_OR_EARLIER
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
256
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
257 JDK_INCLUDE_SUBDIR=bsd
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
258
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
259 # Library suffix
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
260 ifeq ($(OS_VENDOR),Darwin)
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
261 LIBRARY_SUFFIX=dylib
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
262 else
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
263 LIBRARY_SUFFIX=so
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
264 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
265
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
266 EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
267
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
268 # client and server subdirectories have symbolic links to ../libjsig.so
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
269 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.$(LIBRARY_SUFFIX)
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
270
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
271 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
272 ifeq ($(ZIP_DEBUGINFO_FILES),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
273 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
274 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
275 ifeq ($(OS_VENDOR), Darwin)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
276 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
277 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
278 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.debuginfo
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
279 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
280 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
281 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
282
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
283 EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
4846
e8a4934564b2 7125793: MAC: test_gamma should always work
phh
parents: 4006
diff changeset
284 EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client
6854
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 5946
diff changeset
285 EXPORT_MINIMAL_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/minimal
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
286
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
287 ifeq ($(findstring true, $(JVM_VARIANT_SERVER) $(JVM_VARIANT_ZERO) $(JVM_VARIANT_ZEROSHARK)), true)
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
288 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
289 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.$(LIBRARY_SUFFIX)
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
290
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
291 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
292 ifeq ($(ZIP_DEBUGINFO_FILES),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
293 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
294 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
295 ifeq ($(OS_VENDOR), Darwin)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
296 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
297 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
298 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.debuginfo
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
299 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
300 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
301 endif
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
302 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
303
5946
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
304 ifeq ($(JVM_VARIANT_CLIENT),true)
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
305 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
3d7ea1dbe0de 7141246: build-infra merge: Introduce new JVM_VARIANT* to control which kind of jvm gets built
erikj
parents: 5915
diff changeset
306 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.$(LIBRARY_SUFFIX)
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
307
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
308 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
309 ifeq ($(ZIP_DEBUGINFO_FILES),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
310 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
311 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
312 ifeq ($(OS_VENDOR), Darwin)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
313 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
314 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
315 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.debuginfo
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
316 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
317 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
318 endif
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
319 endif
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
320
6854
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 5946
diff changeset
321 ifeq ($(JVM_VARIANT_MINIMAL1),true)
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 5946
diff changeset
322 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/Xusage.txt
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 5946
diff changeset
323 EXPORT_LIST += $(EXPORT_MINIMAL_DIR)/libjvm.$(LIBRARY_SUFFIX)
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 5946
diff changeset
324 endif
fb19af007ffc 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 5946
diff changeset
325
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
326 # Serviceability Binaries
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
327 # No SA Support for PPC, IA64, ARM or zero
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
328 ADD_SA_BINARIES/x86 = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
329 $(EXPORT_LIB_DIR)/sa-jdi.jar
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
330
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
331 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
332 ifeq ($(ZIP_DEBUGINFO_FILES),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
333 ADD_SA_BINARIES/x86 += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
334 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
335 ifeq ($(OS_VENDOR), Darwin)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
336 ADD_SA_BINARIES/x86 += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
337 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
338 ADD_SA_BINARIES/x86 += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.debuginfo
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
339 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
340 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
341 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
342
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
343 ADD_SA_BINARIES/sparc = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
344 $(EXPORT_LIB_DIR)/sa-jdi.jar
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
345 ADD_SA_BINARIES/universal = $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX) \
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
346 $(EXPORT_LIB_DIR)/sa-jdi.jar
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
347
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
348 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
349 ifeq ($(ZIP_DEBUGINFO_FILES),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
350 ADD_SA_BINARIES/universal += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
351 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
352 ifeq ($(OS_VENDOR), Darwin)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
353 ADD_SA_BINARIES/universal += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
354 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
355 ADD_SA_BINARIES/universal += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.debuginfo
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
356 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
357 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
358 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
359
3960
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
360 ADD_SA_BINARIES/ppc =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
361 ADD_SA_BINARIES/ia64 =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
362 ADD_SA_BINARIES/arm =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
363 ADD_SA_BINARIES/zero =
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
364
f08d439fab8c 7089790: integrate bsd-port changes
never
parents:
diff changeset
365 EXPORT_LIST += $(ADD_SA_BINARIES/$(HS_ARCH))
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
366
4865
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
367 # Universal build settings
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
368 ifeq ($(OS_VENDOR), Darwin)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
369 # Build universal binaries by default on Mac OS X
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
370 MACOSX_UNIVERSAL = true
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
371 ifneq ($(ALT_MACOSX_UNIVERSAL),)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
372 MACOSX_UNIVERSAL = $(ALT_MACOSX_UNIVERSAL)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
373 endif
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
374 MAKE_ARGS += MACOSX_UNIVERSAL=$(MACOSX_UNIVERSAL)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
375
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
376 # Universal settings
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
377 ifeq ($(MACOSX_UNIVERSAL), true)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
378
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
379 # Set universal export path but avoid using ARCH or PLATFORM subdirs
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
380 EXPORT_PATH=$(OUTPUTDIR)/export-universal$(EXPORT_SUBDIR)
4886
64b46f975ab8 7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
phh
parents: 4865
diff changeset
381 ifneq ($(ALT_EXPORT_PATH),)
64b46f975ab8 7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
phh
parents: 4865
diff changeset
382 EXPORT_PATH=$(ALT_EXPORT_PATH)
64b46f975ab8 7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
phh
parents: 4865
diff changeset
383 endif
4006
436b4a3231bf 7098194: integrate macosx-port changes
dcubed
parents: 3960
diff changeset
384
4865
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
385 # Set universal image dir
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
386 JDK_IMAGE_DIR=$(OUTPUTDIR)/jdk-universal$(EXPORT_SUBDIR)
4940
f09ae3853e3b 7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents: 4886
diff changeset
387 ifneq ($(ALT_JDK_IMAGE_DIR),)
f09ae3853e3b 7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents: 4886
diff changeset
388 JDK_IMAGE_DIR=$(ALT_JDK_IMAGE_DIR)
f09ae3853e3b 7143766: add ALT_JDK_IMAGE_DIR and improve test_jdk
twisti
parents: 4886
diff changeset
389 endif
4865
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
390
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
391 # Binaries to 'universalize' if built
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
392 UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/libjsig.$(LIBRARY_SUFFIX)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
393 UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/libsaproc.$(LIBRARY_SUFFIX)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
394 UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/server/libjvm.$(LIBRARY_SUFFIX)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
395 UNIVERSAL_LIPO_LIST += $(EXPORT_JRE_LIB_DIR)/client/libjvm.$(LIBRARY_SUFFIX)
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
396
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
397 # Files to simply copy in place
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
398 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/server/Xusage.txt
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
399 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/client/Xusage.txt
12859
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
400 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
401 ifeq ($(ZIP_DEBUGINFO_FILES),1)
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
402 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/server/libjvm.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
403 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/client/libjvm.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
404 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/libjsig.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
405 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/libsaproc.diz
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
406 else
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
407 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/server/libjvm.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
408 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/client/libjvm.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
409 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/libjsig.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
410 UNIVERSAL_COPY_LIST += $(EXPORT_JRE_LIB_DIR)/libsaproc.$(LIBRARY_SUFFIX).dSYM
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
411 endif
f509b8f4699b 7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents: 9152
diff changeset
412 endif
4865
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
413
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
414 endif
481a9443f721 7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents: 4846
diff changeset
415 endif