summaryrefslogtreecommitdiffstats
path: root/pigeonhole/src/managesieve/Makefile.am
blob: 17b5790369e7c007dde493093fc65bf670de3e7b (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
settingsdir = $(dovecot_moduledir)/settings

dovecot_pkglibexec_PROGRAMS = managesieve

AM_CPPFLAGS = \
	$(LIBDOVECOT_INCLUDE) \
	$(LIBDOVECOT_SERVICE_INCLUDE) \
	-DMODULEDIR=\""$(dovecot_moduledir)"\" \
	-I$(top_srcdir) \
	-I$(top_srcdir)/src/lib-sieve \
	-I$(top_srcdir)/src/lib-managesieve

libmanagesieve_settings_la_LDFLAGS = -module -avoid-version

settings_LTLIBRARIES = \
	libmanagesieve_settings.la

libmanagesieve_settings_la_SOURCES = \
	managesieve-settings.c

libs = \
	managesieve-settings.lo \
	$(top_builddir)/src/lib-managesieve/libmanagesieve.la \
	$(top_builddir)/src/lib-sieve/libdovecot-sieve.la

managesieve_CPPFLAGS = $(AM_CPPFLAGS) $(BINARY_CFLAGS)
managesieve_LDFLAGS = -export-dynamic $(BINARY_LDFLAGS)

managesieve_LDADD = $(libs) $(LIBDOVECOT_STORAGE) $(LIBDOVECOT_LDA) $(LIBDOVECOT)

managesieve_DEPENDENCIES = $(libs) $(LIBDOVECOT_STORAGE_DEPS) $(LIBDOVECOT_LDA_DEPS) $(LIBDOVECOT_DEPS)

cmds = \
	cmd-capability.c \
	cmd-logout.c \
	cmd-putscript.c \
	cmd-getscript.c \
	cmd-setactive.c \
	cmd-deletescript.c \
	cmd-listscripts.c \
	cmd-havespace.c \
	cmd-renamescript.c \
	cmd-noop.c

managesieve_SOURCES = \
	$(cmds) \
	managesieve-quota.c \
	managesieve-client.c \
	managesieve-commands.c \
	managesieve-capabilities.c \
	main.c

noinst_HEADERS = \
	managesieve-quota.h \
	managesieve-client.h \
	managesieve-commands.h \
	managesieve-capabilities.h \
	managesieve-settings.h \
	managesieve-common.h