NetBSD/usr.sbin/rpc.pcnfsd/Makefile.clnt

37 lines
801 B
Makefile

# $NetBSD: Makefile.clnt,v 1.7 2000/09/10 23:21:50 erh Exp $
# This Makefile builds a client used for testing.
CPPFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
PROG= clnt.pcnfsd
SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
MKMAN= no
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
# Special rules for the generated C code...
.ifnmake getrpcgen
XRPCGEN != (cd ${.CURDIR} && ${MAKE} getrpcgen)
.endif
getrpcgen:
@set -- X `type ${RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
${RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
${RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
pcnfsd.h: pcnfsd.x ${XRPCGEN}
${RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
CLEANFILES += pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
.include <bsd.prog.mk>
.depend ${OBJS}: pcnfsd.h