1994-05-27 14:33:43 +02:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
1998-09-02 16:46:20 +02:00
|
|
|
# $Id: Makefile,v 1.19 1998/08/30 17:02:51 gpalmer Exp $
|
1994-05-27 14:33:43 +02:00
|
|
|
|
|
|
|
PROG= su
|
1994-10-19 01:03:45 +01:00
|
|
|
SRCS= su.c
|
|
|
|
|
1997-01-13 07:39:19 +01:00
|
|
|
#LC_AUTH=-DLOGIN_CAP_AUTH
|
|
|
|
COPTS+= -DLOGIN_CAP $(LC_AUTH)
|
|
|
|
LDADD+= -lutil
|
|
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
|
|
|
|
.if !defined(LC_AUTH)
|
1995-10-12 18:25:58 +01:00
|
|
|
COPTS+= -DSKEY
|
1998-09-02 16:46:20 +02:00
|
|
|
LDADD+= -lskey -lmd -lcrypt
|
|
|
|
DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
|
1997-01-13 07:39:19 +01:00
|
|
|
.endif
|
|
|
|
|
1995-10-12 18:25:58 +01:00
|
|
|
.if defined(WHEELSU)
|
|
|
|
COPTS+= -DWHEELSU
|
|
|
|
.endif
|
1996-03-09 15:57:43 +01:00
|
|
|
CFLAGS+= -Wall
|
1994-09-29 21:54:41 +01:00
|
|
|
|
1998-08-06 23:41:13 +02:00
|
|
|
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) \
|
1997-09-28 11:02:16 +02:00
|
|
|
&& !defined(LC_AUTH)
|
1994-09-29 14:06:54 +01:00
|
|
|
CFLAGS+=-DKERBEROS
|
|
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
|
|
LDADD+= -lkrb -ldes
|
1994-11-21 00:23:28 +01:00
|
|
|
DISTRIBUTION= krb
|
1994-09-29 14:06:54 +01:00
|
|
|
.endif
|
|
|
|
|
1994-05-27 14:33:43 +02:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
INSTALLFLAGS=-fschg
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|