Commit | Line | Data |
---|---|---|
dabf4152 AM |
1 | noinst_LTLIBRARIES = librquota.la |
2 | ||
ee872606 RRS |
3 | rquota_SOURCES_GENERATED = |
4 | rquota_HEADERS_GENERATED = | |
dabf4152 AM |
5 | rquota_GENERATED = $(rquota_SOURCES_GENERATED) $(rquota_HEADERS_GENERATED) |
6 | ||
7 | CLEANFILES = $(rquota_GENERATED) rquota-stamp | |
8 | ||
ee872606 RRS |
9 | librquota_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ |
10 | -I$(abs_top_srcdir)/include/nfsc | |
dabf4152 AM |
11 | librquota_la_SOURCES = \ |
12 | $(rquota_SOURCES_GENERATED) \ | |
ee872606 | 13 | rquota.c libnfs-raw-rquota.c libnfs-raw-rquota.h |
dabf4152 AM |
14 | |
15 | $(rquota_GENERATED) : rquota-stamp | |
16 | rquota-stamp : rquota.x | |
17 | rm -f $(rquota_GENERATED) | |
dabf4152 | 18 | touch rquota-stamp |
f1f22dbf | 19 | |
ee872606 | 20 | compile_rpc: |
f1f22dbf RRS |
21 | cat rquota.x | head -29 >libnfs-raw-rquota.h |
22 | rpcgen -h rquota.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" >> libnfs-raw-rquota.h | |
23 | cat rquota.x | head -29 >libnfs-raw-rquota.c | |
24 | rpcgen -c rquota.x | sed -e "s/#include \".*rquota.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-rquota.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-rquota.c |