#
# libexport.a
# Miscellaneous utility functions related to exporting and mounting
# of NFS volumes.
#

LIBNAME	= libexport.a
OBJS	= client.o export.o xtab.o nfsctl.o mount_clnt.o mount_xdr.o

include $(TOP)rules.mk

RPC_CFLAGS	= -Wno-unused
GEN_FILES	= mount.x mount.h mount_xdr.c mount_clnt.c

mount_clnt.o: mount_clnt.c mount.h
	$(CC) $(CFLAGS) $(RPC_CFLAGS) -c mount_clnt.c

mount_xdr.o: mount_xdr.c mount.h
	$(CC) $(CFLAGS) $(RPC_CFLAGS) -c mount_xdr.c

mount.h mount_xdr.c mount_clnt.c:
	cp /usr/include/rpcsvc/mount.x .
	rm -f mount.h mount_xdr.c mount_clnt.c
	$(RPCGEN) -h -o mount.h mount.x
	$(RPCGEN) -c -o mount_xdr.c mount.x
	$(RPCGEN) -l -o mount_clnt.c mount.x

distclean::
	rm -f $(GEN_FILES)

install::
	@:
