5035404202587543bb4843d4aec46331651b6e16Timo Sirainennoinst_LTLIBRARIES = libimap_client.la
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen
5035404202587543bb4843d4aec46331651b6e16Timo SirainenAM_CPPFLAGS = \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen -I$(top_srcdir)/src/lib \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen -I$(top_srcdir)/src/lib-test \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen -I$(top_srcdir)/src/lib-dns \
2f351279cbfe7a47ba1163ed5d172dea504f2ba8Timo Sirainen -I$(top_srcdir)/src/lib-sasl \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen -I$(top_srcdir)/src/lib-ssl-iostream \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen -I$(top_srcdir)/src/lib-mail \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen -I$(top_srcdir)/src/lib-imap
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen
5035404202587543bb4843d4aec46331651b6e16Timo Sirainenlibimap_client_la_SOURCES = \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-client.c \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-connection.c \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-msgmap.c
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen
5035404202587543bb4843d4aec46331651b6e16Timo Sirainenheaders = \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-client.h \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-client-private.h \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-connection.h \
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen imapc-msgmap.h
5035404202587543bb4843d4aec46331651b6e16Timo Sirainen
5035404202587543bb4843d4aec46331651b6e16Timo Sirainenpkginc_libdir=$(pkgincludedir)
5035404202587543bb4843d4aec46331651b6e16Timo Sirainenpkginc_lib_HEADERS = $(headers)
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainentest_programs = \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen test-imapc-client
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainennoinst_PROGRAMS = $(test_programs)
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainentest_deps = \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen $(noinst_LTLIBRARIES) \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-ssl-iostream/libssl_iostream.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-sasl/libsasl.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-imap/libimap.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-mail/libmail.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-charset/libcharset.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-dns/libdns.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib-test/libtest.la \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen ../lib/liblib.la
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainentest_libs = \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen $(test_deps) \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen $(MODULE_LIBS)
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainentest_imapc_client_SOURCES = test-imapc-client.c
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainentest_imapc_client_LDADD = $(test_libs)
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainentest_imapc_client_DEPENDENCIES = $(test_deps)
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainencheck-local:
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen for bin in $(test_programs); do \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
bac4b1dc3aa56cda1c9d4fdd7e673b94e5c559a9Timo Sirainen done