X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2FMakefile.am;fp=support%2Fexport%2FMakefile.am;h=41769faf2f35890a0fccbd05c3fd4a1e07203875;hp=0000000000000000000000000000000000000000;hb=ac5b03be829b4c9369ebfb07a688308721103228;hpb=371ca25167a217d647971384c37aa3fcee8a4aef diff --git a/support/export/Makefile.am b/support/export/Makefile.am new file mode 100644 index 0000000..41769fa --- /dev/null +++ b/support/export/Makefile.am @@ -0,0 +1,46 @@ +## Process this file with automake to produce Makefile.in + +RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen + +GENFILES_CLNT = mount_clnt.c +GENFILES_XDR = mount_xdr.c +GENFILES_H = mount.h + +GENFILES = $(GENFILES_CLNT) $(GENFILES_SVC) $(GENFILES_XDR) $(GENFILES_H) + +EXTRA_DIST = \ + mount.x \ + \ + keys.c + +noinst_LIBRARIES = libexport.a +libexport_a_SOURCES = client.c export.c hostname.c nfsctl.c rmtab.c \ + xtab.c mount_clnt.c mount_xdr.c +BUILT_SOURCES = $(GENFILES) + +noinst_HEADERS = mount.h + +dist-hook: + for f in $(GENFILES); do \ + rm ${distdir}/$$f; \ + done + +$(RPCGEN): + make -C $(top_srcdir)/tools/rpcgen all + +$(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN) + test -f $@ && rm -rf $@ || true + $(RPCGEN) -l -o $@ $< + +$(GENFILES_XDR): %_xdr.c: %.x $(RPCGEN) + test -f $@ && rm -rf $@ || true + $(RPCGEN) -c -o $@ $< + +$(GENFILES_H): %.h: %.x $(RPCGEN) + test -f $@ && rm -rf $@ || true + $(RPCGEN) -h -o $@ $< + $(LN_S) ../export/mount.h $(top_builddir)/support/include/mount.h + +MAINTAINERCLEANFILES = Makefile.in + +CLEANFILES = $(GENFILES) $(top_builddir)/support/include/mount.h