Home | History | Annotate | Line # | Download | only in su
Makefile revision 1.49
      1  1.49     lukem #	$NetBSD: Makefile,v 1.49 2008/04/06 09:54:37 lukem Exp $
      2   1.8       tls #	from: @(#)Makefile	8.1 (Berkeley) 7/19/93
      3   1.1       cgd 
      4  1.19   thorpej .include <bsd.own.mk>
      5  1.19   thorpej 
      6  1.46       tls USE_FORT?= yes	# setuid
      7   1.1       cgd PROG=	su
      8   1.1       cgd BINOWN=	root
      9   1.1       cgd BINMODE=4555
     10  1.37  christos 
     11  1.48  christos .PATH.c: ${.CURDIR}/../newgrp
     12  1.48  christos CPPFLAGS+=-I${.CURDIR}/../newgrp
     13  1.43  christos CPPFLAGS+=-DLOGIN_CAP
     14  1.48  christos CPPFLAGS+=-DALLOW_GROUP_CHANGE
     15  1.48  christos CPPFLAGS+=-DALLOW_EMPTY_USER
     16  1.48  christos CPPFLAGS+=-DGRUTIL_SETGROUPS_MAKESPACE
     17  1.43  christos 
     18  1.41   thorpej .if ${USE_PAM} != "no"
     19  1.37  christos 
     20  1.45  christos CPPFLAGS+=-DUSE_PAM
     21  1.37  christos # XXX: Need libcrypt here, because libcrypto defines it too.
     22  1.42        he DPADD+=	${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD}
     23  1.42        he LDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD}
     24  1.47  christos SRCS=su_pam.c grutil.c suutil.c
     25  1.37  christos 
     26  1.49     lukem .else	# USE_PAM == no
     27  1.37  christos 
     28  1.47  christos SRCS=su.c grutil.c suutil.c
     29  1.37  christos 
     30  1.37  christos DPADD+=	${LIBCRYPT} ${LIBUTIL}
     31  1.37  christos LDADD+=	-lcrypt -lutil
     32  1.10     lukem 
     33  1.10     lukem # Uncomment the following line to change the group that may su root to "sugroup"
     34  1.10     lukem #
     35  1.32  christos #CPPFLAGS+=-DSU_GROUP=\"sugroup\"
     36  1.25       sjg 
     37  1.26       sjg # Uncomment the following line to make su
     38  1.26       sjg # treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
     39  1.25       sjg # list of groups.
     40  1.26       sjg #CPPFLAGS+=-DSU_INDIRECT_GROUP
     41  1.15   thorpej 
     42  1.34    dyoung .if (${USE_KERBEROS} != "no")
     43  1.18   thorpej .ifdef AFS
     44  1.18   thorpej DPADD+= ${LIBKAFS}
     45  1.18   thorpej LDADD+= -lkafs
     46  1.15   thorpej .endif
     47  1.18   thorpej 
     48  1.20     assar CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
     49  1.28    itojun DPADD+=	${LIBKRB5} ${LIBASN1}
     50  1.21   mycroft LDADD+= -lkrb5 -lasn1
     51  1.20     assar 
     52  1.28    itojun DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
     53  1.23     assar LDADD+=	-lcrypto -lroken -lcom_err
     54  1.19   thorpej .endif
     55   1.7  christos 
     56  1.27   thorpej .if (${USE_SKEY} != "no")
     57  1.11   mycroft CPPFLAGS+=-DSKEY
     58  1.11   mycroft DPADD+= ${LIBSKEY}
     59  1.11   mycroft LDADD+= -lskey
     60  1.14       kim .endif
     61  1.14       kim 
     62  1.32  christos .ifdef SU_ROOTAUTH
     63  1.32  christos CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
     64   1.7  christos .endif
     65  1.35      manu 
     66  1.49     lukem .endif	# USE_PAM == no
     67  1.37  christos 
     68  1.37  christos .include <bsd.prog.mk>
     69