2011-06-25 01:23:43 +04:00
|
|
|
noinst_LTLIBRARIES = libportmap.la
|
|
|
|
|
2012-07-04 10:53:12 +04:00
|
|
|
portmap_SOURCES_GENERATED =
|
|
|
|
portmap_HEADERS_GENERATED =
|
2011-06-25 01:23:43 +04:00
|
|
|
portmap_GENERATED = $(portmap_SOURCES_GENERATED) $(portmap_HEADERS_GENERATED)
|
|
|
|
|
|
|
|
CLEANFILES = $(portmap_GENERATED) portmap-stamp
|
|
|
|
|
2012-11-29 08:21:53 +04:00
|
|
|
libportmap_la_CPPFLAGS = -I$(abs_top_srcdir)/include \
|
2016-01-09 00:41:17 +03:00
|
|
|
-I$(abs_top_srcdir)/include/nfsc \
|
|
|
|
-I$(abs_top_srcdir)/win32
|
2011-06-25 01:23:43 +04:00
|
|
|
libportmap_la_SOURCES = \
|
|
|
|
$(portmap_SOURCES_GENERATED) \
|
2014-01-28 08:47:24 +04:00
|
|
|
portmap.c libnfs-raw-portmap.c libnfs-raw-portmap.h
|
2011-06-25 01:23:43 +04:00
|
|
|
|
|
|
|
$(portmap_GENERATED) : portmap-stamp
|
|
|
|
portmap-stamp : portmap.x
|
|
|
|
rm -f $(portmap_GENERATED)
|
|
|
|
touch portmap-stamp
|
2012-07-04 10:53:12 +04:00
|
|
|
|
|
|
|
compile_rpc:
|
2014-06-14 04:03:35 +04:00
|
|
|
cat portmap.x | head -29 >libnfs-raw-portmap.h
|
2014-07-14 02:36:59 +04:00
|
|
|
rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>/#include <nfsc\/libnfs-zdr.h>/" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" -e "s/ CLIENT / void /g" -e "s/SVCXPRT /void /g" -e "s/bool_t/uint32_t/g" >> libnfs-raw-portmap.h
|
2014-06-14 04:03:35 +04:00
|
|
|
cat portmap.x | head -29 >libnfs-raw-portmap.c
|
2016-12-27 03:48:49 +03:00
|
|
|
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;//" -e "s/bool_t/uint32_t/g" -e "s/[ \t]*buf = / int32_t *buf;\n buf = /" >> libnfs-raw-portmap.c
|