Home | History | Annotate | Line # | Download | only in su
Makefile revision 1.42.2.1
      1  1.42.2.1      tron #	$NetBSD: Makefile,v 1.42.2.1 2005/12/16 12:00:05 tron 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.1       cgd PROG=	su
      7       1.1       cgd BINOWN=	root
      8       1.1       cgd BINMODE=4555
      9      1.37  christos 
     10  1.42.2.1      tron CPPFLAGS+=-DLOGIN_CAP
     11  1.42.2.1      tron 
     12      1.41   thorpej .if ${USE_PAM} != "no"
     13      1.37  christos 
     14      1.37  christos CPPFLAGS+=-DUSE_PAM -DPAM_DEBUG
     15      1.37  christos # XXX: Need libcrypt here, because libcrypto defines it too.
     16      1.42        he DPADD+=	${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD}
     17      1.42        he LDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD}
     18      1.37  christos SRCS=su_pam.c
     19      1.37  christos 
     20      1.37  christos .else
     21      1.37  christos 
     22      1.37  christos SRCS=su.c
     23      1.37  christos 
     24      1.37  christos DPADD+=	${LIBCRYPT} ${LIBUTIL}
     25      1.37  christos LDADD+=	-lcrypt -lutil
     26      1.10     lukem 
     27      1.10     lukem # Uncomment the following line to change the group that may su root to "sugroup"
     28      1.10     lukem #
     29      1.32  christos #CPPFLAGS+=-DSU_GROUP=\"sugroup\"
     30      1.25       sjg 
     31      1.26       sjg # Uncomment the following line to make su
     32      1.26       sjg # treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
     33      1.25       sjg # list of groups.
     34      1.26       sjg #CPPFLAGS+=-DSU_INDIRECT_GROUP
     35      1.15   thorpej 
     36      1.34    dyoung .if (${USE_KERBEROS} != "no")
     37      1.18   thorpej .ifdef AFS
     38      1.18   thorpej DPADD+= ${LIBKAFS}
     39      1.18   thorpej LDADD+= -lkafs
     40      1.15   thorpej .endif
     41      1.18   thorpej 
     42      1.20     assar CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5
     43      1.28    itojun DPADD+=	${LIBKRB5} ${LIBASN1}
     44      1.21   mycroft LDADD+= -lkrb5 -lasn1
     45      1.20     assar 
     46      1.29    itojun .if (${USE_KERBEROS4} != "no")
     47      1.18   thorpej CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV
     48      1.33       lha DPADD+=	${LIBKRB} ${LIBDES}
     49      1.33       lha LDADD+= -lkrb -ldes
     50      1.29    itojun .endif
     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.7  christos 
     57      1.27   thorpej .if (${USE_SKEY} != "no")
     58      1.11   mycroft CPPFLAGS+=-DSKEY
     59      1.11   mycroft DPADD+= ${LIBSKEY}
     60      1.11   mycroft LDADD+= -lskey
     61      1.14       kim .endif
     62      1.14       kim 
     63      1.32  christos .ifdef SU_ROOTAUTH
     64      1.32  christos CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\"
     65       1.7  christos .endif
     66      1.35      manu 
     67      1.35      manu .endif
     68      1.37  christos 
     69      1.37  christos .include <bsd.prog.mk>
     70