Makefile revision 1.5
1# $NetBSD: Makefile,v 1.5 2023/05/08 22:17:37 christos 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		heimbase	${.CURDIR}/../libheimbase	\
19		heimntlm	${.CURDIR}/../libheimntlm	\
20		roken		${.CURDIR}/../libroken
21
22SRCS =	default_config.c	\
23        set_dbinfo.c		\
24        digest.c		\
25        fast.c			\
26        kerberos5.c		\
27        krb5tgs.c		\
28        pkinit.c		\
29        pkinit-ec.c		\
30        log.c			\
31        misc.c			\
32        kx509.c			\
33        process.c		\
34        windc.c
35
36INCSDIR=/usr/include/krb5
37INCS= kdc-protos.h kdc.h
38
39CPPFLAGS+= -I${HEIMDIST}/lib/krb5
40
41COPTS.kx509.c+= -Wno-error=deprecated-declarations
42COPTS.pkinit-ec.c+= -Wno-error=deprecated-declarations
43COPTS.pkinit.c+= -Wno-error=deprecated-declarations
44
45# Prevent collision with old MIT Kerberos includes -- require manual
46# intervention of the operator.
47.BEGIN:
48.ifmake includes
49	@if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \
50		echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
51		false; \
52	fi
53.endif
54
55.include <${HEIMBASE}/Makefile.rules.inc>
56.include <bsd.lib.mk>
57