Note that fcntl(2) returns EINVAL for invalid command.
[netbsd-mini2440.git] / usr.bin / passwd / Makefile
blob3c7bdf0a4fc73f74fde58387892652ccf1561e8f
1 # $NetBSD: Makefile,v 1.40 2005/03/04 20:41:09 he 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 CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
13 .if (${USE_YP} != "no")
14 SRCS+= yp_passwd.c
15 CPPFLAGS+=-DYP
16 DPADD+= ${LIBRPCSVC}
17 LDADD+= -lrpcsvc
18 LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
19 MAN+= yppasswd.1
20 .endif
22 DPADD+= ${LIBCRYPT} ${LIBUTIL}
23 LDADD+= -lcrypt -lutil
25 BINOWN= root
26 BINMODE=4555
28 .if (${USE_KERBEROS} != "no")
29 CPPFLAGS+= -DKERBEROS5 -I${DESTDIR}/usr/include/krb5
30 SRCS+= krb5_passwd.c
32 DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
33 LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
34 LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
35 MAN+= kpasswd.1
36 .endif
38 .if (${USE_PAM} != "no")
39 CPPFLAGS+=-DUSE_PAM
40 SRCS+= pam_passwd.c
41 LDADD+=-lpam ${PAM_STATIC_LDADD}
42 DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
43 .endif
45 .include <bsd.prog.mk>