001c68bd94
program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
152 lines
3.0 KiB
Makefile
152 lines
3.0 KiB
Makefile
# $NetBSD: Makefile,v 1.24 2003/07/10 10:34:24 lukem Exp $
|
|
|
|
NOLINT= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
DIST= ${NETBSDSRCDIR}/crypto/dist
|
|
.PATH: ${DIST}/krb4/lib/krb ${DIST}/krb4/doc \
|
|
${DIST}/krb4/man
|
|
|
|
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
|
|
|
|
.if ${USETOOLS} != "yes"
|
|
COMPILEETOBJ!= cd ${NETBSDSRCDIR}/lib/libcom_err/compile_et && ${PRINTOBJDIR}
|
|
TOOL_COMPILE_ET= ${COMPILEETOBJ}/compile_et
|
|
.endif
|
|
|
|
krb_err.c krb_err.h: krb_err.et ${TOOL_COMPILE_ET}
|
|
${TOOL_COMPILE_ET} ${DIST}/krb4/lib/krb/krb_err.et
|
|
|
|
ERR_FILES= krb_err.c
|
|
|
|
DPSRCS= krb.h krb_err.h
|
|
|
|
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 \
|
|
random_block.c \
|
|
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
|
|
|
|
INCSDIR= /usr/include/kerberosIV
|
|
|
|
INCS= krb.h \
|
|
krb_err.h \
|
|
klog.h \
|
|
krb-protos.h \
|
|
krb-archaeology.h \
|
|
prot.h \
|
|
des.h
|
|
|
|
CPPFLAGS+= -I. \
|
|
-I${DIST}/krb4/lib/krb \
|
|
-I${DIST}/heimdal/lib/com_err \
|
|
-I${NETBSDSRCDIR}/include/heimdal \
|
|
-I${NETBSDSRCDIR}/lib/libroken \
|
|
-I${DIST}/heimdal/lib/roken \
|
|
-DHAVE_CONFIG_H
|
|
|
|
CLEANFILES= ${ERR_FILES} krb_err.h krb.h
|
|
|
|
krb.h: krb.h.in
|
|
sed 's,@DES_H@,openssl/des.h,' < ${.ALLSRC} > ${.TARGET}
|
|
|
|
${SRCS:.c=.o}: krb_err.h
|
|
|
|
TEXINFO= kth-krb.texi
|
|
INFOFLAGS= -I${DIST}/krb4/doc
|
|
|
|
# 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
|
|
|
|
.include <bsd.lib.mk>
|
|
.include <bsd.info.mk>
|