Merge from vendor branch GDB:
[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.4 2004/09/28 18:17:37 joerg 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                 -lutil
27 DPADD=          ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \
28                 ${LIBKADM5CLNT} ${LIBKADM5SRV} ${LIBHDB} \
29                 ${LIBASN1} ${LIBCRYPTO} ${LIBMD} ${LIBCRYPT} ${LIBCOM_ERR} \
30                 ${LIBUTIL}
31 NOMAN=          yes
32
33 .include <bsd.prog.mk>
34
35 .PATH:  ${KRB5DIR}/kadmin
36
37 kadm5/private.h:        kadm5
38         cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET}
39
40 kadm5/admin.h:  kadm5
41         cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET}
42
43 kadm5/kadm5_err.h: kadm5 kadm5_err.h
44         cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h
45
46 kadm5:
47         mkdir ${.TARGET}
48
49 CLEANFILES+=    kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
50 CLEANDIRS+=     kadm5