summaryrefslogtreecommitdiffstats
path: root/src/plugins/pop3-migration/Makefile.am
blob: f58d06532e562ddd1d9a0f19905fa6be226202b0 (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
AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-test \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-index \
	-I$(top_srcdir)/src/lib-storage \
	-I$(top_srcdir)/src/lib-storage/index

NOPLUGIN_LDFLAGS =
lib05_pop3_migration_plugin_la_LDFLAGS = -module -avoid-version

module_LTLIBRARIES = \
	lib05_pop3_migration_plugin.la

lib05_pop3_migration_plugin_la_SOURCES = \
	pop3-migration-plugin.c

noinst_HEADERS = \
	pop3-migration-plugin.h

noinst_PROGRAMS = $(test_programs)

test_programs = \
	test-pop3-migration-plugin

test_libs = \
	$(LIBDOVECOT_STORAGE) \
	$(LIBDOVECOT)
test_deps = \
	$(module_LTLIBRARIES) \
	$(LIBDOVECOT_STORAGE_DEPS) \
	$(LIBDOVECOT_DEPS)

test_pop3_migration_plugin_SOURCES = test-pop3-migration-plugin.c
test_pop3_migration_plugin_LDADD = pop3-migration-plugin.lo $(test_libs)
test_pop3_migration_plugin_DEPENDENCIES = $(test_deps)

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