1 # $NetBSD: Makefile,v 1.50 2011/04/24 21:42:06 elric Exp $
2 # from: @(#)Makefile 8.1 (Berkeley) 7/19/93
9 USE_FORT?
= yes
# setuid
14 .PATH.c
: ${.CURDIR
}/..
/newgrp
15 CPPFLAGS
+=-I
${.CURDIR
}/..
/newgrp
17 CPPFLAGS
+=-DALLOW_GROUP_CHANGE
18 CPPFLAGS
+=-DALLOW_EMPTY_USER
19 CPPFLAGS
+=-DGRUTIL_SETGROUPS_MAKESPACE
21 .if
${USE_PAM} != "no"
24 # XXX: Need libcrypt here, because libcrypto defines it too.
25 DPADD
+= ${LIBPAM} ${LIBCRYPT} ${LIBUTIL} ${PAM_STATIC_DPADD}
26 LDADD
+= -lpam
-lcrypt
-lutil
${PAM_STATIC_LDADD}
27 SRCS
=su_pam.c grutil.c suutil.c
31 SRCS
=su.c grutil.c suutil.c
33 DPADD
+= ${LIBCRYPT} ${LIBUTIL}
34 LDADD
+= -lcrypt
-lutil
36 # Uncomment the following line to change the group that may su root to "sugroup"
38 #CPPFLAGS+=-DSU_GROUP=\"sugroup\"
40 # Uncomment the following line to make su
41 # treat group wheel (SUGROUP) and/or ROOTAUTH as an indirect
43 #CPPFLAGS+=-DSU_INDIRECT_GROUP
45 .if
(${USE_KERBEROS} != "no")
52 DPADD
+= ${LIBKRB5} ${LIBASN1}
55 DPADD
+= ${LIBCRYPTO} ${LIBROKEN} ${LIBCOM_ERR}
56 LDADD
+= -lcrypto
-lroken
-lcom_err
59 .if
(${USE_SKEY} != "no")
66 CPPFLAGS
+=-DSU_ROOTAUTH
=\"${SU_ROOTAUTH}\"
69 .
endif # USE_PAM == no
71 .
include <bsd.prog.mk
>