summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-05-24 01:30:21 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-05-24 01:30:21 +0000
commit8d5f034e10400c09cba0ce50071f3046cfe792ad (patch)
tree15fad2728e6ad6bbecfd467855683c8a5ebbf7c0
parentf533774dd8dd56a7c94041eb44334d9bbcd4ac59 (diff)
Unified tool for keynote utils (one binary, 4 utils based on argv[0])
-rw-r--r--usr.bin/keynote/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/usr.bin/keynote/Makefile b/usr.bin/keynote/Makefile
new file mode 100644
index 00000000000..b324d8db851
--- /dev/null
+++ b/usr.bin/keynote/Makefile
@@ -0,0 +1,34 @@
+# $OpenBSD: Makefile,v 1.1 1999/05/24 01:30:20 angelos Exp $
+
+PROG= keynote-sign
+LINKS= ${BINDIR}/keynote-sign ${BINDIR}/keynote-sigver
+LINKS+= ${BINDIR}/keynote-sign ${BINDIR}/keynote-verify
+LINKS+= ${BINDIR}/keynote-sign ${BINDIR}/keynote-keygen
+
+BINOWN= root
+BINGRP= bin
+BINMODE= 555
+BINDIR= /usr/bin
+LDADD= -lkeynote -lm -lcrypto
+MAN= keynote-sign.1 keynote-verify.1 keynote-sigver.1 keynote-keygen.1
+CLEANFILES+= lex.kv.c z.tab.c z.tab.h
+
+CFLAGS+= -DCRYPTO -I. -I${.CURDIR}
+LEXFLAGS2 = -Pkv -s -i
+YACCFLAGS2 = -d -p kv -b z
+
+KEYNOTEDIST= lib/libkeynote
+KEYNOTE_SRC= ${.CURDIR}/../../${KEYNOTEDIST}
+
+SRCS= keynote-sign.c keynote-keygen.c keynote-sigver.c keynote-verify.c \
+ keynote-main.c z.tab.c lex.kv.c
+
+z.tab.c: keynote-ver.y
+ $(YACC.y) $(YACCFLAGS2) ${KEYNOTE_SRC}/keynote-ver.y
+
+lex.kv.c: keynote-ver.l
+ $(LEX.l) $(LEXFLAGS2) ${KEYNOTE_SRC}/keynote-ver.l
+
+.PATH: ${KEYNOTE_SRC}
+
+.include<bsd.prog.mk>