1 # GF-Complete 'tools' AM file
3 AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
6 bin_PROGRAMS = gf_mult gf_div gf_add gf_time gf_methods gf_poly gf_inline_time
8 gf_mult_SOURCES = gf_mult.c
9 #gf_mult_LDFLAGS = -lgf_complete
10 gf_mult_LDADD = ../src/libgf_complete.la
12 gf_div_SOURCES = gf_div.c
13 #gf_div_LDFLAGS = -lgf_complete
14 gf_div_LDADD = ../src/libgf_complete.la
16 gf_add_SOURCES = gf_add.c
17 #gf_add_LDFLAGS = -lgf_complete
18 gf_add_LDADD = ../src/libgf_complete.la
20 gf_time_SOURCES = gf_time.c
21 #gf_time_LDFLAGS = -lgf_complete
22 gf_time_LDADD = ../src/libgf_complete.la
24 gf_methods_SOURCES = gf_methods.c
25 #gf_methods_LDFLAGS = -lgf_complete
26 gf_methods_LDADD = ../src/libgf_complete.la
28 gf_poly_SOURCES = gf_poly.c
29 #gf_poly_LDFLAGS = -lgf_complete
30 gf_poly_LDADD = ../src/libgf_complete.la
32 gf_inline_time_SOURCES = gf_inline_time.c
33 #gf_inline_time_LDFLAGS = -lgf_complete
34 gf_inline_time_LDADD = ../src/libgf_complete.la
36 # gf_unit 8 A -1 -m LOG_ZERO_EXT is excluded until http://lab.jerasure.org/jerasure/gf-complete/issues/13 is resolved
38 VALGRIND = | perl -p -e 's|^|../libtool --mode=execute valgrind --quiet --error-exitcode=1 --tool=memcheck | if(!/gf_unit 8 A -1 -m LOG_ZERO_EXT/)'
41 # gf_unit tests as generated by gf_methods
42 gf_unit_w%.sh: gf_methods
43 ./$^ $(@:gf_unit_w%.sh=%) -A -U ${VALGRIND} > $@ || rm $@
45 TESTS = gf_unit_w128.sh \
53 SH_LOG_COMPILER = $(SHELL)