HardenedBSD/kerberos5/lib/libkafs5/Makefile
Ulrich Spörlein 3abde52372 Try and fix the dependency/bootstrap issues in kerberos5
libkafs5 needs a header from libkrb5, it includes this from
${.OBJDIR}/mumble, this used to work fine as long as you happen to have
a krb_err.h in your base system, this doesn't work for bootstrapping or
using a cross-compiler with a different sysroot. This is just a
best-effort bandaid, sufficient parallelism can still break it.

Fix a SRCS override that dropped krb5_err.h.

Discussed with:	stas
2013-12-23 14:23:17 +00:00

41 lines
871 B
Makefile

# $FreeBSD$
LIB= kafs5
LDADD= -lasn1 -lroken -lkrb5
LDFLAGS= -Wl,--no-undefined
DPADD= ${LIBASN1} ${LIBKRB5} ${LIBROKEN}
INCS= kafs.h
MAN= kafs5.3
VERSION_MAP= ${.CURDIR}/version.map
MLINKS= kafs5.3 k_afs_cell_of_file.3 \
kafs5.3 k_hasafs.3 \
kafs5.3 k_pioctl.3 \
kafs5.3 k_setpag.3 \
kafs5.3 k_unlog.3 \
kafs5.3 kafs.3 \
kafs5.3 kafs_set_verbose.3 \
kafs5.3 kafs_settoken.3 \
kafs5.3 kafs_settoken5.3 \
kafs5.3 kafs_settoken_rxkad.3 \
kafs5.3 krb5_afslog.3 \
kafs5.3 krb5_afslog_uid.3 \
kafs5.3 krb_afslog.3 \
kafs5.3 krb_afslog_uid.3
SRCS= afssys.c afskrb5.c common.c krb5_err.h
CFLAGS+= -I${KRB5DIR}/lib/kafs \
-I${KRB5DIR}/lib/krb5 \
-I${.OBJDIR}/../libkrb5/ \
-I${KRB5DIR}/lib/roken
CLEANFILES= kafs5.3
kafs5.3: kafs.3
sed -e 's/libkafs, -lkafs/libkafs5, -lkafs5/g' ${.ALLSRC} >${.TARGET}
.include <bsd.lib.mk>
.PATH: ${KRB5DIR}/lib/kafs