Remove all remaining references to RPC
[deb_libnfs.git] / nfs / Makefile.am
CommitLineData
6c437065
TN
1noinst_LTLIBRARIES = libnfs.la
2
763cd6e3
RS
3nfs_SOURCES_GENERATED =
4nfs_HEADERS_GENERATED =
6c437065
TN
5nfs_GENERATED = $(nfs_SOURCES_GENERATED) $(nfs_HEADERS_GENERATED)
6
7CLEANFILES = $(nfs_GENERATED) nfs-stamp
8
e803ae57
RS
9libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
6c437065
TN
11libnfs_la_SOURCES = \
12 $(nfs_SOURCES_GENERATED) \
763cd6e3 13 nfs.c nfsacl.c libnfs-raw-nfs.c
6c437065
TN
14
15$(nfs_GENERATED) : nfs-stamp
16nfs-stamp : nfs.x
17 rm -f $(nfs_GENERATED)
6c437065 18 touch nfs-stamp
763cd6e3
RS
19
20compile_rpc:
ec70621f
RS
21 rpcgen -h nfs.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-nfs.h
22 rpcgen -c nfs.x | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs.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-nfs.c