author | ddehaven |
Wed, 18 Jun 2014 12:52:14 -0700 | |
changeset 25086 | f5f41ed620d5 |
parent 22951 | 5fd21112b2b6 |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
25086
f5f41ed620d5
8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents:
22951
diff
changeset
|
2 |
# Copyright (c) 2011, 2014, 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 |
25086
f5f41ed620d5
8043340: [macosx] Fix hard-wired paths to JavaVM.framework
ddehaven
parents:
22951
diff
changeset
|
133 |
BUILD_LIBKRB5_LIBS := \ |
22951
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, \ |
20547 | 150 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
151 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
152 |
LDFLAGS_SUFFIX := $(BUILD_LIBKRB5_LIBS), \ |
|
153 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
154 |
RC_FLAGS := $(RC_FLAGS) \ |
|
155 |
-D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \ |
|
156 |
-D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \ |
|
157 |
-D "JDK_FTYPE=0x2L", \ |
|
158 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libkrb5, \ |
|
159 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
160 |
||
161 |
BUILD_LIBRARIES += $(BUILD_LIBKRB5) |
|
162 |
endif |
|
163 |
endif |
|
164 |
||
165 |
########################################################################################## |
|
166 |
||
167 |
ifeq ($(OPENJDK_TARGET_OS), windows) |
|
168 |
||
169 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNMSCAPI, \ |
|
170 |
LIBRARY := sunmscapi, \ |
|
171 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
172 |
SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi, \ |
|
173 |
LANG := C++, \ |
|
174 |
OPTIMIZATION := LOW, \ |
|
175 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
176 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/mscapi, \ |
|
177 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK) \ |
|
178 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
179 |
LDFLAGS_SUFFIX := Crypt32.Lib advapi32.lib, \ |
|
180 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
181 |
RC_FLAGS := $(RC_FLAGS) \ |
|
182 |
-D "JDK_FNAME=sunmscapi.dll" \ |
|
183 |
-D "JDK_INTERNAL_NAME=sunmscapi" \ |
|
184 |
-D "JDK_FTYPE=0x2L", \ |
|
185 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunmscapi, \ |
|
186 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
187 |
||
188 |
BUILD_LIBRARIES += $(BUILD_LIBSUNMSCAPI) |
|
189 |
endif |
|
190 |
||
191 |
########################################################################################## |
|
192 |
||
193 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2PKCS11, \ |
|
194 |
LIBRARY := j2pkcs11, \ |
|
195 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
196 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
|
197 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
|
198 |
$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
|
199 |
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper, \ |
|
200 |
LANG := C, \ |
|
201 |
OPTIMIZATION := LOW, \ |
|
202 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
203 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11 \ |
|
204 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11 \ |
|
205 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/pkcs11/wrapper \ |
|
206 |
-I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/pkcs11/wrapper, \ |
|
21805 | 207 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2pkcs11/mapfile-vers, \ |
20547 | 208 |
LDFLAGS := $(LDFLAGS_JDKLIB) \ |
209 |
$(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
210 |
LDFLAGS_SUFFIX_posix := $(LIBDL), \ |
|
211 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
212 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
213 |
RC_FLAGS := $(RC_FLAGS) \ |
|
214 |
-D "JDK_FNAME=j2pkcs11.dll" \ |
|
215 |
-D "JDK_INTERNAL_NAME=j2pkcs11" \ |
|
216 |
-D "JDK_FTYPE=0x2L", \ |
|
217 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libj2pkcs11, \ |
|
218 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
219 |
||
220 |
BUILD_LIBRARIES += $(BUILD_LIBJ2PKCS11) |
|
221 |
||
222 |
########################################################################################## |
|
223 |
||
224 |
ifeq ($(ENABLE_INTREE_EC), yes) |
|
225 |
||
226 |
BUILD_LIBSUNEC_FLAGS := -I$(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
|
227 |
-I$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl |
|
228 |
||
229 |
# |
|
230 |
# On sol-sparc...all libraries are compiled with -xregs=no%appl |
|
231 |
# (set in CFLAGS_REQUIRED_sparc) |
|
232 |
# |
|
233 |
# except!!! libsunec.so |
|
234 |
# |
|
235 |
ECC_JNI_SOLSPARC_FILTER := |
|
236 |
ifeq ($(OPENJDK_TARGET_CPU_ARCH), sparc) |
|
237 |
ECC_JNI_SOLSPARC_FILTER := -xregs=no%appl |
|
238 |
endif |
|
239 |
||
240 |
$(eval $(call SetupNativeCompilation,BUILD_LIBSUNEC, \ |
|
241 |
LIBRARY := sunec, \ |
|
242 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
243 |
SRC := $(JDK_TOPDIR)/src/share/native/sun/security/ec \ |
|
244 |
$(JDK_TOPDIR)/src/share/native/sun/security/ec/impl, \ |
|
245 |
LANG := C++, \ |
|
246 |
OPTIMIZATION := LOW, \ |
|
247 |
CFLAGS := $(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CFLAGS_JDKLIB)) \ |
|
248 |
$(BUILD_LIBSUNEC_FLAGS) \ |
|
249 |
-DMP_API_COMPATIBLE -DNSS_ECC_MORE_THAN_SUITE_B, \ |
|
250 |
CXXFLAGS := $(filter-out $(ECC_JNI_SOLSPARC_FILTER), $(CXXFLAGS_JDKLIB)) \ |
|
251 |
$(BUILD_LIBSUNEC_FLAGS), \ |
|
21805 | 252 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libsunec/mapfile-vers, \ |
20547 | 253 |
LDFLAGS := $(LDFLAGS_JDKLIB) $(LDFLAGS_CXX_JDK), \ |
254 |
LDFLAGS_macosx := $(call SET_SHARED_LIBRARY_ORIGIN), \ |
|
255 |
LDFLAGS_SUFFIX := $(LIBCXX), \ |
|
256 |
LDFLAGS_SUFFIX_linux := -lc, \ |
|
257 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
258 |
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \ |
|
259 |
RC_FLAGS := $(RC_FLAGS) \ |
|
260 |
-D "JDK_FNAME=sunec.dll" \ |
|
261 |
-D "JDK_INTERNAL_NAME=sunec" \ |
|
262 |
-D "JDK_FTYPE=0x2L", \ |
|
263 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libsunec, \ |
|
264 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
265 |
||
266 |
BUILD_LIBRARIES += $(BUILD_LIBSUNEC) |
|
267 |
endif |
|
268 |
||
269 |
########################################################################################## |
|
270 |
||
271 |
ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
272 |
ifndef OPENJDK |
|
273 |
||
274 |
$(eval $(call SetupNativeCompilation,BUILD_LIBJ2UCRYPTO, \ |
|
275 |
LIBRARY := j2ucrypto, \ |
|
276 |
OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
|
277 |
SRC := $(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto, \ |
|
278 |
LANG := C, \ |
|
279 |
OPTIMIZATION := LOW, \ |
|
280 |
CFLAGS := $(CFLAGS_JDKLIB) \ |
|
281 |
-I$(JDK_TOPDIR)/src/closed/solaris/native/com/oracle/security/ucrypto, \ |
|
21805 | 282 |
MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2ucrypto/mapfile-vers, \ |
20547 | 283 |
LDFLAGS := $(LDFLAGS_JDKLIB), \ |
284 |
LDFLAGS_SUFFIX := $(LIBDL), \ |
|
285 |
LDFLAGS_SUFFIX_solaris := -lc, \ |
|
286 |
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/libj2ucrypto, \ |
|
287 |
DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES))) |
|
288 |
||
289 |
$(BUILD_LIBJ2UCRYPTO): $(BUILD_LIBJAVA) |
|
290 |
||
291 |
BUILD_LIBRARIES += $(BUILD_LIBJ2UCRYPTO) |
|
292 |
||
293 |
endif |
|
12892 | 294 |
endif |