Merge from vendor branch BINUTILS:
[dragonfly.git] / kerberos5 / usr.sbin / ktutil / Makefile
1 # $FreeBSD: src/kerberos5/usr.sbin/ktutil/Makefile,v 1.3.2.4 2002/07/25 09:33:16 ru Exp $
2 # $DragonFly: src/kerberos5/usr.sbin/ktutil/Makefile,v 1.3 2003/08/05 07:45:41 asmodai Exp $
3
4 PROG=           ktutil
5 SRCS=           \
6                 add.c                           \
7                 change.c                        \
8                 copy.c                          \
9                 get.c                           \
10                 ktutil.c                        \
11                 list.c                          \
12                 purge.c                         \
13                 remove.c                        \
14                 rename.c \
15                 kadm5/private.h \
16                 kadm5/admin.h \
17                 kadm5/kadm5_err.h \
18                 krb5_err.h heim_err.h k524_err.h
19
20 CFLAGS+=        -I${KRB5DIR}/include \
21                 -I${KRB5DIR}/lib/roken \
22                 -I${KRB5DIR}/lib/krb5 \
23                 -I${KRB5DIR}/lib/asn1 \
24                 -I${KRB5DIR}/lib/sl \
25                 -I${KRB5DIR}/lib/kadm5 \
26                 -I${KRB5DIR}/admin \
27                 -I${ASN1OBJDIR} \
28                 -I${.OBJDIR}
29 LDADD=          -L${KRB5OBJDIR} -lkrb5 \
30                 -L${ROKENOBJDIR} -lroken \
31                 -L${VERSOBJDIR} -lvers \
32                 ${_krb4libs} \
33                 -L${SLOBJDIR} -lsl -L${ASN1OBJDIR} -lasn1 \
34                 -L${KADM5COBJDIR} -lkadm5clnt \
35                 -lcrypto -lmd -lcrypt -lcom_err -lreadline
36 DPADD=          ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \
37                 ${LIBSL} ${LIBASN1} ${LIBKADM5CLNT} \
38                 ${LIBCRYPTO} ${LIBMD} ${LIBCRYPT} ${LIBCOM_ERR} ${LIBREADLINE}
39 MAN=            ktutil.8
40
41 .include <bsd.prog.mk>
42
43 .PATH:  ${KRB5DIR}/admin
44
45 kadm5/private.h:        kadm5
46         cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET}
47
48 kadm5/admin.h:  kadm5
49         cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET}
50
51 kadm5/kadm5_err.h: kadm5 kadm5_err.h
52         cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h
53
54 kadm5:
55         mkdir ${.TARGET}
56
57 CLEANFILES+=    kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
58 CLEANDIRS+=     kadm5