.svn folders cleaned
[libg2hec.git] / src / Makefile.am
blob8e1e61be80440f7ab546bead9bdd26ea39cd98b9
1 # Makefile.am
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
15 EXTRA_DIST      = testdata
17 # Test unit
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)
27 g2hectest_small.sh:
28         echo -e "for i in \`ls $(srcdir)/testdata/testdata_small*.dat\`\n\
29         do \n\
30         ./testcurve < \$${i} \n\
31         done" > g2hectest_small.sh
33         chmod +x g2hectest_small.sh
35 g2hectest_big.sh:
36         echo -e "for i in \`ls $(srcdir)/testdata/testdata_big*.dat\`\n\
37         do \n\
38         ./testcurve < \$${i} \n\
39         done" > g2hectest_big.sh
41         chmod +x g2hectest_big.sh
43 randtest.sh:
44         echo -e "for i in 1 2 3 4 5 6 7 8 9 \n\
45         do \n\
46         ./testrand \n\
47         done" > randtest.sh
49         chmod +x randtest.sh
51 CLEANFILES      = g2hectest_small.sh g2hectest_big.sh randtest.sh