summaryrefslogtreecommitdiff
path: root/lib/libkadm5srv/Makefile
blob: 2006ae09fce6eb3b3671485f597f91eba08c51bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# $OpenBSD: Makefile,v 1.5 2005/11/24 20:49:18 deraadt Exp $

KRB5DIR	= ${.CURDIR}/../../kerberosV
.include <${.CURDIR}/../libkrb5/Makefile.common.inc>

LIB=	kadm5srv
WANTLINT=

DIR_KADM5SRV=	${KRB5SRC}/lib/kadm5
HDR_KADM5SRV=	admin.h kadm5-private.h kadm5-protos.h private.h
HDR_OBJ=	kadm5_err.h

includes:	kadm5_err.h
	@test -d ${DESTDIR}/usr/include/kerberosV/kadm5 || \
		mkdir ${DESTDIR}/usr/include/kerberosV/kadm5
	@echo -n ${DIR_KADM5SRV}:; \
	cd ${DIR_KADM5SRV}; for i in ${HDR_KADM5SRV}; do \
		echo -n " $$i"; \
		cmp -s $$i ${DESTDIR}/usr/include/kerberosV/kadm5/$$i || \
			${INSTALL} ${INSTALL_COPY} -m 444 \
			-o ${BINOWN} -g $(BINGRP) $$i \
			${DESTDIR}/usr/include/kerberosV/kadm5; done; \
		echo
	@echo -n ${.OBJDIR}:; \
	cd ${.OBJDIR}; for i in ${HDR_OBJ}; do \
		echo -n " $$i"; \
		cmp -s $$i ${DESTDIR}/usr/include/kerberosV/kadm5/$$i || \
			${INSTALL} ${INSTALL_COPY} -m 444 \
			-o ${BINOWN} -g $(BINGRP) $$i \
			${DESTDIR}/usr/include/kerberosV/kadm5; done; \
		echo

SRCS=	acl.c           \
	admin.h         \
	bump_pw_expire.c \
	chpass_s.c      \
	common_glue.c   \
	context_s.c     \
	create_s.c      \
	delete_s.c      \
	destroy_s.c     \
	ent_setup.c     \
	error.c         \
	flush_s.c       \
	free.c          \
	get_princs_s.c  \
	get_s.c         \
	init_s.c        \
	kadm5_err.c     \
	kadm5_locl.h    \
	keys.c		\
	log.c           \
	marshall.c      \
	modify_s.c      \
	private.h       \
	privs_s.c       \
	randkey_s.c     \
	rename_s.c      \
	server_glue.c	\
	set_keys.c      \
	set_modifier.c  \
	password_quality.c 

.PATH:	${KRB5SRC}/lib/kadm5

CFLAGS+=-I${KRB5SRC}/lib/krb5 -I${KRB5SRC}/lib/asn1 -I../asn1 -I../krb5 \
	-I${KRB5SRC}/lib/hdb -I../hdb -I.

CLEANFILES+=kadm5_err.[ch]

kadm5_err.c kadm5_err.h: ${KRB5SRC}/lib/kadm5/kadm5_err.et
	compile_et ${KRB5SRC}/lib/kadm5/kadm5_err.et

.include <bsd.lib.mk>