1# @(#)Makefile 8.1 (Berkeley) 7/19/93 2# $Id: Makefile,v 1.20 1998/09/02 14:46:20 bde Exp $ 3 4PROG= su 5SRCS= su.c 6 7#LC_AUTH=-DLOGIN_CAP_AUTH 8COPTS+= -DLOGIN_CAP $(LC_AUTH) 9LDADD+= -lutil 10DPADD+= ${LIBUTIL} 11 12.if !defined(LC_AUTH) 13COPTS+= -DSKEY 14LDADD+= -lskey -lmd -lcrypt 15DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT} 16.endif 17 18.if defined(WHEELSU) 19COPTS+= -DWHEELSU 20.endif 21CFLAGS+= -Wall 22 23.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) \ 24 && !defined(LC_AUTH) 25CFLAGS+=-DKERBEROS 26DPADD+= ${LIBKRB} ${LIBDES} 27LDADD+= -lkrb -ldes 28DISTRIBUTION= krb 29.endif 30 31BINMODE=4555 32INSTALLFLAGS=-fschg 33 34.include <bsd.prog.mk> 35