summaryrefslogtreecommitdiffstats
path: root/src/director/Makefile.am
blob: c202353e3e70892d84ac9f7e178b6cd92638271f (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
pkglibexecdir = $(libexecdir)/dovecot

pkglibexec_PROGRAMS = director

AM_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-test \
	-I$(top_srcdir)/src/lib-auth \
	-I$(top_srcdir)/src/lib-imap \
	-I$(top_srcdir)/src/lib-settings \
	-I$(top_srcdir)/src/lib-master \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-program-client \
	$(BINARY_CFLAGS)

director_LDADD = $(LIBDOVECOT) \
	$(BINARY_LDFLAGS)

director_DEPENDENCIES = $(LIBDOVECOT_DEPS)

director_SOURCES = \
	main.c \
	auth-connection.c \
	director.c \
	director-connection.c \
	director-host.c \
	director-request.c \
	director-settings.c \
	doveadm-connection.c \
	login-connection.c \
	mail-host.c \
	notify-connection.c \
	user-directory.c

noinst_HEADERS = \
	auth-connection.h \
	director.h \
	director-connection.h \
	director-host.h \
	director-request.h \
	director-settings.h \
	doveadm-connection.h \
	login-connection.h \
	mail-host.h \
	notify-connection.h \
	user-directory.h

noinst_PROGRAMS = director-test $(test_programs)

director_test_LDADD = $(LIBDOVECOT)
director_test_DEPENDENCIES = $(LIBDOVECOT_DEPS)

director_test_SOURCES = \
	director-test.c

test_programs = \
	test-user-directory

test_libs = \
	../lib-test/libtest.la \
	../lib/liblib.la

test_user_directory_SOURCES = test-user-directory.c
test_user_directory_LDADD = user-directory.o $(test_libs)
test_user_directory_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)

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