1 ## Process this file with automake to produce Makefile.in
3 RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen
5 GENFILES_CLNT = mount_clnt.c
6 GENFILES_XDR = mount_xdr.c
9 GENFILES = $(GENFILES_CLNT) $(GENFILES_SVC) $(GENFILES_XDR) $(GENFILES_H)
13 noinst_LIBRARIES = libexport.a
14 libexport_a_SOURCES = client.c export.c hostname.c nfsctl.c rmtab.c \
15 xtab.c mount_clnt.c mount_xdr.c
16 BUILT_SOURCES = $(GENFILES)
18 noinst_HEADERS = mount.h
21 for f in $(GENFILES); do \
26 make -C $(top_srcdir)/tools/rpcgen all
28 $(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN)
29 test -f $@ && rm -rf $@ || true
32 $(GENFILES_XDR): %_xdr.c: %.x $(RPCGEN)
33 test -f $@ && rm -rf $@ || true
36 $(GENFILES_H): %.h: %.x $(RPCGEN)
37 test -f $@ && rm -rf $@ || true
39 rm -f $(top_builddir)/support/include/mount.h
40 $(LN_S) ../export/mount.h $(top_builddir)/support/include/mount.h
42 MAINTAINERCLEANFILES = Makefile.in
44 CLEANFILES = $(GENFILES) $(top_builddir)/support/include/mount.h