Fix some compiler warnings and bugs
[deb_libnfs.git] / nsm / Makefile.am
CommitLineData
ed09b567
RS
1noinst_LTLIBRARIES = libnsm.la
2
3nsm_SOURCES_GENERATED =
4nsm_HEADERS_GENERATED =
5nsm_GENERATED = $(nsm_SOURCES_GENERATED) $(nsm_HEADERS_GENERATED)
6
7CLEANFILES = $(nsm_GENERATED) nsm-stamp
8
9libnsm_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
11libnsm_la_SOURCES = \
12 $(nsm_SOURCES_GENERATED) \
13 nsm.c libnfs-raw-nsm.c
14
15$(nsm_GENERATED) : nsm-stamp
16nsm-stamp : nsm.x
17 rm -f $(nsm_GENERATED)
18 touch nsm-stamp
19
20compile_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