summaryrefslogtreecommitdiffstats
path: root/src/doveadm/dsync/Makefile.am
blob: 20cbfc74f3699c5747b9020918d8eccb8b029d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
pkglib_LTLIBRARIES = libdovecot-dsync.la
noinst_LTLIBRARIES = libdsync.la

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-test \
	-I$(top_srcdir)/src/lib-settings \
	-I$(top_srcdir)/src/lib-ssl-iostream \
	-I$(top_srcdir)/src/lib-master \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-imap \
	-I$(top_srcdir)/src/lib-index \
	-I$(top_srcdir)/src/lib-storage

libdsync_la_SOURCES = \
	dsync-brain.c \
	dsync-brain-mailbox.c \
	dsync-brain-mailbox-tree.c \
	dsync-brain-mailbox-tree-sync.c \
	dsync-brain-mails.c \
	dsync-deserializer.c \
	dsync-mail.c \
	dsync-mailbox.c \
	dsync-mailbox-import.c \
	dsync-mailbox-export.c \
	dsync-mailbox-state.c \
	dsync-mailbox-tree.c \
	dsync-mailbox-tree-fill.c \
	dsync-mailbox-tree-sync.c \
	dsync-serializer.c \
	dsync-ibc.c \
	dsync-ibc-stream.c \
	dsync-ibc-pipe.c \
	dsync-transaction-log-scan.c

libdovecot_dsync_la_SOURCES =
libdovecot_dsync_la_LIBADD = libdsync.la ../../lib-storage/libdovecot-storage.la ../../lib-dovecot/libdovecot.la
libdovecot_dsync_la_DEPENDENCIES = libdsync.la
libdovecot_dsync_la_LDFLAGS = -export-dynamic

pkginc_libdir = $(pkgincludedir)
pkginc_lib_HEADERS = \
	dsync-brain.h \
	dsync-ibc.h

noinst_HEADERS = \
	dsync-brain-private.h \
	dsync-mail.h \
	dsync-mailbox.h \
	dsync-mailbox-import.h \
	dsync-mailbox-export.h \
	dsync-mailbox-state.h \
	dsync-mailbox-tree.h \
	dsync-mailbox-tree-private.h \
	dsync-serializer.h \
	dsync-deserializer.h \
	dsync-ibc-private.h \
	dsync-transaction-log-scan.h

test_programs = \
	test-dsync-mailbox-tree-sync

noinst_PROGRAMS = $(test_programs)

test_libs = \
	../../lib-test/libtest.la \
	../../lib/liblib.la

test_dsync_mailbox_tree_sync_SOURCES = test-dsync-mailbox-tree-sync.c
test_dsync_mailbox_tree_sync_LDADD = dsync-mailbox-tree-sync.lo dsync-mailbox-tree.lo $(test_libs)
test_dsync_mailbox_tree_sync_DEPENDENCIES = $(pkglib_LTLIBRARIES) $(test_libs)

check-local:
	for bin in $(test_programs); do \
	  if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
	done