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

37 lines
801 B
Makefile
Raw Normal View History

# $NetBSD: Makefile.clnt,v 1.7 2000/09/10 23:21:50 erh Exp $
1995-07-24 08:02:44 +04:00
# This Makefile builds a client used for testing.
1997-10-25 10:57:53 +04:00
CPPFLAGS += -DUSER_CACHE -DWTMP -DUSE_YP -I${.OBJDIR}
1995-07-24 08:02:44 +04:00
PROG= clnt.pcnfsd
SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
MKMAN= no
1995-07-24 08:02:44 +04:00
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}
2000-07-25 10:29:44 +04:00
${RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
1995-07-24 08:02:44 +04:00
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
2000-07-25 10:29:44 +04:00
${RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
1995-07-24 08:02:44 +04:00
pcnfsd.h: pcnfsd.x ${XRPCGEN}
2000-07-25 10:29:44 +04:00
${RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
1995-07-24 08:02:44 +04:00
CLEANFILES += pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
.include <bsd.prog.mk>
.depend ${OBJS}: pcnfsd.h