2000-10-18 04:24:18 +04:00
|
|
|
# $NetBSD: Makefile,v 1.24 2000/10/18 00:24:19 simonb Exp $
|
1997-01-09 14:43:05 +03:00
|
|
|
# from: @(#)Makefile 8.1 (Berkeley) 7/19/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= su
|
1997-10-12 16:54:20 +04:00
|
|
|
DPADD+= ${LIBCRYPT}
|
2000-01-14 05:39:14 +03:00
|
|
|
LDADD+= -lcrypt -lutil
|
1993-03-21 12:45:37 +03:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
2000-01-14 05:39:14 +03:00
|
|
|
CPPFLAGS+=-DLOGIN_CAP
|
1996-10-13 03:54:38 +04:00
|
|
|
|
1997-07-02 09:42:11 +04:00
|
|
|
# Uncomment the following line to change the group that may su root to "sugroup"
|
|
|
|
#
|
1997-10-12 16:54:20 +04:00
|
|
|
#CPPFLAGS+=-DSUGROUP=\"sugroup\"
|
1997-07-02 09:42:11 +04:00
|
|
|
|
2000-06-23 10:01:10 +04:00
|
|
|
.if (${MKKERBEROS} != "no")
|
2000-06-20 10:00:24 +04:00
|
|
|
.ifdef AFS
|
|
|
|
DPADD+= ${LIBKAFS}
|
|
|
|
LDADD+= -lkafs
|
1999-07-13 02:11:37 +04:00
|
|
|
.endif
|
|
|
|
|
2000-07-10 06:09:15 +04:00
|
|
|
CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
2000-07-24 02:23:14 +04:00
|
|
|
LDADD+= -lkrb5 -lasn1
|
2000-07-10 06:09:15 +04:00
|
|
|
|
2000-06-20 10:00:24 +04:00
|
|
|
CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
|
2000-07-10 06:09:15 +04:00
|
|
|
LDADD+= -lkrb
|
|
|
|
|
2000-08-04 02:56:29 +04:00
|
|
|
LDADD+= -lcrypto -lroken -lcom_err
|
2000-06-23 10:01:10 +04:00
|
|
|
.endif
|
2000-06-20 10:00:24 +04:00
|
|
|
|
1996-10-13 03:54:38 +04:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
|
|
|
.ifdef SKEY
|
1997-10-12 16:54:20 +04:00
|
|
|
CPPFLAGS+=-DSKEY
|
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
LDADD+= -lskey
|
1996-10-13 03:54:38 +04:00
|
|
|
.endif
|
1999-07-12 03:41:10 +04:00
|
|
|
|
|
|
|
.ifdef SUROOTAUTH
|
|
|
|
CPPFLAGS+=-DROOTAUTH=\"${SUROOTAUTH}\"
|
|
|
|
.endif
|