tirpc: use pkg-config to find details
[deb_libnfs.git] / nfs / Makefile.am
1 noinst_LTLIBRARIES = libnfs.la
2
3 nfs_SOURCES_GENERATED = libnfs-raw-nfs.c
4 nfs_HEADERS_GENERATED = libnfs-raw-nfs.h
5 nfs_GENERATED = $(nfs_SOURCES_GENERATED) $(nfs_HEADERS_GENERATED)
6
7 CLEANFILES = $(nfs_GENERATED) nfs-stamp
8
9 libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include
10 libnfs_la_SOURCES = \
11 $(nfs_SOURCES_GENERATED) \
12 nfs.c nfsacl.c
13
14 $(nfs_GENERATED) : nfs-stamp
15 nfs-stamp : nfs.x
16 rm -f $(nfs_GENERATED)
17 rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-nfs.h
18 rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*nfs.h\"/#include \"libnfs-raw-nfs.h\"/" > libnfs-raw-nfs.c
19 touch nfs-stamp
20