author | katleman |
Thu, 17 Apr 2014 10:14:07 -0700 | |
changeset 23965 | 987510c49ac7 |
parent 22951 | 5fd21112b2b6 |
child 25086 | f5f41ed620d5 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
16476
e269be167fae
8001334: Remove use of JVM_* functions from java.io code
dxu
parents:
15676
diff
changeset
|
2 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
4 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
10 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
15 |
# accompanied this code). |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
16 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
20 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
23 |
# questions. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
24 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
25 |
|
20547 | 26 |
LIBJAAS_MAPFILE := |
27 |
ifneq ($(OPENJDK_TARGET_OS), solaris) |
|
28 |
LIBJAAS_EXCLUDE_FILES := Solaris.c |
|
29 |
else |
|
30 |
# only on solaris...wonder why |
|
21805 | 31 |
LIBJAAS_MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjaas/mapfile-vers |
20547 | 32 |
endif |
33 |
||
34 |
LIBJAAS_NAME := jaas_unix |
|
35 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
36 |
LIBJAAS_NAME := jaas_nt |
|
37 |
endif |
|
38 |
||
39 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJAAS, \ |
|
40 |
LIBRARY := $(LIBJAAS_NAME), \ |
|
41 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
42 |
SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/com/sun/security/auth/module, \ |
|
43 |
LANG := C, \ |
|
44 |
OPTIMIZATION := LOW, \ |
|
45 |
CFLAGS := $(CFLAGS_JDKLIB), \ |
|
46 |
MAPFILE := $(LIBJAAS_MAPFILE), \ |
|
47 |
LDFLAGS := $(filter-out -ljava, $(LDFLAGS_JDKLIB)) \ |
|
48 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
49 |
LDFLAGS_windows := netapi32.lib user32.lib mpr.lib advapi32.lib, \ |
|
50 |
LDFLAGS_SUFFIX_windows := $(LDFLAGS_JDKLIB_SUFFIX), \ |
|
51 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
52 |
EXCLUDE_FILES := $(LIBJAAS_EXCLUDE_FILES), \ |
|
53 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
54 |
RC_FLAGS := $(RC_FLAGS) \ |
|
55 |
-D "JDK_FNAME=$(LIBJAAS_NAME).dll" \ |
|
56 |
-D "JDK_INTERNAL_NAME=$(LIBJAAS_NAME)" \ |
|
57 |
-D "JDK_FTYPE=0x2L", \ |
|
58 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libjaas, \ |
|
59 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
60 |
||
61 |
$(BUILD_LIBJAAS): $(BUILD_LIBJAVA) |
|
62 |
||
63 |
BUILD_LIBRARIES += $(BUILD_LIBJAAS) |
|
64 |
||
65 |
########################################################################################## |
|
66 |
||
67 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PCSC, \ |
|
68 |
LIBRARY := j2pcsc, \ |
|
69 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
70 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
|
71 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio, \ |
|
72 |
LANG := C, \ |
|
73 |
CFLAGS_posix := -D__sun_jdk, \ |
|
74 |
OPTIMIZATION := LOW, \ |
|
75 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
76 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/smartcardio \ |
|
77 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio \ |
|
78 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE, \ |
|
21805 | 79 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2pcsc/mapfile-vers, \ |
20547 | 80 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
81 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
82 |
LDFLAGS_SUFFIX_posix := $(LIBDL), \ |
|
83 |
LDFLAGS_SUFFIX_windows := winscard.lib, \ |
|
84 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
85 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
86 |
RC_FLAGS := $(RC_FLAGS) \ |
|
87 |
-D "JDK_FNAME=j2pcsc.dll" \ |
|
88 |
-D "JDK_INTERNAL_NAME=j2pcsc" \ |
|
89 |
-D "JDK_FTYPE=0x2L", \ |
|
90 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libj2pcsc, \ |
|
91 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
92 |
||
93 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC) |
|
94 |
||
95 |
########################################################################################## |
|
96 |
||
97 |
ifneq ($(OPENJDK_TARGET_OS), windows) |
|
98 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS, \ |
|
99 |
LIBRARY := j2gss, \ |
|
100 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
101 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
|
102 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper, \ |
|
103 |
LANG := C, \ |
|
104 |
OPTIMIZATION := LOW, \ |
|
105 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
106 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \ |
|
107 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper, \ |
|
21805 | 108 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2gss/mapfile-vers, \ |
20547 | 109 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
110 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
111 |
LDFLAGS_SUFFIX := $(LIBDL), \ |
|
112 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
113 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libj2gss, \ |
|
114 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
115 |
||
116 |
BUILD_LIBRARIES += $(BUILD_LIBJ2GSS) |
|
117 |
endif |
|
118 |
||
119 |
########################################################################################## |
|
120 |
||
121 |
ifneq ($(BUILD_CRYPTO), no) |
|
122 |
BUILD_LIBKRB5_NAME := |
|
123 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
124 |
BUILD_LIBKRB5_NAME := w2k_lsa_auth |
|
125 |
BUILD_LIBKRB5_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5 |
|
126 |
BUILD_LIBKRB5_LIBS := advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \ |
|
127 |
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \ |
|
128 |
ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib |
|
129 |
else ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
130 |
BUILD_LIBKRB5_NAME := osxkrb5 |
|
22951
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
131 |
BUILD_LIBKRB5_SRC := $(JDK_TOPDIR)/src/share/native/sun/security/krb5 \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
132 |
$(JDK_TOPDIR)/src/macosx/native/sun/security/krb5 |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
133 |
BUILD_LIBKRB5_LIBS := -F/System/Library/Frameworks/JavaVM.framework/Frameworks \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
134 |
-framework JavaNativeFoundation \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
135 |
-framework Cocoa \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
136 |
-framework SystemConfiguration \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
137 |
-framework Kerberos |
20547 | 138 |
endif |
139 |
||
140 |
ifneq ($(BUILD_LIBKRB5_NAME), ) |
|
141 |
$(eval $(call SetupNativeCompilation,BUILD_LIBKRB5, \ |
|
142 |
LIBRARY := $(BUILD_LIBKRB5_NAME), \ |
|
143 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
144 |
SRC := $(BUILD_LIBKRB5_SRC), \ |
|
145 |
LANG := C, \ |
|
146 |
OPTIMIZATION := LOW, \ |
|
147 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
22951
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
148 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/krb5, \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
149 |
CFLAGS_windows := -I$(JDK_TOPDIR)/src/windows/native/sun/security/krb5, \ |
5fd21112b2b6
8034043: Native methods for preferences API should not be in libjava
alanb
parents:
22607
diff
changeset
|
150 |
CFLAGS_macosx := -F/System/Library/Frameworks/JavaVM.framework/Frameworks, \ |
20547 | 151 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
152 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
153 |
LDFLAGS_SUFFIX := $(BUILD_LIBKRB5_LIBS), \ |
|
154 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
155 |
RC_FLAGS := $(RC_FLAGS) \ |
|
156 |
-D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \ |
|
157 |
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \ |
|
158 |
-D "JDK_FTYPE=0x2L", \ |
|
159 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libkrb5, \ |
|
160 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
161 |
||
162 |
BUILD_LIBRARIES += $(BUILD_LIBKRB5) |
|
163 |
endif |
|
164 |
endif |
|
165 |
||
166 |
########################################################################################## |
|
167 |
||
168 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
169 |
||
170 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI, \ |
|
171 |
LIBRARY := sunmscapi, \ |
|
172 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
173 |
SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi, \ |
|
174 |
LANG := C++, \ |
|
175 |
OPTIMIZATION := LOW, \ |
|
176 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
177 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi, \ |
|
178 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
|
179 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
180 |
LDFLAGS_SUFFIX := Crypt32.Lib advapi32.lib, \ |
|
181 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
182 |
RC_FLAGS := $(RC_FLAGS) \ |
|
183 |
-D "JDK_FNAME=sunmscapi.dll" \ |
|
184 |
-D "JDK_INTERNAL_NAME=sunmscapi" \ |
|
185 |
-D "JDK_FTYPE=0x2L", \ |
|
186 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunmscapi, \ |
|
187 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
188 |
||
189 |
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI) |
|
190 |
endif |
|
191 |
||
192 |
########################################################################################## |
|
193 |
||
194 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11, \ |
|
195 |
LIBRARY := j2pkcs11, \ |
|
196 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
197 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
|
198 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
|
199 |
$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
|
200 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper, \ |
|
201 |
LANG := C, \ |
|
202 |
OPTIMIZATION := LOW, \ |
|
203 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
204 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
|
205 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
|
206 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
|
207 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper, \ |
|
21805 | 208 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2pkcs11/mapfile-vers, \ |
20547 | 209 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
210 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
211 |
LDFLAGS_SUFFIX_posix := $(LIBDL), \ |
|
212 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
213 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
214 |
RC_FLAGS := $(RC_FLAGS) \ |
|
215 |
-D "JDK_FNAME=j2pkcs11.dll" \ |
|
216 |
-D "JDK_INTERNAL_NAME=j2pkcs11" \ |
|
217 |
-D "JDK_FTYPE=0x2L", \ |
|
218 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libj2pkcs11, \ |
|
219 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
220 |
||
221 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11) |
|
222 |
||
223 |
########################################################################################## |
|
224 |
||
225 |
ifeq ($(ENABLE_INTREE_EC), yes) |
|
226 |
||
227 |
BUILD_LIBSUNEC_FLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
|
228 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl |
|
229 |
||
230 |
# |
|
231 |
# On sol-sparc...all libraries are compiled with -xregs=no%appl |
|
232 |
# (set in CFLAGS_REQUIRED_sparc) |
|
233 |
# |
|
234 |
# except!!! libsunec.so |
|
235 |
# |
|
236 |
ECC_JNI_SOLSPARC_FILTER := |
|
237 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
238 |
ECC_JNI_SOLSPARC_FILTER := -xregs=no%appl |
|
239 |
endif |
|
240 |
||
241 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC, \ |
|
242 |
LIBRARY := sunec, \ |
|
243 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
244 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
|
245 |
$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \ |
|
246 |
LANG := C++, \ |
|
247 |
OPTIMIZATION := LOW, \ |
|
248 |
CFLAGS := $(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB)) \ |
|
249 |
$(BUILD_LIBSUNEC_FLAGS) \ |
|
250 |
-DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B, \ |
|
251 |
CXXFLAGS := $(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \ |
|
252 |
$(BUILD_LIBSUNEC_FLAGS), \ |
|
21805 | 253 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsunec/mapfile-vers, \ |
20547 | 254 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \ |
255 |
LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
256 |
LDFLAGS_SUFFIX := $(LIBCXX), \ |
|
257 |
LDFLAGS_SUFFIX_linux := -lc, \ |
|
258 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
259 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
260 |
RC_FLAGS := $(RC_FLAGS) \ |
|
261 |
-D "JDK_FNAME=sunec.dll" \ |
|
262 |
-D "JDK_INTERNAL_NAME=sunec" \ |
|
263 |
-D "JDK_FTYPE=0x2L", \ |
|
264 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunec, \ |
|
265 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
266 |
||
267 |
BUILD_LIBRARIES += $(BUILD_LIBSUNEC) |
|
268 |
endif |
|
269 |
||
270 |
########################################################################################## |
|
271 |
||
272 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
273 |
ifndef OPENJDK |
|
274 |
||
275 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO, \ |
|
276 |
LIBRARY := j2ucrypto, \ |
|
277 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
278 |
SRC := $(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto, \ |
|
279 |
LANG := C, \ |
|
280 |
OPTIMIZATION := LOW, \ |
|
281 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
282 |
-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto, \ |
|
21805 | 283 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2ucrypto/mapfile-vers, \ |
20547 | 284 |
LDFLAGS := $(LDFLAGS_JDKLIB), \ |
285 |
LDFLAGS_SUFFIX := $(LIBDL), \ |
|
286 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
287 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libj2ucrypto, \ |
|
288 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
289 |
||
290 |
$(BUILD_LIBJ2UCRYPTO): $(BUILD_LIBJAVA) |
|
291 |
||
292 |
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO) |
|
293 |
||
294 |
endif |
|
12892 | 295 |
endif |