libexec exec fix
[minix.git] / usr.bin / passwd / Makefile
blob34ee09fbccfb19b88da956d4922c2aa5b1e567dc
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 .if defined(__MINIX)
7 # LSC Until it compiles cleanly...
8 NOGCCERROR:=yes
9 .endif
11 USE_FORT?= yes # setuid
12 PROG= passwd
13 SRCS= local_passwd.c passwd.c
14 MAN= passwd.1
16 # LSC No LOGIN_CAP on Minix?
17 CPPFLAGS+=-I${.CURDIR} #-DLOGIN_CAP
19 .if (${USE_YP} != "no")
20 SRCS+= yp_passwd.c
21 CPPFLAGS+=-DYP
22 DPADD+= ${LIBRPCSVC}
23 LDADD+= -lrpcsvc
24 LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
25 MAN+= yppasswd.1
26 .endif
28 DPADD+= ${LIBCRYPT} ${LIBUTIL}
29 LDADD+= -lcrypt -lutil
31 BINOWN= root
32 BINMODE=4555
34 .if (${USE_KERBEROS} != "no")
35 CPPFLAGS+= -DKERBEROS5
36 SRCS+= krb5_passwd.c
38 DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
39 LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
40 LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
41 MAN+= kpasswd.1
42 .endif
44 .if (${USE_PAM} != "no")
45 CPPFLAGS+=-DUSE_PAM
46 SRCS+= pam_passwd.c
47 LDADD+=-lpam ${PAM_STATIC_LDADD}
48 DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
49 .endif
51 .include <bsd.prog.mk>