1 1.51 mrg # $NetBSD: Makefile,v 1.51 2018/02/25 00:16:49 mrg 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.48 christos .PATH.c: ${.CURDIR}/../newgrp 12 1.48 christos CPPFLAGS+=-I${.CURDIR}/../newgrp 13 1.43 christos CPPFLAGS+=-DLOGIN_CAP 14 1.48 christos CPPFLAGS+=-DALLOW_GROUP_CHANGE 15 1.48 christos CPPFLAGS+=-DALLOW_EMPTY_USER 16 1.48 christos CPPFLAGS+=-DGRUTIL_SETGROUPS_MAKESPACE 17 1.43 christos 18 1.41 thorpej .if ${USE_PAM} != "no" 19 1.37 christos 20 1.45 christos CPPFLAGS+=-DUSE_PAM 21 1.37 christos # XXX: Need libcrypt here, because libcrypto defines it too. 22 1.42 he DPADD+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD} 23 1.42 he LDADD+= -lpam -lcrypt -lutil ${PAM_STATIC_LDADD} 24 1.47 christos SRCS=su_pam.c grutil.c suutil.c 25 1.37 christos 26 1.49 lukem .else # USE_PAM == no 27 1.37 christos 28 1.47 christos SRCS=su.c grutil.c suutil.c 29 1.37 christos 30 1.51 mrg LDADD+= -lcrypt -lutil 31 1.37 christos DPADD+= ${LIBCRYPT} ${LIBUTIL} 32 1.10 lukem 33 1.10 lukem # Uncomment the following line to change the group that may su root to "sugroup" 34 1.10 lukem # 35 1.32 christos #CPPFLAGS+=-DSU_GROUP=\"sugroup\" 36 1.25 sjg 37 1.26 sjg # Uncomment the following line to make su 38 1.26 sjg # treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect 39 1.25 sjg # list of groups. 40 1.26 sjg #CPPFLAGS+=-DSU_INDIRECT_GROUP 41 1.15 thorpej 42 1.34 dyoung .if (${USE_KERBEROS} != "no") 43 1.18 thorpej .ifdef AFS 44 1.51 mrg LDADD+= -lkafs 45 1.18 thorpej DPADD+= ${LIBKAFS} 46 1.15 thorpej .endif 47 1.18 thorpej 48 1.50 elric CPPFLAGS+=-DKERBEROS5 49 1.51 mrg LDADD+= ${LIBKRB5_LDADD} 50 1.51 mrg DPADD+= ${LIBKRB5_DPADD} 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.51 mrg LDADD+= -lskey 56 1.11 mycroft DPADD+= ${LIBSKEY} 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.49 lukem .endif # USE_PAM == no 64 1.37 christos 65 1.37 christos .include <bsd.prog.mk> 66