1 1.38 christos # $NetBSD: Makefile,v 1.38 2005/01/10 23:31:34 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.37 christos MKPAM=no 6 1.19 thorpej 7 1.1 cgd PROG= su 8 1.1 cgd BINOWN= root 9 1.1 cgd BINMODE=4555 10 1.37 christos 11 1.37 christos .if ${MKPAM} != "no" 12 1.37 christos 13 1.37 christos CPPFLAGS+=-DUSE_PAM -DPAM_DEBUG 14 1.37 christos # XXX: Need libcrypt here, because libcrypto defines it too. 15 1.37 christos DPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} 16 1.37 christos LDADD+= -lpam -lcrypt -lutil 17 1.37 christos SRCS=su_pam.c 18 1.37 christos 19 1.37 christos .else 20 1.37 christos 21 1.37 christos SRCS=su.c 22 1.37 christos 23 1.38 christos CPPFLAGS+=-DLOGIN_CAP 24 1.38 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.29 itojun .if (${USE_KERBEROS4} != "no") 48 1.18 thorpej CPPFLAGS+=-DKERBEROS -I${DESTDIR}/usr/include/kerberosIV 49 1.33 lha DPADD+= ${LIBKRB} ${LIBDES} 50 1.33 lha LDADD+= -lkrb -ldes 51 1.29 itojun .endif 52 1.20 assar 53 1.28 itojun DPADD+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR} 54 1.23 assar LDADD+= -lcrypto -lroken -lcom_err 55 1.19 thorpej .endif 56 1.7 christos 57 1.7 christos 58 1.27 thorpej .if (${USE_SKEY} != "no") 59 1.11 mycroft CPPFLAGS+=-DSKEY 60 1.11 mycroft DPADD+= ${LIBSKEY} 61 1.11 mycroft LDADD+= -lskey 62 1.14 kim .endif 63 1.14 kim 64 1.32 christos .ifdef SU_ROOTAUTH 65 1.32 christos CPPFLAGS+=-DSU_ROOTAUTH=\"${SU_ROOTAUTH}\" 66 1.7 christos .endif 67 1.35 manu 68 1.35 manu .endif 69 1.37 christos 70 1.37 christos .include <bsd.prog.mk> 71