| 1 | noinst_LTLIBRARIES = libportmap.la |
| 2 | |
| 3 | portmap_SOURCES_GENERATED = libnfs-raw-portmap.c |
| 4 | portmap_HEADERS_GENERATED = libnfs-raw-portmap.h |
| 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 | libportmap_la_SOURCES = \ |
| 11 | $(portmap_SOURCES_GENERATED) \ |
| 12 | portmap.c |
| 13 | |
| 14 | $(portmap_GENERATED) : portmap-stamp |
| 15 | portmap-stamp : portmap.x |
| 16 | rm -f $(portmap_GENERATED) |
| 17 | rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-portmap.h |
| 18 | rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*portmap.h\"/#include \"libnfs-raw-portmap.h\"/" > libnfs-raw-portmap.c |
| 19 | touch portmap-stamp |
| 20 | |