view src/plugins/pop3-migration/Makefile.am @ 18914:a83cc1411205

pop3-migration: Compiling fix in some systems
author Timo Sirainen <tss@iki.fi>
date Sun, 19 Jul 2015 16:21:04 +0300
parents ab441df52e86
children 3712091cf4d0
line wrap: on
line source

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

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: check-am check-test
check-test: all-am
	for bin in $(test_programs); do \
	  if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
	done