blob: c0a198ff6875e896c881ab52d711ce0faa29912f (
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
38
39
40
41
|
# $OpenBSD: Makefile,v 1.3 1997/03/18 20:48:46 maja Exp $
PROG= sudo
MAN= sudo.8 sudoers.5
CFLAGS+=-I${.CURDIR} -I.
SRCS= check.c find_path.c getspwuid.c goodpath.c interfaces.c logging.c parse.c sudo.c sudo_setenv.c tgetpass.c y.tab.c lex.yy.c
CLEANFILES+=y.tab.c y.tab.h lex.yy.c
LDADD= -lcompat
DPADD= ${LIBCOMPAT}
.include <bsd.own.mk> # For SKEY, KERBEROS and KERBEROS5
.if defined(SKEY)
CFLAGS+=-DHAVE_SKEY
LDADD+= -lskey
DPADD+= ${LIBSKEY}
.endif
.if defined(KERBEROS5)
CFLAGS+= -DHAVE_KERB5 -I${DESTDIR}/usr/include/kerberosIV
LDADD+= -lkrb5 -lcrypto
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
.elif defined(KERBEROS)
CFLAGS+= -DHAVE_KERB4 -I${DESTDIR}/usr/include/kerberosIV
LDADD+= -lkrb -ldes
DPADD+= ${LIBKRB} ${LIBDES}
.endif
BINOWN= root
BINMODE=4111
BINDIR?=/usr/bin
.include <bsd.prog.mk>
lex.yy.c: parse.lex
rm -f lex.yy.c
$(LEX) ${.CURDIR}/parse.lex
y.tab.c y.tab.h: parse.yacc
$(YACC) -d ${.CURDIR}/parse.yacc
|