1 1.7 mrg # $NetBSD: Makefile,v 1.7 2023/06/19 23:56:55 mrg Exp $ 2 1.1 elric 3 1.1 elric USE_FORT?= yes # network protocol library 4 1.1 elric 5 1.1 elric .include <bsd.own.mk> 6 1.1 elric .include <${.CURDIR}/../../Makefile.inc> 7 1.1 elric 8 1.1 elric .PATH: ${HEIMDIST}/lib/gssapi \ 9 1.1 elric ${HEIMDIST}/lib/gssapi/krb5 \ 10 1.1 elric ${HEIMDIST}/lib/gssapi/mech \ 11 1.1 elric ${HEIMDIST}/lib/gssapi/spnego \ 12 1.1 elric ${HEIMDIST}/lib/gssapi/ntlm 13 1.1 elric 14 1.1 elric LIB= gssapi 15 1.1 elric 16 1.1 elric LIBDPLIBS+= krb5 ${HEIMBASE}/lib/libkrb5 \ 17 1.1 elric asn1 ${HEIMBASE}/lib/libasn1 \ 18 1.1 elric com_err ${HEIMBASE}/lib/libcom_err \ 19 1.1 elric roken ${HEIMBASE}/lib/libroken \ 20 1.5 martin heimbase ${HEIMBASE}/lib/libheimbase \ 21 1.1 elric heimntlm ${HEIMBASE}/lib/libheimntlm \ 22 1.1 elric crypto ${SSLBASE}/lib/libcrypto 23 1.1 elric 24 1.1 elric HEIMSRCS= gkrb5_err.et spnego.asn1 gssapi.asn1 25 1.1 elric 26 1.1 elric ASN1_OPTS.spnego.asn1 = --sequence=MechTypeList 27 1.1 elric 28 1.1 elric ASN1_FILES.spnego.asn1 = \ 29 1.1 elric asn1_ContextFlags.x \ 30 1.1 elric asn1_MechType.x \ 31 1.1 elric asn1_MechTypeList.x \ 32 1.1 elric asn1_NegotiationToken.x \ 33 1.1 elric asn1_NegotiationTokenWin.x \ 34 1.1 elric asn1_NegHints.x \ 35 1.1 elric asn1_NegTokenInit.x \ 36 1.1 elric asn1_NegTokenInitWin.x \ 37 1.1 elric asn1_NegTokenResp.x 38 1.1 elric 39 1.1 elric krb5src = \ 40 1.1 elric krb5/8003.c \ 41 1.1 elric krb5/accept_sec_context.c \ 42 1.1 elric krb5/acquire_cred.c \ 43 1.1 elric krb5/add_cred.c \ 44 1.1 elric krb5/address_to_krb5addr.c \ 45 1.1 elric krb5/aeap.c \ 46 1.1 elric krb5/arcfour.c \ 47 1.1 elric krb5/canonicalize_name.c \ 48 1.1 elric krb5/creds.c \ 49 1.1 elric krb5/ccache_name.c \ 50 1.1 elric krb5/cfx.c \ 51 1.1 elric krb5/compare_name.c \ 52 1.1 elric krb5/compat.c \ 53 1.1 elric krb5/context_time.c \ 54 1.1 elric krb5/copy_ccache.c \ 55 1.1 elric krb5/decapsulate.c \ 56 1.1 elric krb5/delete_sec_context.c \ 57 1.1 elric krb5/display_name.c \ 58 1.1 elric krb5/display_status.c \ 59 1.1 elric krb5/duplicate_name.c \ 60 1.1 elric krb5/encapsulate.c \ 61 1.1 elric krb5/export_name.c \ 62 1.1 elric krb5/export_sec_context.c \ 63 1.1 elric krb5/external.c \ 64 1.1 elric krb5/get_mic.c \ 65 1.1 elric krb5/import_name.c \ 66 1.1 elric krb5/import_sec_context.c \ 67 1.1 elric krb5/indicate_mechs.c \ 68 1.1 elric krb5/init.c \ 69 1.1 elric krb5/init_sec_context.c \ 70 1.1 elric krb5/inquire_context.c \ 71 1.1 elric krb5/inquire_cred.c \ 72 1.1 elric krb5/inquire_cred_by_mech.c \ 73 1.1 elric krb5/inquire_cred_by_oid.c \ 74 1.1 elric krb5/inquire_mechs_for_name.c \ 75 1.1 elric krb5/inquire_names_for_mech.c \ 76 1.1 elric krb5/inquire_sec_context_by_oid.c \ 77 1.4 pettai krb5/pname_to_uid.c \ 78 1.1 elric krb5/process_context_token.c \ 79 1.1 elric krb5/prf.c \ 80 1.1 elric krb5/release_buffer.c \ 81 1.1 elric krb5/release_cred.c \ 82 1.1 elric krb5/release_name.c \ 83 1.1 elric krb5/sequence.c \ 84 1.1 elric krb5/store_cred.c \ 85 1.1 elric krb5/set_cred_option.c \ 86 1.1 elric krb5/set_sec_context_option.c \ 87 1.1 elric krb5/ticket_flags.c \ 88 1.1 elric krb5/unwrap.c \ 89 1.4 pettai krb5/authorize_localname.c \ 90 1.1 elric krb5/verify_mic.c \ 91 1.1 elric krb5/wrap.c 92 1.1 elric 93 1.1 elric mechsrc = \ 94 1.1 elric mech/context.c \ 95 1.1 elric mech/doxygen.c \ 96 1.1 elric mech/gss_accept_sec_context.c \ 97 1.1 elric mech/gss_acquire_cred.c \ 98 1.4 pettai mech/gss_acquire_cred_ext.c \ 99 1.4 pettai mech/gss_acquire_cred_with_password.c \ 100 1.1 elric mech/gss_add_cred.c \ 101 1.4 pettai mech/gss_add_cred_with_password.c \ 102 1.1 elric mech/gss_add_oid_set_member.c \ 103 1.1 elric mech/gss_aeap.c \ 104 1.1 elric mech/gss_buffer_set.c \ 105 1.1 elric mech/gss_canonicalize_name.c \ 106 1.1 elric mech/gss_compare_name.c \ 107 1.1 elric mech/gss_context_time.c \ 108 1.1 elric mech/gss_create_empty_oid_set.c \ 109 1.1 elric mech/gss_cred.c \ 110 1.1 elric mech/gss_decapsulate_token.c \ 111 1.1 elric mech/gss_delete_name_attribute.c \ 112 1.1 elric mech/gss_delete_sec_context.c \ 113 1.1 elric mech/gss_display_name.c \ 114 1.1 elric mech/gss_display_name_ext.c \ 115 1.1 elric mech/gss_display_status.c \ 116 1.1 elric mech/gss_duplicate_name.c \ 117 1.1 elric mech/gss_duplicate_oid.c \ 118 1.1 elric mech/gss_encapsulate_token.c \ 119 1.1 elric mech/gss_export_name.c \ 120 1.1 elric mech/gss_export_name_composite.c \ 121 1.1 elric mech/gss_export_sec_context.c \ 122 1.1 elric mech/gss_get_mic.c \ 123 1.1 elric mech/gss_get_name_attribute.c \ 124 1.1 elric mech/gss_import_name.c \ 125 1.1 elric mech/gss_import_sec_context.c \ 126 1.1 elric mech/gss_indicate_mechs.c \ 127 1.1 elric mech/gss_init_sec_context.c \ 128 1.1 elric mech/gss_inquire_context.c \ 129 1.1 elric mech/gss_inquire_cred.c \ 130 1.1 elric mech/gss_inquire_cred_by_mech.c \ 131 1.1 elric mech/gss_inquire_cred_by_oid.c \ 132 1.1 elric mech/gss_inquire_mechs_for_name.c \ 133 1.1 elric mech/gss_inquire_name.c \ 134 1.1 elric mech/gss_inquire_names_for_mech.c \ 135 1.1 elric mech/gss_krb5.c \ 136 1.1 elric mech/gss_mech_switch.c \ 137 1.1 elric mech/gss_mo.c \ 138 1.1 elric mech/gss_names.c \ 139 1.1 elric mech/gss_oid.c \ 140 1.1 elric mech/gss_oid_equal.c \ 141 1.1 elric mech/gss_oid_to_str.c \ 142 1.4 pettai mech/gss_pname_to_uid.c \ 143 1.1 elric mech/gss_process_context_token.c \ 144 1.1 elric mech/gss_pseudo_random.c \ 145 1.1 elric mech/gss_release_buffer.c \ 146 1.1 elric mech/gss_release_cred.c \ 147 1.1 elric mech/gss_release_name.c \ 148 1.1 elric mech/gss_release_oid.c \ 149 1.1 elric mech/gss_release_oid_set.c \ 150 1.1 elric mech/gss_seal.c \ 151 1.1 elric mech/gss_set_cred_option.c \ 152 1.1 elric mech/gss_set_name_attribute.c \ 153 1.1 elric mech/gss_set_sec_context_option.c \ 154 1.1 elric mech/gss_sign.c \ 155 1.1 elric mech/gss_store_cred.c \ 156 1.1 elric mech/gss_test_oid_set_member.c \ 157 1.1 elric mech/gss_unseal.c \ 158 1.1 elric mech/gss_unwrap.c \ 159 1.4 pettai mech/gss_authorize_localname.c \ 160 1.1 elric mech/gss_utils.c \ 161 1.1 elric mech/gss_verify.c \ 162 1.1 elric mech/gss_verify_mic.c \ 163 1.1 elric mech/gss_wrap.c \ 164 1.1 elric mech/gss_wrap_size_limit.c \ 165 1.1 elric mech/gss_inquire_sec_context_by_oid.c 166 1.1 elric 167 1.1 elric spnegosrc = \ 168 1.1 elric spnego/accept_sec_context.c \ 169 1.1 elric spnego/compat.c \ 170 1.1 elric spnego/context_stubs.c \ 171 1.1 elric spnego/cred_stubs.c \ 172 1.1 elric spnego/external.c \ 173 1.1 elric spnego/init_sec_context.c 174 1.1 elric 175 1.1 elric ntlmsrc = \ 176 1.1 elric ntlm/accept_sec_context.c \ 177 1.1 elric ntlm/acquire_cred.c \ 178 1.1 elric ntlm/add_cred.c \ 179 1.1 elric ntlm/canonicalize_name.c \ 180 1.1 elric ntlm/compare_name.c \ 181 1.1 elric ntlm/context_time.c \ 182 1.1 elric ntlm/creds.c \ 183 1.1 elric ntlm/crypto.c \ 184 1.1 elric ntlm/delete_sec_context.c \ 185 1.1 elric ntlm/display_name.c \ 186 1.1 elric ntlm/display_status.c \ 187 1.1 elric ntlm/duplicate_name.c \ 188 1.1 elric ntlm/export_name.c \ 189 1.1 elric ntlm/export_sec_context.c \ 190 1.1 elric ntlm/external.c \ 191 1.1 elric ntlm/import_name.c \ 192 1.1 elric ntlm/import_sec_context.c \ 193 1.1 elric ntlm/indicate_mechs.c \ 194 1.1 elric ntlm/init_sec_context.c \ 195 1.1 elric ntlm/inquire_context.c \ 196 1.1 elric ntlm/inquire_cred_by_mech.c \ 197 1.1 elric ntlm/inquire_mechs_for_name.c \ 198 1.1 elric ntlm/inquire_names_for_mech.c \ 199 1.1 elric ntlm/inquire_sec_context_by_oid.c \ 200 1.1 elric ntlm/iter_cred.c \ 201 1.1 elric ntlm/process_context_token.c \ 202 1.1 elric ntlm/release_cred.c \ 203 1.1 elric ntlm/release_name.c \ 204 1.1 elric ntlm/kdc.c 205 1.1 elric 206 1.1 elric NTLMSRC= ${ntlmsrc:S@/@__@} 207 1.1 elric KRB5SRC= ${krb5src:S@/@__@} 208 1.1 elric MECHSRC= ${mechsrc:S@/@__@} 209 1.1 elric SPNEGOSRC= ${spnegosrc:S@/@__@} 210 1.1 elric 211 1.1 elric SRCS= ${KRB5SRC} ${MECHSRC} ${SPNEGOSRC} ${NTLMSRC} 212 1.1 elric 213 1.1 elric .for i in ${KRB5SRC} ${MECHSRC} ${SPNEGOSRC} ${NTLMSRC} 214 1.1 elric BUILDSYMLINKS+= ${i:S@__@/@} ${i} 215 1.1 elric CLEANFILES+= ${i} 216 1.1 elric .endfor 217 1.1 elric 218 1.1 elric MAN= \ 219 1.1 elric gssapi.3 \ 220 1.1 elric gss_acquire_cred.3 \ 221 1.1 elric mech.5 222 1.1 elric 223 1.1 elric MLINKS= \ 224 1.1 elric gss_acquire_cred.3 gss_accept_sec_context.3 \ 225 1.1 elric gss_acquire_cred.3 gss_add_cred.3 \ 226 1.1 elric gss_acquire_cred.3 gss_add_oid_set_member.3 \ 227 1.1 elric gss_acquire_cred.3 gss_canonicalize_name.3 \ 228 1.1 elric gss_acquire_cred.3 gss_compare_name.3 \ 229 1.1 elric gss_acquire_cred.3 gss_context_time.3 \ 230 1.1 elric gss_acquire_cred.3 gss_create_empty_oid_set.3 \ 231 1.1 elric gss_acquire_cred.3 gss_delete_sec_context.3 \ 232 1.1 elric gss_acquire_cred.3 gss_display_name.3 \ 233 1.1 elric gss_acquire_cred.3 gss_display_status.3 \ 234 1.1 elric gss_acquire_cred.3 gss_duplicate_name.3 \ 235 1.1 elric gss_acquire_cred.3 gss_export_name.3 \ 236 1.1 elric gss_acquire_cred.3 gss_export_sec_context.3 \ 237 1.1 elric gss_acquire_cred.3 gss_get_mic.3 \ 238 1.1 elric gss_acquire_cred.3 gss_import_name.3 \ 239 1.1 elric gss_acquire_cred.3 gss_import_sec_context.3 \ 240 1.1 elric gss_acquire_cred.3 gss_indicate_mechs.3 \ 241 1.1 elric gss_acquire_cred.3 gss_init_sec_context.3 \ 242 1.1 elric gss_acquire_cred.3 gss_inquire_context.3 \ 243 1.1 elric gss_acquire_cred.3 gss_inquire_cred.3 \ 244 1.1 elric gss_acquire_cred.3 gss_inquire_cred_by_mech.3 \ 245 1.1 elric gss_acquire_cred.3 gss_inquire_mechs_for_name.3 \ 246 1.1 elric gss_acquire_cred.3 gss_inquire_names_for_mech.3 \ 247 1.1 elric gss_acquire_cred.3 gss_krb5_ccache_name.3 \ 248 1.1 elric gss_acquire_cred.3 gss_krb5_compat_des3_mic.3 \ 249 1.1 elric gss_acquire_cred.3 gss_krb5_copy_ccache.3 \ 250 1.1 elric gss_acquire_cred.3 gss_krb5_get_tkt_flags.3 \ 251 1.1 elric gss_acquire_cred.3 gss_krb5_import_ccache.3 \ 252 1.1 elric gss_acquire_cred.3 gss_krb5_import_cred.3 \ 253 1.1 elric gss_acquire_cred.3 gss_process_context_token.3 \ 254 1.1 elric gss_acquire_cred.3 gss_release_buffer.3 \ 255 1.1 elric gss_acquire_cred.3 gss_release_cred.3 \ 256 1.1 elric gss_acquire_cred.3 gss_release_name.3 \ 257 1.1 elric gss_acquire_cred.3 gss_release_oid_set.3 \ 258 1.1 elric gss_acquire_cred.3 gss_seal.3 \ 259 1.1 elric gss_acquire_cred.3 gss_sign.3 \ 260 1.1 elric gss_acquire_cred.3 gss_test_oid_set_member.3 \ 261 1.1 elric gss_acquire_cred.3 gss_unseal.3 \ 262 1.1 elric gss_acquire_cred.3 gss_unwrap.3 \ 263 1.1 elric gss_acquire_cred.3 gss_verify.3 \ 264 1.1 elric gss_acquire_cred.3 gss_verify_mic.3 \ 265 1.1 elric gss_acquire_cred.3 gss_wrap.3 \ 266 1.1 elric gss_acquire_cred.3 gss_wrap_size_limit.3 \ 267 1.1 elric gss_acquire_cred.3 gsskrb5_extract_authz_data_from_sec_context.3 \ 268 1.1 elric gss_acquire_cred.3 gsskrb5_register_acceptor_identity.3 269 1.1 elric 270 1.1 elric INCS= gssapi.h 271 1.1 elric INCS+= gssapi/gssapi.h gssapi/gssapi_krb5.h gssapi/gssapi_spnego.h 272 1.1 elric INCS+= gssapi/gssapi_oid.h gssapi/gssapi_ntlm.h 273 1.1 elric INCSDIR= /usr/include 274 1.1 elric 275 1.1 elric CPPFLAGS+= \ 276 1.1 elric -I${HEIMDIST}/lib/krb5 \ 277 1.1 elric -I${HEIMDIST}/lib/asn1 \ 278 1.7 mrg -I${HEIMDIST}/lib 279 1.1 elric 280 1.6 christos COPTS.krb5__get_mic.c+= -Wno-error=deprecated-declarations 281 1.6 christos COPTS.krb5__wrap.c+= -Wno-error=deprecated-declarations 282 1.6 christos COPTS.krb5__unwrap.c+= -Wno-error=deprecated-declarations 283 1.6 christos COPTS.krb5__verify_mic.c+= -Wno-error=deprecated-declarations 284 1.6 christos COPTS.ntlm__accept_sec_context.c+= -Wno-error=deprecated-declarations 285 1.6 christos COPTS.ntlm__crypto.c+= -Wno-error=deprecated-declarations 286 1.6 christos COPTS.ntlm__init_sec_context.c+= -Wno-error=deprecated-declarations 287 1.6 christos 288 1.1 elric .include <${HEIMBASE}/Makefile.rules.inc> 289 1.1 elric .include <bsd.lib.mk> 290