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

ec_sources := ec.c
ec_sources += ec-data.c
ec_sources += ec-helpers.c
ec_sources += ec-common.c
ec_sources += ec-generic.c
ec_sources += ec-locks.c
ec_sources += ec-dir-read.c
ec_sources += ec-dir-write.c
ec_sources += ec-inode-read.c
ec_sources += ec-inode-write.c
ec_sources += ec-combine.c
ec_sources += ec-method.c
ec_sources += ec-galois.c
ec_sources += ec-code.c
ec_sources += ec-code-c.c
ec_sources += ec-gf8.c
ec_sources += ec-heal.c
ec_sources += ec-heald.c

ec_headers := ec.h
ec_headers += ec-mem-types.h
ec_headers += ec-helpers.h
ec_headers += ec-data.h
ec_headers += ec-fops.h
ec_headers += ec-common.h
ec_headers += ec-combine.h
ec_headers += ec-method.h
ec_headers += ec-galois.h
ec_headers += ec-code.h
ec_headers += ec-code-c.h
ec_headers += ec-gf8.h
ec_headers += ec-heald.h
ec_headers += ec-messages.h
ec_headers += ec-types.h

if ENABLE_EC_DYNAMIC_INTEL
  ec_sources += ec-code-intel.c
  ec_headers += ec-code-intel.h
endif

if ENABLE_EC_DYNAMIC_X64
  ec_sources += ec-code-x64.c
  ec_headers += ec-code-x64.h
endif

if ENABLE_EC_DYNAMIC_SSE
  ec_sources += ec-code-sse.c
  ec_headers += ec-code-sse.h
endif

if ENABLE_EC_DYNAMIC_AVX
  ec_sources += ec-code-avx.c
  ec_headers += ec-code-avx.h
endif

ec_ext_sources = $(top_builddir)/xlators/lib/src/libxlator.c

ec_ext_headers = $(top_builddir)/xlators/lib/src/libxlator.h

ec_la_LDFLAGS = -module $(GF_XLATOR_DEFAULT_LDFLAGS)
ec_la_SOURCES = $(ec_sources) $(ec_headers) $(ec_ext_sources) $(ec_ext_headers)
ec_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la

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

AM_CFLAGS = -Wall $(GF_CFLAGS)

CLEANFILES =

install-data-hook:
	ln -sf ec.so $(DESTDIR)$(xlatordir)/disperse.so

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