summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: ee4625045c13ea9b4d77e9a719fc53dd3d7e6177 (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
SUBDIRS = builtin/xor_codes builtin/null_code builtin/rs_vand

lib_LTLIBRARIES = liberasurecode.la

INCLUDES = \
		-I$(top_srcdir)/include/erasurecode \
		-I$(top_srcdir)/include/xor_codes \
		-I$(top_srcdir)/include/rs_vand \
		-I$(top_srcdir)/include/shss

# liberasurecode params
liberasurecode_la_SOURCES = \
		erasurecode.c \
		erasurecode_helpers.c \
		erasurecode_preprocessing.c \
		erasurecode_postprocessing.c \
		utils/chksum/crc32.c \
		utils/chksum/alg_sig.c \
		backends/null/null.c \
		backends/xor/flat_xor_hd.c \
		backends/jerasure/jerasure_rs_vand.c \
		backends/jerasure/jerasure_rs_cauchy.c \
		backends/isa-l/isa_l_rs_vand.c \
    backends/rs_vand/rs_vand.c \
		backends/shss/shss.c

# Install additional header files
liberasurecodeincludedir = $(includedir)
liberasurecodeinclude_HEADERS = \
  ../include/erasurecode/erasurecode.h \
  ../include/erasurecode/erasurecode_helpers.h

liberasurecode_la_CPPFLAGS = -Werror @GCOV_FLAGS@
liberasurecode_la_LIBADD = \
    builtin/null_code/libnullcode.la -lpthread -lm @GCOV_LDFLAGS@ \
		builtin/xor_codes/libXorcode.la -lpthread -lm @GCOV_LDFLAGS@ \
		builtin/rs_vand/liberasurecode_rsvand.la -lpthread -lm @GCOV_LDFLAGS@

# Version format  (C - A).(A).(R) for C:R:A input
liberasurecode_la_LDFLAGS = -rpath '$(libdir)' -version-info 1:7:0

MOSTLYCLEANFILES = *.gcda *.gcno *.gcov utils/chksum/*.gcda utils/chksum/*.gcno utils/chksum/*.gcov \
                   backends/null/*.gcda backends/null/*.gcno backends/null/*.gcov  \
                   backends/xor/*.gcda backends/xor/*.gcno backends/xor/*.gcov  \
                   backends/jerasure/*.gcda backends/jerasure/*.gcno backends/jerasure/*.gcov \
                   backends/shss/*.gcda backends/shss/*.gcno backends/shss/*.gcov