summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-03-28 22:36:44 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-03-28 22:36:44 +0200
commitd01e13c9dee53c3ab4faf70a215f4d1dcfed9e87 (patch)
tree90975d8502a6c610a58f5d3cd8014bcf8443c0e9 /src/Makefile.am
parent87774d8981ae7a079492d8949e205065ba72a8e4 (diff)
MITM SSL Interception support using mbedtls
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 84c4401..fbcdc67 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -7,9 +7,16 @@ ARFLAGS = cr
bin_PROGRAMS = tp tp-monitor
noinst_LIBRARIES = libtp.a libmonitor.a
+if HAVE_SSL
+bin_PROGRAMS += tp-genca
+noinst_LIBRARIES += libmitm.a
+endif
tp_SOURCES = main.cc proxy.cc logger.cc resolver.cc
tp_LDADD = libtp.a @THREAD_LIBS@
+if HAVE_SSL
+tp_LDADD += libmitm.a @SSL_LIBS@
+endif
tp_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@
libtp_a_SOURCES = args.cc xdg.cc terminal.cc http.cc url.cc paths.cc \
@@ -17,6 +24,13 @@ libtp_a_SOURCES = args.cc xdg.cc terminal.cc http.cc url.cc paths.cc \
buffer.cc chunked.cc
libtp_a_CXXFLAGS = $(AM_CXXFLAGS) -DSYSCONFDIR='"@SYSCONFDIR@"'
+libmitm_a_SOURCES = ssl.cc mitm.cc
+libmitm_a_CXXFLAGS = $(AM_CXXFLAGS) @SSL_CFLAGS@
+
+tp_genca_SOURCES = genca.cc logger.cc
+tp_genca_LDADD = libmitm.a libtp.a @SSL_LIBS@
+tp_genca_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"'
+
libmonitor_a_SOURCES = monitor.cc resolver.cc
libmonitor_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@