1# @(#)Makefile 8.1 (Berkeley) 7/19/93 2# $FreeBSD: src/usr.bin/su/Makefile,v 1.29.2.2 2002/07/17 19:08:23 ru Exp $ 3 4PROG= su 5SRCS= su.c 6 7COPTS+= -DLOGIN_CAP -DSKEY 8DPADD= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT} 9LDADD= -lutil -lskey -lmd -lcrypt 10 11.if defined(WHEELSU) 12COPTS+= -DWHEELSU 13.endif 14CFLAGS+= -Wall 15 16.if defined(MAKE_KERBEROS4) && !defined(NO_OPENSSL) && !defined(NOCRYPT) 17CFLAGS+=-DKERBEROS4 18DPADD+= ${LIBKRB} ${LIBCRYPTO} ${LIBCOM_ERR} 19LDADD+= -lkrb -lcrypto -lcom_err 20DISTRIBUTION= krb4 21.endif 22 23.if defined(MAKE_KERBEROS5) && !defined(NOCRYPT) && !defined(NO_OPENSSL) 24CFLAGS+=-DKERBEROS5 25DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} \ 26 ${LIBROKEN} 27LDADD+= -lkrb5 -lasn1 -lcrypto -lcrypt -lcom_err \ 28 -L${.OBJDIR}/../../../../kerberos5/lib/libroken -lroken 29DISTRIBUTION= krb5 30.endif 31 32BINMODE=4555 33INSTALLFLAGS=-fschg 34 35.include <bsd.prog.mk> 36