2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenpkglibexecdir = $(libexecdir)/dovecot
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenpkglibexec_PROGRAMS = director
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenAM_CPPFLAGS = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -I$(top_srcdir)/src/lib \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen -I$(top_srcdir)/src/lib-test \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -I$(top_srcdir)/src/lib-auth \
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainen -I$(top_srcdir)/src/lib-imap \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -I$(top_srcdir)/src/lib-settings \
5733207dc3ec10e6e5a6e0a8b30fbd1b061062b9Timo Sirainen -I$(top_srcdir)/src/lib-master \
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomi -I$(top_srcdir)/src/lib-mail \
cf7857bce68a33cdabe88bb15568e21921eb5ac7Aki Tuomi -I$(top_srcdir)/src/lib-program-client \
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomi $(BINARY_CFLAGS)
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomi
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomidirector_LDADD = $(LIBDOVECOT) \
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomi $(BINARY_LDFLAGS)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainendirector_DEPENDENCIES = $(LIBDOVECOT_DEPS)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainendirector_SOURCES = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen main.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen auth-connection.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-connection.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-host.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-request.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-settings.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen doveadm-connection.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen login-connection.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen mail-host.c \
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen notify-connection.c \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen user-directory.c
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainennoinst_HEADERS = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen auth-connection.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-connection.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-host.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-request.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen director-settings.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen doveadm-connection.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen login-connection.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen mail-host.h \
300e4e43ed1ca46d0614459161ca2fb460ef661aTimo Sirainen notify-connection.h \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen user-directory.h
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainen
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainennoinst_PROGRAMS = director-test $(test_programs)
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainen
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainendirector_test_LDADD = $(LIBDOVECOT)
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainendirector_test_DEPENDENCIES = $(LIBDOVECOT_DEPS)
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainen
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainendirector_test_SOURCES = \
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainen director-test.c
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainentest_programs = \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen test-user-directory
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainentest_libs = \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen ../lib-test/libtest.la \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen ../lib/liblib.la
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainentest_user_directory_SOURCES = test-user-directory.c
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainentest_user_directory_LDADD = user-directory.o $(test_libs)
41e6163a8c2b0550b2a45b8e8fb3ec86d1b3489fTimo Sirainentest_user_directory_DEPENDENCIES = $(pkglibexec_PROGRAMS) $(test_libs)
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainencheck-local:
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen for bin in $(test_programs); do \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen done