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