freebsd-dev/kerberos5/usr.sbin/ktutil/Makefile
Mark Murray 00ffb9a030 Properly separate the K5-only buld from K4.
Submitted by:	sheldonh
2000-03-23 14:56:47 +00:00

49 lines
1.3 KiB
Makefile

# $FreeBSD$
PROG= ktutil
SRCS= ktutil.c add.c change.c copy.c get.c list.c purge.c remove.c \
srvconvert.c srvcreate.c \
kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h \
krb5_err.h heim_err.h
CFLAGS+= -I${KRB5DIR}/include \
-I${KRB5DIR}/lib/roken \
-I${KRB5DIR}/lib/krb5 \
-I${KRB5DIR}/lib/asn1 \
-I${KRB5DIR}/lib/sl \
-I${KRB5DIR}/admin \
-I${ASN1OBJDIR} \
-I${.OBJDIR}
.if defined(MAKE_KERBEROS4) && \
(${MAKE_KERBEROS4} == "YES" || ${MAKE_KERBEROS4} == "yes")
_krb4libs= -lkrb -lkafs
_krb4deps= ${LIBKRB} ${LIBKAFS}
.endif
LDADD= -L${KRB5OBJDIR} -lkrb5 \
-L${ROKENOBJDIR} -lroken ${_krb4libs} \
-L${SLOBJDIR} -lsl -L${ASN1OBJDIR} -lasn1 \
-L${KADM5COBJDIR} -lkadm5clnt \
-lcrypto -lmd -lcrypt -lcom_err -lreadline
DPADD= ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \
${LIBSL} ${LIBASN1} ${LIBKADM5CLNT} \
${LIBCRYPTO} ${LIBMD} ${LIBCRYPT} ${LIBCOM_ERR} ${LIBREADLINE}
MAN8= ktutil.8
.include <bsd.prog.mk>
.PATH: ${KRB5DIR}/admin
kadm5/private.h: kadm5
cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET}
kadm5/admin.h: kadm5
cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET}
kadm5/kadm5_err.h: kadm5 kadm5_err.h
cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h
kadm5:
mkdir ${.TARGET}
CLEANFILES+= kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
CLEANDIRS+= kadm5