Makefile.am revision a8433392e8a5ddfe8a125716f62b2a4dc8f1f01e
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-dns \
-I$(top_srcdir)/src/lib-program-client \
-I$(top_srcdir)/src/lib-mail \
-DTEST_BIN_DIR=\"$(abs_srcdir)/test-bin\"
libsmtp_la_SOURCES = \
headers = \
pkginc_libdir=$(pkgincludedir)
pkginc_lib_HEADERS = $(headers)
test_programs = \
test-smtp-address \
test-smtp-params \
test-smtp-reply-parser
test_nocheck_programs = \
test-smtp-submit
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_submit_SOURCES = test-smtp-submit.c
test_smtp_submit_LDFLAGS = -export-dynamic
test_smtp_submit_LDADD = $(test_libs)
test_smtp_submit_DEPENDENCIES = $(test_deps)
check-local:
for bin in $(test_programs); do \
if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
done