1# $FreeBSD$ 2 3PROG= k5admind 4SRCS= kadmind.c server.c kadm_conn.c \ 5 kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h 6CFLAGS+= -I${KRB5DIR}/include \ 7 -I${KRB5DIR}/lib/roken \ 8 -I${KRB5DIR}/lib/krb5 \ 9 -I${KRB5DIR}/lib/asn1 \ 10 -I${KRB5DIR}/lib/hdb \ 11 -I${KRB5DIR}/lib/sl \ 12 -I${KRB5DIR}/lib/kadm5 \ 13 -I${KRB5DIR}/kadmin \ 14 -I${ASN1OBJDIR} \ 15 -I${HDBOBJDIR} \ 16 -I${.OBJDIR} 17.if defined(MAKE_KERBEROS4) 18SRCS+= version4.c 19_krb4libs= -lkrb -lkafs 20_krb4deps= ${LIBKRB} ${LIBKAFS} 21.endif 22LDADD= -L${KRB5OBJDIR} -lkrb5 \ 23 -L${ROKENOBJDIR} -lroken \ 24 -L${VERSOBJDIR} -lvers \ 25 ${_krb4libs} \ 26 -L${KADM5COBJDIR} -lkadm5clnt -L${KADM5SOBJDIR} -lkadm5srv \ 27 -L${HDBOBJDIR} -lhdb \ 28 -L${ASN1OBJDIR} -lasn1 -lcrypto -lcrypt -lcom_err 29DPADD= ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \ 30 ${LIBKADM5CLNT} ${LIBKADM5SRV} ${LIBHDB} \ 31 ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} 32NOMAN= yes 33 34.include <bsd.prog.mk> 35 36.PATH: ${KRB5DIR}/kadmin 37 38kadm5/private.h: kadm5 39 cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET} 40 41kadm5/admin.h: kadm5 42 cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET} 43 44kadm5/kadm5_err.h: kadm5 kadm5_err.h 45 cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h 46 47kadm5: 48 mkdir ${.TARGET} 49 50CLEANFILES+= kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h 51CLEANDIRS+= kadm5 52