1# 2# CDDL HEADER START 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 28LIBRARY= mech_krb5.a 29VERS = .1 30 31FILEMODE= 755 32 33# objects are listed by source directory 34REL_PATH= ../ 35 36to_all: all 37 38# crypto 39CRYPTO = 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 \ 43 string_to_enctype.o string_to_key.o valid_cksumtype.o \ 44 valid_enctype.o pkcs11slot.o state.o pbkdf2.o old_api_glue.o \ 45 keylengths.o random_to_key.o 46 47CRYPTO_UTS= cksumtypes.o decrypt.o encrypt.o encrypt_length.o \ 48 etypes.o nfold.o verify_checksum.o default_state.o \ 49 prng.o block_size.o make_checksum.o checksum_length.o hmac.o \ 50 mandatory_sumtype.o combine_keys.o 51 52# crypto/raw 53CRYPTO_RAW= raw_decrypt.o raw_encrypt.o 54 55# crypto/des user space only 56CRYPTO_DES= afsstring2key.o string2key.o 57 58# crypto/des common to user and kernel space 59CRYPTO_DES_UTS= f_cbc.o f_cksum.o f_parity.o weak_key.o d3_cbc.o 60 61# crypto/arcfour user space only 62CRYPTO_ARCFOUR= arcfour_str2key.o 63 64# crypto/aes user space only 65CRYPTO_AES= aes_s2k.o 66 67# crypto/arcfour common to user and kernel space 68CRYPTO_ARCFOUR_UTS = k5_arcfour.o 69 70#crypto/dk 71CRYPTO_DK= stringtokey.o 72 73CRYPTO_DK_UTS= checksum.o derive.o dk_decrypt.o dk_encrypt.o 74 75# crypto/crc32 76CRYPTO_CRC32= crc.o 77 78# crypto/crc32 79CRYPTO_CRC32_UTS= crc32.o 80 81# crypto/md4 82CRYPTO_MD4= md4.o 83 84# crypto/enc_provider 85CRYPTO_ENC= des.o des3.o arcfour_provider.o aes_provider.o 86 87# crypto/hash_provider 88CRYPTO_HASH= hash_md5.o hash_sha1.o hash_ef_generic.o 89CRYPTO_HASH_UTS= hash_crc32.o 90 91# crypto/keyhash_provider 92CRYPTO_KEYHASH= k5_md5des.o hmac_md5.o 93CRYPTO_KEYHASH_UTS= descbc.o 94 95# crypto/old 96CRYPTO_OLD= des_stringtokey.o 97 98# crypto/old 99CRYPTO_OLD_UTS= old_encrypt.o old_decrypt.o 100 101# et error_tables 102ET= adb_err.o adm_err.o asn1_err.o chpass_util_strings.o error_message.o \ 103 com_err.o gssapi_err_generic.o import_err.o \ 104 gssapi_err_krb5.o kadm_err.o kdb5_err.o kpasswd_strings.o kdc5_err.o \ 105 krb5_err.o kv5m_err.o prof_err.o pty_err.o ss_err.o 106 107# krb5/asn.1 108K5_ASN1= asn1_decode.o asn1_k_decode.o asn1_encode.o \ 109 asn1_get.o asn1_make.o \ 110 asn1buf.o krb5_decode.o krb5_encode.o \ 111 asn1_k_encode.o asn1_misc.o ldap_key_seq.o 112 113# krb5/ccache 114K5_CC= cc_file.o cc_memory.o ccbase.o ccfns.o ccdefault.o ccdefops.o ser_cc.o cc_retr.o cccopy.o 115 116# krb5/keytab 117K5_KT= ktadd.o ktbase.o ktdefault.o ktfr_entry.o \ 118 ktremove.o read_servi.o kt_file.o kt_srvtab.o ktfns.o kt_findrealm.o \ 119 kt_solaris.o 120 121K5_KRB= addr_comp.o addr_order.o addr_srch.o \ 122 auth_con.o bld_pr_ext.o bld_princ.o chk_trans.o \ 123 conv_princ.o copy_addrs.o copy_creds.o copy_data.o copy_tick.o \ 124 cp_key_cnt.o decode_kdc.o decrypt_tk.o encode_kdc.o encrypt_tk.o \ 125 free_rtree.o fwd_tgt.o gc_frm_kdc.o gc_via_tkt.o gen_seqnum.o \ 126 gen_subkey.o get_creds.o get_in_tkt.o kdc_rep_dc.o mk_cred.o \ 127 mk_error.o mk_priv.o mk_rep.o mk_req.o mk_req_ext.o mk_safe.o \ 128 pr_to_salt.o princ_comp.o privacy_allowed.o rd_cred.o \ 129 rd_error.o rd_priv.o rd_rep.o rd_req.o rd_req_dec.o rd_safe.o \ 130 recvauth.o send_tgs.o sendauth.o srv_rcache.o str_conv.o \ 131 tgtname.o valid_times.o walk_rtree.o appdefault.o deltat.o \ 132 enc_helper.o gic_keytab.o gic_opt.o gic_pwd.o preauth2.o \ 133 preauth.o vfy_increds.o vic_opt.o set_realm.o krb5_libinit.o chpw.o \ 134 init_keyblock.o init_allocated_keyblock.o get_set_keyblock.o kerrs.o \ 135 getuid.o pac.o 136 137K5_KRB_UTS= copy_athctr.o copy_auth.o copy_cksum.o copy_key.o \ 138 copy_princ.o init_ctx.o kfree.o parse.o ser_actx.o \ 139 ser_adata.o ser_addr.o ser_auth.o \ 140 ser_cksum.o ser_ctx.o ser_key.o \ 141 ser_princ.o serialize.o unparse.o 142 143K5_OS= an_to_ln.o def_realm.o ccdefname.o free_krbhs.o free_hstrl.o \ 144 full_ipadr.o get_krbhst.o gen_port.o genaddrs.o gen_rname.o \ 145 gmt_mktime.o hostaddr.o hst_realm.o krbfileio.o \ 146 ktdefname.o kuserok.o mk_faddr.o localaddr.o locate_kdc.o lock_file.o \ 147 net_read.o net_write.o osconfig.o port2ip.o promptusr.o \ 148 read_msg.o read_pwd.o realm_dom.o sendto_kdc.o sn2princ.o \ 149 unlck_file.o ustime.o write_msg.o safechown.o \ 150 prompter.o realm_iter.o foreachaddr.o \ 151 dnsglue.o dnssrv.o thread_safe.o changepw.o accessor.o 152 153K5_OS_UTS=init_os_ctx.o timeofday.o toffset.o c_ustime.o 154 155K5_POSIX= setenv.o daemon.o 156 157K5_RCACHE=rc_base.o rc_file.o rc_mem.o rc_common.o rc_io.o rcdef.o rc_conv.o \ 158 ser_rc.o rcfns.o rc_none.o 159 160MECH= accept_sec_context.o store_cred.o \ 161 add_cred.o disp_com_err_status.o disp_major_status.o \ 162 compare_name.o context_time.o copy_ccache.o \ 163 disp_name.o disp_status.o export_sec_context.o \ 164 get_tkt_flags.o import_name.o indicate_mechs.o \ 165 inq_context.o inq_cred.o inq_names.o \ 166 krb5_gss_glue.o \ 167 pname_to_uid.o process_context_token.o \ 168 rel_buffer.o rel_oid.o rel_oid_set.o \ 169 rel_cred.o rel_name.o util_buffer.o \ 170 util_dup.o util_localhost.o \ 171 util_cksum.o acquire_cred.o init_sec_context.o \ 172 set_ccache.o acquire_cred_with_pw.o lucid_context.o \ 173 set_allowable_enctypes.o oid_ops.o export_name.o gss_libinit.o \ 174 util_buffer_set.o util_errmap.o 175 176MECH_UTS= delete_sec_context.o gssapi_krb5.o \ 177 import_sec_context.o k5seal.o k5sealv3.o \ 178 k5unseal.o seal.o ser_sctx.o \ 179 sign.o unseal.o util_crypt.o \ 180 util_ordering.o util_seed.o util_seqnum.o \ 181 util_set.o util_token.o util_validate.o \ 182 val_cred.o verify.o wrap_size_limit.o 183 184GSSAPI_UTS= gen_oids.o 185 186PROFILE_OBJS= prof_tree.o prof_file.o prof_parse.o prof_init.o \ 187 prof_set.o prof_get.o prof_solaris.o 188 189SUPPORT_OBJS= fake-addrinfo.o init-addrinfo.o threads.o errors.o plugins.o \ 190 utf8_conv.o utf8.o 191 192KWARN_OBJS= kwarnd_clnt_stubs.o kwarnd_clnt.o kwarnd_handle.o kwarnd_xdr.o 193 194OBJECTS= \ 195 $(MECH) $(MECH_UTS) $(GSSAPI_UTS)\ 196 $(SUPPORT_OBJS) \ 197 $(KWARN_OBJS) \ 198 $(PROFILE_OBJS) \ 199 $(CRYPTO) $(CRYPTO_UTS) \ 200 $(CRYPTO_CRC32) \ 201 $(CRYPTO_CRC32_UTS) \ 202 $(CRYPTO_DES) $(CRYPTO_DES_UTS) \ 203 $(CRYPTO_MD4) \ 204 $(CRYPTO_DK) $(CRYPTO_DK_UTS) \ 205 $(CRYPTO_ARCFOUR) $(CRYPTO_ARCFOUR_UTS) \ 206 $(CRYPTO_AES) \ 207 $(CRYPTO_ENC) \ 208 $(CRYPTO_HASH) $(CRYPTO_HASH_UTS) \ 209 $(CRYPTO_KEYHASH) $(CRYPTO_KEYHASH_UTS) \ 210 $(CRYPTO_OLD) $(CRYPTO_OLD_UTS) \ 211 $(CRYPTO_RAW) \ 212 $(ET) \ 213 $(K5_ASN1) \ 214 $(K5_CC) \ 215 $(K5_KT) \ 216 $(K5_KRB) $(K5_KRB_UTS) \ 217 $(K5_OS) $(K5_OS_UTS) \ 218 $(K5_POSIX) $(K5_RCACHE) 219 220# include library definitions 221include $(REL_PATH)/../../Makefile.lib 222 223# Must come after Makefile.lib so CPPFLAGS doesn't get overwritten 224include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5 225 226K5LIBLINK=$(LIBRARY:%.a=lib%.so) 227 228# override default text domain 229TEXT_DOMAIN= SUNW_OST_NETRPC 230INS.liblink2= -$(RM) $@; $(SYMLINK) gss/$(LIBLINKPATH)$(LIBLINKS) $@ 231 232CPPFLAGS += -I$(REL_PATH)/libgss -I../include \ 233 -I$(SRC)/uts/common/gssapi \ 234 -I$(SRC)/uts/common/gssapi/include \ 235 -I$(SRC)/lib/gss_mechs/mech_krb5/mech \ 236 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \ 237 -I../include/krb5 \ 238 -I../krb5/keytab \ 239 -I../krb5/krb \ 240 -I../krb5/os \ 241 -I../krb5/ccache \ 242 -I../krb5/rcache \ 243 -I$(SRC)/lib/krb5 \ 244 -I$(SRC)/lib/krb5/kadm5 \ 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 252CPPFLAGS += $(KRB5_DEFS) 253 254CERRWARN += -_gcc=-Wno-unused-function 255CERRWARN += -_gcc=-Wno-type-limits 256CERRWARN += -_gcc=-Wno-uninitialized 257CERRWARN += -_gcc=-Wno-parentheses 258CERRWARN += -_gcc=-Wno-unused-variable 259CERRWARN += -_gcc=-Wno-unused-label 260CERRWARN += -_gcc=-Wno-unused-value 261CERRWARN += -_gcc=-Wno-empty-body 262CERRWARN += -_gcc=-Wno-address 263 264MAPFILE_EXPORT = ../mapfile-vers-clean 265$(EXPORT_RELEASE_BUILD)MAPFILE_EXPORT = \ 266 $(CLOSED)/lib/gss_mechs/mech_krb5/mapfile-vers-export 267MAPFILES = ../mapfile-vers $(MAPFILE_EXPORT) 268 269$(EXPORT_RELEASE_BUILD)include $(CLOSED)/lib/gss_mechs/mech_krb5/Makefile.export 270 271#CPPFLAGS += -D_REENTRANT 272$(PICS) := CFLAGS += $(XFFLAG) 273$(PICS) := CFLAGS64 += $(XFFLAG) 274$(PICS) := CCFLAGS += $(XFFLAG) 275$(PICS) := CCFLAGS64 += $(XFFLAG) 276 277LIBS = $(DYNLIB) $(K5LIBLINK) 278 279# override ROOTLIBDIR and ROOTLINKS 280ROOTLIBDIR= $(ROOT)/usr/lib/gss 281ROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)/gss 282 283K5MECHLINK= $(K5LIBLINK:%=$(ROOT)/usr/lib/%) 284K5MECHLINK64= $(K5LIBLINK:%=$(ROOT)/usr/lib/$(MACH64)/%) 285 286ROOTLIBS= $(LIBS:%=$(ROOTLIBDIR)/%) $(K5MECHLINK) 287ROOTLIBS64= $(LIBS:%=$(ROOTLIBDIR64)/%) $(K5MECHLINK64) 288 289$(ROOTLIBDIR) $(ROOTLIBDIR64): 290 $(INS.dir) 291 292# create libmech_krb5 link locally 293$(K5LIBLINK): $(DYNLIB) 294 -$(RM) $@; $(SYMLINK) $(DYNLIB) $@ 295 296# create libmech_krb5 link in $ROOT/usr/lib/gss/ 297$(ROOTLIBDIR)/$(K5LIBLINK): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS) 298 $(INS.liblink) 299 300# create libmech_krb5 link in $ROOT/usr/lib/$(MACH64)/gss 301$(ROOTLIBDIR64)/$(K5LIBLINK): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS) 302 $(INS.liblink) 303 304# create libmech_krb5 link in ROOT/usr/lib 305$(K5MECHLINK): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS) 306 $(INS.liblink2) 307 308# create libmech_krb5 link in ROOT/usr/lib/$(MACH64) 309$(K5MECHLINK64): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS) 310 $(INS.liblink2) 311 312LDLIBS += -lgss -lsocket -lresolv -lc -lpkcs11 -lnsl -lkstat 313# -z ignore causes linker to ignore unneeded dependencies. This is 314# needed because -lnsl is only used if DEBUG is defined. 315DYNFLAGS += $(ZIGNORE) 316 317# mech lib needs special initialization at load time 318DYNFLAGS += -zinitarray=krb5_ld_init 319 320objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/%.c 321 $(COMPILE.c) -o $@ $< 322 $(POST_PROCESS_O) 323 324objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/mech/%.c 325 $(COMPILE.c) -o $@ $< 326 $(POST_PROCESS_O) 327 328objs/%.o pics/%.o: $(SRC)/lib/gss_mechs/mech_krb5/mech/%.c 329 $(COMPILE.c) -o $@ $< 330 $(POST_PROCESS_O) 331 332objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/%.c 333 $(COMPILE.c) -o $@ $< 334 $(POST_PROCESS_O) 335 336objs/%.o pics/%.o: $(REL_PATH)/crypto/%.c 337 $(COMPILE.c) -o $@ $< 338 $(POST_PROCESS_O) 339 340objs/%.o pics/%.o: $(REL_PATH)/crypto/md4/%.c 341 $(COMPILE.c) -o $@ $< 342 $(POST_PROCESS_O) 343 344objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/des/%.c 345 $(COMPILE.c) -o $@ $< 346 $(POST_PROCESS_O) 347 348objs/%.o pics/%.o: $(REL_PATH)/crypto/des/%.c 349 $(COMPILE.c) -o $@ $< 350 $(POST_PROCESS_O) 351 352objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/arcfour/%.c 353 $(COMPILE.c) -o $@ $< 354 $(POST_PROCESS_O) 355 356objs/%.o pics/%.o: $(REL_PATH)/crypto/arcfour/%.c 357 $(COMPILE.c) -o $@ $< 358 $(POST_PROCESS_O) 359 360objs/%.o pics/%.o: $(REL_PATH)/crypto/aes/%.c 361 $(COMPILE.c) -o $@ $< 362 $(POST_PROCESS_O) 363 364objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/dk/%.c 365 $(COMPILE.c) -o $@ $< 366 $(POST_PROCESS_O) 367 368objs/%.o pics/%.o: $(REL_PATH)/crypto/dk/%.c 369 $(COMPILE.c) -o $@ $< 370 $(POST_PROCESS_O) 371 372objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/raw/%.c 373 $(COMPILE.c) -o $@ $< 374 $(POST_PROCESS_O) 375 376objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/crc32/%.c 377 $(COMPILE.c) -o $@ $< 378 $(POST_PROCESS_O) 379 380objs/%.o pics/%.o: $(REL_PATH)/crypto/crc32/%.c 381 $(COMPILE.c) -o $@ $< 382 $(POST_PROCESS_O) 383 384objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/sha1/%.c 385 $(COMPILE.c) -o $@ $< 386 $(POST_PROCESS_O) 387 388objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/enc_provider/%.c 389 $(COMPILE.c) -o $@ $< 390 $(POST_PROCESS_O) 391 392objs/%.o pics/%.o: $(REL_PATH)/crypto/hash_provider/%.c 393 $(COMPILE.c) -o $@ $< 394 $(POST_PROCESS_O) 395 396objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/hash_provider/%.c 397 $(COMPILE.c) -o $@ $< 398 $(POST_PROCESS_O) 399 400objs/%.o pics/%.o: $(REL_PATH)/crypto/keyhash_provider/%.c 401 $(COMPILE.c) -o $@ $< 402 $(POST_PROCESS_O) 403 404objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/%.c 405 $(COMPILE.c) -o $@ $< 406 $(POST_PROCESS_O) 407 408objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/old/%.c 409 $(COMPILE.c) -o $@ $< 410 $(POST_PROCESS_O) 411 412objs/%.o pics/%.o: $(REL_PATH)/crypto/old/%.c 413 $(COMPILE.c) -o $@ $< 414 $(POST_PROCESS_O) 415 416objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/crypto/os/%.c 417 $(COMPILE.c) -o $@ $< 418 $(POST_PROCESS_O) 419 420objs/%.o pics/%.o: $(REL_PATH)/crypto/sha1/%.c 421 $(COMPILE.c) -o $@ $< 422 $(POST_PROCESS_O) 423 424objs/%.o pics/%.o: $(REL_PATH)/et/%.c 425 $(COMPILE.c) -o $@ $< 426 $(POST_PROCESS_O) 427 428objs/%.o pics/%.o: $(REL_PATH)/krb5/asn.1/%.c 429 $(COMPILE.c) -o $@ $< 430 $(POST_PROCESS_O) 431 432objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/%.c 433 $(COMPILE.c) -o $@ $< 434 $(POST_PROCESS_O) 435 436objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/file/%.c 437 $(COMPILE.c) -o $@ $< 438 $(POST_PROCESS_O) 439 440objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/stdio/%.c 441 $(COMPILE.c) -o $@ $< 442 $(POST_PROCESS_O) 443 444objs/%.o pics/%.o: $(REL_PATH)/krb5/ccache/memory/%.c 445 $(COMPILE.c) -o $@ $< 446 $(POST_PROCESS_O) 447 448objs/%.o pics/%.o: $(REL_PATH)/krb5/keytab/%.c 449 $(COMPILE.c) -o $@ $< 450 $(POST_PROCESS_O) 451 452objs/%.o pics/%.o: $(REL_PATH)/krb5/keytab/file/%.c 453 $(COMPILE.c) -o $@ $< 454 $(POST_PROCESS_O) 455 456objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/krb5/krb/%.c 457 $(COMPILE.c) -o $@ $< 458 $(POST_PROCESS_O) 459 460objs/%.o pics/%.o: $(REL_PATH)/krb5/krb/%.c 461 $(COMPILE.c) -o $@ $< 462 $(POST_PROCESS_O) 463 464objs/%.o pics/%.o: $(SRC)/uts/common/gssapi/mechs/krb5/krb5/os/%.c 465 $(COMPILE.c) -o $@ $< 466 $(POST_PROCESS_O) 467 468objs/%.o pics/%.o: $(REL_PATH)/krb5/os/%.c 469 $(COMPILE.c) -o $@ $< 470 $(POST_PROCESS_O) 471 472objs/%.o pics/%.o: $(REL_PATH)/krb5/posix/%.c 473 $(COMPILE.c) -o $@ $< 474 $(POST_PROCESS_O) 475 476objs/%.o pics/%.o: $(REL_PATH)/krb5/rcache/%.c 477 $(COMPILE.c) -o $@ $< 478 $(POST_PROCESS_O) 479 480objs/%.o pics/%.o: $(REL_PATH)/profile/%.c 481 $(COMPILE.c) -o $@ $< 482 $(POST_PROCESS_O) 483 484objs/%.o pics/%.o: $(REL_PATH)/support/%.c 485 $(COMPILE.c) -o $@ $< 486 $(POST_PROCESS_O) 487 488# include library targets 489include $(REL_PATH)/../../Makefile.targ 490# We need to include all CPPFLAGS for the files since we are using 491# the macro to expand and they are not aware of flags yet .. ugh.. 492 493OS_FLAGS = -DHAVE_LIBSOCKET -DHAVE_LIBNSL -DTIME_WITH_SYS_TIME \ 494 -DHAVE_UNISTD_H -DHAVE_SYS_TIME_H -DHAVE_REGEX_H \ 495 -DHAVE_REGEXP_H -DHAVE_RE_COMP -DHAVE_REGCOMP \ 496 -DPOSIX_TYPES -DNDBM \ 497 -DHAVE_STDLIB_H -DHAVE_STDARG_H -DHAVE_SYS_TYPES_H \ 498 -DHAVE_NETINET_IN_H -DHAVE_SRAND48 \ 499 -DHAVE_SRAND -DHAVE_SRANDOM -DHAVE_GETPID \ 500 -DHAVE_ERRNO -DHAVE_STRFTIME -DHAVE_STRPTIME -DHAVE_STRERROR \ 501 -DHAVE_STAT -DSIZEOF_INT=4 -DPROVIDE_KERNEL_IMPORT \ 502 -DHAVE_STDINT_H -DPOSIX_SIGNALS -DHAVE_GETENV -DHAVE_SETENV \ 503 -DHAVE_UNSETENV -DHAVE_FCHMOD -DHAVE_STRUCT_LIFCONF \ 504 -DHAVE_VASPRINTF -DHAVE_RES_NINIT -DHAVE_RES_NDESTROY \ 505 -DHAVE_RES_NSEARCH 506 507CPPFLAGS += -I$(REL_PATH)krb5/ccache/file $(OS_FLAGS) 508 509SOURCES= \ 510 $(CRYPTO_OS_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/os/%.c)\ 511 $(K5_OS_UTS:%.o=$(SRC)/uts/common/gssapi/mechs/krb5/krb5/os/%.c) \ 512 $(K5_OS:%.o=$(SRC)/lib/gss_mechs/mech_krb5/krb5/os/%.c) \ 513 $(CRYPTO:%.o=$(SRC)/lib/gss_mechs/mech_krb5/crypto/%.c) \ 514 $(CRYPTO_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/%.c)\ 515 $(CRYPTO_RAW:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/raw/%.c)\ 516 $(CRYPTO_DES:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/des/%.c)\ 517 $(CRYPTO_DES_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/des/%.c)\ 518 $(CRYPTO_ARCFOUR:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/arcfour/%.c)\ 519 $(CRYPTO_ARCFOUR_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/arcfour/%.c)\ 520 $(CRYPTO_AES:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/aes/%.c)\ 521 $(CRYPTO_DK:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/dk/%.c)\ 522 $(CRYPTO_DK_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/dk/%.c)\ 523 $(CRYPTO_CRC32:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/crc32/%.c)\ 524 $(CRYPTO_MD4:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/md4/%.c)\ 525 $(CRYPTO_CRC32_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/crc32/%.c)\ 526 $(CRYPTO_ENC:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/enc_provider/%.c)\ 527 $(CRYPTO_HASH:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/hash_provider/%.c)\ 528 $(CRYPTO_HASH_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/hash_provider/%.c)\ 529 $(CRYPTO_KEYHASH:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/%.c)\ 530 $(CRYPTO_KEYHASH_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/%.c)\ 531 $(CRYPTO_OLD:%.o= $(SRC)/lib/gss_mechs/mech_krb5/crypto/old/%.c)\ 532 $(CRYPTO_OLD_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/crypto/old/%.c)\ 533 $(ET:%.o= $(SRC)/lib/gss_mechs/mech_krb5/et/%.c) \ 534 $(K5_ASN1:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/asn.1/%.c) \ 535 $(K5_CC:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/ccache/%.c) \ 536 $(K5_KT:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/keytab/%.c) \ 537 $(K5_KRB:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/krb/%.c)\ 538 $(K5_KRB_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/krb5/krb/%.c)\ 539 $(K5_OS:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/os/%.c)\ 540 $(K5_OS_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/krb5/os/%.c)\ 541 $(K5_POSIX:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/posix/%.c)\ 542 $(K5_RCACHE:%.o= $(SRC)/lib/gss_mechs/mech_krb5/krb5/rcache/%.c) \ 543 $(MECH:%.o= $(SRC)/lib/gss_mechs/mech_krb5/mech/%.c) \ 544 $(MECH_UTS:%.o= $(SRC)/uts/common/gssapi/mechs/krb5/mech/%.c) \ 545 $(GSSAPI_UTS:%.o= $(SRC)/uts/common/gssapi/%.c) \ 546 $(PROFILE_OBJS:%.o= $(SRC)/lib/gss_mechs/mech_krb5/profile/%.c) \ 547 $(SUPPORT_OBJS:%.o= $(SRC)/lib/gss_mechs/mech_krb5/support/%.c) 548 549kwarnd.h: $(SRC)/cmd/krb5/kwarn/kwarnd.x 550 $(RM) $@ 551 $(RPCGEN) -M -h $(SRC)/cmd/krb5/kwarn/kwarnd.x | \ 552 $(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@ 553 554kwarnd_xdr.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x 555 $(RM) $@ 556 $(RPCGEN) -M -c $(SRC)/cmd/krb5/kwarn/kwarnd.x | \ 557 $(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@ 558 559kwarnd_clnt.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd.x 560 $(RM) $@ 561 $(RPCGEN) -M -l $(SRC)/cmd/krb5/kwarn/kwarnd.x | \ 562 $(SED) -e 's!$(SRC)/cmd/krb5/kwarn/kwarnd.h!kwarnd.h!' > $@ 563 564kwarnd_clnt_stubs.c: kwarnd.h $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c 565 $(RM) $@ 566 $(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_clnt_stubs.c $@ 567 568kwarnd_handle.c: $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c 569 $(RM) $@ 570 $(CP) $(SRC)/cmd/krb5/kwarn/kwarnd_handle.c $@ 571 572# So lint.out won't be needlessly recreated 573lint: $(LINTOUT) 574 575$(LINTOUT): $(SOURCES) 576 $(LINT.c) -o $(LIBNAME) $(SOURCES) > $(LINTOUT) 2>&1 577 578