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 = \
smtp-parser.c \
smtp-address.c \
smtp-syntax.c \
smtp-common.c \
smtp-params.c \
smtp-reply.c \
smtp-reply-parser.c \
lmtp-client.c \
smtp-submit-settings.c \
smtp-submit.c
headers = \
smtp-parser.h \
smtp-address.h \
smtp-syntax.h \
smtp-common.h \
smtp-params.h \
smtp-reply.h \
smtp-reply-parser.h \
lmtp-client.h \
smtp-submit-settings.h \
smtp-submit.h
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-program-client/libprogram_client.la \
../lib-dns/libdns.la \
../lib-mail/libmail.la \
../lib-charset/libcharset.la \
../lib-master/libmaster.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-settings/libsettings.la \
../lib-test/libtest.la \
../lib/liblib.la \
$(MODULE_LIBS)
test_deps = \
$(noinst_LTLIBRARIES) \
../lib-program-client/libprogram_client.la \
../lib-dns/libdns.la \
../lib-mail/libmail.la \
../lib-charset/libcharset.la \
../lib-master/libmaster.la \
../lib-ssl-iostream/libssl_iostream.la \
../lib-settings/libsettings.la \
../lib-test/libtest.la \
../lib/liblib.la
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