summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src/Makefile.am
blob: 9d606558413931166b04452e4376c5ef64b13808 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
XDRSOURCES = glusterfs3-xdr.c cli1-xdr.c nlm4-xdr.c nsm-xdr.c \
	rpc-common-xdr.c glusterd1-xdr.c acl3-xdr.c portmap-xdr.c mount3udp.c
XDRHEADERS = $(XDRSOURCES:.c=.h)
XDRGENFILES = $(XDRSOURCES:.c=.x)

lib_LTLIBRARIES = libgfxdr.la

libgfxdr_la_CFLAGS = -Wall $(GF_CFLAGS) $(GF_DARWIN_LIBGLUSTERFS_CFLAGS)

libgfxdr_la_CPPFLAGS = $(GF_CPPFLAGS) -D__USE_FILE_OFFSET64 \
			-I$(top_srcdir)/libglusterfs/src -I$(top_srcdir)/rpc/rpc-lib/src

libgfxdr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la

libgfxdr_la_LDFLAGS = -version-info $(LIBGFXDR_LT_VERSION)

libgfxdr_la_SOURCES =  $(XDRSOURCES) xdr-generic.c xdr-nfs3.c msg-nfs3.c

noinst_HEADERS = $(XDRHEADERS) xdr-generic.h xdr-nfs3.h msg-nfs3.h glusterfs3.h

CLEANFILES = $(XDRSOURCES) $(XDRHEADERS)

EXTRA_DIST = $(XDRGENFILES)

glusterfs3-xdr.c: glusterfs3-xdr.x glusterfs3-xdr.h
	@if test -f ${@:.c=.x}; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

glusterfs3-xdr.h: glusterfs3-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

cli1-xdr.c: cli1-xdr.x cli1-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

cli1-xdr.h: cli1-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

nlm4-xdr.c: nlm4-xdr.x nlm4-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

nlm4-xdr.h: nlm4-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

nsm-xdr.c: nsm-xdr.x nsm-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

nsm-xdr.h: nsm-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

rpc-common-xdr.c: rpc-common-xdr.x rpc-common-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

rpc-common-xdr.h: rpc-common-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

glusterd1-xdr.c: glusterd1-xdr.x glusterd1-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

glusterd1-xdr.h: glusterd1-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

acl3-xdr.c: acl3-xdr.x acl3-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

acl3-xdr.h: acl3-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi

portmap-xdr.c: portmap-xdr.x portmap-xdr.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} >&2 ; \
	fi

portmap-xdr.h: portmap-xdr.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} >&2 ; \
	fi

mount3udp.c: mount3udp.x mount3udp.h
	@if test -f ${@:.c=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen source ${@:.c=.x} ; \
	fi

mount3udp.h: mount3udp.x
	@if test -f ${@:.h=.x} ; then \
		$(top_srcdir)/build-aux/xdrgen header ${@:.h=.x} ; \
	fi