RPC: get rid of references to SCVXPRT
[deb_libnfs.git] / nlm / Makefile.am
CommitLineData
6916a665
RS
1noinst_LTLIBRARIES = libnlm.la
2
763cd6e3
RS
3nlm_SOURCES_GENERATED =
4nlm_HEADERS_GENERATED =
6916a665
RS
5nlm_GENERATED = $(nlm_SOURCES_GENERATED) $(nlm_HEADERS_GENERATED)
6
7CLEANFILES = $(nlm_GENERATED) nlm-stamp
8
e803ae57
RS
9libnlm_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
6916a665
RS
11libnlm_la_SOURCES = \
12 $(nlm_SOURCES_GENERATED) \
5392b1cf 13 nlm.c libnfs-raw-nlm.c libnfs-raw-nlm.h
6916a665
RS
14
15$(nlm_GENERATED) : nlm-stamp
16nlm-stamp : nlm.x
17 rm -f $(nlm_GENERATED)
6916a665 18 touch nlm-stamp
763cd6e3
RS
19
20compile_rpc:
a0c4ea7d 21 cat nlm.x | head -29 >libnfs-raw-nlm.h
d663ff20 22 rpcgen -h nlm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-nlm.h
a0c4ea7d
RS
23 cat nlm.x | head -29 >libnfs-raw-nlm.c
24 rpcgen -c nlm.x | sed -e "s/#include \".*nlm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nlm.h\"/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" >> libnfs-raw-nlm.c