a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschnoinst_LTLIBRARIES = libsmtp.la
a4692ca37f2f670b99e8692e92064045322c42b3Stephan BoschAM_CPPFLAGS = \
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Bosch -I$(top_srcdir)/src/lib \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-test \
5356717c7944a8527b6ea10ac54012887bcc9f75Stephan Bosch -I$(top_srcdir)/src/lib-settings \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-master \
b3888944586654b4aa069e0db31f998e0ed8b414Stephan Bosch -I$(top_srcdir)/src/lib-sasl \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-dns \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-mail \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -DTEST_BIN_DIR=\"$(abs_srcdir)/test-bin\"
56dd928c164ec5c0d1158a1760154b58c5f1f6e7Stephan Boschsmtp_server_cmds = \
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschlibsmtp_la_SOURCES = \
56dd928c164ec5c0d1158a1760154b58c5f1f6e7Stephan Bosch $(smtp_server_cmds) \
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschpkginc_libdir=$(pkgincludedir)
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschpkginc_lib_HEADERS = $(headers)
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Boschtest_programs = \
39bf54004e8ef15baa4c18c7969e87c51b8f197bStephan Bosch test-smtp-address \
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Bosch test-smtp-params \
8141e652481ff9db3bce36fdc1fe04c75a3ba7e3Stephan Bosch test-smtp-reply-parser \
8141e652481ff9db3bce36fdc1fe04c75a3ba7e3Stephan Bosch test-smtp-command-parser
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_nocheck_programs = \
8620dc793885749c37000f11dd83b902b6844e20Stephan Bosch test-smtp-payload \
9051b704ca26ef833544cf006134f25cddde2525Stephan Bosch test-smtp-submit \
b85d7b8561dba4072a61f6df26443896072efae9Stephan Bosch test-smtp-client-errors \
b85d7b8561dba4072a61f6df26443896072efae9Stephan Bosch test-smtp-server-errors
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschnoinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Bosch $(noinst_LTLIBRARIES) \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch $(MODULE_LIBS)
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Bosch $(noinst_LTLIBRARIES) \
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Boschtest_smtp_address_SOURCES = test-smtp-address.c
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Boschtest_smtp_address_LDFLAGS = -export-dynamic
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Boschtest_smtp_address_LDADD = $(test_libs)
03f08e4abef2afc782069bdfef305f84e98f0922Stephan Boschtest_smtp_address_DEPENDENCIES = $(test_deps)
39bf54004e8ef15baa4c18c7969e87c51b8f197bStephan Boschtest_smtp_params_SOURCES = test-smtp-params.c
39bf54004e8ef15baa4c18c7969e87c51b8f197bStephan Boschtest_smtp_params_LDFLAGS = -export-dynamic
39bf54004e8ef15baa4c18c7969e87c51b8f197bStephan Boschtest_smtp_params_LDADD = $(test_libs)
39bf54004e8ef15baa4c18c7969e87c51b8f197bStephan Boschtest_smtp_params_DEPENDENCIES = $(test_deps)
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Boschtest_smtp_reply_parser_SOURCES = test-smtp-reply-parser.c
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Boschtest_smtp_reply_parser_LDFLAGS = -export-dynamic
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Boschtest_smtp_reply_parser_LDADD = $(test_libs)
a8433392e8a5ddfe8a125716f62b2a4dc8f1f01eStephan Boschtest_smtp_reply_parser_DEPENDENCIES = $(test_deps)
8141e652481ff9db3bce36fdc1fe04c75a3ba7e3Stephan Boschtest_smtp_command_parser_SOURCES = test-smtp-command-parser.c
8141e652481ff9db3bce36fdc1fe04c75a3ba7e3Stephan Boschtest_smtp_command_parser_LDFLAGS = -export-dynamic
8141e652481ff9db3bce36fdc1fe04c75a3ba7e3Stephan Boschtest_smtp_command_parser_LDADD = $(test_libs)
8141e652481ff9db3bce36fdc1fe04c75a3ba7e3Stephan Boschtest_smtp_command_parser_DEPENDENCIES = $(test_deps)
8620dc793885749c37000f11dd83b902b6844e20Stephan Boschtest_smtp_payload_SOURCES = test-smtp-payload.c
8620dc793885749c37000f11dd83b902b6844e20Stephan Boschtest_smtp_payload_LDFLAGS = -export-dynamic
8620dc793885749c37000f11dd83b902b6844e20Stephan Boschtest_smtp_payload_LDADD = $(test_libs)
8620dc793885749c37000f11dd83b902b6844e20Stephan Boschtest_smtp_payload_DEPENDENCIES = $(test_deps)
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_smtp_submit_SOURCES = test-smtp-submit.c
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_smtp_submit_LDFLAGS = -export-dynamic
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_smtp_submit_LDADD = $(test_libs)
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_smtp_submit_DEPENDENCIES = $(test_deps)
9051b704ca26ef833544cf006134f25cddde2525Stephan Boschtest_smtp_client_errors_SOURCES = test-smtp-client-errors.c
9051b704ca26ef833544cf006134f25cddde2525Stephan Boschtest_smtp_client_errors_LDFLAGS = -export-dynamic
9051b704ca26ef833544cf006134f25cddde2525Stephan Boschtest_smtp_client_errors_LDADD = $(test_libs)
9051b704ca26ef833544cf006134f25cddde2525Stephan Boschtest_smtp_client_errors_DEPENDENCIES = $(test_deps)
b85d7b8561dba4072a61f6df26443896072efae9Stephan Boschtest_smtp_server_errors_SOURCES = test-smtp-server-errors.c
b85d7b8561dba4072a61f6df26443896072efae9Stephan Boschtest_smtp_server_errors_LDFLAGS = -export-dynamic
b85d7b8561dba4072a61f6df26443896072efae9Stephan Boschtest_smtp_server_errors_LDADD = $(test_libs)
b85d7b8561dba4072a61f6df26443896072efae9Stephan Boschtest_smtp_server_errors_DEPENDENCIES = $(test_deps)
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch for bin in $(test_programs); do \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \