X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=mount%2FMakefile.am;h=5a9c65e2a19c9d2dcc4f671b687c91db7cabb2c6;hb=ea283cd792ea5b967c8f9dc5842fca6c2281cdd6;hp=c0633169263d1ea129bdb507697cda7aaa4c5696;hpb=f816bf4c7641071d83ed2c796c93ce0ddba9b3b4;p=deb_libnfs.git diff --git a/mount/Makefile.am b/mount/Makefile.am index c063316..5a9c65e 100644 --- a/mount/Makefile.am +++ b/mount/Makefile.am @@ -6,16 +6,19 @@ mount_GENERATED = $(mount_SOURCES_GENERATED) $(mount_HEADERS_GENERATED) CLEANFILES = $(mount_GENERATED) mount-stamp -libmount_la_CPPFLAGS = -I$(abs_top_srcdir)/include +libmount_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ + -I$(abs_top_srcdir)/include/nfsc libmount_la_SOURCES = \ $(mount_SOURCES_GENERATED) \ - mount.c libnfs-raw-mount.c + mount.c libnfs-raw-mount.c libnfs-raw-mount.h $(mount_GENERATED) : mount-stamp mount-stamp : mount.x rm -f $(mount_GENERATED) touch mount-stamp -compile_rpc: - rpcgen -h @RPCGENFLAGS@ mount.x | sed -e "s/#include //" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-mount.h - 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" -e "s/register int32_t \*buf;/register int32_t *buf;\n buf = NULL;/" > libnfs-raw-mount.c +compile_rpc: + cat mount.x | head -29 >libnfs-raw-mount.h + rpcgen -h mount.x | sed -e "s/#include /#include /" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" -e "s/bool_t/uint32_t/g" >> libnfs-raw-mount.h + cat mount.x | head -29 >libnfs-raw-mount.c + 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;/" -e "s/bool_t/uint32_t/g" >> libnfs-raw-mount.c