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