1# $Id: Makefile.am 22501 2008-01-21 15:43:21Z lha $ 2 3include $(top_srcdir)/Makefile.am.common 4 5AM_CPPFLAGS += $(INCLUDE_krb4) $(INCLUDE_hcrypto) -I../com_err -I$(srcdir)/../com_err 6 7bin_PROGRAMS = verify_krb5_conf 8 9noinst_PROGRAMS = \ 10 krbhst-test \ 11 test_alname \ 12 test_crypto \ 13 test_get_addrs \ 14 test_kuserok \ 15 test_renew \ 16 test_forward 17 18TESTS = \ 19 aes-test \ 20 derived-key-test \ 21 n-fold-test \ 22 name-45-test \ 23 parse-name-test \ 24 store-test \ 25 string-to-key-test \ 26 test_acl \ 27 test_addr \ 28 test_cc \ 29 test_config \ 30 test_prf \ 31 test_store \ 32 test_crypto_wrapping \ 33 test_keytab \ 34 test_mem \ 35 test_pac \ 36 test_plugin \ 37 test_princ \ 38 test_pkinit_dh2key \ 39 test_time 40 41check_PROGRAMS = $(TESTS) test_hostname 42 43LDADD = libkrb5.la \ 44 $(LIB_hcrypto) \ 45 $(top_builddir)/lib/asn1/libasn1.la \ 46 $(LIB_roken) 47 48if PKINIT 49LIB_pkinit = ../hx509/libhx509.la 50endif 51 52libkrb5_la_LIBADD = \ 53 $(LIB_pkinit) \ 54 $(LIB_com_err) \ 55 $(LIB_hcrypto) \ 56 $(top_builddir)/lib/asn1/libasn1.la \ 57 $(LIBADD_roken) \ 58 $(LIB_door_create) \ 59 $(LIB_dlopen) 60 61lib_LTLIBRARIES = libkrb5.la 62 63ERR_FILES = krb5_err.c krb_err.c heim_err.c k524_err.c 64 65libkrb5_la_CPPFLAGS = -DBUILD_KRB5_LIB $(AM_CPPFLAGS) 66 67dist_libkrb5_la_SOURCES = \ 68 acache.c \ 69 acl.c \ 70 add_et_list.c \ 71 addr_families.c \ 72 aname_to_localname.c \ 73 appdefault.c \ 74 asn1_glue.c \ 75 auth_context.c \ 76 build_ap_req.c \ 77 build_auth.c \ 78 cache.c \ 79 changepw.c \ 80 codec.c \ 81 config_file.c \ 82 config_file_netinfo.c \ 83 convert_creds.c \ 84 constants.c \ 85 context.c \ 86 copy_host_realm.c \ 87 crc.c \ 88 creds.c \ 89 crypto.c \ 90 doxygen.c \ 91 data.c \ 92 digest.c \ 93 eai_to_heim_errno.c \ 94 error_string.c \ 95 expand_hostname.c \ 96 fcache.c \ 97 free.c \ 98 free_host_realm.c \ 99 generate_seq_number.c \ 100 generate_subkey.c \ 101 get_addrs.c \ 102 get_cred.c \ 103 get_default_principal.c \ 104 get_default_realm.c \ 105 get_for_creds.c \ 106 get_host_realm.c \ 107 get_in_tkt.c \ 108 get_in_tkt_pw.c \ 109 get_in_tkt_with_keytab.c \ 110 get_in_tkt_with_skey.c \ 111 get_port.c \ 112 heim_threads.h \ 113 init_creds.c \ 114 init_creds_pw.c \ 115 kcm.c \ 116 kcm.h \ 117 keyblock.c \ 118 keytab.c \ 119 keytab_any.c \ 120 keytab_file.c \ 121 keytab_keyfile.c \ 122 keytab_krb4.c \ 123 keytab_memory.c \ 124 krb5_locl.h \ 125 krb5-v4compat.h \ 126 krbhst.c \ 127 kuserok.c \ 128 log.c \ 129 mcache.c \ 130 misc.c \ 131 mk_error.c \ 132 mk_priv.c \ 133 mk_rep.c \ 134 mk_req.c \ 135 mk_req_ext.c \ 136 mk_safe.c \ 137 mit_glue.c \ 138 net_read.c \ 139 net_write.c \ 140 n-fold.c \ 141 pac.c \ 142 padata.c \ 143 pkinit.c \ 144 principal.c \ 145 prog_setup.c \ 146 prompter_posix.c \ 147 rd_cred.c \ 148 rd_error.c \ 149 rd_priv.c \ 150 rd_rep.c \ 151 rd_req.c \ 152 rd_safe.c \ 153 read_message.c \ 154 recvauth.c \ 155 replay.c \ 156 send_to_kdc.c \ 157 sendauth.c \ 158 set_default_realm.c \ 159 sock_principal.c \ 160 store.c \ 161 store-int.h \ 162 store_emem.c \ 163 store_fd.c \ 164 store_mem.c \ 165 plugin.c \ 166 ticket.c \ 167 time.c \ 168 transited.c \ 169 v4_glue.c \ 170 verify_init.c \ 171 verify_user.c \ 172 version.c \ 173 warn.c \ 174 write_message.c 175 176nodist_libkrb5_la_SOURCES = \ 177 $(ERR_FILES) 178 179libkrb5_la_LDFLAGS = -version-info 24:0:0 180 181if versionscript 182libkrb5_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map 183endif 184 185$(libkrb5_la_OBJECTS) $(verify_krb5_conf_OBJECTS): $(srcdir)/krb5-protos.h $(srcdir)/krb5-private.h 186 187$(srcdir)/krb5-protos.h: 188 cd $(srcdir) && perl ../../cf/make-proto.pl -E KRB5_LIB_FUNCTION -q -P comment -o krb5-protos.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-protos.h 189 190$(srcdir)/krb5-private.h: 191 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5-private.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-private.h 192 193man_MANS = \ 194 kerberos.8 \ 195 krb5.3 \ 196 krb5.conf.5 \ 197 krb524_convert_creds_kdc.3 \ 198 krb5_425_conv_principal.3 \ 199 krb5_acl_match_file.3 \ 200 krb5_address.3 \ 201 krb5_aname_to_localname.3 \ 202 krb5_appdefault.3 \ 203 krb5_auth_context.3 \ 204 krb5_c_make_checksum.3 \ 205 krb5_ccache.3 \ 206 krb5_check_transited.3 \ 207 krb5_compare_creds.3 \ 208 krb5_config.3 \ 209 krb5_context.3 \ 210 krb5_create_checksum.3 \ 211 krb5_creds.3 \ 212 krb5_crypto_init.3 \ 213 krb5_data.3 \ 214 krb5_digest.3 \ 215 krb5_eai_to_heim_errno.3 \ 216 krb5_encrypt.3 \ 217 krb5_expand_hostname.3 \ 218 krb5_find_padata.3 \ 219 krb5_generate_random_block.3 \ 220 krb5_get_all_client_addrs.3 \ 221 krb5_get_credentials.3 \ 222 krb5_get_creds.3 \ 223 krb5_get_forwarded_creds.3 \ 224 krb5_get_in_cred.3 \ 225 krb5_get_init_creds.3 \ 226 krb5_get_krbhst.3 \ 227 krb5_getportbyname.3 \ 228 krb5_init_context.3 \ 229 krb5_is_thread_safe.3 \ 230 krb5_keyblock.3 \ 231 krb5_keytab.3 \ 232 krb5_krbhst_init.3 \ 233 krb5_kuserok.3 \ 234 krb5_mk_req.3 \ 235 krb5_mk_safe.3 \ 236 krb5_openlog.3 \ 237 krb5_parse_name.3 \ 238 krb5_principal.3 \ 239 krb5_rcache.3 \ 240 krb5_rd_error.3 \ 241 krb5_rd_safe.3 \ 242 krb5_set_default_realm.3 \ 243 krb5_set_password.3 \ 244 krb5_storage.3 \ 245 krb5_string_to_key.3 \ 246 krb5_ticket.3 \ 247 krb5_timeofday.3 \ 248 krb5_unparse_name.3 \ 249 krb5_verify_init_creds.3 \ 250 krb5_verify_user.3 \ 251 krb5_warn.3 \ 252 verify_krb5_conf.8 253 254dist_include_HEADERS = \ 255 krb5.h \ 256 krb5-protos.h \ 257 krb5-private.h \ 258 krb5_ccapi.h 259 260nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h 261 262# XXX use nobase_include_HEADERS = krb5/locate_plugin.h 263krb5dir = $(includedir)/krb5 264krb5_HEADERS = locate_plugin.h 265 266build_HEADERZ = \ 267 heim_threads.h \ 268 $(krb5_HEADERS) \ 269 krb_err.h 270 271CLEANFILES = \ 272 krb5_err.c krb5_err.h \ 273 krb_err.c krb_err.h \ 274 heim_err.c heim_err.h \ 275 k524_err.c k524_err.h 276 277$(libkrb5_la_OBJECTS): krb5_err.h krb_err.h heim_err.h k524_err.h 278 279EXTRA_DIST = \ 280 krb5_err.et \ 281 krb_err.et \ 282 heim_err.et \ 283 k524_err.et \ 284 $(man_MANS) \ 285 version-script.map \ 286 krb5.moduli 287 288#sysconf_DATA = krb5.moduli 289 290# to help stupid solaris make 291 292krb5_err.h: krb5_err.et 293 294krb_err.h: krb_err.et 295 296heim_err.h: heim_err.et 297 298k524_err.h: k524_err.et 299