Commit | Line | Data |
---|---|---|
dabf4152 AM |
1 | noinst_LTLIBRARIES = libmount.la |
2 | ||
ee872606 RRS |
3 | mount_SOURCES_GENERATED = |
4 | mount_HEADERS_GENERATED = | |
dabf4152 AM |
5 | mount_GENERATED = $(mount_SOURCES_GENERATED) $(mount_HEADERS_GENERATED) |
6 | ||
7 | CLEANFILES = $(mount_GENERATED) mount-stamp | |
8 | ||
ee872606 RRS |
9 | libmount_la_CPPFLAGS = -I$(abs_top_srcdir)/include \ |
10 | -I$(abs_top_srcdir)/include/nfsc | |
dabf4152 AM |
11 | libmount_la_SOURCES = \ |
12 | $(mount_SOURCES_GENERATED) \ | |
ee872606 | 13 | mount.c libnfs-raw-mount.c libnfs-raw-mount.h |
dabf4152 AM |
14 | |
15 | $(mount_GENERATED) : mount-stamp | |
16 | mount-stamp : mount.x | |
17 | rm -f $(mount_GENERATED) | |
dabf4152 | 18 | touch mount-stamp |
ee872606 RRS |
19 | |
20 | compile_rpc: | |
21 | rpcgen -h mount.x | sed -e "s/#include <rpc\/rpc.h>//" | sed -e "s/xdr/zdr/g" -e "s/XDR/ZDR/g" > libnfs-raw-mount.h | |
22 | rpcgen -c mount.x | sed -e "s/#include \".*mount.h\"/#include \"libnfs-xdr.h\"\n#include \"libnfs-raw-mount.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-mount.c |