diff options
-rw-r--r-- | tests/Makefile.am | 20 | ||||
-rw-r--r-- | tls/Makefile.am | 9 | ||||
-rwxr-xr-x | update.sh | 1 |
3 files changed, 23 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 6fea2eb..26f6b7d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
@@ -1,5 +1,9 @@ | |||
1 | include $(top_srcdir)/Makefile.am.common | 1 | include $(top_srcdir)/Makefile.am.common |
2 | 2 | ||
3 | -include $(abs_top_builddir)/crypto/libcrypto_la_objects.mk | ||
4 | -include $(abs_top_builddir)/ssl/libssl_la_objects.mk | ||
5 | -include $(abs_top_builddir)/tls/libtls_la_objects.mk | ||
6 | |||
3 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL | 7 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL |
4 | 8 | ||
5 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 | 9 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 |
@@ -14,13 +18,15 @@ AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl | |||
14 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat | 18 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl/compat |
15 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" | 19 | AM_CPPFLAGS += -D_PATH_SSL_CA_FILE=\"$(top_srcdir)/cert.pem\" |
16 | 20 | ||
17 | LDADD = $(abs_top_builddir)/tls/.libs/libtls.a | 21 | noinst_LTLIBRARIES = libtest.la |
18 | LDADD += $(abs_top_builddir)/ssl/.libs/libssl.a | 22 | libtest_la_LIBADD = $(libcrypto_la_objects) |
19 | LDADD += $(abs_top_builddir)/crypto/.libs/libcrypto.a | 23 | libtest_la_LIBADD += $(libcompat_la_objects) |
20 | LDADD += $(PLATFORM_LDADD) $(PROG_LDADD) | 24 | libtest_la_LIBADD += $(libcompatnoopt_la_objects) |
21 | if HOST_ASM_MACOSX_X86_64 | 25 | libtest_la_LIBADD += $(libssl_la_objects) |
22 | LDADD += $(abs_top_builddir)/crypto/.libs/libcrypto_la-cpuid-macosx-x86_64.o | 26 | libtest_la_LIBADD += $(libtls_la_objects) |
23 | endif | 27 | libtest_la_SOURCES = empty.c |
28 | |||
29 | LDADD = libtest.la $(PLATFORM_LDADD) $(PROG_LDADD) | ||
24 | 30 | ||
25 | TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh | 31 | TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/tap-driver.sh |
26 | 32 | ||
diff --git a/tls/Makefile.am b/tls/Makefile.am index 4d31c92..160359c 100644 --- a/tls/Makefile.am +++ b/tls/Makefile.am | |||
@@ -9,6 +9,15 @@ EXTRA_DIST = VERSION | |||
9 | EXTRA_DIST += CMakeLists.txt | 9 | EXTRA_DIST += CMakeLists.txt |
10 | EXTRA_DIST += tls.sym | 10 | EXTRA_DIST += tls.sym |
11 | 11 | ||
12 | CLEANFILES = libtls_la_objects.mk | ||
13 | |||
14 | EXTRA_libtls_la_DEPENDENCIES = libtls_la_objects.mk | ||
15 | |||
16 | libtls_la_objects.mk: Makefile | ||
17 | @echo "libtls_la_objects= $(libtls_la_OBJECTS)" \ | ||
18 | | sed 's/ */ $$\(abs_top_builddir\)\/tls\//g' \ | ||
19 | > libtls_la_objects.mk | ||
20 | |||
12 | libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym | 21 | libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined -export-symbols $(top_srcdir)/tls/tls.sym |
13 | libtls_la_LIBADD = $(libcrypto_la_objects) | 22 | libtls_la_LIBADD = $(libcrypto_la_objects) |
14 | libtls_la_LIBADD += $(libcompat_la_objects) | 23 | libtls_la_LIBADD += $(libcompat_la_objects) |
@@ -286,6 +286,7 @@ $GREP '^[A-Za-z0-9_]' < $libssl_src/Symbols.list > ssl/ssl.sym | |||
286 | 286 | ||
287 | # copy libcrypto tests | 287 | # copy libcrypto tests |
288 | echo "copying tests" | 288 | echo "copying tests" |
289 | touch tests/empty.c | ||
289 | for i in `find $libcrypto_regress -name '*.c'`; do | 290 | for i in `find $libcrypto_regress -name '*.c'`; do |
290 | $CP "$i" tests | 291 | $CP "$i" tests |
291 | done | 292 | done |