Initial import from FreeBSD RELENG_4:
[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
3 PROG=           k5admind
4 SRCS=           kadmind.c server.c kadm_conn.c \
5                 kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
6 CFLAGS+=        -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)
18 SRCS+=          version4.c
19 _krb4libs=      -lkrb -lkafs
20 _krb4deps=      ${LIBKRB} ${LIBKAFS}
21 .endif
22 LDADD=          \
23                 -L${KADM5SOBJDIR} -lkadm5srv \
24                 -L${KRB5OBJDIR} -lkrb5 \
25                 -L${HDBOBJDIR} -lhdb \
26                 -L${ROKENOBJDIR} -lroken \
27                 -L${VERSOBJDIR} -lvers \
28                 ${_krb4libs} \
29                 -L${ASN1OBJDIR} -lasn1 -lcrypto -lmd -lcrypt -lcom_err
30 DPADD=          ${LIBKRB5} ${LIBKAFS5} ${LIBROKEN} ${_krb4deps} \
31                 ${LIBKADM5CLNT} ${LIBKADM5SRV} ${LIBHDB} \
32                 ${LIBASN1} ${LIBCRYPTO} ${LIBMD} ${LIBCRYPT} ${LIBCOM_ERR}
33 NOMAN=          yes
34
35 .include <bsd.prog.mk>
36
37 .PATH:  ${KRB5DIR}/kadmin
38
39 kadm5/private.h:        kadm5
40         cp ${KRB5DIR}/lib/kadm5/private.h ${.TARGET}
41
42 kadm5/admin.h:  kadm5
43         cp ${KRB5DIR}/lib/kadm5/admin.h ${.TARGET}
44
45 kadm5/kadm5_err.h: kadm5 kadm5_err.h
46         cd ${.OBJDIR}/kadm5 && ln -sf ../kadm5_err.h
47
48 kadm5:
49         mkdir ${.TARGET}
50
51 CLEANFILES+=    kadm5/private.h kadm5/admin.h kadm5/kadm5_err.h
52 CLEANDIRS+=     kadm5