Commit | Line | Data |
---|---|---|
6c437065 TN |
1 | noinst_LTLIBRARIES = libmount.la |
2 | ||
3 | mount_SOURCES_GENERATED = libnfs-raw-mount.c | |
4 | mount_HEADERS_GENERATED = libnfs-raw-mount.h | |
5 | mount_GENERATED = $(mount_SOURCES_GENERATED) $(mount_HEADERS_GENERATED) | |
6 | ||
7 | CLEANFILES = $(mount_GENERATED) mount-stamp | |
8 | ||
9 | libmount_la_CPPFLAGS = -I$(abs_top_srcdir)/include | |
10 | libmount_la_SOURCES = \ | |
11 | $(mount_SOURCES_GENERATED) \ | |
12 | mount.c | |
13 | ||
14 | $(mount_GENERATED) : mount-stamp | |
15 | mount-stamp : mount.x | |
16 | rm -f $(mount_GENERATED) | |
752d8ed2 TN |
17 | rpcgen -h @RPCGENFLAGS@ $< > libnfs-raw-mount.h |
18 | rpcgen -c @RPCGENFLAGS@ $< | sed -e "s/#include \".*mount.h\"/#include \"libnfs-raw-mount.h\"/" > libnfs-raw-mount.c | |
6c437065 TN |
19 | touch mount-stamp |
20 |