2f9637f84c
Quieten -Wall a bit. From Joe Traister: The previous patch did not propogate the KRBTKFILE environment variable into the new environment when -l is given to su, making it impossible for kdestroy to find the ticket file. This patch corrects that problem as well as the original segfault problem. (Fixes PR 3903)
41 lines
687 B
Makefile
41 lines
687 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
|
|
|
PROG= su
|
|
SRCS= su.c
|
|
|
|
#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
|
|
|
|
.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) \
|
|
&& !defined(LC_AUTH)
|
|
CFLAGS+=-DKERBEROS
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
LDADD+= -lkrb -ldes
|
|
DISTRIBUTION= krb
|
|
.endif
|
|
|
|
# Do we have to provide an implementation for libskey.so?
|
|
.if ${BINFORMAT} != elf
|
|
LDADD+= -lmd
|
|
DPADD+= ${LIBMD}
|
|
.endif
|
|
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
INSTALLFLAGS=-fschg
|
|
|
|
.include <bsd.prog.mk>
|