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