X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=nfs%2FMakefile.am;h=de62dcee0c4826c694177b1451e418f1681961ad;hb=bce63d849cdc3870d3e99fe8a968924a836aa63e;hp=1f0b1b4e165c43186128138bf4759a6d853da5ee;hpb=f816bf4c7641071d83ed2c796c93ce0ddba9b3b4;p=deb_libnfs.git diff --git a/nfs/Makefile.am b/nfs/Makefile.am index 1f0b1b4..de62dce 100644 --- a/nfs/Makefile.am +++ b/nfs/Makefile.am @@ -6,10 +6,11 @@ nfs_GENERATED = $(nfs_SOURCES_GENERATED) $(nfs_HEADERS_GENERATED) CLEANFILES = $(nfs_GENERATED) nfs-stamp -libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include +libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ + -I$(abs_top_srcdir)/include/nfsc libnfs_la_SOURCES = \ $(nfs_SOURCES_GENERATED) \ - nfs.c nfsacl.c libnfs-raw-nfs.c + nfs.c nfsacl.c libnfs-raw-nfs.c libnfs-raw-nfs.h $(nfs_GENERATED) : nfs-stamp nfs-stamp : nfs.x @@ -17,5 +18,7 @@ nfs-stamp : nfs.x touch nfs-stamp compile_rpc: - rpcgen -h @RPCGENFLAGS@ nfs.x | sed -e "s/#include //" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-nfs.h - rpcgen -c @RPCGENFLAGS@ nfs.x | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs.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-nfs.c + cat nfs.x | head -29 >libnfs-raw-nfs.h + rpcgen -h nfs.x | sed -e "s/#include /#include /" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/#define _NFS_H_RPCGEN/#define _NFS_H_RPCGEN\n#include /g" -e "s/#define NFS3_COOKIEVERFSIZE 8/#define NFS3_COOKIEVERFSIZE 8\n\n/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" -e "s/bool_t/uint32_t/g" >> libnfs-raw-nfs.h + cat nfs.x | head -29 >libnfs-raw-nfs.c + rpcgen -c nfs.x | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nfs.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-nfs.c