annotate make/linux/makefiles/defs.make @ 158:a49545cab84a

6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles) Summary: Allows for building with SS12, no longer requires SS11, warns if not SS11 for now. Once SS12 is validated and performance measurements look ok, SS12 will be the validated compiler. Reviewed-by: sspitsyn, ikrylov
author ohair
date Tue, 27 May 2008 09:47:18 -0700
parents a294fd0c4b38
children d1605aabd0a1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
a61af66fc99e Initial load
duke
parents:
diff changeset
2 # Copyright 2006-2007 Sun Microsystems, Inc. All Rights Reserved.
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
a61af66fc99e Initial load
duke
parents:
diff changeset
19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
20 # CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
21 # have any questions.
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 # The common definitions for hotspot linux builds.
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # Include the top level defs.make under make directory instead of this one.
a61af66fc99e Initial load
duke
parents:
diff changeset
27 # This file is included into make/defs.make.
a61af66fc99e Initial load
duke
parents:
diff changeset
28
a61af66fc99e Initial load
duke
parents:
diff changeset
29 SLASH_JAVA ?= /java
a61af66fc99e Initial load
duke
parents:
diff changeset
30
a61af66fc99e Initial load
duke
parents:
diff changeset
31 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
a61af66fc99e Initial load
duke
parents:
diff changeset
32 ARCH:=$(shell uname -m)
a61af66fc99e Initial load
duke
parents:
diff changeset
33 PATH_SEP = :
a61af66fc99e Initial load
duke
parents:
diff changeset
34 ifeq ($(LP64), 1)
a61af66fc99e Initial load
duke
parents:
diff changeset
35 ARCH_DATA_MODEL ?= 64
a61af66fc99e Initial load
duke
parents:
diff changeset
36 else
a61af66fc99e Initial load
duke
parents:
diff changeset
37 ARCH_DATA_MODEL ?= 32
a61af66fc99e Initial load
duke
parents:
diff changeset
38 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
39
a61af66fc99e Initial load
duke
parents:
diff changeset
40 # ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
41 ifeq ($(ARCH), ia64)
a61af66fc99e Initial load
duke
parents:
diff changeset
42 ARCH_DATA_MODEL = 64
a61af66fc99e Initial load
duke
parents:
diff changeset
43 MAKE_ARGS += LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
44 PLATFORM = linux-ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
45 VM_PLATFORM = linux_ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
46 HS_ARCH = ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
47 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
48
a61af66fc99e Initial load
duke
parents:
diff changeset
49 # sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
50 ifeq ($(ARCH), sparc64)
a61af66fc99e Initial load
duke
parents:
diff changeset
51 ifeq ($(ARCH_DATA_MODEL), 64)
a61af66fc99e Initial load
duke
parents:
diff changeset
52 ARCH_DATA_MODEL = 64
a61af66fc99e Initial load
duke
parents:
diff changeset
53 MAKE_ARGS += LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
54 PLATFORM = linux-sparcv9
a61af66fc99e Initial load
duke
parents:
diff changeset
55 VM_PLATFORM = linux_sparcv9
a61af66fc99e Initial load
duke
parents:
diff changeset
56 else
a61af66fc99e Initial load
duke
parents:
diff changeset
57 ARCH_DATA_MODEL = 32
a61af66fc99e Initial load
duke
parents:
diff changeset
58 PLATFORM = linux-sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
59 VM_PLATFORM = linux_sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
60 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
61 HS_ARCH = sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
62 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 # x86_64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 ifeq ($(ARCH), x86_64)
a61af66fc99e Initial load
duke
parents:
diff changeset
66 ifeq ($(ARCH_DATA_MODEL), 64)
a61af66fc99e Initial load
duke
parents:
diff changeset
67 ARCH_DATA_MODEL = 64
a61af66fc99e Initial load
duke
parents:
diff changeset
68 MAKE_ARGS += LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
69 PLATFORM = linux-amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
70 VM_PLATFORM = linux_amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
71 HS_ARCH = x86
a61af66fc99e Initial load
duke
parents:
diff changeset
72 else
a61af66fc99e Initial load
duke
parents:
diff changeset
73 ARCH_DATA_MODEL = 32
a61af66fc99e Initial load
duke
parents:
diff changeset
74 PLATFORM = linux-i586
a61af66fc99e Initial load
duke
parents:
diff changeset
75 VM_PLATFORM = linux_i486
a61af66fc99e Initial load
duke
parents:
diff changeset
76 HS_ARCH = x86
a61af66fc99e Initial load
duke
parents:
diff changeset
77 # We have to reset ARCH to i686 since SRCARCH relies on it
a61af66fc99e Initial load
duke
parents:
diff changeset
78 ARCH = i686
a61af66fc99e Initial load
duke
parents:
diff changeset
79 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
80 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 # i686
a61af66fc99e Initial load
duke
parents:
diff changeset
83 ifeq ($(ARCH), i686)
a61af66fc99e Initial load
duke
parents:
diff changeset
84 ARCH_DATA_MODEL = 32
a61af66fc99e Initial load
duke
parents:
diff changeset
85 PLATFORM = linux-i586
a61af66fc99e Initial load
duke
parents:
diff changeset
86 VM_PLATFORM = linux_i486
a61af66fc99e Initial load
duke
parents:
diff changeset
87 HS_ARCH = x86
a61af66fc99e Initial load
duke
parents:
diff changeset
88 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
89
a61af66fc99e Initial load
duke
parents:
diff changeset
90 JDK_INCLUDE_SUBDIR=linux
a61af66fc99e Initial load
duke
parents:
diff changeset
91
a61af66fc99e Initial load
duke
parents:
diff changeset
92 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
a61af66fc99e Initial load
duke
parents:
diff changeset
93 VM_DEBUG=jvmg
a61af66fc99e Initial load
duke
parents:
diff changeset
94
a61af66fc99e Initial load
duke
parents:
diff changeset
95 EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
a61af66fc99e Initial load
duke
parents:
diff changeset
96 EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
a61af66fc99e Initial load
duke
parents:
diff changeset
97 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
a61af66fc99e Initial load
duke
parents:
diff changeset
98 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjsig.so
a61af66fc99e Initial load
duke
parents:
diff changeset
99 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.so
a61af66fc99e Initial load
duke
parents:
diff changeset
100 ifeq ($(ARCH_DATA_MODEL), 32)
a61af66fc99e Initial load
duke
parents:
diff changeset
101 EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client
a61af66fc99e Initial load
duke
parents:
diff changeset
102 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
a61af66fc99e Initial load
duke
parents:
diff changeset
103 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjsig.so
a61af66fc99e Initial load
duke
parents:
diff changeset
104 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.so
a61af66fc99e Initial load
duke
parents:
diff changeset
105 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
a61af66fc99e Initial load
duke
parents:
diff changeset
106 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
a61af66fc99e Initial load
duke
parents:
diff changeset
107 else
a61af66fc99e Initial load
duke
parents:
diff changeset
108 ifeq ($(ARCH),ia64)
a61af66fc99e Initial load
duke
parents:
diff changeset
109 else
a61af66fc99e Initial load
duke
parents:
diff changeset
110 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
a61af66fc99e Initial load
duke
parents:
diff changeset
111 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
a61af66fc99e Initial load
duke
parents:
diff changeset
112 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
113 endif