NetBSD/usr.bin/passwd/Makefile

31 lines
765 B
Makefile

# from: @(#)Makefile 5.11 (Berkeley) 2/19/91
# $Id: Makefile,v 1.8 1994/10/17 18:36:57 brezak Exp $
PROG= passwd
SRCS= local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c getpwent.c
.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
${.CURDIR}/../rlogin ${.CURDIR}/../../lib/libc/gen
DPADD+= ${LIBRPCSVC} ${LIBCRYPT}
LDADD+= -lrpcsvc -lcrypt
CFLAGS+=-I${.CURDIR} -DYP
.if defined(KERBEROS5)
SRCS+= krb5_passwd.c
CFLAGS+= -DKERBEROS5
DPADD+= ${LIBKRB5} ${LIBCRYPTO}
LDADD+= -lkrb5 -lcrypto
.elif defined(KERBEROS)
SRCS+= krb_passwd.c des_rw.c
CFLAGS+= -DKERBEROS -DCRYPT
DPADD+= ${LIBKRB} ${LIBDES}
LDADD+= -lkrb -ldes
.endif
BINOWN= root
BINMODE=4555
.include <bsd.prog.mk>
getpwent.o: getpwent.c
${CC} ${CFLAGS} -UYP -c ${.IMPSRC}