1# $NetBSD: Makefile,v 1.2 2013/09/11 23:04:09 joerg Exp $
2
3.include <bsd.own.mk>
4.include <${.CURDIR}/../../Makefile.inc>
5
6USE_FORT?= yes	# network protocol library
7NOLINT=
8
9.PATH:		${HEIMDIST}/kdc ${HEIMBASE}/include
10
11LIB=		kdc
12
13LIBDPLIBS+=	krb5		${.CURDIR}/../libkrb5		\
14		crypto		${SSLBASE}/lib/libcrypto	\
15		hdb		${.CURDIR}/../libhdb		\
16		hx509		${.CURDIR}/../libhx509		\
17		asn1		${.CURDIR}/../libasn1		\
18		heimntlm	${.CURDIR}/../libheimntlm	\
19		roken		${.CURDIR}/../libroken
20
21SRCS =	default_config.c	\
22        set_dbinfo.c		\
23        digest.c		\
24        kerberos5.c		\
25        krb5tgs.c		\
26        pkinit.c		\
27        log.c			\
28        misc.c			\
29        kx509.c			\
30        process.c		\
31        windc.c
32
33INCSDIR=/usr/include/krb5
34INCS= kdc-protos.h kdc.h
35
36CPPFLAGS+= -I${HEIMDIST}/lib/krb5
37
38# Prevent collision with old MIT Kerberos includes -- require manual
39# intervention of the operator.
40.BEGIN:
41.ifmake includes
42	@if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \
43		echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
44		false; \
45	fi
46.endif
47
48.include <${HEIMBASE}/Makefile.rules.inc>
49.include <bsd.lib.mk>
50