Commit | Line | Data |
---|---|---|
6c437065 TN |
1 | noinst_LTLIBRARIES = libnfs.la |
2 | ||
763cd6e3 RS |
3 | nfs_SOURCES_GENERATED = |
4 | nfs_HEADERS_GENERATED = | |
6c437065 TN |
5 | nfs_GENERATED = $(nfs_SOURCES_GENERATED) $(nfs_HEADERS_GENERATED) |
6 | ||
7 | CLEANFILES = $(nfs_GENERATED) nfs-stamp | |
8 | ||
e803ae57 RS |
9 | libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ |
10 | -I$(abs_top_srcdir)/include/nfsc | |
6c437065 TN |
11 | libnfs_la_SOURCES = \ |
12 | $(nfs_SOURCES_GENERATED) \ | |
5392b1cf | 13 | nfs.c nfsacl.c libnfs-raw-nfs.c libnfs-raw-nfs.h |
6c437065 TN |
14 | |
15 | $(nfs_GENERATED) : nfs-stamp | |
16 | nfs-stamp : nfs.x | |
17 | rm -f $(nfs_GENERATED) | |
6c437065 | 18 | touch nfs-stamp |
763cd6e3 RS |
19 | |
20 | compile_rpc: | |
a0c4ea7d | 21 | cat nfs.x | head -29 >libnfs-raw-nfs.h |
bce63d84 | 22 | rpcgen -h nfs.x | sed -e "s/#include <rpc\/rpc.h>/#include <nfsc\/libnfs-zdr.h>/" -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/#define _NFS_H_RPCGEN/#define _NFS_H_RPCGEN\n#include <nfsc\/libnfs-zdr.h>/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 |
a0c4ea7d | 23 | cat nfs.x | head -29 >libnfs-raw-nfs.c |
af8d37c8 | 24 | 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 |