b2d09427e046d7a0af6ce5086435c8bdf47c85ec
[strongswan.git] / src / libstrongswan / plugins / bliss / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/libstrongswan \
3         -I$(top_srcdir)/src/libstrongswan/math/libnttfft
4
5 AM_CFLAGS = \
6         $(PLUGIN_CFLAGS) \
7         @COVERAGE_CFLAGS@
8
9 # these file are also used by bliss_huffman
10 noinst_LTLIBRARIES = libbliss-params.la
11
12 libbliss_params_la_SOURCES = \
13         bliss_param_set.h bliss_param_set.c
14
15 libbliss_params_la_LIBADD = \
16         $(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la
17
18 # these files are also used by the tests, we can't directly refer to them
19 # because of the subdirectory, which would cause distclean to fail
20 noinst_LTLIBRARIES += libbliss.la
21 libbliss_la_SOURCES = \
22         bliss_private_key.h bliss_private_key.c \
23         bliss_public_key.h bliss_public_key.c \
24         bliss_signature.h bliss_signature.c \
25         bliss_utils.h bliss_utils.c \
26         bliss_bitpacker.h bliss_bitpacker.c \
27         bliss_huffman_code.h bliss_huffman_code.c \
28         bliss_huffman_code_1.c bliss_huffman_code_3.c bliss_huffman_code_4.c \
29         bliss_huffman_coder.h bliss_huffman_coder.c \
30         bliss_sampler.h bliss_sampler.c
31
32 libbliss_la_LIBADD = \
33         $(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la \
34         libbliss-params.la
35
36 if MONOLITHIC
37 noinst_LTLIBRARIES += libstrongswan-bliss.la
38 else
39 plugin_LTLIBRARIES = libstrongswan-bliss.la
40 endif
41
42 libstrongswan_bliss_la_SOURCES = \
43         bliss_plugin.h bliss_plugin.c
44
45 libstrongswan_bliss_la_LDFLAGS = -module -avoid-version
46
47 libstrongswan_bliss_la_LIBADD = libbliss.la
48
49 noinst_PROGRAMS = bliss_huffman
50
51 bliss_huffman_SOURCES = bliss_huffman.c
52
53 bliss_huffman_LDADD = -lm \
54         $(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la \
55         libbliss-params.la
56
57 recreate-bliss-huffman :        bliss_huffman bliss_huffman_code.h
58         $(AM_V_GEN) \
59         ./bliss_huffman 1  8 > $(srcdir)/bliss_huffman_code_1.c 2>/dev/null
60         $(AM_V_GEN) \
61         ./bliss_huffman 3 16 > $(srcdir)/bliss_huffman_code_3.c 2>/dev/null
62         $(AM_V_GEN) \
63         ./bliss_huffman 4 32 > $(srcdir)/bliss_huffman_code_4.c 2>/dev/null