Add Apache License version 2.0.
[pbc.git] / Makefile.am
blob3a22e956cbb3b25ff80e271d5f88f87ff770c3e3
1 SUBDIRS = . example gen
3 SO_VERSION = 1:0:0
5 ChangeLog :
6         git log > ChangeLog
8 ACLOCAL_AMFLAGS = -I m4
9 CLEANFILES = *~
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 \
21 include/pbc_curve.h \
22 include/pbc_d_param.h \
23 include/pbc_e_param.h \
24 include/pbc_field.h \
25 include/pbc_multiz.h \
26 include/pbc_z.h \
27 include/pbc_fieldquadratic.h \
28 include/pbc_f_param.h \
29 include/pbc_g_param.h \
30 include/pbc_i_param.h \
31 include/pbc_fp.h \
32 include/pbc_ternary_extension_field.h \
33 include/pbc.h \
34 include/pbc_hilbert.h \
35 include/pbc_memory.h \
36 include/pbc_mnt.h \
37 include/pbc_pairing.h \
38 include/pbc_param.h \
39 include/pbc_poly.h \
40 include/pbc_random.h \
41 include/pbc_singular.h \
42 include/pbc_test.h \
43 include/pbc_utils.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 \
50         arith/multiz.c \
51         arith/dlog.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 \
57         ecc/singular.c \
58         ecc/eta_T_3.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