Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / usr.sbin / kimpersonate / Makefile
blob7c83c5396535bc4fd0d7e4ac1bdbca5f7c96be52
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/kuser
11 PROG= kimpersonate
13 SRCS+= kimpersonate.c
15 CPPFLAGS+= -I. \
16 -I${DIST}/heimdal/kuser \
17 -I${NETBSDSRCDIR}/include/heimdal \
18 -I${DIST}/heimdal/lib/asn1 \
19 -I${DIST}/heimdal/lib/krb5 \
20 -I${DESTDIR}/usr/include/krb5 \
21 -DHAVE_CONFIG_H
23 .if (${USE_INET6} != "no")
24 CPPFLAGS+=-DHAVE_IPV6
25 .endif
27 VERS!= cd ${NETBSDSRCDIR}/lib/libvers && ${PRINTOBJDIR}
29 LDADD+= -lkafs -lkrb5 -lhx509 -lheimntlm -lcrypto \
30 -lasn1 -lcom_err -L${VERS} -lvers -lroken -lcrypt
31 DPADD+= ${LIBKAFS} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${LIBCRYPTO} \
32 ${LIBASN1} ${LIBCOM_ERR} ${VERS}/libvers.a ${LIBROKEN} ${LIBCRYPT}
34 .include <bsd.prog.mk>