diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/lib-ssl-iostream/Makefile.am | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib-ssl-iostream/Makefile.am')
-rw-r--r-- | src/lib-ssl-iostream/Makefile.am | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib-ssl-iostream/Makefile.am b/src/lib-ssl-iostream/Makefile.am new file mode 100644 index 0000000..5aaea5d --- /dev/null +++ b/src/lib-ssl-iostream/Makefile.am @@ -0,0 +1,61 @@ +noinst_LTLIBRARIES = libssl_iostream.la + +NOPLUGIN_LDFLAGS = + +AM_CPPFLAGS = \ + -I$(top_srcdir)/src/lib \ + -I$(top_srcdir)/src/lib-test \ + -DMODULE_DIR=\""$(moduledir)"\" + +if BUILD_OPENSSL +module_LTLIBRARIES = libssl_iostream_openssl.la + +libssl_iostream_openssl_la_LDFLAGS = -module -avoid-version +libssl_iostream_openssl_la_LIBADD = $(SSL_LIBS) +libssl_iostream_openssl_la_SOURCES = \ + dovecot-openssl-common.c \ + iostream-openssl.c \ + iostream-openssl-common.c \ + iostream-openssl-context.c \ + istream-openssl.c \ + ostream-openssl.c +endif + +libssl_iostream_la_SOURCES = \ + iostream-ssl.c \ + iostream-ssl-context-cache.c \ + iostream-ssl-test.c + +noinst_HEADERS = \ + dovecot-openssl-common.h + +headers = \ + iostream-openssl.h \ + iostream-ssl.h \ + iostream-ssl-private.h \ + iostream-ssl-test.h + +pkginc_libdir=$(pkgincludedir) +pkginc_lib_HEADERS = $(headers) + +if BUILD_OPENSSL +test_libs = \ + $(module_LTLIBRARIES) \ + $(noinst_LTLIBRARIES) \ + ../lib-test/libtest.la \ + ../lib/liblib.la + +test_iostream_ssl_SOURCES = test-iostream-ssl.c +test_iostream_ssl_LDADD = $(test_libs) $(SSL_LIBS) $(DLLIB) +test_iostream_ssl_DEPENDENCIES = $(test_libs) + +test_programs = \ + test-iostream-ssl + +noinst_PROGRAMS = $(test_programs) + +check-local: + for bin in $(test_programs); do \ + if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \ + done +endif |