RPC: get rid of references to SCVXPRT
[deb_libnfs.git] / mount / Makefile.am
CommitLineData
6c437065
TN
1noinst_LTLIBRARIES = libmount.la
2
763cd6e3
RS
3mount_SOURCES_GENERATED =
4mount_HEADERS_GENERATED =
6c437065
TN
5mount_GENERATED = $(mount_SOURCES_GENERATED) $(mount_HEADERS_GENERATED)
6
7CLEANFILES = $(mount_GENERATED) mount-stamp
8
e803ae57
RS
9libmount_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
6c437065
TN
11libmount_la_SOURCES = \
12 $(mount_SOURCES_GENERATED) \
5392b1cf 13 mount.c libnfs-raw-mount.c libnfs-raw-mount.h
6c437065
TN
14
15$(mount_GENERATED) : mount-stamp
16mount-stamp : mount.x
17 rm -f $(mount_GENERATED)
6c437065 18 touch mount-stamp
763cd6e3 19
a0c4ea7d
RS
20compile_rpc:
21 cat mount.x | head -29 >libnfs-raw-mount.h
d663ff20 22 rpcgen -h mount.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-mount.h
a0c4ea7d
RS
23 cat mount.x | head -29 >libnfs-raw-mount.c
24 rpcgen -c mount.x | sed -e "s/#include \".*mount.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-mount.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-mount.c