# $OpenBSD: Makefile,v 1.27 2003/05/14 07:22:47 mho Exp $ .include PROG= passwd SRCS= local_passwd.c yp_passwd.c passwd.c pwd_gensalt.c getpwent.c \ pwd_check.c .PATH: ${.CURDIR}/../../lib/libc/gen DPADD+= ${LIBRPCSVC} ${LIBUTIL} LDADD+= -lrpcsvc -lutil CFLAGS+= -I${.CURDIR} .if (${YP:L} == "yes") CFLAGS+=-DYP -I${.CURDIR}/../../lib/libc/yp .endif .include # For Kerberos .if (${KERBEROS5:L} == "yes") .PATH: ${.CURDIR}/../rsh SRCS+= krb_passwd.c des_rw.c SRCS+= krb5_passwd.c CFLAGS+= -DKRB5 DPADD+= ${LIBKRB5} ${LIBASN1} ${LIBDES} ${LIBCOM_ERR} ${LIBCRYPTO} LDADD+= -lkrb5 -lasn1 -ldes -lcom_err -lcrypto .endif BINMODE=4555 BINOWN=root getpwent.o: getpwent.c ${COMPILE.c} -UYP ${.CURDIR}/../../lib/libc/gen/getpwent.c .include