1# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
| 1# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
|
2# $Id: Makefile,v 1.30 1998/09/19 22:42:04 obrien Exp $
| 2# $Id: Makefile,v 1.31 1999/02/14 13:56:15 des Exp $
|
3 4PROG= passwd 5SRCS= local_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c \ 6 yp_passwd.c ypxfr_misc.c ${GENSRCS} 7GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \ 8 yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c
| 3 4PROG= passwd 5SRCS= local_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c \ 6 yp_passwd.c ypxfr_misc.c ${GENSRCS} 7GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \ 8 yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c
|
9CFLAGS+=-Wall
| 9CFLAGS+=-Wall -DPASSWD_IGNORE_COMMENTS
|
10 11DPADD= ${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} 12LDADD= -lcrypt -lrpcsvc -lutil 13.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 14 ${.CURDIR}/../rlogin ${.CURDIR}/../../libexec/ypxfr \ 15 ${.CURDIR}/../../usr.sbin/rpc.yppasswdd 16 17CFLAGS+= -DLOGIN_CAP -DCRYPT -DYP -I. -I${.CURDIR} \ 18 -I${.CURDIR}/../../usr.sbin/vipw \ 19 -I${.CURDIR}/../../usr.bin/chpass \ 20 -I${.CURDIR}/../../libexec/ypxfr \ 21 -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd \ 22 -Dyp_error=warnx -DLOGGING 23 24CLEANFILES= ${GENSRCS} 25 26RPCGEN= rpcgen -C 27RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x 28RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x 29RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 30 31yp.h: ${RPCSRC} 32 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 33 34yp_clnt.c: ${RPCSRC} yp.h 35 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 36 37yppasswd.h: ${RPCSRC_PW} 38 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 39 40yppasswd_clnt.c: ${RPCSRC_PW} 41 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 42 43yppasswd_private.h: ${RPCSRC_PRIV} 44 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 45 46yppasswd_private_xdr.c: ${RPCSRC_PRIV} 47 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 48 49yppasswd_private_clnt.c: ${RPCSRC_PRIV} 50 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV} 51 52BINMODE=4555 53MAN1=passwd.1 54LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd 55MLINKS=passwd.1 yppasswd.1 56 57.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && (defined(MAKE_KERBEROS4)) 58SRCS+= kpasswd_standalone.c 59.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 60 ${.CURDIR}/../../usr.bin/rlogin ${.CURDIR}/../../usr.bin/passwd \ 61 ${.CURDIR}/../../crypto/kerberosIV/kadmin 62 63CFLAGS+= -DKERBEROS 64# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR} 65DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL} 66LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil 67DISTRIBUTION= krb 68.endif 69 70beforeinstall: 71.for i in passwd yppasswd 72 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ 73 chflags noschg ${DESTDIR}${BINDIR}/$i || true 74.endfor 75 76afterinstall: 77 -chflags schg ${DESTDIR}${BINDIR}/passwd 78 79.include <bsd.prog.mk>
| 10 11DPADD= ${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} 12LDADD= -lcrypt -lrpcsvc -lutil 13.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 14 ${.CURDIR}/../rlogin ${.CURDIR}/../../libexec/ypxfr \ 15 ${.CURDIR}/../../usr.sbin/rpc.yppasswdd 16 17CFLAGS+= -DLOGIN_CAP -DCRYPT -DYP -I. -I${.CURDIR} \ 18 -I${.CURDIR}/../../usr.sbin/vipw \ 19 -I${.CURDIR}/../../usr.bin/chpass \ 20 -I${.CURDIR}/../../libexec/ypxfr \ 21 -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd \ 22 -Dyp_error=warnx -DLOGGING 23 24CLEANFILES= ${GENSRCS} 25 26RPCGEN= rpcgen -C 27RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x 28RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x 29RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 30 31yp.h: ${RPCSRC} 32 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 33 34yp_clnt.c: ${RPCSRC} yp.h 35 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 36 37yppasswd.h: ${RPCSRC_PW} 38 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 39 40yppasswd_clnt.c: ${RPCSRC_PW} 41 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 42 43yppasswd_private.h: ${RPCSRC_PRIV} 44 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 45 46yppasswd_private_xdr.c: ${RPCSRC_PRIV} 47 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 48 49yppasswd_private_clnt.c: ${RPCSRC_PRIV} 50 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV} 51 52BINMODE=4555 53MAN1=passwd.1 54LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd 55MLINKS=passwd.1 yppasswd.1 56 57.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && (defined(MAKE_KERBEROS4)) 58SRCS+= kpasswd_standalone.c 59.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 60 ${.CURDIR}/../../usr.bin/rlogin ${.CURDIR}/../../usr.bin/passwd \ 61 ${.CURDIR}/../../crypto/kerberosIV/kadmin 62 63CFLAGS+= -DKERBEROS 64# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR} 65DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL} 66LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil 67DISTRIBUTION= krb 68.endif 69 70beforeinstall: 71.for i in passwd yppasswd 72 [ ! -e ${DESTDIR}${BINDIR}/$i ] || \ 73 chflags noschg ${DESTDIR}${BINDIR}/$i || true 74.endfor 75 76afterinstall: 77 -chflags schg ${DESTDIR}${BINDIR}/passwd 78 79.include <bsd.prog.mk>
|