1bin_PROGRAMS = msmtp 2 3msmtp_SOURCES = \ 4 conf.c conf.h \ 5 list.c list.h \ 6 msmtp.c \ 7 net.c net.h \ 8 netrc.c netrc.h \ 9 readbuf.c readbuf.h \ 10 smtp.c smtp.h \ 11 stream.c stream.h \ 12 tools.c tools.h \ 13 xalloc.c xalloc.h \ 14 gettext.h \ 15 aliases.c aliases.h \ 16 password.c password.h \ 17 base64.c base64.h 18 19if HAVE_TLS 20msmtp_SOURCES += mtls.c mtls.h 21endif 22if HAVE_GNUTLS 23msmtp_SOURCES += mtls-gnutls.c 24endif 25if HAVE_OPENSSL 26msmtp_SOURCES += mtls-openssl.c 27endif 28if HAVE_LIBTLS 29msmtp_SOURCES += mtls-libtls.c 30endif 31 32if HAVE_LIBGSASL 33else 34msmtp_SOURCES += md5.c md5.h md5-apps.c md5-apps.h 35endif 36 37AM_CPPFLAGS = $(tls_CFLAGS) $(libgsasl_CFLAGS) $(libidn2_CFLAGS) $(libsecret_CFLAGS) 38 39msmtp_LDADD = $(tls_LIBS) $(libgsasl_LIBS) $(libidn2_LIBS) $(libsecret_LIBS) $(LIBINTL) 40 41DEFS += -DSYSCONFDIR=\"$(sysconfdir)\" -DLOCALEDIR=\"$(localedir)\" -DBINDIR=\"$(bindir)\" 42 43if BUILD_MSMTPD 44bin_PROGRAMS += msmtpd 45msmtpd_SOURCES = msmtpd.c base64.c base64.h password.c password.h tools.c tools.h xalloc.c xalloc.h netrc.c netrc.h 46msmtpd_LDADD = $(libsecret_LIBS) $(LIBINTL) 47endif 48