blob: b0f774af0f0f896c42e5e36f9df6a9ce6105da9e (
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
|
# $OpenBSD: Makefile,v 1.3 1999/03/29 20:29:08 millert Exp $
PROG= visudo
MAN= visudo.8
CFLAGS+=-I${.CURDIR}/../sudo -I.
SRCS= sudo.tab.c lex.yy.c visudo.c alloc.c
CLEANFILES+=sudo.tab.c sudo.tab.h lex.yy.c
.PATH: ${.CURDIR}/../sudo
LDADD= -lcompat
DPADD= ${LIBCOMPAT}
BINOWN= root
BINMODE=111
BINDIR?=/usr/sbin
.include <bsd.prog.mk>
lex.yy.c: ${.CURDIR}/../sudo/parse.lex
rm -f lex.yy.c
$(LEX) ${.CURDIR}/../sudo/parse.lex
sudo.tab.c sudo.tab.h: ${.CURDIR}/../sudo/parse.yacc
$(YACC) -b sudo -d ${.CURDIR}/../sudo/parse.yacc
|