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