#	BSDI Makefile,v 2.1 1995/02/03 13:02:09 polk Exp

RPCGEN=	rpcgen

PROG=	rstat
SRCS=	rstat.c rstat_clnt.c rstat_xdr.c
COPTS=	-I.
DPADD+=	${LIBRPC}
LDADD+=	-lrpc
LINKS+=	${BINDIR}/rstat ${BINDIR}/rup
CLEANFILES+=rstat_clnt.c rstat_xdr.c rstat.h rstat.x

.depend: rstat.h rstat_clnt.c rstat_xdr.c

rstat.x: ${.CURDIR}/rstat.rpc
	ln -s ${.CURDIR}/rstat.rpc rstat.x
rstat.h: rstat.x
	$(RPCGEN) -h -o ${.TARGET} rstat.x
rstat_clnt.c: rstat.x
	$(RPCGEN) -l -o ${.TARGET} rstat.x
rstat_xdr.c: rstat.x
	$(RPCGEN) -c -o ${.TARGET} rstat.x

.include <bsd.prog.mk>
