Makefile revision 1.34
11.34Sdyoung#	$NetBSD: Makefile,v 1.34 2003/12/11 09:46:27 dyoung Exp $
21.8Stls#	from: @(#)Makefile	8.1 (Berkeley) 7/19/93
31.1Scgd
41.19Sthorpej.include <bsd.own.mk>
51.19Sthorpej
61.1ScgdPROG=	su
71.11SmycroftDPADD+=	${LIBCRYPT}
81.17SmjlLDADD+=	-lcrypt -lutil
91.1ScgdBINOWN=	root
101.1ScgdBINMODE=4555
111.17SmjlCPPFLAGS+=-DLOGIN_CAP
121.10Slukem
131.10Slukem# Uncomment the following line to change the group that may su root to "sugroup"
141.10Slukem#
151.32Schristos#CPPFLAGS+=-DSU_GROUP=\"sugroup\"
161.25Ssjg
171.26Ssjg# Uncomment the following line to make su
181.26Ssjg# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
191.25Ssjg# list of groups.
201.26Ssjg#CPPFLAGS+=-DSU_INDIRECT_GROUP
211.15Sthorpej
221.34Sdyoung.if (${USE_KERBEROS} != "no")
231.18Sthorpej.ifdef AFS
241.18SthorpejDPADD+= ${LIBKAFS}
251.18SthorpejLDADD+= -lkafs
261.15Sthorpej.endif
271.18Sthorpej
281.20SassarCPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
291.28SitojunDPADD+=	${LIBKRB5} ${LIBASN1}
301.21SmycroftLDADD+= -lkrb5 -lasn1
311.20Sassar
321.29Sitojun.if (${USE_KERBEROS4} != "no")
331.18SthorpejCPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
341.33SlhaDPADD+=	${LIBKRB} ${LIBDES}
351.33SlhaLDADD+= -lkrb -ldes
361.29Sitojun.endif
371.20Sassar
381.28SitojunDPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
391.23SassarLDADD+=	-lcrypto -lroken -lcom_err
401.19Sthorpej.endif
411.7Schristos
421.7Schristos.include <bsd.prog.mk>
431.7Schristos
441.27Sthorpej.if (${USE_SKEY} != "no")
451.11SmycroftCPPFLAGS+=-DSKEY
461.11SmycroftDPADD+= ${LIBSKEY}
471.11SmycroftLDADD+= -lskey
481.14Skim.endif
491.14Skim
501.32Schristos.ifdef SU_ROOTAUTH
511.32SchristosCPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
521.7Schristos.endif
53