Merge from vendor branch OPENSSH:
[dragonfly.git] / kerberos5 / libexec / k5passwdd / Makefile
1 # $FreeBSD: src/kerberos5/libexec/k5passwdd/Makefile,v 1.4.2.4 2002/09/01 04:22:02 nectar Exp $
2 # $DragonFly: src/kerberos5/libexec/k5passwdd/Attic/Makefile,v 1.3 2003/08/05 07:45:40 asmodai Exp $
3
4 PROG=           k5passwdd
5 SRCS=           kpasswdd.c krb5_err.h heim_err.h hdb_err.h \
6                 kadm5/admin.h kadm5/private.h
7 CFLAGS+=        -I${KRB5DIR}/include \
8                 -I${KRB5DIR}/lib/asn1 \
9                 -I${KRB5DIR}/lib/hdb \
10                 -I${KRB5DIR}/lib/krb5 \
11                 -I${KRB5DIR}/lib/roken \
12                 -I${KRB5DIR}/lib/kadm5 \
13                 -I${KRB5DIR}/kpasswd \
14                 -I${ASN1OBJDIR} \
15                 -I${HDBOBJDIR} \
16                 -I${.OBJDIR}
17 LDADD=          -L${KRB5OBJDIR} -lkrb5 -L${ROKENOBJDIR} -lroken \
18                 -L${VERSOBJDIR} -lvers \
19                 ${_krb4libs} \
20                 -L${KADM5SOBJDIR} -lkadm5srv -L${HDBOBJDIR} -lhdb \
21                 -L${ASN1OBJDIR} -lasn1 -lcrypto -lcrypt -lcom_err
22 DPADD=          ${LIBKRB5} ${LIBROKEN} ${_krb4deps} \
23                 ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR}
24 MAN=            kpasswdd.8
25
26 .include <bsd.prog.mk>
27
28 .PATH:  ${KRB5DIR}/kpasswd
29
30 kadm5/admin.h:  kadm5
31         cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET}
32
33 kadm5/private.h: kadm5
34         cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET}
35
36 kadm5:
37         mkdir ${.TARGET}
38
39 CLEANFILES+=    kadm5/admin.h kadm5/private.h
40 CLEANDIRS+=     kadm5