summaryrefslogtreecommitdiffstats
path: root/tools/nlmtest/Makefile
blob: 0df9f321d89b0132fed2aa8e70cf58aa15766a4d (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
#
# nlmtest	Exercise some NLM calls to test the lockd server.
#

TOP	= ../../
TOOL	= nlmtest
SRCS	= $(RPCSRCS) nlmtest.c
OBJS	= $(SRCS:.c=.o)

RPCSRCS	= nlm_prot_clnt.c nlm_prot_xdr.c
RPCHDRS	= nlm_prot.h

#LIBS	= -lnfs

include $(TOP)rules.mk

install::
	@:

$(RPCHDRS) $(RPCSRCS): nlm_prot.x
	$(RM) $(RPCHDRS) $(RPCSRCS)
	$(RPCGEN) -h -o nlm_prot.h $<
	$(RPCGEN) -l -o nlm_prot_clnt.c $<
	$(RPCGEN) -c -o nlm_prot_xdr.c $<

clean distclean::
	$(RM) $(RPCHDRS) $(RPCSRCS)