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

AM_CFLAGS = \
	$(PLUGIN_CFLAGS)

# 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 = libnewhope.la
libnewhope_la_SOURCES = \
	newhope_ke.h newhope_ke.c \
	newhope_noise.h newhope_noise.c \
	newhope_reconciliation.h newhope_reconciliation.c

libnewhope_la_LIBADD = \
	$(top_builddir)/src/libstrongswan/math/libnttfft/libnttfft.la

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

libstrongswan_newhope_la_SOURCES = \
	newhope_plugin.h newhope_plugin.c

libstrongswan_newhope_la_LDFLAGS = -module -avoid-version

libstrongswan_newhope_la_LIBADD = libnewhope.la