58 lines
1.1 KiB
Makefile
58 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.35 2005/01/07 22:34:20 manu Exp $
|
|
# from: @(#)Makefile 8.1 (Berkeley) 7/19/93
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= su
|
|
DPADD+= ${LIBCRYPT}
|
|
LDADD+= -lcrypt -lutil
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
CPPFLAGS+=-DLOGIN_CAP
|
|
|
|
# Uncomment the following line to change the group that may su root to "sugroup"
|
|
#
|
|
#CPPFLAGS+=-DSU_GROUP=\"sugroup\"
|
|
|
|
# Uncomment the following line to make su
|
|
# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
|
|
# list of groups.
|
|
#CPPFLAGS+=-DSU_INDIRECT_GROUP
|
|
|
|
.if (${USE_KERBEROS} != "no")
|
|
.ifdef AFS
|
|
DPADD+= ${LIBKAFS}
|
|
LDADD+= -lkafs
|
|
.endif
|
|
|
|
CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
|
DPADD+= ${LIBKRB5} ${LIBASN1}
|
|
LDADD+= -lkrb5 -lasn1
|
|
|
|
.if (${USE_KERBEROS4} != "no")
|
|
CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
LDADD+= -lkrb -ldes
|
|
.endif
|
|
|
|
DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
|
|
LDADD+= -lcrypto -lroken -lcom_err
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.if (${USE_SKEY} != "no")
|
|
CPPFLAGS+=-DSKEY
|
|
DPADD+= ${LIBSKEY}
|
|
LDADD+= -lskey
|
|
.endif
|
|
|
|
.ifdef SU_ROOTAUTH
|
|
CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
|
|
.endif
|
|
|
|
.if (${USE_PAM} != "no")
|
|
CPPFLAGS+=-DUSE_PAM
|
|
LDADD+= -lpam
|
|
.endif
|