summaryrefslogtreecommitdiff
path: root/lib/libkeynote/Makefile
blob: 08cb415fabe4d13a1efcbcbbabf3051fe2a3ab71 (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
#	$OpenBSD: Makefile,v 1.16 2005/11/24 20:49:18 deraadt Exp $

LIB=	keynote
WANTLINT=
MAN=	keynote.3 keynote.4 keynote.5
MLINKS=	keynote.3 kn_init.3 keynote.3 kn_add_assertion.3 \
        keynote.3 kn_remove_assertion.3 keynote.3 kn_add_action.3 \
        keynote.3 kn_remove_action.3 keynote.3 kn_add_authorizer.3 \
        keynote.3 kn_remove_authorizer.3 keynote.3 kn_do_query.3 \
        keynote.3 kn_get_failed.3 keynote.3 kn_cleanup_action_environment.3 \
        keynote.3 kn_close.3 keynote.3 kn_query.3 keynote.3 \
        kn_read_asserts.3 keynote.3 kn_keycompare.3 keynote.3 \
        kn_get_authorizer.3 keynote.3 kn_get_licensees.3 keynote.3 \
        kn_encode_base64.3 keynote.3 kn_decode_base64.3 keynote.3 \
        kn_encode_hex.3 keynote.3 kn_decode_hex.3 keynote.3 \
        kn_encode_key.3 keynote.3 kn_decode_key.3 keynote.3 \
        kn_sign_assertion.3 keynote.3 kn_verify_assertion.3 \
	keynote.3 kn_free_key.3 keynote.3 kn_get_string.3
NOPIC=	
CFLAGS+= -Wall -I. -I${.CURDIR}
LEXFLAGS = -Cr -Pkn -s -i
YACCFLAGS = -d -p kn -b k

HDRS=	keynote.h
SRCS=	k.tab.c lex.kn.c environment.c parse_assertion.c signature.c auxil.c \
	base64.c

CLEANFILES+= k.tab.c lex.kn.c k.tab.h

k.tab.c: keynote.y keynote.h signature.h
	$(YACC.y) $(YACCFLAGS) ${.CURDIR}/keynote.y

lex.kn.c: keynote.l keynote.y keynote.h assertion.h signature.h
	$(LEX.l) $(LEXFLAGS) ${.CURDIR}/keynote.l

includes:
	@@cd ${.CURDIR}; for i in $(HDRS); do \
	    j="cmp -s $$i ${DESTDIR}/usr/include/$$i || \
		${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \
		$$i ${DESTDIR}/usr/include"; \
	    echo $$j; \
	    eval "$$j"; \
	done

.include <bsd.lib.mk>