Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / libexec / kpasswdd / Makefile
bloba001c9d2b40994e28a647d5cf9ef0bb358718339
1 # $NetBSD: Makefile,v 1.15 2008/04/10 14:26:33 tsutsui Exp $
3 NOLINT= # defined
5 .include <bsd.own.mk>
7 DIST= ${NETBSDSRCDIR}/crypto/dist
8 .PATH: ${DIST}/heimdal/kpasswd
10 WARNS?= 1
12 PROG= kpasswdd
13 MAN= kpasswdd.8
15 CPPFLAGS+= -I. \
16 -I${DIST}/heimdal/kpasswd \
17 -I${NETBSDSRCDIR}/include/heimdal \
18 -I${DESTDIR}/usr/include/kadm5 \
19 -I${DESTDIR}/usr/include/krb5 \
20 -DHAVE_CONFIG_H -DINETD_SUPPORT
22 .if (${USE_INET6} != "no")
23 CPPFLAGS+=-DHAVE_IPV6
24 .endif
26 .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
27 COPTS.kpasswdd.c+= -fno-strict-aliasing
28 .endif
30 VERS!= cd ${NETBSDSRCDIR}/lib/libvers && ${PRINTOBJDIR}
32 LDADD+= -lkadm5srv -lhdb -lkrb5 -lhx509 \
33 -lcrypto -lasn1 \
34 -lcom_err -L${VERS} -lvers -lroken -lcrypt \
35 -lutil
36 DPADD+= ${LIBKADM5SRV} ${LIBHDB} ${LIBKRB5} ${LIBHX509} \
37 ${LIBCRYPTO} ${LIBASN1} \
38 ${LIBCOM_ERR} ${VERS}/libvers.a ${LIBROKEN} ${LIBCRYPT} \
39 ${LIBUTIL}
41 .include <bsd.prog.mk>