xref: /freebsd/kerberos5/lib/libkrb5/Makefile (revision 77a0943ded95b9e6438f7db70c4a28e4d93946d4)
1# $FreeBSD$
2
3LIB=	krb5
4CFLAGS+=-I${KRB5DIR}/lib/krb5 \
5	-I${KRB5DIR}/lib/asn1 \
6	-I${KRB5DIR}/lib/des \
7	-I${KRB5DIR}/lib/roken \
8	-I${KRB5DIR}/include \
9	-I${KRB5OBJDIR} \
10	-I${ASN1OBJDIR}
11.if defined(MAKE_KERBEROS4) && \
12	(${MAKE_KERBEROS4} == "YES" || ${MAKE_KERBEROS4} == "yes")
13CFLAGS+=-I${KRB4DIR}/include
14.endif
15SRCS=	add_et_list.c addr_families.c address.c aname_to_localname.c \
16	asn1_glue.c auth_context.c build_ap_req.c build_auth.c \
17	cache.c changepw.c codec.c config_file.c config_file_netinfo.c \
18	convert_creds.c constants.c context.c copy_host_realm.c \
19	crc.c creds.c crypto.c data.c expand_hostname.c fcache.c \
20	free.c free_host_realm.c generate_seq_number.c \
21	generate_subkey.c get_addrs.c get_cred.c get_default_principal.c \
22	get_default_realm.c get_for_creds.c get_host_realm.c \
23	get_in_tkt.c get_in_tkt_pw.c get_in_tkt_with_keytab.c \
24	get_in_tkt_with_skey.c get_port.c init_creds.c init_creds_pw.c \
25	keyblock.c keytab.c keytab_file.c keytab_memory.c \
26	keytab_keyfile.c krbhst.c kuserok.c log.c \
27	mcache.c misc.c mk_error.c mk_priv.c mk_rep.c mk_req.c \
28	mk_req_ext.c mk_safe.c net_read.c net_write.c n-fold.c \
29	padata.c principal.c prog_setup.c prompter_posix.c \
30	rd_cred.c rd_error.c rd_priv.c rd_rep.c rd_req.c rd_safe.c \
31	read_message.c recvauth.c send_to_kdc.c sendauth.c \
32	set_default_realm.c sock_principal.c store.c store_emem.c \
33	store_fd.c store_mem.c ticket.c time.c transited.c \
34	verify_init.c verify_user.c version.c warn.c write_message.c \
35	krb5_err.c krb5_err.h heim_err.c heim_err.h \
36	rc4_enc.c rc4_skey.c
37.if defined(MAKE_KERBEROS4) && \
38	(${MAKE_KERBEROS4} == "YES" || ${MAKE_KERBEROS4} == "yes")
39SRCS+=	keytab_krb4.c
40.endif
41
42INCLUDES=${KRB5DIR}/lib/krb5/krb5.h ${.CURDIR}/../../include/krb5-types.h \
43	${KRB5DIR}/lib/krb5/krb5-protos.h heim_err.h krb5_err.h
44
45.include <bsd.lib.mk>
46
47.PATH:		${KRB5DIR}/lib/krb5
48.PATH:		${KRB5DIR}/lib/des
49
50beforedepend all:	asn1_err.h krb5_err.h
51
52CLEANFILES+=	profile.h
53