X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=portmap%2FMakefile.am;h=5fcccfa43f39af5bee1c14e7857239a6d52034cd;hb=HEAD;hp=6c947fc8ba657b94280998387ad7643ae4c93512;hpb=6c437065d363dee7f14296e80ae34877e4e1e78c;p=deb_libnfs.git diff --git a/portmap/Makefile.am b/portmap/Makefile.am index 6c947fc..5fcccfa 100644 --- a/portmap/Makefile.am +++ b/portmap/Makefile.am @@ -1,20 +1,24 @@ noinst_LTLIBRARIES = libportmap.la -portmap_SOURCES_GENERATED = libnfs-raw-portmap.c -portmap_HEADERS_GENERATED = libnfs-raw-portmap.h +portmap_SOURCES_GENERATED = +portmap_HEADERS_GENERATED = portmap_GENERATED = $(portmap_SOURCES_GENERATED) $(portmap_HEADERS_GENERATED) CLEANFILES = $(portmap_GENERATED) portmap-stamp -libportmap_la_CPPFLAGS = -I$(abs_top_srcdir)/include +libportmap_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ + -I$(abs_top_srcdir)/include/nfsc libportmap_la_SOURCES = \ $(portmap_SOURCES_GENERATED) \ - portmap.c + portmap.c libnfs-raw-portmap.c libnfs-raw-portmap.h $(portmap_GENERATED) : portmap-stamp portmap-stamp : portmap.x rm -f $(portmap_GENERATED) - rpcgen -h $< > libnfs-raw-portmap.h - rpcgen -c $< | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-raw-portmap.h\"/" > libnfs-raw-portmap.c touch portmap-stamp - + +compile_rpc: + cat portmap.x | head -29 >libnfs-raw-portmap.h + rpcgen -h portmap.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-portmap.h + cat portmap.x | head -29 >libnfs-raw-portmap.c + rpcgen -c portmap.x | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-zdr.h\"\n#include \"libnfs-raw-portmap.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-portmap.c