blob: 47fd7288c3530b3e1a3a4b57314d2a0ece96eeca (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
## Process this file with automake to produce Makefile.in
GENFILES_CLNT = nlm_sm_inter_clnt.c
GENFILES_SVC = nlm_sm_inter_svc.c
GENFILES_XDR = nlm_sm_inter_xdr.c
GENFILES_H = nlm_sm_inter.h
GENFILES = $(GENFILES_CLNT) $(GENFILES_SVC) $(GENFILES_XDR) $(GENFILES_H)
AM_CFLAGS += -Wno-missing-prototypes -Wno-missing-declarations
EXTRA_DIST = nlm_sm_inter.x
check_PROGRAMS = nsm_client
nsm_client_SOURCES = $(GENFILES) nsm_client.c
BUILT_SOURCES = $(GENFILES)
nsm_client_LDADD = ../../support/nfs/.libs/libnfs.a \
../../support/nsm/libnsm.a $(LIBCAP) $(LIBTIRPC)
if CONFIG_RPCGEN
RPCGEN = $(top_builddir)/tools/rpcgen/rpcgen
$(RPCGEN):
make -C ../../tools/rpcgen all
else
RPCGEN = @RPCGEN_PATH@
endif
$(GENFILES_CLNT): %_clnt.c: %.x $(RPCGEN)
test -f $@ && rm -rf $@ || true
$(RPCGEN) -l -o $@ $<
$(GENFILES_SVC): %_svc.c: %.x $(RPCGEN)
test -f $@ && rm -rf $@ || true
$(RPCGEN) -m -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 $@ $<
MAINTAINERCLEANFILES = Makefile.in
CLEANFILES = $(GENFILES)
|