diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2014-06-30 06:37:17 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2014-06-30 06:37:17 -0700 |
commit | 86221e2455308f760b9369f17b4d26242ab87c57 (patch) | |
tree | 8ae1fd680046cfc550eeeb234f7b0ba5061c42a6 /Makefile.am | |
parent | 79b4123ce414f77e07f7e22d35305e0b9c8af16e (diff) | |
download | liberasurecode-86221e2455308f760b9369f17b4d26242ab87c57.tar.gz |
autoconf: Fix libXorcode LIBADD line, minor fixes
Signed-off-by: Tushar Gohad <tushar.gohad@intel.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index ffd9a2b..9a55094 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,14 +1,15 @@ ACLOCAL_AMFLAGS = -I m4 -AM_CPPFLAGS = $(CPPFLAGS) -I$(abs_top_builddir)/include/xor_codes -I$(abs_top_builddir)/include/erasurecode -Werror if DEBUG AM_CFLAGS = -g3 -O0 else AM_CFLAGS = -O2 endif -AM_CFLAGS += -fPIC $(AM_CPPFLAGS) -L/usr/local/lib -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=. +AM_CPPFLAGS = $(CPPFLAGS) -I$(abs_top_builddir)/include/xor_codes +AM_CPPFLAGS += -I$(abs_top_builddir)/include/erasurecode -Werror + +AM_CFLAGS += -fPIC $(AM_CPPFLAGS) -L/usr/local/lib include_HEADERS = \ include/erasurecode/list.h \ @@ -21,6 +22,7 @@ include_HEADERS = \ lib_LTLIBRARIES = libXorcode.la liberasurecode.la +# libXorcode params libXorcode_la_SOURCES = \ src/builtin/xor_codes/xor_code.c \ src/builtin/xor_codes/xor_hd_code.c @@ -28,13 +30,14 @@ libXorcode_la_SOURCES = \ # Version format (C - A).(A).(R) for C:R:A input libXorcode_la_LDFLAGS = -rpath '$(libdir)' -version-info 1:1:0 +# liberasurecode params liberasurecode_la_SOURCES = \ src/main.c \ src/backends/xor/flat_xor_3.c \ src/utils/chksum/crc32.c \ src/utils/chksum/alg_sig.c -liberasurecode_la_LIBADD = libXorcode_la +liberasurecode_la_LIBADD = -lXorcode noinst_HEADERS = tests/test_xor_hd_code.h noinst_PROGRAMS = test_xor_hd_code alg_sig_test @@ -54,6 +57,10 @@ test: check @./alg_sig_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) ./alg_sig_test @$(VALGRIND_EXEC_COMMAND) ./test_xor_hd_code |