2003-07-24 18:16:30 +04:00
|
|
|
# $NetBSD: Makefile,v 1.27 2003/07/24 14:16:54 itojun Exp $
|
2001-12-12 03:51:00 +03:00
|
|
|
|
|
|
|
NOLINT= # defined
|
2000-12-30 20:21:44 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2002-08-19 13:41:27 +04:00
|
|
|
DIST= ${NETBSDSRCDIR}/crypto/dist
|
2001-12-12 03:51:00 +03:00
|
|
|
.PATH: ${DIST}/krb4/lib/krb ${DIST}/krb4/doc \
|
2002-08-29 05:31:27 +04:00
|
|
|
${DIST}/krb4/man
|
2001-12-12 03:51:00 +03:00
|
|
|
|
|
|
|
MAN= kerberos.3 krb_realmofhost.3 krb_sendauth.3 krb_set_tkt_string.3 \
|
|
|
|
krb.conf.5 krb.equiv.5 krb.extra.5 krb.realms.5
|
|
|
|
MLINKS= kerberos.3 krb_mk_req.3 kerberos.3 krb_rd_req.3 \
|
|
|
|
kerberos.3 krb_kntoln.3 kerberos.3 krb_set_key.3 \
|
|
|
|
kerberos.3 krb_get_cred.3 kerberos.3 krb_mk_priv.3 \
|
|
|
|
kerberos.3 krb_rd_priv.3 kerberos.3 krb_mk_safe.3 \
|
|
|
|
kerberos.3 krb_rd_safe.3 kerberos.3 krb_mk_err.3 \
|
|
|
|
kerberos.3 krb_rd_err.3 kerberos.3 krb_ck_repl.3 \
|
|
|
|
krb_realmofhost.3 krb_get_krbhst.3 \
|
|
|
|
krb_realmofhost.3 krb_get_lrealm.3 \
|
|
|
|
krb_realmofhost.3 krb_get_phost.3
|
|
|
|
|
|
|
|
WARNS?= 1
|
|
|
|
|
|
|
|
LIB= krb
|
2000-06-17 02:50:34 +04:00
|
|
|
|
2001-10-31 19:15:00 +03:00
|
|
|
.if ${USETOOLS} != "yes"
|
2003-07-10 14:33:58 +04:00
|
|
|
COMPILEETOBJ!= cd ${NETBSDSRCDIR}/lib/libcom_err/compile_et && ${PRINTOBJDIR}
|
|
|
|
TOOL_COMPILE_ET= ${COMPILEETOBJ}/compile_et
|
2001-09-22 02:58:59 +04:00
|
|
|
.endif
|
2000-06-17 02:50:34 +04:00
|
|
|
|
2003-07-10 14:33:58 +04:00
|
|
|
krb_err.c krb_err.h: krb_err.et ${TOOL_COMPILE_ET}
|
|
|
|
${TOOL_COMPILE_ET} ${DIST}/krb4/lib/krb/krb_err.et
|
2000-06-17 02:50:34 +04:00
|
|
|
|
|
|
|
ERR_FILES= krb_err.c
|
|
|
|
|
2001-10-04 14:44:12 +04:00
|
|
|
DPSRCS= krb.h krb_err.h
|
2000-06-17 02:50:34 +04:00
|
|
|
|
|
|
|
SRCS= \
|
|
|
|
check_time.c \
|
|
|
|
cr_err_reply.c \
|
|
|
|
create_auth_reply.c \
|
|
|
|
create_ciph.c \
|
|
|
|
create_death_packet.c \
|
|
|
|
create_ticket.c \
|
|
|
|
debug_decl.c \
|
|
|
|
decomp_ticket.c \
|
|
|
|
defaults.c \
|
|
|
|
dest_tkt.c \
|
|
|
|
encrypt_ktext.c \
|
|
|
|
extra.c \
|
|
|
|
get_ad_tkt.c \
|
|
|
|
getfile.c \
|
|
|
|
get_cred.c \
|
|
|
|
get_default_principal.c \
|
|
|
|
get_host.c \
|
|
|
|
get_in_tkt.c \
|
|
|
|
get_krbrlm.c \
|
|
|
|
get_svc_in_tkt.c \
|
|
|
|
get_tf_fullname.c \
|
|
|
|
get_tf_realm.c \
|
|
|
|
getaddrs.c \
|
|
|
|
getrealm.c \
|
|
|
|
getst.c \
|
|
|
|
k_getport.c \
|
|
|
|
k_getsockinst.c \
|
|
|
|
k_localtime.c \
|
|
|
|
kdc_reply.c \
|
|
|
|
kntoln.c \
|
|
|
|
krb_check_auth.c \
|
|
|
|
krb_equiv.c \
|
|
|
|
krb_err.c \
|
|
|
|
krb_err_txt.c \
|
|
|
|
krb_get_in_tkt.c \
|
|
|
|
kuserok.c \
|
|
|
|
lifetime.c \
|
|
|
|
logging.c \
|
|
|
|
lsb_addr_comp.c \
|
|
|
|
mk_auth.c \
|
|
|
|
mk_err.c \
|
|
|
|
mk_priv.c \
|
|
|
|
mk_req.c \
|
|
|
|
mk_safe.c \
|
|
|
|
month_sname.c \
|
|
|
|
name2name.c \
|
|
|
|
krb_net_read.c \
|
|
|
|
krb_net_write.c \
|
|
|
|
one.c \
|
|
|
|
parse_name.c \
|
2001-09-17 16:34:40 +04:00
|
|
|
random_block.c \
|
2000-06-17 02:50:34 +04:00
|
|
|
rd_err.c \
|
|
|
|
rd_priv.c \
|
|
|
|
rd_req.c \
|
|
|
|
rd_safe.c \
|
|
|
|
read_service_key.c \
|
|
|
|
realm_parse.c \
|
|
|
|
recvauth.c \
|
|
|
|
rw.c \
|
|
|
|
save_credentials.c \
|
|
|
|
send_to_kdc.c \
|
|
|
|
sendauth.c \
|
|
|
|
solaris_compat.c \
|
|
|
|
stime.c \
|
|
|
|
str2key.c \
|
|
|
|
tf_util.c \
|
|
|
|
time.c \
|
|
|
|
tkt_string.c \
|
|
|
|
unparse_name.c \
|
|
|
|
verify_user.c \
|
|
|
|
krb_ip_realm.c
|
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
INCSDIR= /usr/include/kerberosIV
|
2000-06-17 02:50:34 +04:00
|
|
|
|
|
|
|
INCS= krb.h \
|
|
|
|
krb_err.h \
|
|
|
|
klog.h \
|
|
|
|
krb-protos.h \
|
|
|
|
krb-archaeology.h \
|
2003-07-23 17:33:15 +04:00
|
|
|
prot.h
|
|
|
|
|
2000-06-17 02:50:34 +04:00
|
|
|
CPPFLAGS+= -I. \
|
|
|
|
-I${DIST}/krb4/lib/krb \
|
|
|
|
-I${DIST}/heimdal/lib/com_err \
|
2002-08-19 13:41:27 +04:00
|
|
|
-I${NETBSDSRCDIR}/include/heimdal \
|
|
|
|
-I${NETBSDSRCDIR}/lib/libroken \
|
2000-06-17 02:50:34 +04:00
|
|
|
-I${DIST}/heimdal/lib/roken \
|
|
|
|
-DHAVE_CONFIG_H
|
|
|
|
|
2002-09-12 19:28:22 +04:00
|
|
|
CLEANFILES= ${ERR_FILES} krb_err.h krb.h
|
2001-09-17 16:34:40 +04:00
|
|
|
|
|
|
|
krb.h: krb.h.in
|
2003-07-24 18:16:30 +04:00
|
|
|
sed 's,@DES_H@,des.h,' < ${.ALLSRC} > ${.TARGET}
|
2000-06-17 02:50:34 +04:00
|
|
|
|
2001-12-12 03:51:00 +03:00
|
|
|
${SRCS:.c=.o}: krb_err.h
|
2000-06-17 02:50:34 +04:00
|
|
|
|
|
|
|
TEXINFO= kth-krb.texi
|
|
|
|
INFOFLAGS= -I${DIST}/krb4/doc
|
|
|
|
|
2000-06-20 03:46:07 +04:00
|
|
|
# Prevent collisions with old MIT Kerberos includes -- require manual
|
|
|
|
# intervention of the operator.
|
|
|
|
.BEGIN:
|
|
|
|
.ifmake includes
|
|
|
|
@if [ -f ${DESTDIR}${INCSDIR}/mit-copyright.h ]; then \
|
|
|
|
echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
|
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
2003-07-24 18:16:30 +04:00
|
|
|
LDADD+= -ldes
|
|
|
|
DPADD+= ${LIBDES}
|
|
|
|
|
2000-06-17 02:50:34 +04:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.include <bsd.info.mk>
|