summaryrefslogtreecommitdiff
path: root/kerberosV/usr.sbin/ktutil/Makefile
blob: b9198889278d282fdc0fef89f8eb19c4698b2732 (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
# $OpenBSD: Makefile,v 1.12 2006/04/14 08:28:55 biorn Exp $

KRBDEPTH=../..
.include <${.CURDIR}/../../Makefile.inc>

PROG=	ktutil
MAN=	ktutil.8

SRCS=	add.c \
	change.c \
	copy.c \
	get.c \
	ktutil.c \
	ktutil-commands.c \
	list.c \
	purge.c \
	remove.c \
	rename.c \
	sl.c
SRCS+=	${PRINTVER}

.PATH:	${KRB5SRC}/admin
.PATH:	${KRB5SRC}/lib/sl

slc:	slc-gram.o slc-lex.o ${PRINTVER}
	$(CC) -o slc $> -lkrb5 -lcrypto

SLC=	slc

ktutil:	ktutil-commands.h
ktutil-commands.c ktutil-commands.h:	ktutil-commands.in $(SLC)
	./$(SLC) $(KRB5SRC)/admin/ktutil-commands.in

CFLAGS+=-I${KRB5SRC}/lib/krb5 -I${KRB5SRC}/lib/kadm5 -I.

DPADD+=	${LIBREADLINE} ${LIBCURSES} ${LIBKADM5CLNT} ${LIBKRB5} \
	${LIBCRYPTO} ${LIBDES}
LDADD+=	-lreadline -lcurses -lkadm5clnt -lkrb5 \
	-lcrypto -ldes

.include <bsd.prog.mk>