aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/su/Makefile
diff options
context:
space:
mode:
authorGeoff Rehmet <csgr@FreeBSD.org>1994-09-29 13:06:54 +0000
committerGeoff Rehmet <csgr@FreeBSD.org>1994-09-29 13:06:54 +0000
commitc368d11dd254623bef4a57867d286025fc877b7c (patch)
treed7768b90fa6e2ae30b1a6c769ed4e2de71513bb8 /usr.bin/su/Makefile
parentcf843099195b87fb3ef096f059cd9f72bf871bfd (diff)
downloadsrc-c368d11dd254623bef4a57867d286025fc877b7c.tar.gz
src-c368d11dd254623bef4a57867d286025fc877b7c.zip
First level of changes for bringing in eBones (kerberos).
- Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile, and replace with MAKE_KERBEROS and MAKE_EBONES. (Far fewer contortions, and both default to off.) IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY DEFINE ONE OF THESE. - Make Makefiles kerberos-aware.
Notes
Notes: svn path=/head/; revision=3197
Diffstat (limited to 'usr.bin/su/Makefile')
-rw-r--r--usr.bin/su/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile
index 33dc0620922a..4eeb2f689ca5 100644
--- a/usr.bin/su/Makefile
+++ b/usr.bin/su/Makefile
@@ -2,9 +2,15 @@
PROG= su
LDADD= -lcrypt
-#CFLAGS+=-DKERBEROS
-#DPADD= ${LIBKRB} ${LIBDES}
-#LDADD+=-lkrb -ldes
+DPADD= ${LIBCRYPT}
+
+.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
+ || defined(MAKE_EBONES))
+CFLAGS+=-DKERBEROS
+DPADD+= ${LIBKRB} ${LIBDES}
+LDADD+= -lkrb -ldes
+.endif
+
BINOWN= root
BINMODE=4555
INSTALLFLAGS=-fschg