Make libcurve25519_donna get built as a .a

This lets us give it compiler flags differing from the rest of
libor-crypto.a
This commit is contained in:
Nick Mathewson
2012-12-06 12:07:58 -05:00
parent ef13bf4432
commit d907fca29b
4 changed files with 22 additions and 11 deletions
+14 -8
View File
@@ -15,20 +15,26 @@ 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
LIBDONNA=
endif
endif
src_common_libcurve25519_donna_a_CFLAGS =
if CURVE25519_ENABLED
libcrypto_extra_source=src/common/crypto_curve25519.c
endif
endif
endif
src_common_libor_a_SOURCES = \
src/common/address.c \