Fix typo in libcryb-rand's Makefile and ensure that it is built before libcryb-oath, which uses it.

This commit is contained in:
Dag-Erling Smørgrav 2016-11-21 13:46:49 +01:00
parent 071e9e7e32
commit 4cad790446
4 changed files with 7 additions and 6 deletions

View file

@ -236,7 +236,7 @@ AM_CONDITIONAL([CRYB_MPI], [test x"$enable_cryb_digest" = x"yes"])
# OATH
elements="$elements oath"
requires="$requires oath:core oath:digest oath:mac oath:enc"
requires="$requires oath:core oath:digest oath:enc oath:mac oath:rand"
AC_ARG_ENABLE([cryb-oath],
AC_HELP_STRING([--enable-cryb-oath],
[build the OATH library]),

View file

@ -32,14 +32,14 @@ if CRYB_MPI
SUBDIRS += mpi
endif CRYB_MPI
if CRYB_OATH
SUBDIRS += oath
endif CRYB_OATH
if CRYB_RAND
SUBDIRS += rand
endif CRYB_RAND
if CRYB_OATH
SUBDIRS += oath
endif CRYB_OATH
if CRYB_TEST
SUBDIRS += test
endif CRYB_TEST

View file

@ -19,4 +19,5 @@ libcryb_oath_la_LIBADD = \
$(top_builddir)/lib/digest/libcryb-digest.la \
$(top_builddir)/lib/enc/libcryb-enc.la \
$(top_builddir)/lib/mac/libcryb-mac.la \
$(top_builddir)/lib/rand/libcryb-rand.la \
$(top_builddir)/lib/core/libcryb-core.la

View file

@ -3,7 +3,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include
lib_LTLIBRARIES = libcryb-rand.la
libcryb_rand_la_SOURCES = \
cryb_rand_bytes.c
cryb_rand_bytes.c \
\
cryb_rand.c