1 SUBDIRS = . example gen
8 ACLOCAL_AMFLAGS = -I m4
10 maintainer-clean-local:
11 -rm -rf Makefile.in depcomp ltmain.sh config.h.in configure compile config.guess config.sub \
12 missing install-sh autom4te.cache aclocal.m4 tmp *.o *.lo \
13 debian/libpbc0 debian/libpbc-dev/ debian/*debhelper.log debian/*debhelper debian/*substvars
15 lib_LTLIBRARIES = libpbc.la
17 # this should really be a versioned dir, i.e., $(includedir)/pbc-0.5.0
18 library_includedir = $(includedir)/pbc
19 library_include_HEADERS = include/pbc_a1_param.h \
20 include/pbc_a_param.h \
22 include/pbc_d_param.h \
23 include/pbc_e_param.h \
25 include/pbc_multiz.h \
27 include/pbc_fieldquadratic.h \
28 include/pbc_f_param.h \
29 include/pbc_g_param.h \
30 include/pbc_i_param.h \
32 include/pbc_ternary_extension_field.h \
34 include/pbc_hilbert.h \
35 include/pbc_memory.h \
37 include/pbc_pairing.h \
40 include/pbc_random.h \
41 include/pbc_singular.h \
45 libpbc_la_CPPFLAGS = -Iinclude
46 libpbc_la_SOURCES = arith/field.c arith/z.c \
47 arith/naivefp.c arith/fastfp.c \
48 arith/fp.c arith/fasterfp.c arith/montfp.c \
49 arith/ternary_extension_field.c \
52 arith/fieldquadratic.c arith/poly.c \
53 arith/random.c arith/init_random.c \
54 misc/darray.c misc/symtab.c misc/get_time.c \
55 misc/utils.c misc/memory.c misc/extend_printf.c \
56 ecc/mpc.c ecc/mnt.c ecc/hilbert.c ecc/curve.c ecc/pairing.c \
59 ecc/param.c ecc/a_param.c ecc/d_param.c ecc/e_param.c \
60 ecc/f_param.c ecc/g_param.c
61 libpbc_la_LDFLAGS = -lgmp -lm -version-info $(SO_VERSION) $(PBC_LDFLAGS) $(LIBPBC_LDFLAGS)
63 # LDADD is fallback of program_LDADD
64 # explicit "-lgmp" fixes error of "undefined reference to GMP symbol"
65 # explicit "-lm" fixes error of "undefined reference to libm symbol"
66 LDADD = libpbc.la -lgmp -lm
67 noinst_PROGRAMS = pbc/pbc benchmark/benchmark benchmark/timersa benchmark/ellnet
68 noinst_PROGRAMS += guru/fp_test guru/quadratic_test guru/poly_test guru/prodpairing_test
69 noinst_PROGRAMS += guru/ternary_extension_field_test guru/eta_T_3_test
70 pbc_pbc_CPPFLAGS = -I include
71 pbc_pbc_SOURCES = pbc/parser.tab.c pbc/lex.yy.c pbc/pbc.c pbc/pbc_getline.c misc/darray.c misc/symtab.c
72 benchmark_benchmark_CPPFLAGS = -I include
73 benchmark_benchmark_SOURCES = benchmark/benchmark.c
74 benchmark_timersa_CPPFLAGS = -I include
75 benchmark_timersa_SOURCES = benchmark/timersa.c
76 benchmark_ellnet_CPPFLAGS = -I include
77 benchmark_ellnet_SOURCES = benchmark/ellnet.c
78 guru_fp_test_CPPFLAGS = -I include
79 guru_fp_test_SOURCES = guru/fp_test.c
80 guru_quadratic_test_CPPFLAGS = -I include
81 guru_quadratic_test_SOURCES = guru/quadratic_test.c
82 guru_poly_test_CPPFLAGS = -I include
83 guru_poly_test_SOURCES = $(libpbc_la_SOURCES) guru/poly_test.c
84 guru_prodpairing_test_CPPFLAGS = -I include
85 guru_prodpairing_test_SOURCES = guru/prodpairing_test.c
86 guru_ternary_extension_field_test_CPPFLAGS = -I include
87 guru_ternary_extension_field_test_SOURCES = guru/ternary_extension_field_test.c
88 guru_eta_T_3_test_CPPFLAGS = -I include
89 guru_eta_T_3_test_SOURCES = guru/eta_T_3_test.c