forked from blynn/pbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
114 lines (102 loc) · 4.01 KB
/
Makefile.am
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
AUTOMAKE_OPTIONS = subdir-objects
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 *.o *.lo \
debian/libpbc0 debian/libpbc-dev/ debian/*debhelper.log debian/*debhelper debian/*substvars
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/pbcxx.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
if ENABLE_CXX
noinst_PROGRAMS += benchmark/benchmark_cxx
benchmark_benchmark_cxx_CPPFLAGS = -I include
benchmark_benchmark_cxx_SOURCES = benchmark/benchmark_cxx.cc
endif
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
check_LTLIBRARIES = libgtest.la
libgtest_la_SOURCES = googletest/googletest/src/gtest-all.cc
libgtest_la_CPPFLAGS = -Igoogletest/googletest/include -Igoogletest/googletest -pthread
check_PROGRAMS = gtest pbc_test
gtest_SOURCES = unittests/gtest.cpp
gtest_LDADD = libgtest.la
gtest_LDFLAGS = -pthread
gtest_CPPFLAGS = -Igoogletest/googletest/include -Igoogletest/googletest -pthread
pbc_test_SOURCES = unittests/pbc_test.cpp
pbc_test_LDADD = libgtest.la libpbc.la -lgmp -lm
pbc_test_LDFLAGS = -pthread
pbc_test_CPPFLAGS = -Igoogletest/googletest/include -Igoogletest/googletest -I include -pthread
TESTS = gtest pbc_test