Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.sbin / kadmin / Makefile
blob5a83ca3dd9a0c925ac37ae1b009e25e5b31b4d5a
1 # $NetBSD: Makefile,v 1.18 2008/04/10 15:42:06 tsutsui Exp $
3 WARNS?= 1 # XXX -Wextra -Wsign-compare
4 NOLINT= # defined
6 .include <bsd.own.mk>
8 USE_FORT?= yes # network client
10 DIST= ${NETBSDSRCDIR}/crypto/dist
11 .PATH: ${DIST}/heimdal/kadmin
13 PROG= kadmin
15 SRCS= \
16 ank.c \
17 add_enctype.c \
18 check.c \
19 cpw.c \
20 del.c \
21 del_enctype.c \
22 dump.c \
23 ext.c \
24 get.c \
25 init.c \
26 kadmin.c \
27 load.c \
28 mod.c \
29 rename.c \
30 stash.c \
31 util.c \
32 pw_quality.c \
33 random_password.c \
34 kadmin-commands.c
36 CPPFLAGS+= -I. \
37 -I${DIST}/heimdal/kadmin \
38 -I${DIST}/heimdal/lib/krb5 \
39 -I${DIST}/heimdal/lib/asn1 \
40 -I${NETBSDSRCDIR}/include/heimdal \
41 -I${DESTDIR}/usr/include/kadm5 \
42 -I${DESTDIR}/usr/include/krb5 \
43 -DHAVE_CONFIG_H
45 .if (${USE_INET6} != "no")
46 CPPFLAGS+=-DHAVE_IPV6
47 .endif
49 VERS!= cd ${NETBSDSRCDIR}/lib/libvers && ${PRINTOBJDIR}
51 LDADD+= -lkadm5srv -lhdb -lkrb5 -lhx509 -lcrypto \
52 -lasn1 -lcom_err -lsl -ledit -ltermcap \
53 -L${VERS} -lvers -lroken -lcrypt -lutil
54 DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} \
55 ${LIBASN1} ${LIBCOM_ERR} ${LIBSL} ${LIBEDIT} ${LIBTERMCAP} \
56 ${VERS}/libvers.a ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL}
58 MAN= kadmin.8
60 .include <bsd.prog.mk>