view src/plugins/expire/Makefile.am @ 9575:0a00dcc4f0ea HEAD

lib-storage: Allow shared namespace prefix to use %variable modifiers.
author Timo Sirainen <tss@iki.fi>
date Wed, 26 May 2010 17:07:51 +0100
parents 6f36829c9e0e
children
line wrap: on
line source

pkglibexecdir = $(libexecdir)/dovecot

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-auth \
	-I$(top_srcdir)/src/lib-dict \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-imap \
	-I$(top_srcdir)/src/lib-index \
	-I$(top_srcdir)/src/lib-storage \
	-I$(top_srcdir)/src/lib-storage/index \
	-DPKG_RUNDIR=\""$(rundir)"\" \
	-DMODULEDIR=\""$(moduledir)"\"

lib20_expire_plugin_la_LDFLAGS = -module -avoid-version

module_LTLIBRARIES = \
	lib20_expire_plugin.la

lib20_expire_plugin_la_SOURCES = \
	expire-env.c \
	expire-plugin.c

noinst_HEADERS = \
	auth-client.h \
	expire-env.h \
	expire-plugin.h

pkglibexec_PROGRAMS = expire-tool

expire_tool_SOURCES = \
	auth-client.c \
	expire-tool.c

unused_objects = \
	$(top_builddir)/src/lib/mountpoint.o

libs = \
	$(STORAGE_LIBS) \
	$(top_builddir)/src/lib-dict/libdict.a \
	$(unused_objects)

expire_tool_LDADD = \
	$(libs) \
	$(LIBICONV) \
	$(MODULE_LIBS)

expire_tool_DEPENDENCIES = $(libs)

install-exec-local:
	$(mkdir_p) $(DESTDIR)$(moduledir)/imap \
	  $(DESTDIR)$(moduledir)/pop3 \
	  $(DESTDIR)$(moduledir)/lda
	for d in imap pop3 lda; do \
	  rm -f $(DESTDIR)$(moduledir)/$$d/lib20_expire_plugin$(MODULE_SUFFIX); \
	  $(LN_S) ../lib20_expire_plugin$(MODULE_SUFFIX) $(DESTDIR)$(moduledir)/$$d; \
	done