author | jlaskey |
Fri, 26 Apr 2013 09:48:41 -0300 | |
changeset 17250 | e102b63819ad |
parent 16581 | b2cddec593f4 |
child 20640 | 66c24722698e |
child 20363 | fa7663fc5d50 |
child 22460 | 0273c023680c |
permissions | -rw-r--r-- |
13697 | 1 |
# |
2 |
# Copyright (c) 2011, 2012, 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 |
||
27 |
# Chaining of spec files |
|
28 |
HOTSPOT_SPEC:=$(dir $(SPEC))hotspot-spec.gmk |
|
29 |
override SPEC=$(HOTSPOT_SPEC) |
|
30 |
# Now include the base spec.gmk file |
|
31 |
include $(BASE_SPEC) |
|
32 |
||
33 |
# Additional legacy variables defined for Hotspot |
|
34 |
||
35 |
@SET_OPENJDK@ |
|
36 |
||
37 |
# Legacy defines controlled by the SUPPORT_HEADLESS and SUPPORT_HEADFUL options. |
|
38 |
@BUILD_HEADLESS@ |
|
39 |
||
40 |
# Legacy setting: OPT or DBG |
|
41 |
VARIANT:=@VARIANT@ |
|
42 |
# Legacy setting: true or false |
|
43 |
FASTDEBUG:=@FASTDEBUG@ |
|
44 |
# Legacy setting: debugging the class files? |
|
45 |
DEBUG_CLASSFILES:=@DEBUG_CLASSFILES@ |
|
46 |
||
47 |
ALT_CUPS_HEADERS_PATH:=$(patsubst -I%,%,$(filter -I%,@CUPS_CFLAGS@)) |
|
48 |
||
49 |
# The HOSTCC/HOSTCXX is Hotspot terminology for the BUILD_CC/BUILD_CXX, i.e. the |
|
50 |
# compiler that produces code that can be run on the build platform. |
|
14111 | 51 |
HOSTCC:=@FIXPATH@ @BUILD_CC@ |
52 |
HOSTCXX:=@FIXPATH@ @BUILD_CXX@ |
|
13697 | 53 |
|
54 |
#################################################### |
|
55 |
# |
|
56 |
# Legacy Hotspot support |
|
57 |
||
58 |
# If cross compiling, then define CROSS_COMPILE_ARCH:=cpu_name here. |
|
59 |
@DEFINE_CROSS_COMPILE_ARCH@ |
|
60 |
||
61 |
# Old name for OPENJDK_TARGET_OS (aix,bsd,hpux,linux,macosx,solaris,windows etc) |
|
62 |
PLATFORM=$(OPENJDK_TARGET_OS) |
|
63 |
# 32 or 64 bit |
|
64 |
ARCH_DATA_MODEL=$(OPENJDK_TARGET_CPU_BITS) |
|
65 |
||
66 |
ALT_BOOTDIR=$(BOOT_JDK) |
|
67 |
# Can be /sparcv9 or /amd64 on Solaris |
|
68 |
ISA_DIR=$(OPENJDK_TARGET_CPU_ISADIR) |
|
69 |
# Yet another name for arch used for an extra subdir below the jvm lib. |
|
70 |
# Uses i386 and amd64, instead of x86 and x86_64. |
|
71 |
LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB) |
|
72 |
# Old name for OPENJDK_TARGET_CPU, uses i586 and amd64, instead of x86 and x86_64. |
|
73 |
ARCH=$(OPENJDK_TARGET_CPU_LEGACY) |
|
74 |
# Legacy setting for building for a 64 bit machine. |
|
75 |
# If yes then this expands to _LP64:=1 |
|
76 |
@LP64@ |
|
77 |
||
16581
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
78 |
# Legacy settings for zero |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
79 |
ZERO_ENDIANNESS=$(OPENJDK_TARGET_CPU_ENDIAN) |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
80 |
ZERO_LIBARCH=$(OPENJDK_TARGET_CPU_LEGACY_LIB) |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
81 |
ZERO_ARCHDEF=@ZERO_ARCHDEF@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
82 |
ZERO_ARCHFLAG=@ZERO_ARCHFLAG@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
83 |
LIBFFI_CFLAGS=@LIBFFI_CFLAGS@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
84 |
LIBFFI_LIBS=@LIBFFI_LIBS@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
85 |
|
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
86 |
# Legacy settings for zeroshark |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
87 |
LLVM_CFLAGS=@LLVM_CFLAGS@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
88 |
LLVM_LIBS=@LLVM_LIBS@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
89 |
LLVM_LDFLAGS=@LLVM_LDFLAGS@ |
b2cddec593f4
8011388: Support building zero and zeroshark with the new build
omajid
parents:
15790
diff
changeset
|
90 |
|
13697 | 91 |
ALT_OUTPUTDIR=$(HOTSPOT_OUTPUTDIR) |
92 |
ALT_EXPORT_PATH=$(HOTSPOT_DIST) |
|
93 |
||
14111 | 94 |
HOTSPOT_MAKE_ARGS:=@HOTSPOT_MAKE_ARGS@ @STATIC_CXX_SETTING@ |
13697 | 95 |
# This is used from the libjvm build for C/C++ code. |
15790 | 96 |
HOTSPOT_BUILD_JOBS:=$(JOBS) |
13697 | 97 |
# Control wether Hotspot runs Queens test after building |
98 |
TEST_IN_BUILD=@TEST_IN_BUILD@ |
|
99 |
||
14111 | 100 |
# For hotspot, override compiler/tools definition to not include FIXPATH prefix. |
101 |
# Hotspot has its own handling on the Windows path situation. |
|
102 |
CXX:=@CCACHE@ @HOTSPOT_CXX@ |
|
103 |
LD:=@HOTSPOT_LD@ |
|
104 |
MT:=@HOTSPOT_MT@ |
|
105 |
RC:=@HOTSPOT_RC@ |
|
13697 | 106 |
|
107 |
EXTRA_CFLAGS=@LEGACY_EXTRA_CFLAGS@ |
|
108 |
EXTRA_CXXFLAGS=@LEGACY_EXTRA_CXXFLAGS@ |
|
109 |
EXTRA_LDFLAGS=@LEGACY_EXTRA_LDFLAGS@ |
|
14111 | 110 |
|
14460
10ce34aca00e
8001941: build-infra: --disable-precompiled-headers does not seem to work
tbell
parents:
14111
diff
changeset
|
111 |
USE_PRECOMPILED_HEADER=@USE_PRECOMPILED_HEADER@ |
10ce34aca00e
8001941: build-infra: --disable-precompiled-headers does not seem to work
tbell
parents:
14111
diff
changeset
|
112 |
|
14615
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
113 |
# Hotspot expects the variable FULL_DEBUG_SYMBOLS=1/0 to control debug symbols |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
114 |
# creation. |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
115 |
ifeq ($(ENABLE_DEBUG_SYMBOLS), true) |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
116 |
FULL_DEBUG_SYMBOLS=1 |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
117 |
# Ensure hotspot uses the objcopy that configure located |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
118 |
ALT_OBJCOPY:=$(OBJCOPY) |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
119 |
else |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
120 |
FULL_DEBUG_SYMBOLS=0 |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
121 |
endif |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
122 |
|
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
123 |
# Hotspot expects the variable ZIP_DEBUGINFO_FILES=1/0 and not true/false. |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
124 |
ifeq ($(ZIP_DEBUGINFO_FILES)$(ENABLE_DEBUG_SYMBOLS), truetrue) |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
125 |
ZIP_DEBUGINFO_FILES:=1 |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
126 |
endif |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
127 |
ifeq ($(ZIP_DEBUGINFO_FILES), false) |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
128 |
ZIP_DEBUGINFO_FILES:=0 |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
129 |
endif |
2616975e69d3
8001753: build-infra: mismatch with full debug symbol control for hotspot
erikj
parents:
14460
diff
changeset
|
130 |
|
14111 | 131 |
# Sneak this in via the spec.gmk file, since we don't want to mess around too much with the Hotspot make files. |
132 |
# This is needed to get the LOG setting to work properly. |
|
133 |
include $(SRC_ROOT)/common/makefiles/MakeBase.gmk |