File: Makefile.am

package info (click to toggle)
nfs-utils 1%3A2.6.2-4%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,144 kB
  • sloc: ansic: 49,497; sh: 5,200; python: 2,385; makefile: 933
file content (50 lines) | stat: -rw-r--r-- 1,205 bytes parent folder | download
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## Process this file with automake to produce Makefile.in


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

noinst_LIBRARIES = libexport.a
libexport_a_SOURCES = client.c export.c hostname.c \
		      xtab.c mount_clnt.c mount_xdr.c \
		      cache.c auth.c v4root.c fsloc.c \
		      v4clients.c
BUILT_SOURCES 	= $(GENFILES)

noinst_HEADERS = mount.h

dist-hook:
	for f in $(GENFILES); do \
	  rm ${distdir}/$$f; \
	done

if CONFIG_RPCGEN
RPCGEN		= $(top_builddir)/tools/rpcgen/rpcgen
$(RPCGEN):
	make -C $(top_srcdir)/tools/rpcgen all
else
RPCGEN = @RPCGEN_PATH@
endif

$(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 -i 0 -o $@ $<

$(GENFILES_H): %.h: %.x $(RPCGEN)
	test -f $@ && rm -rf $@ || true
	$(RPCGEN) -h -o $@ $<
	rm -f $(top_builddir)/support/include/mount.h
	$(LN_S) ../export/mount.h $(top_builddir)/support/include/mount.h

MAINTAINERCLEANFILES = Makefile.in

CLEANFILES = $(GENFILES) $(top_builddir)/support/include/mount.h