Home | History | Annotate | Line # | Download | only in su
Makefile revision 1.32
      1 #	$NetBSD: Makefile,v 1.32 2003/08/20 14:11:17 christos Exp $
      2 #	from: @(#)Makefile	8.1 (Berkeley) 7/19/93
      3 
      4 .include <bsd.own.mk>
      5 
      6 PROG=	su
      7 DPADD+=	${LIBCRYPT}
      8 LDADD+=	-lcrypt -lutil
      9 BINOWN=	root
     10 BINMODE=4555
     11 CPPFLAGS+=-DLOGIN_CAP
     12 
     13 # Uncomment the following line to change the group that may su root to "sugroup"
     14 #
     15 #CPPFLAGS+=-DSU_GROUP=\"sugroup\"
     16 
     17 # Uncomment the following line to make su
     18 # treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
     19 # list of groups.
     20 #CPPFLAGS+=-DSU_INDIRECT_GROUP
     21 
     22 .if (${USE_KERBEROS} != "no" || ${USE_KERBEROS4} != "no")
     23 .ifdef AFS
     24 DPADD+= ${LIBKAFS}
     25 LDADD+= -lkafs
     26 .endif
     27 
     28 .if (${USE_KERBEROS} != "no")
     29 CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
     30 DPADD+=	${LIBKRB5} ${LIBASN1}
     31 LDADD+= -lkrb5 -lasn1
     32 .endif
     33 
     34 .if (${USE_KERBEROS4} != "no")
     35 CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
     36 DPADD+=	${LIBKRB}
     37 LDADD+= -lkrb
     38 .endif
     39 
     40 DPADD+=	${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
     41 LDADD+=	-lcrypto -lroken -lcom_err
     42 .endif
     43 
     44 .include <bsd.prog.mk>
     45 
     46 .if (${USE_SKEY} != "no")
     47 CPPFLAGS+=-DSKEY
     48 DPADD+= ${LIBSKEY}
     49 LDADD+= -lskey
     50 .endif
     51 
     52 .ifdef SU_ROOTAUTH
     53 CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
     54 .endif
     55