annotate make/linux/makefiles/defs.make @ 1015:23862fc517bb

6722084: JPRT make file doesn't create required symbolic link to libjvm.so Summary: Use -y zip option to preserve symbolic links. Reviewed-by: never, jcoomes, kamg
author kvn
date Wed, 14 Oct 2009 11:42:59 -0700
parents 354d3184f6b2
children c18cbe5936b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
196
d1605aabd0a1 6719955: Update copyright year
xdono
parents: 91
diff changeset
2 # Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
0
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
1010
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
40 # zero
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
41 ifeq ($(ZERO_BUILD), true)
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
42 ifeq ($(ARCH_DATA_MODEL), 64)
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
43 MAKE_ARGS += LP64=1
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
44 endif
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
45 PLATFORM = linux-zero
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
46 VM_PLATFORM = linux_$(subst i386,i486,$(ZERO_LIBARCH))
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
47 HS_ARCH = zero
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
48 ARCH = zero
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
49 endif
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
50
0
a61af66fc99e Initial load
duke
parents:
diff changeset
51 # ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
52 ifeq ($(ARCH), ia64)
a61af66fc99e Initial load
duke
parents:
diff changeset
53 ARCH_DATA_MODEL = 64
a61af66fc99e Initial load
duke
parents:
diff changeset
54 MAKE_ARGS += LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
55 PLATFORM = linux-ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
56 VM_PLATFORM = linux_ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
57 HS_ARCH = ia64
a61af66fc99e Initial load
duke
parents:
diff changeset
58 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
59
a61af66fc99e Initial load
duke
parents:
diff changeset
60 # sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
61 ifeq ($(ARCH), sparc64)
a61af66fc99e Initial load
duke
parents:
diff changeset
62 ifeq ($(ARCH_DATA_MODEL), 64)
a61af66fc99e Initial load
duke
parents:
diff changeset
63 ARCH_DATA_MODEL = 64
a61af66fc99e Initial load
duke
parents:
diff changeset
64 MAKE_ARGS += LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
65 PLATFORM = linux-sparcv9
a61af66fc99e Initial load
duke
parents:
diff changeset
66 VM_PLATFORM = linux_sparcv9
a61af66fc99e Initial load
duke
parents:
diff changeset
67 else
a61af66fc99e Initial load
duke
parents:
diff changeset
68 ARCH_DATA_MODEL = 32
a61af66fc99e Initial load
duke
parents:
diff changeset
69 PLATFORM = linux-sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
70 VM_PLATFORM = linux_sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
71 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
72 HS_ARCH = sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
73 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
74
a61af66fc99e Initial load
duke
parents:
diff changeset
75 # x86_64
a61af66fc99e Initial load
duke
parents:
diff changeset
76 ifeq ($(ARCH), x86_64)
a61af66fc99e Initial load
duke
parents:
diff changeset
77 ifeq ($(ARCH_DATA_MODEL), 64)
a61af66fc99e Initial load
duke
parents:
diff changeset
78 ARCH_DATA_MODEL = 64
a61af66fc99e Initial load
duke
parents:
diff changeset
79 MAKE_ARGS += LP64=1
a61af66fc99e Initial load
duke
parents:
diff changeset
80 PLATFORM = linux-amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
81 VM_PLATFORM = linux_amd64
a61af66fc99e Initial load
duke
parents:
diff changeset
82 HS_ARCH = x86
a61af66fc99e Initial load
duke
parents:
diff changeset
83 else
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 # We have to reset ARCH to i686 since SRCARCH relies on it
a61af66fc99e Initial load
duke
parents:
diff changeset
89 ARCH = i686
a61af66fc99e Initial load
duke
parents:
diff changeset
90 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
91 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 # i686
a61af66fc99e Initial load
duke
parents:
diff changeset
94 ifeq ($(ARCH), i686)
a61af66fc99e Initial load
duke
parents:
diff changeset
95 ARCH_DATA_MODEL = 32
a61af66fc99e Initial load
duke
parents:
diff changeset
96 PLATFORM = linux-i586
a61af66fc99e Initial load
duke
parents:
diff changeset
97 VM_PLATFORM = linux_i486
a61af66fc99e Initial load
duke
parents:
diff changeset
98 HS_ARCH = x86
a61af66fc99e Initial load
duke
parents:
diff changeset
99 endif
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 JDK_INCLUDE_SUBDIR=linux
a61af66fc99e Initial load
duke
parents:
diff changeset
102
a61af66fc99e Initial load
duke
parents:
diff changeset
103 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms
a61af66fc99e Initial load
duke
parents:
diff changeset
104 VM_DEBUG=jvmg
a61af66fc99e Initial load
duke
parents:
diff changeset
105
a61af66fc99e Initial load
duke
parents:
diff changeset
106 EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html
1015
23862fc517bb 6722084: JPRT make file doesn't create required symbolic link to libjvm.so
kvn
parents: 1010
diff changeset
107
23862fc517bb 6722084: JPRT make file doesn't create required symbolic link to libjvm.so
kvn
parents: 1010
diff changeset
108 # client and server subdirectories have symbolic links to ../libjsig.so
23862fc517bb 6722084: JPRT make file doesn't create required symbolic link to libjvm.so
kvn
parents: 1010
diff changeset
109 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libjsig.so
23862fc517bb 6722084: JPRT make file doesn't create required symbolic link to libjvm.so
kvn
parents: 1010
diff changeset
110
0
a61af66fc99e Initial load
duke
parents:
diff changeset
111 EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server
a61af66fc99e Initial load
duke
parents:
diff changeset
112 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt
a61af66fc99e Initial load
duke
parents:
diff changeset
113 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.so
1010
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
114 ifneq ($(ZERO_BUILD), true)
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
115 ifeq ($(ARCH_DATA_MODEL), 32)
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
116 EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
117 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
118 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.so
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
119 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
120 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
121 else
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
122 ifeq ($(ARCH),ia64)
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
123 else
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
124 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
125 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar
0
a61af66fc99e Initial load
duke
parents:
diff changeset
126 endif
1010
354d3184f6b2 6890308: integrate zero assembler hotspot changes
never
parents: 196
diff changeset
127 endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
128 endif