summaryrefslogtreecommitdiffstats
path: root/src/util/Makefile.am
blob: 2c7621d891aca8f452c73b727593db7f2a06dd92 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
pkglibexecdir = $(libexecdir)/dovecot

pkglibexec_PROGRAMS = \
	rawlog \
	script \
	script-login \
	$(TCPWRAP_BIN) \
	gdbhelper \
	maildirlock

noinst_PROGRAMS = \
	test-fs

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-auth \
	-I$(top_srcdir)/src/lib-dict \
	-I$(top_srcdir)/src/lib-fs \
	-I$(top_srcdir)/src/lib-settings \
	-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 \
	-I$(top_srcdir)/src/auth \
	-DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
	-DPKG_RUNDIR=\""$(rundir)"\" \
	$(BINARY_CFLAGS)

test_fs_SOURCES = test-fs.c
test_fs_LDADD = $(LIBDOVECOT) \
	$(BINARY_LDFLAGS)
test_fs_DEPENDENCIES = $(LIBDOVECOT_DEPS)

rawlog_LDADD = $(LIBDOVECOT) \
	$(BINARY_LDFLAGS)

rawlog_DEPENDENCIES = $(LIBDOVECOT_DEPS)
rawlog_SOURCES = \
	rawlog.c

script_login_LDADD = \
	$(LIBDOVECOT_STORAGE) \
	$(LIBDOVECOT) \
	$(BINARY_LDFLAGS)

script_login_DEPENDENCIES = \
	$(LIBDOVECOT_STORAGE_DEPS) \
	$(LIBDOVECOT_DEPS)
script_login_SOURCES = \
	script-login.c

script_LDADD = $(LIBDOVECOT) \
	$(BINARY_LDFLAGS)
script_DEPENDENCIES = $(LIBDOVECOT_DEPS)
script_SOURCES = \
	script.c \
	health-check-settings.c

if TCPWRAPPERS
TCPWRAP_BIN = tcpwrap
tcpwrap_LDADD = $(LIBDOVECOT) $(LIBWRAP_LIBS) \
	$(BINARY_LDFLAGS)

tcpwrap_DEPENDENCIES = $(LIBDOVECOT_DEPS)
tcpwrap_SOURCES = \
	tcpwrap.c \
	tcpwrap-settings.c
endif

gdbhelper_LDADD = $(LIBDOVECOT) \
	$(BINARY_LDFLAGS)

gdbhelper_DEPENDENCIES = $(LIBDOVECOT_DEPS)
gdbhelper_SOURCES = \
	gdbhelper.c

maildirlock_LDADD = $(LIBDOVECOT) \
	$(BINARY_LDFLAGS)

maildirlock_DEPENDENCIES = $(LIBDOVECOT_DEPS)
maildirlock_SOURCES = \
	maildirlock.c

pkglibexec_SCRIPTS = health-check.sh

bin_SCRIPTS = dovecot-sysreport

EXTRA_DIST = $(pkglibexec_SCRIPTS) \
	$(bin_SCRIPTS)