summaryrefslogtreecommitdiff
path: root/src/libstrongswan/plugins/bliss/Makefile.am
blob: e2aaaf55c86238865659ae62daf46c439b76111d (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
AM_CPPFLAGS = \
	-I$(top_srcdir)/src/libstrongswan

AM_CFLAGS = \
	$(PLUGIN_CFLAGS) \
	@COVERAGE_CFLAGS@

# these file are also used by bliss_huffman
noinst_LTLIBRARIES = libbliss-params.la
libbliss_params_la_SOURCES = \
	bliss_param_set.h bliss_param_set.c \
	bliss_fft_params.h bliss_fft_params.c

# these files are also used by the tests, we can't directly refer to them
# because of the subdirectory, which would cause distclean to fail
noinst_LTLIBRARIES += libbliss.la
libbliss_la_SOURCES = \
	bliss_private_key.h bliss_private_key.c \
	bliss_public_key.h bliss_public_key.c \
	bliss_signature.h bliss_signature.c \
	bliss_utils.h bliss_utils.c \
	bliss_bitpacker.h bliss_bitpacker.c \
	bliss_fft.h bliss_fft.c \
	bliss_huffman_code.h bliss_huffman_code.c \
	bliss_huffman_code_1.c bliss_huffman_code_3.c bliss_huffman_code_4.c \
	bliss_huffman_coder.h bliss_huffman_coder.c \
	bliss_sampler.h bliss_sampler.c
libbliss_la_LIBADD = libbliss-params.la

if MONOLITHIC
noinst_LTLIBRARIES += libstrongswan-bliss.la
else
plugin_LTLIBRARIES = libstrongswan-bliss.la
endif

libstrongswan_bliss_la_SOURCES = \
	bliss_plugin.h bliss_plugin.c

libstrongswan_bliss_la_LDFLAGS = -module -avoid-version

libstrongswan_bliss_la_LIBADD = libbliss.la

noinst_PROGRAMS = bliss_huffman

bliss_huffman_SOURCES = bliss_huffman.c
bliss_huffman_LDADD = -lm libbliss-params.la

recreate-bliss-huffman :	bliss_huffman bliss_huffman_code.h
	$(AM_V_GEN) \
	./bliss_huffman 1  8 > $(srcdir)/bliss_huffman_code_1.c 2>/dev/null
	$(AM_V_GEN) \
	./bliss_huffman 3 16 > $(srcdir)/bliss_huffman_code_3.c 2>/dev/null
	$(AM_V_GEN) \
	./bliss_huffman 4 32 > $(srcdir)/bliss_huffman_code_4.c 2>/dev/null