Makefile.am revision 9698cd24356147d8a5471260062ea7e10e692fdf
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschnoinst_LTLIBRARIES = libsmtp.la
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Bosch
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 \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-dns \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-program-client \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -I$(top_srcdir)/src/lib-mail \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch -DTEST_BIN_DIR=\"$(abs_srcdir)/test-bin\"
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Bosch
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschlibsmtp_la_SOURCES = \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch lmtp-client.c \
5356717c7944a8527b6ea10ac54012887bcc9f75Stephan Bosch smtp-submit-settings.c \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch smtp-submit.c
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Bosch
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschheaders = \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch lmtp-client.h \
5356717c7944a8527b6ea10ac54012887bcc9f75Stephan Bosch smtp-submit-settings.h \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch smtp-submit.h
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Bosch
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschpkginc_libdir=$(pkgincludedir)
a4692ca37f2f670b99e8692e92064045322c42b3Stephan Boschpkginc_lib_HEADERS = $(headers)
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_programs =
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_nocheck_programs = \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch test-smtp-submit
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschnoinst_PROGRAMS = $(test_programs) $(test_nocheck_programs)
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_libs = \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch libsmtp.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-program-client/libprogram_client.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-dns/libdns.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-mail/libmail.la \
807f257b0fe504662f9ccc82fdc43b775e71da28Timo Sirainen ../lib-charset/libcharset.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-master/libmaster.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-ssl-iostream/libssl_iostream.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-settings/libsettings.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-test/libtest.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib/liblib.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch $(MODULE_LIBS)
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
792813592c69ddc0389b6f071d8120a7706b914dStephan Boschtest_deps = \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch libsmtp.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-program-client/libprogram_client.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-dns/libdns.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-mail/libmail.la \
807f257b0fe504662f9ccc82fdc43b775e71da28Timo Sirainen ../lib-charset/libcharset.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-master/libmaster.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-ssl-iostream/libssl_iostream.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-settings/libsettings.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib-test/libtest.la \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch ../lib/liblib.la
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
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)
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainencheck-local:
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch for bin in $(test_programs); do \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch done
792813592c69ddc0389b6f071d8120a7706b914dStephan Bosch