kernel: scheduling fix for ARM
[minix.git] / usr.bin / passwd / Makefile
blobcffd0975e58286867064f24f89b295825e461e3a
1 # $NetBSD: Makefile,v 1.42 2011/04/24 21:42:06 elric Exp $
2 # from: @(#)Makefile 8.3 (Berkeley) 4/2/94
4 .include <bsd.own.mk>
6 USE_FORT?= yes # setuid
7 PROG= passwd
8 SRCS= local_passwd.c passwd.c
9 MAN= passwd.1
11 # LSC No LOGIN_CAP on Minix?
12 CPPFLAGS+=-I${.CURDIR} #-DLOGIN_CAP
14 .if (${USE_YP} != "no")
15 SRCS+= yp_passwd.c
16 CPPFLAGS+=-DYP
17 DPADD+= ${LIBRPCSVC}
18 LDADD+= -lrpcsvc
19 LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
20 MAN+= yppasswd.1
21 .endif
23 DPADD+= ${LIBCRYPT} ${LIBUTIL}
24 LDADD+= -lcrypt -lutil
26 BINOWN= root
27 BINMODE=4555
29 .if (${USE_KERBEROS} != "no")
30 CPPFLAGS+= -DKERBEROS5
31 SRCS+= krb5_passwd.c
33 DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
34 LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
35 LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
36 MAN+= kpasswd.1
37 .endif
39 .if (${USE_PAM} != "no")
40 CPPFLAGS+=-DUSE_PAM
41 SRCS+= pam_passwd.c
42 LDADD+=-lpam ${PAM_STATIC_LDADD}
43 DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
44 .endif
46 .include <bsd.prog.mk>