summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-03-28 22:53:04 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-03-28 22:53:04 +0200
commit7e9b90fb692b80df159992f62458c70c9fe36781 (patch)
treed4adcaff9ed012fe84f889be9d3381d81ef34ac5 /src/Makefile.am
parentd01e13c9dee53c3ab4faf70a215f4d1dcfed9e87 (diff)
Support compiling without SSL
And prepare for other SSL implementations than mbedtls
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index fbcdc67..7b1034c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,9 +22,15 @@ tp_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@
libtp_a_SOURCES = args.cc xdg.cc terminal.cc http.cc url.cc paths.cc \
character.cc config.cc strings.cc io.cc looper.cc \
buffer.cc chunked.cc
+if !HAVE_SSL
+libtp_a_SOURCES += mitm_stub.cc
+endif
libtp_a_CXXFLAGS = $(AM_CXXFLAGS) -DSYSCONFDIR='"@SYSCONFDIR@"'
-libmitm_a_SOURCES = ssl.cc mitm.cc
+libmitm_a_SOURCES = mitm.cc
+if HAVE_MBEDTLS
+libmitm_a_SOURCES += ssl_mbedtls.cc
+endif
libmitm_a_CXXFLAGS = $(AM_CXXFLAGS) @SSL_CFLAGS@
tp_genca_SOURCES = genca.cc logger.cc