summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/Makefile.am
blob: 7317846cbb158e47b4ae02e376a7bd88336166b1 (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
xlator_LTLIBRARIES = afr.la pump.la
xlatordir = $(libdir)/glusterfs/$(PACKAGE_VERSION)/xlator/cluster

afr_common_source = afr-dir-read.c afr-dir-write.c afr-inode-read.c \
	afr-inode-write.c afr-open.c afr-transaction.c afr-lk-common.c \
	afr-read-txn.c \
	$(top_builddir)/xlators/lib/src/libxlator.c

AFR_SELFHEAL_SOURCES = afr-self-heal-common.c afr-self-heal-data.c \
	afr-self-heal-entry.c afr-self-heal-metadata.c afr-self-heald.c \
	afr-self-heal-name.c

afr_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
afr_la_SOURCES = $(afr_common_source) $(AFR_SELFHEAL_SOURCES) afr.c
afr_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la

pump_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
pump_la_SOURCES = $(afr_common_source) $(AFR_SELFHEAL_SOURCES) pump.c
pump_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la

noinst_HEADERS = afr.h afr-transaction.h afr-inode-write.h afr-inode-read.h \
	afr-dir-read.h afr-dir-write.h afr-self-heal.h afr-mem-types.h \
	afr-common.c afr-self-heald.h pump.h \
	$(top_builddir)/xlators/lib/src/libxlator.h afr-messages.h

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

AM_CFLAGS = -Wall $(GF_CFLAGS)

CLEANFILES =

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

install-data-hook:
	ln -sf afr.so $(DESTDIR)$(xlatordir)/replicate.so