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