Files
liberasurecode/Makefile.am
Tushar Gohad 6533759ba5 Frontend/backend API split, make EC handle int type
.. also introduce a map for backend method stub name
to backend library function names

Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
2014-07-13 19:26:23 -07:00

51 lines
1.3 KiB
Makefile

# Top-level liberasurecode automake configuration
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src test
EXTRA_DIST = autogen.sh
if DEBUG
AM_CFLAGS = -g3 -O0 -D_GNU_SOURCE=1 -Werror
else
AM_CFLAGS = -O2 -D_GNU_SOURCE=1 -Werror
endif
INCLUDE = -I$(abs_top_builddir)/include \
-I$(abs_top_builddir)/include/erasurecode \
-I$(abs_top_builddir)/include/xor_codes
AM_CPPFLAGS = $(CPPFLAGS) $(INCLUDE)
AM_CPPFLAGS += -Werror
AM_CFLAGS += -fPIC $(AM_CPPFLAGS) -L/usr/local/lib
include_HEADERS = \
include/erasurecode/list.h \
include/erasurecode/erasurecode_stdinc.h \
include/erasurecode/erasurecode_backend.h \
include/erasurecode/erasurecode.h \
include/erasurecode/erasurecode_version.h \
include/xor_codes/xor_hd_code_defs.h \
include/xor_codes/xor_code.h
test: check
@./test/alg_sig_test
@./test/test_xor_hd_code
VALGRIND_EXEC_COMMAND = $(LIBTOOL_COMMAND) valgrind --tool=memcheck \
--error-exitcode=1 --leak-check=yes --track-fds=yes \
--malloc-fill=A5 --free-fill=DE --fullpath-after=.
valgrind-test: check
@$(VALGRIND_EXEC_COMMAND) ./test/liberasurecode_test
@$(VALGRIND_EXEC_COMMAND) ./test/alg_sig_test
@$(VALGRIND_EXEC_COMMAND) ./test/test_xor_hd_code
CLEANFILES = cscope.in.out cscope.out cscope.po.out
.PHONY: cscope
cscope:
cscope -b -q -R -Iinclude -ssrc;