]> git.decadent.org.uk Git - nfs-utils.git/blob - support/export/Makefile
More automake stuff
[nfs-utils.git] / support / export / Makefile
1 #
2 # libexport.a
3 # Miscellaneous utility functions related to exporting and mounting
4 # of NFS volumes.
5 #
6
7 TOP     = ../../
8 LIBNAME = libexport.a
9 SRCS    = $(RPCSRCS) client.c export.c hostname.c nfsctl.c rmtab.c \
10           xtab.c
11 OBJS    = $(SRCS:.c=.o)
12
13 RPCSRCS = mount_clnt.c mount_xdr.c
14 RPCHDRS = mount.h
15
16 include $(TOP)rules.mk
17
18 $(RPCHDRS) $(RPCSRCS): mount.x
19         $(RM) $(RPCHDRS) $(RPCSRCS)
20         $(RPCGEN) -h -o mount.h $<
21         $(RPCGEN) -l -o mount_clnt.c $<
22         $(RPCGEN) -c -o mount_xdr.c $<
23
24 clean distclean::
25         $(RM) $(RPCHDRS) $(RPCSRCS)
26
27 install::
28         @:
29
30 predep:: $(RPCHDRS) $(RPCSRCS)
31         $(LN_S) ../export/mount.h ../include/mount.h