NetBSD/usr.bin/passwd/Makefile

34 lines
866 B
Makefile
Raw Normal View History

1993-07-31 04:20:24 +04:00
# from: @(#)Makefile 5.11 (Berkeley) 2/19/91
1995-03-31 09:49:37 +04:00
# $Id: Makefile,v 1.11 1995/03/31 05:49:37 hpeyerl 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
DPADD+= ${LIBRPCSVC} ${LIBCRYPT}
LDADD+= -lrpcsvc -lcrypt
1995-03-31 09:49:37 +04:00
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw -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
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
${COMPILE.c} -UYP ${.IMPSRC}