# @(#)Makefile 8.1 (Berkeley) 7/19/93 # $Id$ 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}${LIBDIR}/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 ${OBJFORMAT} != elf || ${MACHINE_ARCH} == "alpha" LDADD+= -lmd DPADD+= ${LIBMD} .endif BINOWN= root BINMODE=4555 INSTALLFLAGS=-fschg .include