Merge pull request #11 from Memphiz/master
[deb_libnfs.git] / nfs / Makefile.am
... / ...
CommitLineData
1noinst_LTLIBRARIES = libnfs.la
2
3nfs_SOURCES_GENERATED = libnfs-raw-nfs.c
4nfs_HEADERS_GENERATED = libnfs-raw-nfs.h
5nfs_GENERATED = $(nfs_SOURCES_GENERATED) $(nfs_HEADERS_GENERATED)
6
7CLEANFILES = $(nfs_GENERATED) nfs-stamp
8
9libnfs_la_CPPFLAGS = -I$(abs_top_srcdir)/include
10libnfs_la_SOURCES = \
11 $(nfs_SOURCES_GENERATED) \
12 nfs.c nfsacl.c
13
14$(nfs_GENERATED) : nfs-stamp
15nfs-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