b6a1f7fc39e04d94534b80a988b57ca160de9143
[dragonfly.git] / kerberos5 / libexec / k5admind / Makefile
1 # $FreeBSD: src/kerberos5/libexec/k5admind/Makefile,v 1.4.2.3 2002/09/23 14:00:48 nectar Exp $
2 # $DragonFly: src/kerberos5/libexec/k5admind/Attic/Makefile,v 1.3 2003/08/05 07:45:40 asmodai Exp $
3
4 PROG=           k5admind
5 SRCS=           kadmind.c server.c kadm_conn.c \
6                 kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
7 CFLAGS+=        -I${KRB5DIR}/include \
8                 -I${KRB5DIR}/lib/roken \
9                 -I${KRB5DIR}/lib/krb5 \
10                 -I${KRB5DIR}/lib/asn1 \
11                 -I${KRB5DIR}/lib/hdb \
12                 -I${KRB5DIR}/lib/sl \
13                 -I${KRB5DIR}/lib/kadm5 \
14                 -I${KRB5DIR}/kadmin \
15                 -I${ASN1OBJDIR} \
16                 -I${HDBOBJDIR} \
17                 -I${.OBJDIR}
18 LDADD=          \
19                 -L${KADM5SOBJDIR} -lkadm5srv \
20                 -L${KRB5OBJDIR} -lkrb5 \
21                 -L${HDBOBJDIR} -lhdb \
22                 -L${ROKENOBJDIR} -lroken \
23                 -L${VERSOBJDIR} -lvers \
24                 ${_krb4libs} \
25                 -L${ASN1OBJDIR} -lasn1 -lcrypto -lmd -lcrypt -lcom_err
26 DPADD=          ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \
27                 ${LIBKADM5CLNT} ${LIBKADM5SRV} ${LIBHDB} \
28                 ${LIBASN1} ${LIBCRYPTO} ${LIBMD} ${LIBCRYPT} ${LIBCOM_ERR}
29 NOMAN=          yes
30
31 .include <bsd.prog.mk>
32
33 .PATH:  ${KRB5DIR}/kadmin
34
35 kadm5/private.h:        kadm5
36         cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET}
37
38 kadm5/admin.h:  kadm5
39         cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET}
40
41 kadm5/kadm5_err.h: kadm5 kadm5_err.h
42         cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h
43
44 kadm5:
45         mkdir ${.TARGET}
46
47 CLEANFILES+=    kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
48 CLEANDIRS+=     kadm5