summaryrefslogtreecommitdiff
path: root/usr.bin/sudo/lib/Makefile
blob: 7783994444ab808dcea7739bfc6c7253d523b5f9 (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
#	$OpenBSD: Makefile,v 1.2 2004/09/28 15:10:51 millert Exp $

.PATH:		${.CURDIR}/..

LIB=	sudo
SRCS=	alloc.c defaults.c fileops.c find_path.c gettime.c goodpath.c \
	lex.yy.c sudo.tab.c
CPPFLAGS+=	-I.

DEBUGLIBS= no
NOPROFILE= yes

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

sudo.tab.c sudo.tab.h: parse.yacc
	rm -f sudo.tab.h sudo.tab.c
	${YACC} -d -b sudo ${.CURDIR}/../parse.yacc

lex.yy.c: parse.lex
	rm -f lex.yy.c
	${LEX} ${.CURDIR}/../parse.lex

install:
	@echo -n

.include <bsd.lib.mk>