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