X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=portmap%2FMakefile.am;h=b5b8abb3905850127c668de19d966a2e22440a34;hb=ef1f869943d9d6a19d4b2c21059fc9c0b2632a09;hp=96fc61fca27aefc44d474360f824d50de3596781;hpb=f816bf4c7641071d83ed2c796c93ce0ddba9b3b4;p=deb_libnfs.git diff --git a/portmap/Makefile.am b/portmap/Makefile.am index 96fc61f..b5b8abb 100644 --- a/portmap/Makefile.am +++ b/portmap/Makefile.am @@ -6,10 +6,11 @@ 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 libnfs-raw-portmap.c + portmap.c libnfs-raw-portmap.c libnfs-raw-portmap.h $(portmap_GENERATED) : portmap-stamp portmap-stamp : portmap.x @@ -17,5 +18,7 @@ portmap-stamp : portmap.x touch portmap-stamp compile_rpc: - rpcgen -h @RPCGENFLAGS@ portmap.x | sed -e "s/#include //" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-portmap.h - rpcgen -c @RPCGENFLAGS@ 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;/" > libnfs-raw-portmap.c + cat portmap.x | head -29 >libnfs-raw-portmap.h + rpcgen -h portmap.x | sed -e "s/#include //" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /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;/" >> libnfs-raw-portmap.c