18 # |
18 # |
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 # or visit www.oracle.com if you need additional information or have any |
20 # or visit www.oracle.com if you need additional information or have any |
21 # questions. |
21 # questions. |
22 # |
22 # |
|
23 # |
|
24 |
|
25 # |
|
26 # This file has been modified by Loongson Technology in 2015. These |
|
27 # modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 # available on the same license terms set forth above. |
23 # |
29 # |
24 |
30 |
25 # Rules to build JVM and related libraries, included from vm.make in the build |
31 # Rules to build JVM and related libraries, included from vm.make in the build |
26 # directory. |
32 # directory. |
27 |
33 |
97 ${BUILD_TARGET} \ |
103 ${BUILD_TARGET} \ |
98 ${BUILD_USER} \ |
104 ${BUILD_USER} \ |
99 ${HS_LIB_ARCH} \ |
105 ${HS_LIB_ARCH} \ |
100 ${VM_DISTRO} |
106 ${VM_DISTRO} |
101 |
107 |
|
108 ifeq ($(MIPS_ABI),n32) |
|
109 CXXFLAGS += -DN32 |
|
110 else |
|
111 ifeq ($(MIPS_ABI),n64) |
|
112 CXXFLAGS += -DN64 |
|
113 endif |
|
114 endif |
102 # This is VERY important! The version define must only be supplied to vm_version.o |
115 # This is VERY important! The version define must only be supplied to vm_version.o |
103 # If not, ccache will not re-use the cache at all, since the version string might contain |
116 # If not, ccache will not re-use the cache at all, since the version string might contain |
104 # a time and date. |
117 # a time and date. |
105 CXXFLAGS/vm_version.o += ${JRE_VERSION} |
118 CXXFLAGS/vm_version.o += ${JRE_VERSION} |
106 |
119 |
209 ifeq ($(Platform_arch_model), x86_32) |
222 ifeq ($(Platform_arch_model), x86_32) |
210 Src_Files_EXCLUDE += \*x86_64\* |
223 Src_Files_EXCLUDE += \*x86_64\* |
211 endif |
224 endif |
212 ifeq ($(Platform_arch_model), x86_64) |
225 ifeq ($(Platform_arch_model), x86_64) |
213 Src_Files_EXCLUDE += \*x86_32\* |
226 Src_Files_EXCLUDE += \*x86_32\* |
|
227 endif |
|
228 ifeq ($(Platform_arch_model), mips_32) |
|
229 Src_Files_EXCLUDE += \*mips_64\* |
|
230 endif |
|
231 ifeq ($(Platform_arch_model), mips_64) |
|
232 Src_Files_EXCLUDE += \*mips_32\* |
214 endif |
233 endif |
215 |
234 |
216 # Alternate vm.make |
235 # Alternate vm.make |
217 # This has to be included here to allow changes to the source |
236 # This has to be included here to allow changes to the source |
218 # directories and excluded files before they are expanded |
237 # directories and excluded files before they are expanded |