3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
22 #
23 # This make file will build mech_krb5.so.1. This shared object
24 # contains all the functionality needed to support the Kereros V5 GSS-API
25 # mechanism. No other Kerberos libraries are needed.
26 #
27
28 LIBRARY= mech_krb5.a
29 VERS = .1
30
31 FILEMODE= 755
32
33 # objects are listed by source directory
34 REL_PATH= ../
35
36 to_all: all
37
38 # crypto
39 CRYPTO = cksumtype_to_string.o \
40 coll_proof_cksum.o enctype_compare.o enctype_to_string.o \
41 keyed_checksum_types.o keyed_cksum.o \
42 make_random_key.o string_to_cksumtype.o \
245 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
246 -I$(SRC)/uts/common/gssapi/mechs/krb5/crypto/des
247
248 # KRB5_DEFS can be assigned various preprocessor flags, typically -D
249 # defines on the make invocation. These values will be appended to
250 # CPPFLAGS so the other flags in CPPFLAGS will not be overwritten.
251
252 CPPFLAGS += $(KRB5_DEFS)
253
254 CERRWARN += -_gcc=-Wno-unused-function
255 CERRWARN += -_gcc=-Wno-type-limits
256 CERRWARN += -_gcc=-Wno-uninitialized
257 CERRWARN += -_gcc=-Wno-parentheses
258 CERRWARN += -_gcc=-Wno-unused-variable
259 CERRWARN += -_gcc=-Wno-unused-but-set-variable
260 CERRWARN += -_gcc=-Wno-unused-label
261 CERRWARN += -_gcc=-Wno-unused-value
262 CERRWARN += -_gcc=-Wno-empty-body
263 CERRWARN += -_gcc=-Wno-address
264
265 MAPFILES = ../mapfile-vers
266
267 #CPPFLAGS += -D_REENTRANT
268 $(PICS) := CFLAGS += $(XFFLAG)
269 $(PICS) := CFLAGS64 += $(XFFLAG)
270 $(PICS) := CCFLAGS += $(XFFLAG)
271 $(PICS) := CCFLAGS64 += $(XFFLAG)
272
273 LIBS = $(DYNLIB) $(K5LIBLINK)
274
275 # override ROOTLIBDIR and ROOTLINKS
276 ROOTLIBDIR= $(ROOT)/usr/lib/gss
277 ROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)/gss
278
279 K5MECHLINK= $(K5LIBLINK:%=$(ROOT)/usr/lib/%)
280 K5MECHLINK64= $(K5LIBLINK:%=$(ROOT)/usr/lib/$(MACH64)/%)
281
282 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) $(K5MECHLINK)
283 ROOTLIBS64= $(LIBS:%=$(ROOTLIBDIR64)/%) $(K5MECHLINK64)
284
|
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
22 #
23 # Copyright (c) 2018, Joyent, Inc.
24 #
25 # This make file will build mech_krb5.so.1. This shared object
26 # contains all the functionality needed to support the Kereros V5 GSS-API
27 # mechanism. No other Kerberos libraries are needed.
28 #
29
30 LIBRARY= mech_krb5.a
31 VERS = .1
32
33 FILEMODE= 755
34
35 # objects are listed by source directory
36 REL_PATH= ../
37
38 to_all: all
39
40 # crypto
41 CRYPTO = cksumtype_to_string.o \
42 coll_proof_cksum.o enctype_compare.o enctype_to_string.o \
43 keyed_checksum_types.o keyed_cksum.o \
44 make_random_key.o string_to_cksumtype.o \
247 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
248 -I$(SRC)/uts/common/gssapi/mechs/krb5/crypto/des
249
250 # KRB5_DEFS can be assigned various preprocessor flags, typically -D
251 # defines on the make invocation. These values will be appended to
252 # CPPFLAGS so the other flags in CPPFLAGS will not be overwritten.
253
254 CPPFLAGS += $(KRB5_DEFS)
255
256 CERRWARN += -_gcc=-Wno-unused-function
257 CERRWARN += -_gcc=-Wno-type-limits
258 CERRWARN += -_gcc=-Wno-uninitialized
259 CERRWARN += -_gcc=-Wno-parentheses
260 CERRWARN += -_gcc=-Wno-unused-variable
261 CERRWARN += -_gcc=-Wno-unused-but-set-variable
262 CERRWARN += -_gcc=-Wno-unused-label
263 CERRWARN += -_gcc=-Wno-unused-value
264 CERRWARN += -_gcc=-Wno-empty-body
265 CERRWARN += -_gcc=-Wno-address
266
267 # needs work
268 SMATCH=off
269
270 MAPFILES = ../mapfile-vers
271
272 #CPPFLAGS += -D_REENTRANT
273 $(PICS) := CFLAGS += $(XFFLAG)
274 $(PICS) := CFLAGS64 += $(XFFLAG)
275 $(PICS) := CCFLAGS += $(XFFLAG)
276 $(PICS) := CCFLAGS64 += $(XFFLAG)
277
278 LIBS = $(DYNLIB) $(K5LIBLINK)
279
280 # override ROOTLIBDIR and ROOTLINKS
281 ROOTLIBDIR= $(ROOT)/usr/lib/gss
282 ROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)/gss
283
284 K5MECHLINK= $(K5LIBLINK:%=$(ROOT)/usr/lib/%)
285 K5MECHLINK64= $(K5LIBLINK:%=$(ROOT)/usr/lib/$(MACH64)/%)
286
287 ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) $(K5MECHLINK)
288 ROOTLIBS64= $(LIBS:%=$(ROOTLIBDIR64)/%) $(K5MECHLINK64)
289
|