summaryrefslogtreecommitdiffstats
path: root/xlators/experimental/jbr-client/src/Makefile.am
blob: c71f5ff1e83e2d4f16c707120cfb80d61ebd8d0d (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
if WITH_SERVER
xlator_LTLIBRARIES = jbrc.la
endif
xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/experimental

nodist_jbrc_la_SOURCES = jbrc-cg.c
CLEANFILES = $(nodist_jbrc_la_SOURCES)

jbrc_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
jbrc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la

noinst_HEADERS = $(top_srcdir)/xlators/lib/src/libxlator.h \
	$(top_srcdir)/glusterfsd/src/glusterfsd.h \
	jbrc.h jbr-messages.h

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
	-I$(top_srcdir)/xlators/lib/src \
	-I$(top_srcdir)/rpc/xdr/src -I$(top_builddir)/rpc/xdr/src \
	-I$(top_srcdir)/rpc/rpc-lib/src

AM_CFLAGS = -Wall $(GF_CFLAGS)

JBRC_PREFIX	= $(top_srcdir)/xlators/experimental/jbr-client/src
JBRC_GEN_FOPS	= $(JBRC_PREFIX)/gen-fops.py
JBRC_TEMPLATES	= $(JBRC_PREFIX)/fop-template.c.in
JBRC_WRAPPER	= $(JBRC_PREFIX)/jbrc.c
noinst_PYTHON	= $(JBRC_GEN_FOPS)
EXTRA_DIST	= $(JBRC_TEMPLATES) $(JBRC_WRAPPER)

jbrc-cg.c: $(JBRC_GEN_FOPS) $(JBRC_TEMPLATES) $(JBRC_WRAPPER)
	$(PYTHON) $(JBRC_GEN_FOPS) $(JBRC_TEMPLATES) $(JBRC_WRAPPER) > $@

uninstall-local:
	rm -f $(DESTDIR)$(xlatordir)/jbr.so