noinst_LTLIBRARIES = libsmtp.la
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib \
-I$(top_srcdir)/src/lib-test \
-I$(top_srcdir)/src/lib-settings \
-I$(top_srcdir)/src/lib-master \
-I$(top_srcdir)/src/lib-sasl \
-I$(top_srcdir)/src/lib-ssl-iostream \
-I$(top_srcdir)/src/lib-dns \
-I$(top_srcdir)/src/lib-program-client \
-I$(top_srcdir)/src/lib-mail \
-DTEST_BIN_DIR=\"$(abs_srcdir)/test-bin\"
smtp_server_cmds = \
libsmtp_la_SOURCES = \
$(smtp_server_cmds) \
headers = \
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
test_programs = \
test-smtp-address \
test-smtp-params \
test-smtp-reply-parser \
test-smtp-command-parser
test_nocheck_programs = \
test-smtp-payload \
test-smtp-submit \
test-smtp-client-errors \
test-smtp-server-errors
noinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
test_libs = \
$(noinst_LTLIBRARIES) \
../lib/liblib.la \
$(MODULE_LIBS)
test_deps = \
$(noinst_LTLIBRARIES) \
test_smtp_address_SOURCES = test-smtp-address.c
test_smtp_address_LDFLAGS = -export-dynamic
test_smtp_address_LDADD = $(test_libs)
test_smtp_address_DEPENDENCIES = $(test_deps)
test_smtp_params_SOURCES = test-smtp-params.c
test_smtp_params_LDFLAGS = -export-dynamic
test_smtp_params_LDADD = $(test_libs)
test_smtp_params_DEPENDENCIES = $(test_deps)
test_smtp_reply_parser_SOURCES = test-smtp-reply-parser.c
test_smtp_reply_parser_LDFLAGS = -export-dynamic
test_smtp_reply_parser_LDADD = $(test_libs)
test_smtp_reply_parser_DEPENDENCIES = $(test_deps)
test_smtp_command_parser_SOURCES = test-smtp-command-parser.c
test_smtp_command_parser_LDFLAGS = -export-dynamic
test_smtp_command_parser_LDADD = $(test_libs)
test_smtp_command_parser_DEPENDENCIES = $(test_deps)
test_smtp_payload_SOURCES = test-smtp-payload.c
test_smtp_payload_LDFLAGS = -export-dynamic
test_smtp_payload_LDADD = $(test_libs)
test_smtp_payload_DEPENDENCIES = $(test_deps)
test_smtp_submit_SOURCES = test-smtp-submit.c
test_smtp_submit_LDFLAGS = -export-dynamic
test_smtp_submit_LDADD = $(test_libs)
test_smtp_submit_DEPENDENCIES = $(test_deps)
test_smtp_client_errors_SOURCES = test-smtp-client-errors.c
test_smtp_client_errors_LDFLAGS = -export-dynamic
test_smtp_client_errors_LDADD = $(test_libs)
test_smtp_client_errors_DEPENDENCIES = $(test_deps)
test_smtp_server_errors_SOURCES = test-smtp-server-errors.c
test_smtp_server_errors_LDFLAGS = -export-dynamic
test_smtp_server_errors_LDADD = $(test_libs)
test_smtp_server_errors_DEPENDENCIES = $(test_deps)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done