blob: 6716ac216244cbb9fa4e4f90f67ab3b374071815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile.clnt,v 1.14 2013/12/15 06:10:33 christos Exp $
# This Makefile builds a client used for testing.
NOMAN= # defined
.include <bsd.own.mk>
PROG= clnt.pcnfsd
SRCS= pcnfsd_test.c pcnfsd_clnt.c pcnfsd_xdr.c
CPPFLAGS+= -DUSER_CACHE -DWTMP -I.
.if (${USE_YP} != "no")
CPPFLAGS+=-DUSE_YP
.endif
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} ${RPCGEN_FLAGS} -l ${.CURDIR}/pcnfsd.x -o $@
pcnfsd_xdr.c: pcnfsd.x ${XRPCGEN}
${TOOL_RPCGEN} ${RPCGEN_FLAGS} -c ${.CURDIR}/pcnfsd.x -o $@
pcnfsd.h: pcnfsd.x ${XRPCGEN}
${TOOL_RPCGEN} ${RPCGEN_FLAGS} -h ${.CURDIR}/pcnfsd.x -o $@
DPSRCS+= pcnfsd.h
CLEANFILES+= pcnfsd_clnt.c pcnfsd_xdr.c pcnfsd.h
.include <bsd.prog.mk>
|