Mercurial > hg > truffle
comparison build/linux/makefiles/defs.make @ 0:a61af66fc99e jdk7-b24
Initial load
author | duke |
---|---|
date | Sat, 01 Dec 2007 00:00:00 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a61af66fc99e |
---|---|
1 # | |
2 # Copyright 2006-2007 Sun Microsystems, Inc. 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. | |
8 # | |
9 # This code is distributed in the hope that it will be useful, but WITHOUT | |
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 # version 2 for more details (a copy is included in the LICENSE file that | |
13 # accompanied this code). | |
14 # | |
15 # You should have received a copy of the GNU General Public License version | |
16 # 2 along with this work; if not, write to the Free Software Foundation, | |
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 # | |
19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
20 # CA 95054 USA or visit www.sun.com if you need additional information or | |
21 # have any questions. | |
22 # | |
23 # | |
24 | |
25 # The common definitions for hotspot linux builds. | |
26 # Include the top level defs.make under make directory instead of this one. | |
27 # This file is included into make/defs.make. | |
28 | |
29 SLASH_JAVA ?= /java | |
30 | |
31 # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name | |
32 ARCH:=$(shell uname -m) | |
33 PATH_SEP = : | |
34 ifeq ($(LP64), 1) | |
35 ARCH_DATA_MODEL ?= 64 | |
36 else | |
37 ARCH_DATA_MODEL ?= 32 | |
38 endif | |
39 | |
40 # ia64 | |
41 ifeq ($(ARCH), ia64) | |
42 ARCH_DATA_MODEL = 64 | |
43 MAKE_ARGS += LP64=1 | |
44 PLATFORM = linux-ia64 | |
45 VM_PLATFORM = linux_ia64 | |
46 HS_ARCH = ia64 | |
47 endif | |
48 | |
49 # sparc | |
50 ifeq ($(ARCH), sparc64) | |
51 ifeq ($(ARCH_DATA_MODEL), 64) | |
52 ARCH_DATA_MODEL = 64 | |
53 MAKE_ARGS += LP64=1 | |
54 PLATFORM = linux-sparcv9 | |
55 VM_PLATFORM = linux_sparcv9 | |
56 else | |
57 ARCH_DATA_MODEL = 32 | |
58 PLATFORM = linux-sparc | |
59 VM_PLATFORM = linux_sparc | |
60 endif | |
61 HS_ARCH = sparc | |
62 endif | |
63 | |
64 # x86_64 | |
65 ifeq ($(ARCH), x86_64) | |
66 ifeq ($(ARCH_DATA_MODEL), 64) | |
67 ARCH_DATA_MODEL = 64 | |
68 MAKE_ARGS += LP64=1 | |
69 PLATFORM = linux-amd64 | |
70 VM_PLATFORM = linux_amd64 | |
71 HS_ARCH = x86 | |
72 else | |
73 ARCH_DATA_MODEL = 32 | |
74 PLATFORM = linux-i586 | |
75 VM_PLATFORM = linux_i486 | |
76 HS_ARCH = x86 | |
77 # We have to reset ARCH to i686 since SRCARCH relies on it | |
78 ARCH = i686 | |
79 endif | |
80 endif | |
81 | |
82 # i686 | |
83 ifeq ($(ARCH), i686) | |
84 ARCH_DATA_MODEL = 32 | |
85 PLATFORM = linux-i586 | |
86 VM_PLATFORM = linux_i486 | |
87 HS_ARCH = x86 | |
88 endif | |
89 | |
90 JDK_INCLUDE_SUBDIR=linux | |
91 | |
92 # FIXUP: The subdirectory for a debug build is NOT the same on all platforms | |
93 VM_DEBUG=jvmg | |
94 | |
95 EXPORT_LIST += $(EXPORT_DOCS_DIR)/platform/jvmti/jvmti.html | |
96 EXPORT_SERVER_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/server | |
97 EXPORT_LIST += $(EXPORT_SERVER_DIR)/Xusage.txt | |
98 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjsig.so | |
99 EXPORT_LIST += $(EXPORT_SERVER_DIR)/libjvm.so | |
100 ifeq ($(ARCH_DATA_MODEL), 32) | |
101 EXPORT_CLIENT_DIR = $(EXPORT_JRE_LIB_ARCH_DIR)/client | |
102 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/Xusage.txt | |
103 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjsig.so | |
104 EXPORT_LIST += $(EXPORT_CLIENT_DIR)/libjvm.so | |
105 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so | |
106 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar | |
107 else | |
108 ifeq ($(ARCH),ia64) | |
109 else | |
110 EXPORT_LIST += $(EXPORT_JRE_LIB_ARCH_DIR)/libsaproc.so | |
111 EXPORT_LIST += $(EXPORT_LIB_DIR)/sa-jdi.jar | |
112 endif | |
113 endif |