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

43 lines
877 B
Makefile
Raw Normal View History

# $NetBSD: Makefile.clnt,v 1.13 2003/08/01 17:04:07 lukem Exp $
1995-07-24 08:02:44 +04:00
# This Makefile builds a client used for testing.
2002-09-18 17:31:52 +04:00
NOMAN= # defined
.include <bsd.own.mk>
1995-07-24 08:02:44 +04:00
PROG= clnt.pcnfsd
SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
1995-07-24 08:02:44 +04:00
CPPFLAGS+= -DUSER_CACHE -DWTMP -I.
.if (${USE_YP} != "no")
CPPFLAGS+=-DUSE_YP
.endif
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 ${TOOL_RPCGEN}` && shift $$(($$# - 1)) && echo "$$1"
pcnfsd_clnt.c: pcnfsd.x ${XRPCGEN}
${TOOL_RPCGEN} -l ${.CURDIR}/pcnfsd.x -o $@
1995-07-24 08:02:44 +04:00
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
${TOOL_RPCGEN} -c ${.CURDIR}/pcnfsd.x -o $@
1995-07-24 08:02:44 +04:00
pcnfsd.h: pcnfsd.x ${XRPCGEN}
${TOOL_RPCGEN} -h ${.CURDIR}/pcnfsd.x -o $@
1995-07-24 08:02:44 +04:00
DPSRCS+= pcnfsd.h
CLEANFILES+= pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
1995-07-24 08:02:44 +04:00
.include <bsd.prog.mk>