Makefile.am revision e5224c0589916fb22f95f959326cf4b6221715b0
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksadoveadm_moduledir = $(moduledir)/doveadm
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksapkglibexecdir = $(libexecdir)/dovecot
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen KuksaSUBDIRS = dsync
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksabin_PROGRAMS = doveadm
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksapkglibexec_PROGRAMS = doveadm-server
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen KuksaAM_CPPFLAGS = \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-test \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-settings \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-auth \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-compression \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-dict \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-fs \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-ssl-iostream \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-master \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-mail \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -I$(top_srcdir)/src/lib-imap \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-index \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-storage \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-imap-storage \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-http \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/lib-dcrypt \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -I$(top_srcdir)/src/auth \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DMODULEDIR=\""$(moduledir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DAUTH_MODULE_DIR=\""$(moduledir)/auth"\" \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -DDOVEADM_MODULEDIR=\""$(doveadm_moduledir)"\" \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa -DPKG_RUNDIR=\""$(rundir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DPKG_STATEDIR=\""$(statedir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DBINDIR=\""$(bindir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa -DMANDIR=\""$(mandir)"\" \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(BINARY_CFLAGS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacmd_pw_libs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa ../auth/libpassword.la \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa ../lib-ntlm/libntlm.la \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa ../lib-otp/libotp.la
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksalibs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa dsync/libdsync.la \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa ../lib-compression/libcompression.la
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_LDADD = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(cmd_pw_libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(CRYPT_LIBS) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_STORAGE) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(BINARY_LDFLAGS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_DEPENDENCIES = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(cmd_pw_libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_STORAGE_DEPS) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_DEPS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_server_LDADD = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(libs) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_STORAGE) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(BINARY_LDFLAGS)
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksadoveadm_server_DEPENDENCIES = \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa $(libs) \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa $(LIBDOVECOT_STORAGE_DEPS) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LIBDOVECOT_DEPS)
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksadoveadm_common_cmds = \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-auth.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-dict.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-director.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-fs.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-instance.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-kick.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-log.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-master.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mutf7.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-penalty.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-proxy.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-replicator.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-sis.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-stats.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-who.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_common_mail_cmds = \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-dsync.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-altmove.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-batch.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-deduplicate.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-expunge.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-fetch.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-flags.c \
9940047ec4fd0ef151dfddd4253534eafa8c900cEugen Kuksa doveadm-mail-import.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-index.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-iter.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-mailbox.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-mailbox-metadata.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-mailbox-status.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-copymove.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mailbox-list-iter.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-save.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-search.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-server.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa# these aren't actually useful in doveadm-server, but plugins may implement
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa# both dumping and some other commands inside a single plugin. not having the
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa# dump functions in doveadm-server fails to load such plugins.
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_common_dump_cmds = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-dbox.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-index.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-log.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-mailboxlog.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-thread.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-dcrypt-file.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump-dcrypt-key.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-zlib.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacommon = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(doveadm_common_cmds) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(doveadm_common_mail_cmds) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(doveadm_common_dump_cmds) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-cmd.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-settings.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-util.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa server-connection.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-formatted.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_SOURCES = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(common) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-flow.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-pager.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-tab.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-table.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-json.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-pw.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksadoveadm_server_SOURCES = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(common) \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-auth-server.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa client-connection.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa client-connection-http.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-server.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-json.c \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa main.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksapkginc_libdir = $(pkgincludedir)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksapkginc_lib_HEADERS = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-cmd.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dsync.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-dump.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mail-iter.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-mailbox-list-iter.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-print-private.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-settings.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-util.h
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksanoinst_HEADERS = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa client-connection.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa client-connection-private.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa server-connection.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-server.h \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa doveadm-who.h
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksainstall-exec-local:
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa rm -f $(DESTDIR)$(bindir)/dsync
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa $(LN_S) doveadm $(DESTDIR)$(bindir)/dsync
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_programs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa test-doveadm-util
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksanoinst_PROGRAMS = $(test_programs)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_libs = \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa ../lib-test/libtest.la \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa ../lib/liblib.la
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_deps = $(noinst_LTLIBRARIES) $(test_libs)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksatest_doveadm_util_DEPENDENCIES = $(test_deps)
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacheck: check-am check-test
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksacheck-test: all-am
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa for bin in $(test_programs); do \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa done
4d437fdae7216cb88d5f093833b1c0166ef2a53bEugen Kuksa