Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.sbin / kcm / Makefile
blobeaf4f87742948c7c74b5bb43e6279ce9ff427ea9
1 # $NetBSD: Makefile,v 1.2 2008/04/10 15:42:06 tsutsui Exp $
3 WARNS?= 1 # XXX -Wshadow -Wextra -Wsign-compare
4 NOLINT= # defined
6 .include <bsd.own.mk>
8 DIST= ${NETBSDSRCDIR}/crypto/dist
9 .PATH: ${DIST}/heimdal/kcm
11 PROG= kcm
12 MAN= kcm.8
14 SRCS= \
15 acl.c \
16 acquire.c \
17 cache.c \
18 client.c \
19 config.c \
20 connect.c \
21 cursor.c \
22 events.c \
23 glue.c \
24 headers.h \
25 kcm_locl.h \
26 kcm_protos.h \
27 log.c \
28 main.c \
29 protocol.c \
30 renew.c
32 CPPFLAGS+= -I. \
33 -I${DIST}/heimdal/kcm \
34 -I${NETBSDSRCDIR}/include/heimdal \
35 -I${DIST}/heimdal/lib/asn1 \
36 -I${DIST}/heimdal/lib/krb5 \
37 -I${DESTDIR}/usr/include/krb5 \
38 -DHAVE_CONFIG_H
40 .if (${USE_INET6} != "no")
41 CPPFLAGS+=-DHAVE_IPV6
42 .endif
44 VERS!= cd ${NETBSDSRCDIR}/lib/libvers && ${PRINTOBJDIR}
46 LDADD+= -lkafs -lkrb5 -lhx509 -lcrypto -lasn1 -lcom_err \
47 -L${VERS} -lvers -lroken -lcrypt -lutil
48 DPADD+= ${LIBKAFS} ${LIBKRB5} ${LIBHX509} ${LIBCRYPTO} ${LIBASN1} \
49 ${LIBCOM_ERR} ${VERS}/libvers.a ${LIBROKEN} ${LIBCRYPT} ${LIBUTIL}
51 .include <bsd.prog.mk>