| 1 | noinst_LTLIBRARIES = libportmap.la |
| 2 | |
| 3 | portmap_SOURCES_GENERATED = |
| 4 | portmap_HEADERS_GENERATED = |
| 5 | portmap_GENERATED = $(portmap_SOURCES_GENERATED) $(portmap_HEADERS_GENERATED) |
| 6 | |
| 7 | CLEANFILES = $(portmap_GENERATED) portmap-stamp |
| 8 | |
| 9 | libportmap_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ |
| 10 | -I$(abs_top_srcdir)/include/nfsc |
| 11 | libportmap_la_SOURCES = \ |
| 12 | $(portmap_SOURCES_GENERATED) \ |
| 13 | portmap.c libnfs-raw-portmap.c libnfs-raw-portmap.h |
| 14 | |
| 15 | $(portmap_GENERATED) : portmap-stamp |
| 16 | portmap-stamp : portmap.x |
| 17 | rm -f $(portmap_GENERATED) |
| 18 | touch portmap-stamp |
| 19 | |
| 20 | compile_rpc: |
| 21 | rpcgen -h portmap.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-portmap.h |
| 22 | 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 |