Makefile.am revision b3a968f434cbb9e374ea3da0a7d493e20231a4ae
d3b29d4b61f1549244a7509b798be6f806cf7d4eTimo Sirainendoveadm_moduledir = $(moduledir)/doveadm
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainenpkglibexecdir = $(libexecdir)/dovecot
5355df8b66da35698449a10c2c83633a64995298Timo Sirainen
d99107ddf4d9bccb710994482daf65276a9d6321Timo SirainenSUBDIRS = dsync
d99107ddf4d9bccb710994482daf65276a9d6321Timo Sirainen
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainenbin_PROGRAMS = doveadm
d3b29d4b61f1549244a7509b798be6f806cf7d4eTimo Sirainenpkglibexec_PROGRAMS = doveadm-server
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo SirainenAM_CPPFLAGS = \
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde -I$(top_srcdir)/src/lib \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen -I$(top_srcdir)/src/lib-test \
2a90d8a14b0e7cc1508814bc87d3dfa598ef46a8Timo Sirainen -I$(top_srcdir)/src/lib-settings \
bbe42963032af89fac1318844da08c742525cc87Timo Sirainen -I$(top_srcdir)/src/lib-auth \
72b9d8039b714ea57c4e3b31bce32ef41cb414d4Timo Sirainen -I$(top_srcdir)/src/lib-compression \
1299f2c3723ca9ccf8f9e563ec23ee1a1721fe4cTimo Sirainen -I$(top_srcdir)/src/lib-dict \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen -I$(top_srcdir)/src/lib-fs \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen -I$(top_srcdir)/src/lib-ssl-iostream \
fc71e94957d0c2959a609450a2f303640d681858Sascha Wilde -I$(top_srcdir)/src/lib-master \
9137c55411aa39d41c1e705ddc34d5bd26c65021Timo Sirainen -I$(top_srcdir)/src/lib-mail \
bbe42963032af89fac1318844da08c742525cc87Timo Sirainen -I$(top_srcdir)/src/lib-imap \
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainen -I$(top_srcdir)/src/lib-index \
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainen -I$(top_srcdir)/src/lib-storage \
-I$(top_srcdir)/src/lib-imap-storage \
-I$(top_srcdir)/src/lib-http \
-I$(top_srcdir)/src/lib-dcrypt \
-I$(top_srcdir)/src/auth \
-DMODULEDIR=\""$(moduledir)"\" \
-DAUTH_MODULE_DIR=\""$(moduledir)/auth"\" \
-DDOVEADM_MODULEDIR=\""$(doveadm_moduledir)"\" \
-DPKG_RUNDIR=\""$(rundir)"\" \
-DPKG_STATEDIR=\""$(statedir)"\" \
-DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
-DBINDIR=\""$(bindir)"\" \
-DMANDIR=\""$(mandir)"\" \
$(BINARY_CFLAGS)
cmd_pw_libs = \
../auth/libpassword.la \
../lib-ntlm/libntlm.la \
../lib-otp/libotp.la
libs = \
dsync/libdsync.la \
../lib-compression/libcompression.la
doveadm_LDADD = \
$(libs) \
$(cmd_pw_libs) \
$(CRYPT_LIBS) \
$(LIBDOVECOT_STORAGE) \
$(LIBDOVECOT) \
$(BINARY_LDFLAGS)
doveadm_DEPENDENCIES = \
$(libs) \
$(cmd_pw_libs) \
$(LIBDOVECOT_STORAGE_DEPS) \
$(LIBDOVECOT_DEPS)
doveadm_server_LDADD = \
$(libs) \
$(LIBDOVECOT_STORAGE) \
$(LIBDOVECOT) \
$(BINARY_LDFLAGS)
doveadm_server_DEPENDENCIES = \
$(libs) \
$(LIBDOVECOT_STORAGE_DEPS) \
$(LIBDOVECOT_DEPS)
doveadm_common_cmds = \
doveadm-auth.c \
doveadm-dict.c \
doveadm-director.c \
doveadm-fs.c \
doveadm-instance.c \
doveadm-kick.c \
doveadm-log.c \
doveadm-master.c \
doveadm-mutf7.c \
doveadm-penalty.c \
doveadm-proxy.c \
doveadm-replicator.c \
doveadm-sis.c \
doveadm-stats.c \
doveadm-who.c
doveadm_common_mail_cmds = \
doveadm-dsync.c \
doveadm-mail.c \
doveadm-mail-altmove.c \
doveadm-mail-batch.c \
doveadm-mail-deduplicate.c \
doveadm-mail-expunge.c \
doveadm-mail-fetch.c \
doveadm-mail-flags.c \
doveadm-mail-import.c \
doveadm-mail-index.c \
doveadm-mail-iter.c \
doveadm-mail-mailbox.c \
doveadm-mail-mailbox-metadata.c \
doveadm-mail-mailbox-status.c \
doveadm-mail-copymove.c \
doveadm-mailbox-list-iter.c \
doveadm-mail-save.c \
doveadm-mail-search.c \
doveadm-mail-server.c
# these aren't actually useful in doveadm-server, but plugins may implement
# both dumping and some other commands inside a single plugin. not having the
# dump functions in doveadm-server fails to load such plugins.
doveadm_common_dump_cmds = \
doveadm-dump.c \
doveadm-dump-dbox.c \
doveadm-dump-index.c \
doveadm-dump-log.c \
doveadm-dump-mailboxlog.c \
doveadm-dump-thread.c \
doveadm-dump-dcrypt-file.c \
doveadm-dump-dcrypt-key.c \
doveadm-zlib.c
common = \
$(doveadm_common_cmds) \
$(doveadm_common_mail_cmds) \
$(doveadm_common_dump_cmds) \
doveadm-cmd.c \
doveadm-print.c \
doveadm-settings.c \
doveadm-util.c \
server-connection.c \
doveadm-print-formatted.c
doveadm_SOURCES = \
$(common) \
doveadm.c \
doveadm-print-flow.c \
doveadm-print-pager.c \
doveadm-print-tab.c \
doveadm-print-table.c \
doveadm-print-json.c \
doveadm-pw.c
doveadm_server_SOURCES = \
$(common) \
doveadm-auth-server.c \
client-connection.c \
client-connection-http.c \
doveadm-print-server.c \
doveadm-print-json.c \
main.c
pkginc_libdir = $(pkgincludedir)
pkginc_lib_HEADERS = \
doveadm.h \
doveadm-cmd.h \
doveadm-dsync.h \
doveadm-dump.h \
doveadm-mail.h \
doveadm-mail-iter.h \
doveadm-mailbox-list-iter.h \
doveadm-print.h \
doveadm-print-private.h \
doveadm-settings.h \
doveadm-util.h
noinst_HEADERS = \
client-connection.h \
client-connection-private.h \
server-connection.h \
doveadm-server.h \
doveadm-who.h
install-exec-local:
rm -f $(DESTDIR)$(bindir)/dsync
$(LN_S) doveadm $(DESTDIR)$(bindir)/dsync
test_programs = \
test-doveadm-util
noinst_PROGRAMS = $(test_programs)
test_libs = \
../lib-test/libtest.la \
../lib/liblib.la
test_deps = $(noinst_LTLIBRARIES) $(test_libs)
test_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c
test_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS)
test_doveadm_util_DEPENDENCIES = $(test_deps)
check: check-am check-test
check-test: all-am
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done