ZDR: New builtin replacement for RPC/XDR called ZDR
[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
9libmount_la_CPPFLAGS = -I$(abs_top_srcdir)/include
10libmount_la_SOURCES = \
11 $(mount_SOURCES_GENERATED) \
763cd6e3 12 mount.c libnfs-raw-mount.c
6c437065
TN
13
14$(mount_GENERATED) : mount-stamp
15mount-stamp : mount.x
16 rm -f $(mount_GENERATED)
6c437065 17 touch mount-stamp
763cd6e3
RS
18
19compile_rpc:
20 rpcgen -h @RPCGENFLAGS@ mount.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-mount.h
21 rpcgen -c @RPCGENFLAGS@ 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" > libnfs-raw-mount.c