1# $MirOS: src/usr.bin/sudo/lib/Makefile,v 1.4 2005/06/22 15:58:51 tg Exp $
2# $OpenBSD: Makefile,v 1.3 2005/06/21 02:11:43 brad Exp $
3
4.PATH:		${.CURDIR}/..
5
6LIB=	sudo
7SRCS=	alloc.c defaults.c fileops.c find_path.c gettime.c goodpath.c \
8	lex.yy.c sudo.tab.c
9CPPFLAGS+=	-I.
10CLEANFILES+=	lex.yy.c sudo.tab.c sudo.tab.h
11
12DEBUGLIBS= no
13
14.include <bsd.own.mk>
15.if !defined(NOPIC) || ${NOPIC:L} == "no"
16CPPFLAGS+= -D_PATH_SUDO_NOEXEC=\"/usr/libexec/sudo_noexec.so\"
17NOPIC=	yes
18.endif
19
20sudo.tab.c sudo.tab.h: parse.yacc
21	rm -f sudo.tab.h sudo.tab.c
22	${YACC} -d -b sudo ${.CURDIR}/../parse.yacc
23
24lex.yy.c: parse.lex
25	rm -f lex.yy.c
26	${LEX} ${.CURDIR}/../parse.lex
27
28install:
29	@echo -n
30
31.include <bsd.lib.mk>
32