Commit | Line | Data |
---|---|---|
ed09b567 RS |
1 | noinst_LTLIBRARIES = libnsm.la |
2 | ||
3 | nsm_SOURCES_GENERATED = | |
4 | nsm_HEADERS_GENERATED = | |
5 | nsm_GENERATED = $(nsm_SOURCES_GENERATED) $(nsm_HEADERS_GENERATED) | |
6 | ||
7 | CLEANFILES = $(nsm_GENERATED) nsm-stamp | |
8 | ||
9 | libnsm_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ | |
10 | -I$(abs_top_srcdir)/include/nfsc | |
11 | libnsm_la_SOURCES = \ | |
12 | $(nsm_SOURCES_GENERATED) \ | |
13 | nsm.c libnfs-raw-nsm.c | |
14 | ||
15 | $(nsm_GENERATED) : nsm-stamp | |
16 | nsm-stamp : nsm.x | |
17 | rm -f $(nsm_GENERATED) | |
18 | touch nsm-stamp | |
19 | ||
20 | compile_rpc: | |
21 | rpcgen -h nsm.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-nsm.h | |
22 | rpcgen -c nsm.x | sed -e "s/#include \".*nsm.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-nsm.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-nsm.c |