src/lib-fts/WordBreakProperty.txt
src/lib-fts/word-boundary-data.c
src/lib-fts/word-break-data.c
-src/lib-dict/dict-drivers-register.c
+src/lib-dict-backend/dict-drivers-register.c
src/lib-sql/sql-drivers-register.c
src/log/log
src/lmtp/lmtp
src/lib-compression/Makefile
src/lib-dcrypt/Makefile
src/lib-dict/Makefile
+src/lib-dict-backend/Makefile
src/lib-dict-extra/Makefile
src/lib-dns/Makefile
src/lib-fs/Makefile
lib-ntlm \
lib-otp \
lib-lda \
+ lib-dict-backend \
anvil \
auth \
dict \
$(BINARY_LDFLAGS)
libs = \
- ../lib-dict/libdict_backend.la \
+ ../lib-dict-backend/libdict_backend.la \
$(LIBDOVECOT_SQL)
dict_LDADD = \
--- /dev/null
+noinst_LTLIBRARIES = libdict_backend.la
+
+dict_drivers = @dict_drivers@
+
+AM_CPPFLAGS = \
+ -I$(top_srcdir)/src/lib \
+ -I$(top_srcdir)/src/lib-test \
+ -I$(top_srcdir)/src/lib-dict \
+ -I$(top_srcdir)/src/lib-sql \
+ -I$(top_srcdir)/src/lib-settings \
+ $(SQL_CFLAGS)
+
+NOPLUGIN_LDFLAGS =
+
+libdict_backend_la_SOURCES = \
+ dict-db.c \
+ dict-cdb.c \
+ dict-sql.c \
+ dict-sql-settings.c
+
+nodist_libdict_backend_la_SOURCES = \
+ dict-drivers-register.c
+
+noinst_HEADERS = \
+ dict-sql.h \
+ dict-sql-private.h \
+ dict-sql-settings.h
+
+EXTRA_DIST = dict.conf
+
+dict-drivers-register.c: Makefile $(top_builddir)/config.h
+ rm -f $@
+ echo '/* this file automatically generated by Makefile */' >$@
+ echo '#include "lib.h"' >>$@
+ echo '#include "dict.h"' >>$@
+ echo '#include "dict-sql.h"' >>$@
+ for i in $(dict_drivers) null; do \
+ if [ "$${i}" != "null" ]; then \
+ echo "extern struct dict dict_driver_$${i};" >>$@ ; \
+ fi; \
+ done
+ echo 'void dict_drivers_register_all(void) {' >>$@
+ echo 'dict_drivers_register_builtin();' >>$@
+ echo 'dict_sql_register();' >>$@
+ for i in $(dict_drivers) null; do \
+ if [ "$${i}" != "null" ]; then \
+ echo "dict_driver_register(&dict_driver_$${i});" >>$@ ; \
+ fi; \
+ done
+ echo '}' >>$@
+ echo 'void dict_drivers_unregister_all(void) {' >>$@
+ echo 'dict_drivers_unregister_builtin();' >>$@
+ echo 'dict_sql_unregister();' >>$@
+ for i in $(dict_drivers) null; do \
+ if [ "$${i}" != "null" ]; then \
+ echo "dict_driver_unregister(&dict_driver_$${i});" >>$@ ; \
+ fi; \
+ done
+ echo '}' >>$@
+
+distclean-generic:
+ rm -f Makefile dict-drivers-register.c
+
+# test-dict-sql must be compiled after the whole core
+# has been compiled, because it depends on things that
+# are build after lib-dict.
+check_PROGRAMS = test-dict-sql
+
+test_libs = \
+ ../lib-dict/libdict.la \
+ ../lib-test/libtest.la \
+ ../lib/liblib.la
+
+test_dict_sql_CFLAGS = $(AM_CPPFLAGS) -DDICT_SRC_DIR=\"$(top_srcdir)/src/lib-dict-backend\"
+test_dict_sql_SOURCES = \
+ test-dict-sql.c
+test_dict_sql_LDADD = \
+ $(noinst_LTLIBRARIES) \
+ ../lib-sql/libdriver_test.la \
+ ../lib-sql/libsql.la \
+ ../lib-settings/libsettings.la \
+ $(test_libs)
+test_dict_sql_DEPENDENCIES = \
+ $(noinst_LTLIBRARIES) \
+ ../lib-sql/libdriver_test.la \
+ ../lib-sql/libsql.la \
+ ../lib-settings/libsettings.la \
+ $(test_libs)
+
+check: check-am check-test
+check-test: all-am
+ for bin in $(test_programs) $(check_PROGRAMS); do \
+ if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
+ done
-noinst_LTLIBRARIES = libdict.la libdict_backend.la
+noinst_LTLIBRARIES = libdict.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
- -I$(top_srcdir)/src/lib-sql \
- -I$(top_srcdir)/src/lib-settings \
- $(SQL_CFLAGS)
+ -I$(top_srcdir)/src/lib-settings
base_sources = \
dict.c \
libdict_la_SOURCES = \
$(base_sources)
-libdict_backend_la_SOURCES = \
- dict-db.c \
- dict-cdb.c \
- dict-sql.c \
- dict-sql-settings.c
-
-nodist_libdict_backend_la_SOURCES = \
- dict-drivers-register.c
-
headers = \
dict.h \
dict-client.h \
dict-private.h \
- dict-sql.h \
- dict-sql-settings.h \
dict-transaction-memory.h
-noinst_HEADERS = \
- dict-sql-private.h
-
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
-EXTRA_DIST = dict.conf
-
-dict-drivers-register.c: Makefile $(top_builddir)/config.h
- rm -f $@
- echo '/* this file automatically generated by Makefile */' >$@
- echo '#include "lib.h"' >>$@
- echo '#include "dict.h"' >>$@
- echo '#include "dict-sql.h"' >>$@
- for i in $(dict_drivers) null; do \
- if [ "$${i}" != "null" ]; then \
- echo "extern struct dict dict_driver_$${i};" >>$@ ; \
- fi; \
- done
- echo 'void dict_drivers_register_all(void) {' >>$@
- echo 'dict_drivers_register_builtin();' >>$@
- echo 'dict_sql_register();' >>$@
- for i in $(dict_drivers) null; do \
- if [ "$${i}" != "null" ]; then \
- echo "dict_driver_register(&dict_driver_$${i});" >>$@ ; \
- fi; \
- done
- echo '}' >>$@
- echo 'void dict_drivers_unregister_all(void) {' >>$@
- echo 'dict_drivers_unregister_builtin();' >>$@
- echo 'dict_sql_unregister();' >>$@
- for i in $(dict_drivers) null; do \
- if [ "$${i}" != "null" ]; then \
- echo "dict_driver_unregister(&dict_driver_$${i});" >>$@ ; \
- fi; \
- done
- echo '}' >>$@
-
-distclean-generic:
- rm -f Makefile dict-drivers-register.c
-
test_programs = \
test-dict
noinst_PROGRAMS = $(test_programs) test-dict-client
-# test-dict-sql must be compiled after the whole core
-# has been compiled, because it depends on things that
-# are build after lib-dict.
-check_PROGRAMS = test-dict-sql
-
test_libs = \
../lib-test/libtest.la \
../lib/liblib.la
test_dict_client_LDADD = $(noinst_LTLIBRARIES) ../lib/liblib.la
test_dict_client_DEPENDENCIES = $(noinst_LTLIBRARIES) $(test_libs)
-test_dict_sql_CFLAGS = $(AM_CPPFLAGS) -DDICT_SRC_DIR=\"$(top_srcdir)/src/lib-dict\"
-test_dict_sql_SOURCES = \
- test-dict-sql.c
-test_dict_sql_LDADD = \
- $(noinst_LTLIBRARIES) \
- ../lib-sql/libdriver_test.la \
- ../lib-sql/libsql.la \
- ../lib-settings/libsettings.la \
- $(test_libs)
-test_dict_sql_DEPENDENCIES = \
- $(noinst_LTLIBRARIES) \
- ../lib-sql/libdriver_test.la \
- ../lib-sql/libsql.la \
- ../lib-settings/libsettings.la \
- $(test_libs)
-
check: check-am check-test
check-test: all-am
- for bin in $(test_programs) $(check_PROGRAMS); do \
+ for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done
#include "array.h"
#include "llist.h"
#include "str.h"
-#include "dict-sql.h"
#include "dict-private.h"
static ARRAY(struct dict *) dict_drivers;