SUBDIRS = list index
noinst_LTLIBRARIES = libstorage.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-auth \
-I$(top_srcdir)/src/lib-dict \
-I$(top_srcdir)/src/lib-sasl \
-I$(top_srcdir)/src/lib-ssl-iostream \
-I$(top_srcdir)/src/lib-fs \
-I$(top_srcdir)/src/lib-master \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-charset \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-imap \
-I$(top_srcdir)/src/lib-index \
-DPKG_RUNDIR=\""$(rundir)"\" \
-DMODULEDIR=\""$(moduledir)"\"
libstorage_la_SOURCES = \
mail.c \
headers = \
shlibs = \
libstorage_la_LIBADD = $(shlibs)
libstorage_la_DEPENDENCIES = $(shlibs)
pkglib_LTLIBRARIES = libdovecot-storage.la
libdovecot_storage_la_SOURCES =
libdovecot_storage_la_LIBADD = \
$(LINKED_STORAGE_LDADD)
libdovecot_storage_la_DEPENDENCIES = \
$(LIBDOVECOT_DEPS)
libdovecot_storage_la_LDFLAGS = -export-dynamic
test_programs = \
test-mail-search-args-imap \
test-mail-search-args-simplify \
test-mail-storage \
test-mailbox-get
noinst_PROGRAMS = $(test_programs)
test_libs = \
$(top_builddir)/src/lib-test/libtest.la \
$(top_builddir)/src/lib/liblib.la
test_mail_search_args_imap_SOURCES = test-mail-search-args-imap.c
test_mail_search_args_imap_LDADD = libstorage.la $(LIBDOVECOT)
test_mail_search_args_imap_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS)
test_mail_search_args_simplify_SOURCES = test-mail-search-args-simplify.c
test_mail_search_args_simplify_LDADD = libstorage.la $(LIBDOVECOT)
test_mail_search_args_simplify_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS)
test_mailbox_get_SOURCES = test-mailbox-get.c
test_mailbox_get_LDADD = mailbox-get.lo $(test_libs)
test_mailbox_get_DEPENDENCIES = $(noinst_LTLIBRARIES) $(test_libs)
test_mail_storage_SOURCES = test-mail-storage.c
test_mail_storage_LDADD = libstorage.la $(LIBDOVECOT)
test_mail_storage_DEPENDENCIES = libstorage.la $(LIBDOVECOT_DEPS)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
noinst_HEADERS = $(test_headers)