Makefile revision 1.48
11.48Schristos#	$NetBSD: Makefile,v 1.48 2007/10/27 15:37:45 christos Exp $
21.8Stls#	from: @(#)Makefile	8.1 (Berkeley) 7/19/93
31.1Scgd
41.19Sthorpej.include <bsd.own.mk>
51.19Sthorpej
61.46StlsUSE_FORT?= yes	# setuid
71.1ScgdPROG=	su
81.1ScgdBINOWN=	root
91.1ScgdBINMODE=4555
101.37Schristos
111.48Schristos.PATH.c: ${.CURDIR}/../newgrp
121.48SchristosCPPFLAGS+=-I${.CURDIR}/../newgrp
131.43SchristosCPPFLAGS+=-DLOGIN_CAP
141.48SchristosCPPFLAGS+=-DALLOW_GROUP_CHANGE
151.48SchristosCPPFLAGS+=-DALLOW_EMPTY_USER
161.48SchristosCPPFLAGS+=-DGRUTIL_SETGROUPS_MAKESPACE
171.43Schristos
181.41Sthorpej.if ${USE_PAM} != "no"
191.37Schristos
201.45SchristosCPPFLAGS+=-DUSE_PAM
211.37Schristos# XXX: Need libcrypt here, because libcrypto defines it too.
221.42SheDPADD+=	${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD}
231.42SheLDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD}
241.47SchristosSRCS=su_pam.c grutil.c suutil.c
251.37Schristos
261.37Schristos.else
271.37Schristos
281.47SchristosSRCS=su.c grutil.c suutil.c
291.37Schristos
301.37SchristosDPADD+=	${LIBCRYPT} ${LIBUTIL}
311.37SchristosLDADD+=	-lcrypt -lutil
321.10Slukem
331.10Slukem# Uncomment the following line to change the group that may su root to "sugroup"
341.10Slukem#
351.32Schristos#CPPFLAGS+=-DSU_GROUP=\"sugroup\"
361.25Ssjg
371.26Ssjg# Uncomment the following line to make su
381.26Ssjg# treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
391.25Ssjg# list of groups.
401.26Ssjg#CPPFLAGS+=-DSU_INDIRECT_GROUP
411.15Sthorpej
421.34Sdyoung.if (${USE_KERBEROS} != "no")
431.18Sthorpej.ifdef AFS
441.18SthorpejDPADD+= ${LIBKAFS}
451.18SthorpejLDADD+= -lkafs
461.15Sthorpej.endif
471.18Sthorpej
481.20SassarCPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
491.28SitojunDPADD+=	${LIBKRB5} ${LIBASN1}
501.21SmycroftLDADD+= -lkrb5 -lasn1
511.20Sassar
521.28SitojunDPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
531.23SassarLDADD+=	-lcrypto -lroken -lcom_err
541.19Sthorpej.endif
551.7Schristos
561.27Sthorpej.if (${USE_SKEY} != "no")
571.11SmycroftCPPFLAGS+=-DSKEY
581.11SmycroftDPADD+= ${LIBSKEY}
591.11SmycroftLDADD+= -lskey
601.14Skim.endif
611.14Skim
621.32Schristos.ifdef SU_ROOTAUTH
631.32SchristosCPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
641.7Schristos.endif
651.35Smanu
661.35Smanu.endif
671.37Schristos
681.37Schristos.include <bsd.prog.mk>
69