1993-07-31 04:20:24 +04:00
|
|
|
# from: @(#)Makefile 5.11 (Berkeley) 2/19/91
|
1994-07-27 07:28:11 +04:00
|
|
|
# $Id: Makefile,v 1.7 1994/07/27 03:28:11 brezak Exp $
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
PROG= passwd
|
1993-06-11 04:34:38 +04:00
|
|
|
SRCS= local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c getpwent.c
|
1993-03-21 12:45:37 +03:00
|
|
|
.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
|
1993-06-11 04:34:38 +04:00
|
|
|
${.CURDIR}/../rlogin ${.CURDIR}/../../lib/libc/gen
|
1994-07-27 07:28:11 +04:00
|
|
|
DPADD+= ${LIBRPCSVC} ${LIBCRYPT}
|
|
|
|
LDADD+= -lrpcsvc -lcrypt
|
1993-06-11 04:34:38 +04:00
|
|
|
CFLAGS+=-I${.CURDIR} -DYP
|
1994-07-27 07:28:11 +04:00
|
|
|
|
|
|
|
.if defined(KERBEROS5)
|
|
|
|
SRCS+= krb5_passwd.c
|
|
|
|
CFLAGS+= -DKERBEROS5
|
|
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
|
|
|
|
LDADD+= -lkrb5 -lcrypto
|
|
|
|
.elif defined(KERBEROS)
|
|
|
|
SRCS+= krb_passwd.c
|
|
|
|
CFLAGS+= -DKERBEROS
|
|
|
|
DPADD+= ${LIBKRB} ${LIBDES}
|
|
|
|
LDADD+= -lkrb -ldes
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
${CC} ${CFLAGS} -UYP -c ${.IMPSRC}
|