1994-05-27 12:33:43 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
|
|
|
|
|
|
|
PROG= su
|
1994-10-19 00:03:45 +00:00
|
|
|
SRCS= su.c
|
|
|
|
|
1997-01-13 06:39:19 +00:00
|
|
|
#LC_AUTH=-DLOGIN_CAP_AUTH
|
|
|
|
COPTS+= -DLOGIN_CAP $(LC_AUTH)
|
|
|
|
LDADD+= -lutil
|
|
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
|
|
|
|
.if !defined(LC_AUTH)
|
1995-10-12 17:25:58 +00:00
|
|
|
COPTS+= -DSKEY
|
1997-01-13 06:39:19 +00:00
|
|
|
LDADD+= -lskey -lcrypt
|
|
|
|
DPADD+= ${LIBSKEY} ${LIBCRYPT}
|
|
|
|
.endif
|
|
|
|
|
1995-10-12 17:25:58 +00:00
|
|
|
.if defined(WHEELSU)
|
|
|
|
COPTS+= -DWHEELSU
|
|
|
|
.endif
|
1996-03-09 14:57:43 +00:00
|
|
|
CFLAGS+= -Wall
|
1994-09-29 20:54:41 +00:00
|
|
|
|
1997-09-28 09:02:16 +00:00
|
|
|
.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) \
|
|
|
|
&& !defined(LC_AUTH)
|
1994-09-29 13:06:54 +00:00
|
|
|
CFLAGS+=-DKERBEROS
|
|
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
|
|
LDADD+= -lkrb -ldes
|
1994-11-20 23:23:28 +00:00
|
|
|
DISTRIBUTION= krb
|
1994-09-29 13:06:54 +00:00
|
|
|
.endif
|
|
|
|
|
1997-09-05 12:04:31 +00:00
|
|
|
# Do we have to provide an implementation for libskey.so?
|
|
|
|
.if ${BINFORMAT} != elf
|
1997-05-23 21:18:00 +00:00
|
|
|
LDADD+= -lmd
|
|
|
|
DPADD+= ${LIBMD}
|
1997-09-05 12:04:31 +00:00
|
|
|
.endif
|
1997-05-23 21:18:00 +00:00
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
INSTALLFLAGS=-fschg
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|