NetBSD/usr.bin/passwd/Makefile

46 lines
940 B
Makefile
Raw Normal View History

2011-04-25 01:42:06 +04:00
# $NetBSD: Makefile,v 1.42 2011/04/24 21:42:06 elric Exp $
1996-12-28 07:30:02 +03:00
# from: @(#)Makefile 8.3 (Berkeley) 4/2/94
.include <bsd.own.mk>
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # setuid
1993-03-21 12:45:37 +03:00
PROG= passwd
SRCS= local_passwd.c passwd.c
MAN= passwd.1
CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
.if (${USE_YP} != "no")
SRCS+= yp_passwd.c
CPPFLAGS+=-DYP
DPADD+= ${LIBRPCSVC}
LDADD+= -lrpcsvc
LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
MAN+= yppasswd.1
.endif
DPADD+= ${LIBCRYPT} ${LIBUTIL}
LDADD+= -lcrypt -lutil
1993-03-21 12:45:37 +03:00
BINOWN= root
BINMODE=4555
.if (${USE_KERBEROS} != "no")
2011-04-25 01:42:06 +04:00
CPPFLAGS+= -DKERBEROS5
SRCS+= krb5_passwd.c
2000-08-04 02:56:29 +04:00
2002-10-23 05:25:35 +04:00
DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
2000-08-04 02:56:29 +04:00
LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
MAN+= kpasswd.1
.endif
1999-07-13 02:11:37 +04:00
.if (${USE_PAM} != "no")
CPPFLAGS+=-DUSE_PAM
SRCS+= pam_passwd.c
LDADD+=-lpam ${PAM_STATIC_LDADD}
DPADD+=${LIBPAM} ${PAM_STATIC_DPADD}
.endif
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>