2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenpkglibexecdir = $(libexecdir)/dovecot
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenpkglibexec_PROGRAMS = director
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 Tuomidirector_LDADD = $(LIBDOVECOT) \
b200bc3875fa06d42c8619865cc306c3297fcaccAki Tuomi $(BINARY_LDFLAGS)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainendirector_DEPENDENCIES = $(LIBDOVECOT_DEPS)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainendirector_SOURCES = \
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainennoinst_HEADERS = \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainennoinst_PROGRAMS = director-test $(test_programs)
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainendirector_test_LDADD = $(LIBDOVECOT)
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainendirector_test_DEPENDENCIES = $(LIBDOVECOT_DEPS)
00e7c3010f7da4a49881a7feb05e413af353af0aTimo Sirainendirector_test_SOURCES = \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainentest_programs = \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen test-user-directory
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 for bin in $(test_programs); do \
447bf65ddb82ec279e7386828748ef47e199a6afTimo Sirainen if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \