summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/lib/Makefile
blob: 1338e180a8fb531749aa0d3bf439059242aaff99 (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
#	$OpenBSD: Makefile,v 1.4 2008/11/14 11:58:08 millert Exp $

.PATH:		${.CURDIR}/..

LIB=	sudo
SRCS=	alias.c alloc.c defaults.c error.c fileops.c find_path.c gettime.c \
	goodpath.c list.c match.c redblack.c toke.c gram.c zero_bytes.c
CPPFLAGS+=	-I..

CLEANFILES=	gram.c gram.h toke.c

DEBUGLIBS= no
NOPROFILE= yes

.include <bsd.own.mk>
.if !defined(NOPIC)
CPPFLAGS+= -D_PATH_SUDO_NOEXEC=\"/usr/libexec/sudo_noexec.so\"
NOPIC=	yes
.endif

gram.c gram.h: gram.y
	rm -f gram.c gram.h
	${YACC} -d ${.CURDIR}/../gram.y
	mv -f y.tab.c gram.c
	if cmp -s y.tab.h ../gram.h; then rm -f y.tab.h; else mv -f y.tab.h ../gram.h; fi

toke.c: toke.l
	rm -f toke.c
	${LEX} ${.CURDIR}/../toke.l
	mv -f lex.yy.c toke.c

install:
	@echo -n

beforedepend: gram.c toke.c

.include <bsd.lib.mk>