1# $Id$ 2 3include $(top_srcdir)/Makefile.am.common 4 5AM_CPPFLAGS += $(INCLUDE_krb4) $(INCLUDE_hcrypto) -I../com_err -I$(srcdir)/../com_err $(INCLUDE_sqlite3) $(INCLUDE_libintl) 6 7bin_PROGRAMS = verify_krb5_conf 8 9noinst_PROGRAMS = \ 10 krbhst-test \ 11 test_gic \ 12 test_alname \ 13 test_crypto \ 14 test_rfc3961 \ 15 test_get_addrs \ 16 test_kuserok \ 17 test_renew \ 18 test_forward 19 20noinst_LTLIBRARIES = \ 21 librfc3961.la 22 23TESTS = \ 24 aes-test \ 25 derived-key-test \ 26 n-fold-test \ 27 parse-name-test \ 28 store-test \ 29 string-to-key-test \ 30 test_acl \ 31 test_addr \ 32 test_cc \ 33 test_config \ 34 test_fx \ 35 test_prf \ 36 test_store \ 37 test_crypto_wrapping \ 38 test_keytab \ 39 test_mem \ 40 test_pac \ 41 test_plugin \ 42 test_princ \ 43 test_pkinit_dh2key \ 44 test_pknistkdf \ 45 test_time \ 46 test_x500 47 48check_DATA = test_config_strings.out 49 50check_PROGRAMS = $(TESTS) test_hostname test_ap-req 51 52LDADD = libkrb5.la \ 53 $(LIB_hcrypto) \ 54 $(top_builddir)/lib/asn1/libasn1.la \ 55 $(top_builddir)/lib/wind/libwind.la \ 56 $(LIB_roken) 57 58if PKINIT 59LIB_pkinit = ../hx509/libhx509.la 60endif 61 62if have_scc 63use_sqlite = $(LIB_sqlite3) 64endif 65 66libkrb5_la_LIBADD = \ 67 $(top_builddir)/lib/asn1/libasn1.la \ 68 $(top_builddir)/lib/ipc/libheim-ipcc.la \ 69 $(top_builddir)/lib/wind/libwind.la \ 70 $(top_builddir)/base/libheimbase.la \ 71 $(LIB_pkinit) \ 72 $(use_sqlite) \ 73 $(LIB_com_err) \ 74 $(LIB_hcrypto) \ 75 $(LIB_libintl) \ 76 $(LIBADD_roken) \ 77 $(PTHREAD_LIBADD) \ 78 $(LIB_door_create) \ 79 $(LIB_dlopen) 80 81librfc3961_la_LIBADD = \ 82 $(top_builddir)/lib/asn1/libasn1.la \ 83 $(top_builddir)/lib/ipc/libheim-ipcc.la \ 84 $(top_builddir)/lib/wind/libwind.la \ 85 $(LIB_pkinit) \ 86 $(use_sqlite) \ 87 $(LIB_com_err) \ 88 $(LIB_hcrypto) \ 89 $(LIB_libintl) \ 90 $(LIBADD_roken) \ 91 $(PTHREAD_LIBADD) \ 92 $(LIB_door_create) \ 93 $(LIB_dlopen) 94 95lib_LTLIBRARIES = libkrb5.la 96 97ERR_FILES = krb5_err.c krb_err.c heim_err.c k524_err.c 98 99libkrb5_la_CPPFLAGS = \ 100 -DBUILD_KRB5_LIB \ 101 $(AM_CPPFLAGS) \ 102 -DHEIMDAL_LOCALEDIR='"$(localedir)"' 103 104librfc3961_la_CPPFLAGS = \ 105 -DBUILD_KRB5_LIB \ 106 $(AM_CPPFLAGS) \ 107 -DHEIMDAL_LOCALEDIR='"$(localedir)"' 108 109dist_libkrb5_la_SOURCES = \ 110 acache.c \ 111 acl.c \ 112 add_et_list.c \ 113 addr_families.c \ 114 aname_to_localname.c \ 115 appdefault.c \ 116 asn1_glue.c \ 117 auth_context.c \ 118 build_ap_req.c \ 119 build_auth.c \ 120 cache.c \ 121 changepw.c \ 122 codec.c \ 123 config_file.c \ 124 convert_creds.c \ 125 constants.c \ 126 context.c \ 127 copy_host_realm.c \ 128 crc.c \ 129 creds.c \ 130 crypto.c \ 131 crypto.h \ 132 crypto-aes.c \ 133 crypto-algs.c \ 134 crypto-arcfour.c \ 135 crypto-des.c \ 136 crypto-des-common.c \ 137 crypto-des3.c \ 138 crypto-evp.c \ 139 crypto-null.c \ 140 crypto-pk.c \ 141 crypto-rand.c \ 142 doxygen.c \ 143 data.c \ 144 deprecated.c \ 145 digest.c \ 146 eai_to_heim_errno.c \ 147 error_string.c \ 148 expand_hostname.c \ 149 expand_path.c \ 150 fcache.c \ 151 free.c \ 152 free_host_realm.c \ 153 generate_seq_number.c \ 154 generate_subkey.c \ 155 get_addrs.c \ 156 get_cred.c \ 157 get_default_principal.c \ 158 get_default_realm.c \ 159 get_for_creds.c \ 160 get_host_realm.c \ 161 get_in_tkt.c \ 162 get_port.c \ 163 init_creds.c \ 164 init_creds_pw.c \ 165 kcm.c \ 166 kcm.h \ 167 keyblock.c \ 168 keytab.c \ 169 keytab_any.c \ 170 keytab_file.c \ 171 keytab_keyfile.c \ 172 keytab_memory.c \ 173 krb5_locl.h \ 174 krb5-v4compat.h \ 175 krbhst.c \ 176 kuserok.c \ 177 log.c \ 178 mcache.c \ 179 misc.c \ 180 mk_error.c \ 181 mk_priv.c \ 182 mk_rep.c \ 183 mk_req.c \ 184 mk_req_ext.c \ 185 mk_safe.c \ 186 mit_glue.c \ 187 net_read.c \ 188 net_write.c \ 189 n-fold.c \ 190 pac.c \ 191 padata.c \ 192 pcache.c \ 193 pkinit.c \ 194 principal.c \ 195 prog_setup.c \ 196 prompter_posix.c \ 197 rd_cred.c \ 198 rd_error.c \ 199 rd_priv.c \ 200 rd_rep.c \ 201 rd_req.c \ 202 rd_safe.c \ 203 read_message.c \ 204 recvauth.c \ 205 replay.c \ 206 salt.c \ 207 salt-aes.c \ 208 salt-arcfour.c \ 209 salt-des.c \ 210 salt-des3.c \ 211 scache.c \ 212 send_to_kdc.c \ 213 sendauth.c \ 214 set_default_realm.c \ 215 sock_principal.c \ 216 store.c \ 217 store-int.c \ 218 store-int.h \ 219 store_emem.c \ 220 store_fd.c \ 221 store_mem.c \ 222 plugin.c \ 223 ticket.c \ 224 time.c \ 225 transited.c \ 226 verify_init.c \ 227 verify_user.c \ 228 version.c \ 229 warn.c \ 230 write_message.c 231 232nodist_libkrb5_la_SOURCES = \ 233 $(ERR_FILES) 234 235libkrb5_la_DEPENDENCIES = \ 236 version-script.map 237 238libkrb5_la_LDFLAGS = -version-info 26:0:0 239 240if versionscript 241libkrb5_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map 242endif 243 244$(libkrb5_la_OBJECTS) $(verify_krb5_conf_OBJECTS) $(librfc3961_la_OBJECTS): $(srcdir)/krb5-protos.h $(srcdir)/krb5-private.h krb5_err.h heim_err.h k524_err.h krb5_err.h krb_err.h k524_err.h 245 246librfc3961_la_SOURCES = \ 247 crc.c \ 248 crypto.c \ 249 crypto.h \ 250 crypto-aes.c \ 251 crypto-algs.c \ 252 crypto-arcfour.c \ 253 crypto-des.c \ 254 crypto-des-common.c \ 255 crypto-des3.c \ 256 crypto-evp.c \ 257 crypto-null.c \ 258 crypto-pk.c \ 259 crypto-rand.c \ 260 crypto-stubs.c \ 261 data.c \ 262 error_string.c \ 263 keyblock.c \ 264 n-fold.c \ 265 salt.c \ 266 salt-aes.c \ 267 salt-arcfour.c \ 268 salt-des.c \ 269 salt-des3.c \ 270 store-int.c \ 271 warn.c 272 273test_rfc3961_LDADD = \ 274 librfc3961.la \ 275 $(top_builddir)/lib/asn1/libasn1.la \ 276 $(top_builddir)/lib/wind/libwind.la \ 277 $(LIB_hcrypto) \ 278 $(LIB_roken) 279 280$(srcdir)/krb5-protos.h: 281 cd $(srcdir) && perl ../../cf/make-proto.pl -E KRB5_LIB -q -P comment -o krb5-protos.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-protos.h 282 283$(srcdir)/krb5-private.h: 284 cd $(srcdir) && perl ../../cf/make-proto.pl -q -P comment -p krb5-private.h $(dist_libkrb5_la_SOURCES) || rm -f krb5-private.h 285 286man_MANS = \ 287 kerberos.8 \ 288 krb5.conf.5 \ 289 krb524_convert_creds_kdc.3 \ 290 krb5_425_conv_principal.3 \ 291 krb5_acl_match_file.3 \ 292 krb5_aname_to_localname.3 \ 293 krb5_appdefault.3 \ 294 krb5_auth_context.3 \ 295 krb5_c_make_checksum.3 \ 296 krb5_check_transited.3 \ 297 krb5_create_checksum.3 \ 298 krb5_creds.3 \ 299 krb5_digest.3 \ 300 krb5_eai_to_heim_errno.3 \ 301 krb5_encrypt.3 \ 302 krb5_find_padata.3 \ 303 krb5_generate_random_block.3 \ 304 krb5_get_all_client_addrs.3 \ 305 krb5_get_credentials.3 \ 306 krb5_get_creds.3 \ 307 krb5_get_forwarded_creds.3 \ 308 krb5_get_in_cred.3 \ 309 krb5_get_init_creds.3 \ 310 krb5_get_krbhst.3 \ 311 krb5_getportbyname.3 \ 312 krb5_init_context.3 \ 313 krb5_is_thread_safe.3 \ 314 krb5_krbhst_init.3 \ 315 krb5_mk_req.3 \ 316 krb5_mk_safe.3 \ 317 krb5_openlog.3 \ 318 krb5_parse_name.3 \ 319 krb5_principal.3 \ 320 krb5_rcache.3 \ 321 krb5_rd_error.3 \ 322 krb5_rd_safe.3 \ 323 krb5_set_default_realm.3 \ 324 krb5_set_password.3 \ 325 krb5_string_to_key.3 \ 326 krb5_timeofday.3 \ 327 krb5_verify_init_creds.3 \ 328 krb5_verify_user.3 \ 329 verify_krb5_conf.8 330 331dist_include_HEADERS = \ 332 krb5.h \ 333 krb5-protos.h \ 334 krb5-private.h \ 335 krb5_ccapi.h 336 337nodist_include_HEADERS = krb5_err.h heim_err.h k524_err.h 338 339# XXX use nobase_include_HEADERS = krb5/locate_plugin.h 340krb5dir = $(includedir)/krb5 341krb5_HEADERS = locate_plugin.h send_to_kdc_plugin.h ccache_plugin.h 342 343build_HEADERZ = \ 344 $(krb5_HEADERS) \ 345 krb_err.h 346 347CLEANFILES = \ 348 test_config_strings.out \ 349 test-store-data \ 350 krb5_err.c krb5_err.h \ 351 krb_err.c krb_err.h \ 352 heim_err.c heim_err.h \ 353 k524_err.c k524_err.h 354 355$(libkrb5_la_OBJECTS): krb5_err.h krb_err.h heim_err.h k524_err.h 356 357test_config_strings.out: test_config_strings.cfg 358 $(CP) $(srcdir)/test_config_strings.cfg test_config_strings.out 359 360EXTRA_DIST = \ 361 NTMakefile \ 362 verify_krb5_conf-version.rc \ 363 krb5_err.et \ 364 krb_err.et \ 365 heim_err.et \ 366 k524_err.et \ 367 $(man_MANS) \ 368 version-script.map \ 369 test_config_strings.cfg \ 370 krb5.moduli 371 372#sysconf_DATA = krb5.moduli 373 374# to help stupid solaris make 375 376krb5_err.h: krb5_err.et 377 378krb_err.h: krb_err.et 379 380heim_err.h: heim_err.et 381 382k524_err.h: k524_err.et 383