1 1.32 christos # $NetBSD: Makefile,v 1.32 2003/08/20 14:11:17 christos 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.11 mycroft DPADD+= ${LIBCRYPT} 8 1.17 mjl LDADD+= -lcrypt -lutil 9 1.1 cgd BINOWN= root 10 1.1 cgd BINMODE=4555 11 1.17 mjl CPPFLAGS+=-DLOGIN_CAP 12 1.10 lukem 13 1.10 lukem # Uncomment the following line to change the group that may su root to "sugroup" 14 1.10 lukem # 15 1.32 christos #CPPFLAGS+=-DSU_GROUP=\"sugroup\" 16 1.25 sjg 17 1.26 sjg # Uncomment the following line to make su 18 1.26 sjg # treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect 19 1.25 sjg # list of groups. 20 1.26 sjg #CPPFLAGS+=-DSU_INDIRECT_GROUP 21 1.15 thorpej 22 1.29 itojun .if (${USE_KERBEROS} != "no" || ${USE_KERBEROS4} != "no") 23 1.18 thorpej .ifdef AFS 24 1.18 thorpej DPADD+= ${LIBKAFS} 25 1.18 thorpej LDADD+= -lkafs 26 1.15 thorpej .endif 27 1.18 thorpej 28 1.29 itojun .if (${USE_KERBEROS} != "no") 29 1.20 assar CPPFLAGS+=-DKERBEROS5 -I${DESTDIR}/usr/include/krb5 30 1.28 itojun DPADD+= ${LIBKRB5} ${LIBASN1} 31 1.21 mycroft LDADD+= -lkrb5 -lasn1 32 1.29 itojun .endif 33 1.20 assar 34 1.29 itojun .if (${USE_KERBEROS4} != "no") 35 1.18 thorpej CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV 36 1.28 itojun DPADD+= ${LIBKRB} 37 1.31 tron LDADD+= -lkrb 38 1.29 itojun .endif 39 1.20 assar 40 1.28 itojun DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 41 1.23 assar LDADD+= -lcrypto -lroken -lcom_err 42 1.19 thorpej .endif 43 1.7 christos 44 1.7 christos .include <bsd.prog.mk> 45 1.7 christos 46 1.27 thorpej .if (${USE_SKEY} != "no") 47 1.11 mycroft CPPFLAGS+=-DSKEY 48 1.11 mycroft DPADD+= ${LIBSKEY} 49 1.11 mycroft LDADD+= -lskey 50 1.14 kim .endif 51 1.14 kim 52 1.32 christos .ifdef SU_ROOTAUTH 53 1.32 christos CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\" 54 1.7 christos .endif 55