1# $FreeBSD$ 2 3PROG= ktutil 4SRCS= \ 5 add.c \ 6 change.c \ 7 copy.c \ 8 get.c \ 9 ktutil.c \ 10 list.c \ 11 purge.c \ 12 remove.c \ 13 kadm5/private.h \ 14 kadm5/admin.h \ 15 kadm5/kadm5_err.h \ 16 krb5_err.h heim_err.h 17 18CFLAGS+= -I${KRB5DIR}/include \ 19 -I${KRB5DIR}/lib/roken \ 20 -I${KRB5DIR}/lib/krb5 \ 21 -I${KRB5DIR}/lib/asn1 \ 22 -I${KRB5DIR}/lib/sl \ 23 -I${KRB5DIR}/lib/kadm5 \ 24 -I${KRB5DIR}/admin \ 25 -I${ASN1OBJDIR} \ 26 -I${.OBJDIR} 27.if defined(MAKE_KERBEROS4) && \ 28 (${MAKE_KERBEROS4} == "YES" || ${MAKE_KERBEROS4} == "yes") 29_krb4libs= -lkrb -lkafs 30_krb4deps= ${LIBKRB} ${LIBKAFS} 31.endif 32LDADD= -L${KRB5OBJDIR} -lkrb5 \ 33 -L${ROKENOBJDIR} -lroken \ 34 -L${VERSOBJDIR} -lvers \ 35 ${_krb4libs} \ 36 -L${SLOBJDIR} -lsl -L${ASN1OBJDIR} -lasn1 \ 37 -L${KADM5COBJDIR} -lkadm5clnt \ 38 -lcrypto -lmd -lcrypt -lcom_err -lreadline 39DPADD= ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \ 40 ${LIBSL} ${LIBASN1} ${LIBKADM5CLNT} \ 41 ${LIBCRYPTO} ${LIBMD} ${LIBCRYPT} ${LIBCOM_ERR} ${LIBREADLINE} 42MAN= ktutil.8 43 44.include <bsd.prog.mk> 45 46.PATH: ${KRB5DIR}/admin 47 48kadm5/private.h: kadm5 49 cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET} 50 51kadm5/admin.h: kadm5 52 cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET} 53 54kadm5/kadm5_err.h: kadm5 kadm5_err.h 55 cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h 56 57kadm5: 58 mkdir ${.TARGET} 59 60CLEANFILES+= kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h 61CLEANDIRS+= kadm5 62