1996-08-09 13:19:33 +04:00
|
|
|
# $NetBSD: Makefile,v 1.13 1996/08/09 09:19:33 thorpej Exp $
|
1993-07-31 04:20:24 +04:00
|
|
|
# from: @(#)Makefile 5.11 (Berkeley) 2/19/91
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
PROG= passwd
|
1996-05-16 01:50:39 +04:00
|
|
|
SRCS= local_passwd.c yp_passwd.c passwd.c getpwent.c
|
|
|
|
.PATH: ${.CURDIR}/../../lib/libc/gen
|
|
|
|
DPADD+= ${LIBRPCSVC} ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD+= -lrpcsvc -lcrypt -lutil
|
|
|
|
CFLAGS+=-I${.CURDIR} -DYP
|
1994-07-27 07:28:11 +04:00
|
|
|
|
|
|
|
.if defined(KERBEROS5)
|
|
|
|
SRCS+= krb5_passwd.c
|
|
|
|
CFLAGS+= -DKERBEROS5
|
1996-05-16 01:50:39 +04:00
|
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
|
1994-07-27 07:28:11 +04:00
|
|
|
LDADD+= -lkrb5 -lcrypto
|
|
|
|
.elif defined(KERBEROS)
|
1994-10-17 21:36:57 +03:00
|
|
|
SRCS+= krb_passwd.c des_rw.c
|
|
|
|
CFLAGS+= -DKERBEROS -DCRYPT
|
1994-07-27 07:28:11 +04:00
|
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
|
|
LDADD+= -lkrb -ldes
|
|
|
|
.endif
|
|
|
|
|
1995-02-12 20:45:54 +03:00
|
|
|
LINKS= ${BINDIR}/passwd ${BINDIR}/yppasswd
|
|
|
|
MLINKS= passwd.1 yppasswd.1
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
1993-06-11 04:34:38 +04:00
|
|
|
|
|
|
|
getpwent.o: getpwent.c
|
1995-01-08 02:07:03 +03:00
|
|
|
${COMPILE.c} -UYP ${.IMPSRC}
|