xref: /netbsd-src/crypto/external/bsd/heimdal/lib/libkadm5clnt/Makefile (revision ba65fde2d7fefa7d39838fa5fa855e62bd606b5e)
1# $NetBSD: Makefile,v 1.2 2011/04/15 14:39:32 elric Exp $
2
3USE_FORT?= yes	# network protocol library
4
5NOLINT=		# defined
6
7.include <bsd.own.mk>
8.include <${.CURDIR}/../../Makefile.inc>
9
10.PATH:		${HEIMDIST}/lib/kadm5 ${HEIMBASE}/include
11
12LIB=		kadm5clnt
13
14LIBDPLIBS+=	krb5	${.CURDIR}/../libkrb5 \
15		hdb	${.CURDIR}/../libhdb \
16		roken	${.CURDIR}/../libroken
17
18HEIMSRCS=	kadm5_err.et
19
20SRCS =			\
21	ad.c		\
22	chpass_c.c	\
23	client_glue.c	\
24	common_glue.c	\
25	create_c.c	\
26	delete_c.c	\
27	destroy_c.c	\
28	flush_c.c	\
29	free.c		\
30	get_c.c		\
31	get_princs_c.c	\
32	init_c.c	\
33	marshall.c	\
34	modify_c.c	\
35	privs_c.c	\
36	randkey_c.c	\
37	rename_c.c	\
38	send_recv.c
39
40NO_VERSION_SCRIPT=
41
42INCSDIR=	/usr/include/kadm5
43INCS=		admin.h			\
44		private.h		\
45		kadm5-protos.h		\
46		kadm5-private.h		\
47		kadm5-pwcheck.h		\
48		${COMPILE_ET_INCS}
49
50# Prevent collision with old MIT Kerberos includes -- require manual
51# intervention of the operator.
52.BEGIN:
53.ifmake includes
54	@if [ -f ${DESTDIR}${INCSDIR}/kadm_err.h ]; then \
55		echo "Error: you must first remove the MIT headers from ${DESTDIR}${INCSDIR}" >&2; \
56		false; \
57	fi
58.endif
59
60.include <${HEIMBASE}/Makefile.rules.inc>
61.include <bsd.lib.mk>
62