summaryrefslogtreecommitdiffstats
path: root/src/plugins/acl/Makefile.am
blob: 8a5323e35de5db16a6d6ee9cf5f94a2f2515de6d (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
doveadm_moduledir = $(moduledir)/doveadm

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-test \
	-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/list \
	-I$(top_srcdir)/src/doveadm

NOPLUGIN_LDFLAGS =
lib10_doveadm_acl_plugin_la_LDFLAGS = -module -avoid-version
lib01_acl_plugin_la_LDFLAGS = -module -avoid-version

module_LTLIBRARIES = \
	lib01_acl_plugin.la

lib01_acl_plugin_la_SOURCES = \
	acl-api.c \
	acl-attributes.c \
	acl-backend.c \
	acl-backend-vfile.c \
	acl-backend-vfile-acllist.c \
	acl-backend-vfile-update.c \
	acl-cache.c \
	acl-global-file.c \
	acl-lookup-dict.c \
	acl-mailbox.c \
	acl-mailbox-list.c \
	acl-plugin.c \
	acl-shared-storage.c \
	acl-storage.c

noinst_HEADERS = \
	acl-backend-vfile.h \
	acl-shared-storage.h

pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = \
	acl-api.h \
	acl-api-private.h \
	acl-cache.h \
	acl-global-file.h \
	acl-lookup-dict.h \
	acl-plugin.h \
	acl-storage.h

doveadm_module_LTLIBRARIES = \
	lib10_doveadm_acl_plugin.la

lib10_doveadm_acl_plugin_la_SOURCES = \
	doveadm-acl.c

test_programs = \
	test-acl

test_libs = \
	$(module_LTLIBRARIES) \
	$(LIBDOVECOT_STORAGE) \
	$(LIBDOVECOT)
test_deps = \
	$(module_LTLIBRARIES) \
	$(LIBDOVECOT_STORAGE_DEPS) \
	$(LIBDOVECOT_DEPS)

test_acl_SOURCES = test-acl.c
test_acl_LDADD = $(test_libs)
test_acl_DEPENDENCIES = $(test_deps)

check-local:
	for bin in $(test_programs); do \
	  if ! env $(test_options) $(RUN_TEST) ./$$bin; then exit 1; fi; \
	done

noinst_PROGRAMS = $(test_programs)