3 INCLUDES = -I$(top_srcdir)/include
5 include_HEADERS = ../include/g2hec_Genus2_ops.h ../include/g2hec_NAF.h \
6 ../include/g2hec_nsfieldtype.h ../include/g2hec_nstools.h \
7 ../include/g2hec_polytype.h ../include/g2hec_nsdebug.h \
8 ../include/g2hec_rand.h
10 lib_LIBRARIES = libg2hec.a
11 libg2hec_a_SOURCES = g2hcurve.C cantor.C divisor.C add_explicit.C \
12 divisor_negate.C sub.C scalar_mul.C rand.C
14 # Add data directory to distro
18 check_PROGRAMS = testcurve testrand
19 testcurve_SOURCES = testcurve.C
20 testrand_SOURCES = testrand.C
22 LDADD = libg2hec.a -lntl
24 check_SCRIPTS = g2hectest_small.sh g2hectest_big.sh randtest.sh
25 TESTS = $(check_SCRIPTS)
28 echo -e "for i in \`ls $(srcdir)/testdata/testdata_small*.dat\`\n\
30 ./testcurve < \$${i} \n\
31 done" > g2hectest_small.sh
33 chmod +x g2hectest_small.sh
36 echo -e "for i in \`ls $(srcdir)/testdata/testdata_big*.dat\`\n\
38 ./testcurve < \$${i} \n\
39 done" > g2hectest_big.sh
41 chmod +x g2hectest_big.sh
44 echo -e "for i in 1 2 3 4 5 6 7 8 9 \n\
51 CLEANFILES = g2hectest_small.sh g2hectest_big.sh randtest.sh