X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=mount%2FMakefile.am;h=9dadbf8bfc2c6a477aeceac85e544b547be8b79c;hb=b554c8e8d25e51f2c667ceac668dcc3898797e9c;hp=19cbaee7eb3b483ccf00daa26e291b2671a7edde;hpb=752d8ed28a91219de086635d73e0ba45991abb1e;p=deb_libnfs.git diff --git a/mount/Makefile.am b/mount/Makefile.am index 19cbaee..9dadbf8 100644 --- a/mount/Makefile.am +++ b/mount/Makefile.am @@ -1,20 +1,22 @@ noinst_LTLIBRARIES = libmount.la -mount_SOURCES_GENERATED = libnfs-raw-mount.c -mount_HEADERS_GENERATED = libnfs-raw-mount.h +mount_SOURCES_GENERATED = +mount_HEADERS_GENERATED = 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 + mount.c libnfs-raw-mount.c $(mount_GENERATED) : mount-stamp mount-stamp : mount.x rm -f $(mount_GENERATED) - rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-mount.h - rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*mount.h\"/#include \"libnfs-raw-mount.h\"/" > libnfs-raw-mount.c touch mount-stamp - + +compile_rpc: + rpcgen -h mount.x | sed -e "s/#include //" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-mount.h + 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