RPC: get rid of references to SCVXPRT
[deb_libnfs.git] / portmap / Makefile.am
CommitLineData
6c437065
TN
1noinst_LTLIBRARIES = libportmap.la
2
763cd6e3
RS
3portmap_SOURCES_GENERATED =
4portmap_HEADERS_GENERATED =
6c437065
TN
5portmap_GENERATED = $(portmap_SOURCES_GENERATED) $(portmap_HEADERS_GENERATED)
6
7CLEANFILES = $(portmap_GENERATED) portmap-stamp
8
e803ae57
RS
9libportmap_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
10 -I$(abs_top_srcdir)/include/nfsc
6c437065
TN
11libportmap_la_SOURCES = \
12 $(portmap_SOURCES_GENERATED) \
5392b1cf 13 portmap.c libnfs-raw-portmap.c libnfs-raw-portmap.h
6c437065
TN
14
15$(portmap_GENERATED) : portmap-stamp
16portmap-stamp : portmap.x
17 rm -f $(portmap_GENERATED)
6c437065 18 touch portmap-stamp
763cd6e3
RS
19
20compile_rpc:
a0c4ea7d 21 cat portmap.x | head -29 >libnfs-raw-portmap.h
d663ff20 22 rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" >> libnfs-raw-portmap.h
a0c4ea7d
RS
23 cat portmap.x | head -29 >libnfs-raw-portmap.c
24 rpcgen -c portmap.x | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-zdr.h\"\n#include \"libnfs-raw-portmap.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-portmap.c