AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-index \
-I$(top_srcdir)/src/lib-storage/index \
-I$(top_srcdir)/src/lib-storage \
-I$(top_srcdir)/src/lib-dcrypt \
-I$(top_srcdir)/src/lib-fs \
-I$(top_srcdir)/src/doveadm \
-I$(top_srcdir)/src/plugins/acl
if SSL_VERSION_GE_102
test_options =
else !SSL_VERSION_GE_102
test_options = NOUNDEF=1
endif !SSL_VERSION_GE_102
doveadm_moduledir = $(moduledir)/doveadm
NOPLUGIN_LDFLAGS =
module_LTLIBRARIES = \
doveadm_module_LTLIBRARIES = \
lib10_mail_crypt_plugin_la_LDFLAGS = -module -avoid-version
lib10_mail_crypt_plugin_la_LIBADD = \
$(LIBDCRYPT_LIBS) \
$(LIBDOVECOT)
lib05_mail_crypt_acl_plugin_la_LDFLAGS = -module -avoid-version
if DOVECOT_PLUGIN_DEPS
lib05_mail_crypt_acl_plugin_la_LIBADD = \
$(LIBDCRYPT_LIBS) \
endif
lib10_mail_crypt_plugin_la_SOURCES = \
lib05_mail_crypt_acl_plugin_la_SOURCES = \
libfs_crypt_la_SOURCES = fs-crypt.c \
libfs_crypt_la_LIBADD = $(LIBDOVECOT)
libfs_crypt_la_DEPENDENCIES = $(LIBDOVECOT_DEPS)
libfs_crypt_la_LDFLAGS = -module -avoid-version
libfs_mail_crypt_la_SOURCES = fs-mail-crypt.c \
libfs_mail_crypt_la_LIBADD = $(LIBDOVECOT)
libfs_mail_crypt_la_DEPENDENCIES = $(LIBDOVECOT_DEPS)
libfs_mail_crypt_la_LDFLAGS = -module -avoid-version
libdoveadm_mail_crypt_plugin_la_SOURCES = \
libdoveadm_mail_crypt_plugin_la_LIBADD = $(LIBDOVECOT)
libdoveadm_mail_crypt_plugin_la_DEPENDENCIES = $(LIBDOVECOT_DEPS)
libdoveadm_mail_crypt_plugin_la_LDFLAGS = -module -avoid-version
test_programs = \
test-mail-global-key \
test-mail-key
test_mail_global_key_SOURCES = \
test_mail_global_key_LDADD = $(LIBDOVECOT)
test_mail_global_key_DEPENDENCIES = $(LIBDOVECOT_DEPS)
test_mail_global_key_LDFLAGS = $(DOVECOT_BINARY_LDFLAGS)
test_mail_global_key_CFLAGS = $(AM_CPPFLAGS) $(DOVECOT_BINARY_CFLAGS) -Dtop_builddir=\"$(top_builddir)\"
test_mail_key_SOURCES = \
test_mail_key_LDADD = $(LIBDOVECOT_STORAGE) $(LIBDOVECOT)
test_mail_key_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(LIBDOVECOT_STORAGE_DEPS)
test_mail_key_LDFLAGS = $(DOVECOT_BINARY_LDFLAGS)
test_mail_key_CFLAGS = $(AM_CPPFLAGS) $(DOVECOT_BINARY_CFLAGS) -Dtop_builddir=\"$(top_builddir)\"
EXTRA_DIST = fs-crypt-common.c
noinst_HEADERS = \
check-local:
for bin in $(test_programs); do \
if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \
done
noinst_PROGRAMS = $(test_programs)