diff options
author | davidn <davidn@FreeBSD.org> | 1997-01-13 06:39:19 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-01-13 06:39:19 +0000 |
commit | 2f2f2bb699cf04ff55e8250d17cdf4e007c4d72a (patch) | |
tree | 4ab85805867cd5091ad2f321133092f4f999748f /usr.bin/su/Makefile | |
parent | 1893017e4eba5cde23043b2d1a57ce02dc7a00e5 (diff) | |
download | FreeBSD-src-2f2f2bb699cf04ff55e8250d17cdf4e007c4d72a.zip FreeBSD-src-2f2f2bb699cf04ff55e8250d17cdf4e007c4d72a.tar.gz |
Make su login_cap savvy.
As with login(1), LOGIN_CAP_AUTH is not yet enabled since we don't
yet have authorisation modules.
Diffstat (limited to 'usr.bin/su/Makefile')
-rw-r--r-- | usr.bin/su/Makefile | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile index 96cdff7..c344460 100644 --- a/usr.bin/su/Makefile +++ b/usr.bin/su/Makefile @@ -3,17 +3,27 @@ PROG= su SRCS= su.c +LDADD= -lmd +DPADD= ${LIBMD} + +#LC_AUTH=-DLOGIN_CAP_AUTH +COPTS+= -DLOGIN_CAP $(LC_AUTH) +LDADD+= -lutil +DPADD+= ${LIBUTIL} + +.if !defined(LC_AUTH) COPTS+= -DSKEY +LDADD+= -lskey -lcrypt +DPADD+= ${LIBSKEY} ${LIBCRYPT} +.endif + .if defined(WHEELSU) COPTS+= -DWHEELSU .endif CFLAGS+= -Wall -LDADD= -lskey -lmd -lcrypt -DPADD= ${LIBSKEY} ${LIBMD} ${LIBCRYPT} - .if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \ - || defined(MAKE_EBONES)) + || defined(MAKE_EBONES)) && !defined(LC_AUTH) CFLAGS+=-DKERBEROS DPADD+= ${LIBKRB} ${LIBDES} LDADD+= -lkrb -ldes |