NetBSD/usr.bin/su/Makefile

71 lines
1.3 KiB
Makefile
Raw Normal View History

2005-01-12 04:46:03 +03:00
# $NetBSD: Makefile,v 1.40 2005/01/12 01:46:03 christos Exp $
1997-01-09 14:43:05 +03:00
# from: @(#)Makefile 8.1 (Berkeley) 7/19/93
1993-03-21 12:45:37 +03:00
.include <bsd.own.mk>
2005-01-12 04:46:03 +03:00
MKPAM=no
1993-03-21 12:45:37 +03:00
PROG= su
BINOWN= root
BINMODE=4555
.if ${MKPAM} != "no"
CPPFLAGS+=-DUSE_PAM -DPAM_DEBUG
# XXX: Need libcrypt here, because libcrypto defines it too.
DPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL}
LDADD+= -lpam -lcrypt -lutil
SRCS=su_pam.c
.else
SRCS=su.c
2005-01-11 02:31:34 +03:00
CPPFLAGS+=-DLOGIN_CAP
DPADD+= ${LIBCRYPT} ${LIBUTIL}
LDADD+= -lcrypt -lutil
# 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
1999-07-13 02:11:37 +04:00
.endif
2000-07-10 06:09:15 +04:00
CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
2002-10-23 05:25:35 +04:00
DPADD+= ${LIBKRB5} ${LIBASN1}
2000-07-24 02:23:14 +04:00
LDADD+= -lkrb5 -lasn1
2000-07-10 06:09:15 +04:00
.if (${USE_KERBEROS4} != "no")
CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
DPADD+= ${LIBKRB} ${LIBDES}
LDADD+= -lkrb -ldes
.endif
2000-07-10 06:09:15 +04:00
2002-10-23 05:25:35 +04:00
DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
2000-08-04 02:56:29 +04:00
LDADD+= -lcrypto -lroken -lcom_err
.endif
.if (${USE_SKEY} != "no")
1997-10-12 16:54:20 +04:00
CPPFLAGS+=-DSKEY
DPADD+= ${LIBSKEY}
LDADD+= -lskey
.endif
.ifdef SU_ROOTAUTH
CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
.endif
2005-01-08 01:34:20 +03:00
.endif
.include <bsd.prog.mk>