summaryrefslogtreecommitdiffstats
path: root/support/export/Makefile
blob: 353dd00bebad0dfd9ca4c4978e94875b38e3cf54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# libexport.a
# Miscellaneous utility functions related to exporting and mounting
# of NFS volumes.
#

TOP	= ../../
LIBNAME	= libexport.a
SRCS	= $(RPCSRCS) client.c export.c hostname.c nfsctl.c rmtab.c \
	  xtab.c
OBJS	= $(SRCS:.c=.o)

RPCSRCS	= mount_clnt.c mount_xdr.c
RPCHDRS	= mount.h

include $(TOP)rules.mk

$(RPCHDRS) $(RPCSRCS): mount.x
	$(RM) $(RPCHDRS) $(RPCSRCS)
	$(RPCGEN) -h -o mount.h $<
	$(RPCGEN) -l -o mount_clnt.c $<
	$(RPCGEN) -c -o mount_xdr.c $<

clean distclean::
	$(RM) $(RPCHDRS) $(RPCSRCS)

install::
	@:

predep:: $(RPCHDRS) $(RPCSRCS)
	$(LN_S) ../export/mount.h ../include/mount.h