From b6f17917f62ed548f89effb9a718830209c6ca2a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 18 Feb 2013 01:20:08 -0500 Subject: [PATCH] =?UTF-8?q?Add=20OCB=20test=20program=20to=20=E2=80=98make?= =?UTF-8?q?=20check=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Anders Kaseorg Closes #392. --- src/crypto/Makefile.am | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/crypto/Makefile.am b/src/crypto/Makefile.am index 4dd851b..995c388 100644 --- a/src/crypto/Makefile.am +++ b/src/crypto/Makefile.am @@ -3,12 +3,22 @@ AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) $(HARDEN_CFLAGS) $(MISC_CXXF noinst_LIBRARIES = libmoshcrypto.a -libmoshcrypto_a_SOURCES = \ +OCB_SRCS = \ ae.h \ + ocb.cc + +libmoshcrypto_a_SOURCES = \ + $(OCB_SRCS) \ base64.cc \ base64.h \ byteorder.h \ crypto.cc \ crypto.h \ - ocb.cc \ prng.h + +check_PROGRAMS = ocb-test +TESTS = ocb-test + +ocb_test_SOURCES = $(OCB_SRCS) +ocb_test_CPPFLAGS = -DOCB_TEST_PROGRAM +ocb_test_LDADD = $(OPENSSL_LIBS)