aboutsummaryrefslogtreecommitdiff
path: root/src/common/include.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/include.am')
-rw-r--r--src/common/include.am22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/common/include.am b/src/common/include.am
index f986ba66d3..808238dd1f 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -15,19 +15,25 @@ libor_extra_source=
endif
if BUILD_CURVE25519_DONNA
-libcrypto_extra_source= \
- src/ext/curve25519_donna/curve25519-donna.c \
- src/common/crypto_curve25519.c
+src_common_libcurve25519_donna_a_SOURCES=\
+ src/ext/curve25519_donna/curve25519-donna.c
+noinst_LIBRARIES+=src/common/libcurve25519_donna.a
+LIBDONNA=src/common/libcurve25519_donna.a
else
if BUILD_CURVE25519_DONNA_C64
-libcrypto_extra_source= \
- src/ext/curve25519_donna/curve25519-donna-c64.c \
- src/common/crypto_curve25519.c
+src_common_libcurve25519_donna_a_SOURCES=\
+ src/ext/curve25519_donna/curve25519-donna-c64.c
+noinst_LIBRARIES+=src/common/libcurve25519_donna.a
+LIBDONNA=src/common/libcurve25519_donna.a
else
-if CURVE25519_ENABLED
-libcrypto_extra_source=src/common/crypto_curve25519.c
+LIBDONNA=
endif
endif
+
+src_common_libcurve25519_donna_a_CFLAGS =
+
+if CURVE25519_ENABLED
+libcrypto_extra_source=src/common/crypto_curve25519.c
endif
src_common_libor_a_SOURCES = \