blob: c2725bffac84077fd5a3f74066b5581ff1bd7282 (
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
|
# $OpenBSD: Makefile,v 1.15 2009/08/17 09:40:37 jsg 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-lex.o: y.tab.h
y.tab.h slc-gram.o: stamp_grammar
stamp_grammar:
${YACC} -d ${KRB5SRC}/lib/sl/slc-gram.y
$(CC) -c ${CFLAGS} -o slc-gram.o y.tab.c
rm -f y.tab.c
touch $@
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+= ${LIBEDIT} ${LIBCURSES} ${LIBKADM5CLNT} ${LIBKRB5} \
${LIBCRYPTO} ${LIBDES}
LDADD+= -ledit -lcurses -lkadm5clnt -lkrb5 \
-lcrypto -ldes
CLEANFILES+= ktutil-commands.c slc slc-lex.o \
ktutil-commands.h slc-gram.o stamp_grammar
.include <bsd.prog.mk>
|