blob: 084ec0ed98f6832f8dd4bc27a41b4921214de778 (
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
91
92
93
94
95
96
97
98
|
pkgsysconfdir = $(sysconfdir)/dovecot
pkglibexecdir = $(libexecdir)/dovecot
exampledir = $(docdir)/example-config
bin_PROGRAMS = doveconf
pkglibexec_PROGRAMS = config
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-dns \
-I$(top_srcdir)/src/lib-mail \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
-DPKG_RUNDIR=\""$(rundir)"\" \
-DPKG_STATEDIR=\""$(statedir)"\" \
-DPKG_LIBEXECDIR=\""$(pkglibexecdir)"\" \
-DEXAMPLE_CONFIG_DIR=\""$(exampledir)"\" \
-DMODULEDIR=\""$(moduledir)"\" \
-DSSLDIR=\""$(ssldir)\"" \
-DSYSCONFDIR=\""$(pkgsysconfdir)"\" \
$(BINARY_CFLAGS)
noinst_LTLIBRARIES = libconfig.la
config_LDADD = \
$(noinst_LTLIBRARIES) \
$(LIBDOVECOT) \
$(RAND_LIBS) \
$(BINARY_LDFLAGS) \
-lm
config_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES)
doveconf_LDADD = \
$(noinst_LTLIBRARIES) \
$(LIBDOVECOT) \
$(RAND_LIBS) \
$(BINARY_LDFLAGS) \
-lm
doveconf_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES)
common = \
config-connection.c \
config-filter.c \
config-parser.c \
config-request.c \
old-set-parser.c \
sysinfo-get.c
libconfig_la_SOURCES = $(common)
config_SOURCES = \
all-settings.c \
main.c
doveconf_SOURCES = \
all-settings.c \
doveconf.c
noinst_HEADERS = \
all-settings.h \
config-connection.h \
old-set-parser.h \
sysinfo-get.h
pkginclude_HEADERS = \
config-filter.h \
config-parser.h \
config-parser-private.h \
config-request.h
all-settings.c: $(SETTING_FILES) $(top_srcdir)/src/config/settings-get.pl
$(top_srcdir)/src/config/settings-get.pl $(SETTING_FILES) > all-settings.c || rm -f all-settings.c
EXTRA_DIST = \
config-settings.c \
settings-get.pl
test_programs = \
test-config-parser
noinst_PROGRAMS = $(test_programs)
test_libs = \
$(noinst_LTLIBRARIES) \
$(LIBDOVECOT)
test_config_parser_CFLAGS = $(AM_CPPFLAGS)
test_config_parser_SOURCES = test-config-parser.c
test_config_parser_LDADD = $(test_libs)
test_config_parser_DEPENDENCIES = $(LIBDOVECOT_DEPS) $(noinst_LTLIBRARIES)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done
|