Remove building with NOCRYPTO option
[minix.git] / usr.bin / passwd / Makefile
blob30cde6f2cc28d2d792ad47132d7f54bd65cb0e6c
1 # $NetBSD: Makefile,v 1.44 2013/02/13 23:19:14 christos 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 .ifdef OVERRIDE_HEIMDAL_KPASSWD
36 LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
37 MAN+= kpasswd.1
38 .endif
39 .endif
41 .if (${USE_PAM} != "no")
42 CPPFLAGS+=-DUSE_PAM
43 SRCS+= pam_passwd.c
44 LDADD+=-lpam ${PAM_STATIC_LDADD}
45 DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
46 .endif
48 .include <bsd.prog.mk>