summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 4aaf8b3743ca2256e413a534b7b9a96eefcfe5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
MAINTAINERCLEANFILES = Makefile.in config.h.in

AM_CXXFLAGS = @DEFINES@

# Remove ar: `u' modifier ignored since `D' is the default (see `U')
ARFLAGS = cr

bin_PROGRAMS = tp tp-monitor
noinst_LIBRARIES = libtp.a libproxy.a libmonitor.a libattrstr.a
if HAVE_SSL
bin_PROGRAMS += tp-genca
noinst_LIBRARIES += libmitm.a
endif
if HAVE_GTK
bin_PROGRAMS += tp-monitor-gtk
noinst_LIBRARIES += libmonitor_gui.a
endif
if HAVE_QT
bin_PROGRAMS += tp-monitor-qt
noinst_LIBRARIES += libmonitor_gui.a
endif

tp_SOURCES = main.cc
tp_LDADD = libproxy.a libtp.a @THREAD_LIBS@
if HAVE_SSL
tp_LDADD += libmitm.a @SSL_LIBS@
endif
tp_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@

libproxy_a_SOURCES = proxy.cc proxy.hh resolver.cc resolver.hh \
				     logger.cc logger.hh
libproxy_a_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@

libtp_a_SOURCES = args.cc args.hh xdg.cc xdg.hh terminal.cc terminal.hh \
				  http.cc http.hh url.cc url.hh paths.cc paths.hh \
			      character.cc character.hh config.cc config.hh \
                  strings.cc strings.hh io.cc io.hh looper.cc looper.hh \
				  buffer.cc buffer.hh chunked.cc chunked.hh \
                  package.cc package.hh data.hh common.hh
if !HAVE_SSL
libtp_a_SOURCES += mitm_stub.cc
endif
libtp_a_CXXFLAGS = $(AM_CXXFLAGS) -DSYSCONFDIR='"@SYSCONFDIR@"'

libmitm_a_SOURCES = mitm.cc mitm.hh ssl.hh lru.hh
if HAVE_MBEDTLS
libmitm_a_SOURCES += ssl_mbedtls.cc
endif
if HAVE_OPENSSL
libmitm_a_SOURCES += ssl_openssl.cc
endif
libmitm_a_CXXFLAGS = $(AM_CXXFLAGS) @SSL_CFLAGS@

tp_genca_SOURCES = genca.cc logger.cc logger.hh
tp_genca_LDADD = libmitm.a libtp.a @SSL_LIBS@
tp_genca_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"'

libmonitor_a_SOURCES = monitor.cc monitor.hh gui_hexdump.cc gui_hexdump.hh
libmonitor_a_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@

tp_monitor_SOURCES = monitor-cmd.cc ios_save.hh resolver.cc resolver.hh \
					 gui_plainattrtext.cc gui_plainattrtext.hh \
					 gui_attrtext.cc gui_attrtext.hh
tp_monitor_LDADD = libmonitor.a libtp.a @THREAD_LIBS@
tp_monitor_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' @THREAD_CFLAGS@

libmonitor_gui_a_SOURCES = monitor-gui.cc gui_config.cc gui_config.hh \
						   gui_about.hh gui_file.hh gui_main.hh \
						   gui_window.hh gui_formapply.hh gui_menu.hh \
						   gui_statusbar.hh gui_form.hh gui_listmodel.hh \
						   gui_message.hh gui_textwnd.hh

libmonitor_gui_a_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' \
							@THREAD_CFLAGS@ @PCAP_CFLAGS@

libattrstr_a_SOURCES = gui_attrtext.cc gui_attrtext.hh \
					   gui_htmlattrtext.cc gui_htmlattrtext.hh \
					   observers.hh

tp_monitor_gtk_SOURCES = gui_gtk.cc
tp_monitor_gtk_LDADD = libmonitor_gui.a libattrstr.a libproxy.a libmonitor.a \
                       libtp.a @GTK_LIBS@ @THREAD_LIBS@ @PCAP_LIBS@
if HAVE_SSL
tp_monitor_gtk_LDADD += libmitm.a @SSL_LIBS@
endif
tp_monitor_gtk_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' \
						  @GTK_CFLAGS@ @THREAD_CFLAGS@ -Wno-unused-function

tp_monitor_qt_SOURCES = gui_qt.cc
tp_monitor_qt_LDADD = libmonitor_gui.a libattrstr.a libmonitor.a libproxy.a \
                      libtp.a @QT_LIBS@ @THREAD_LIBS@ @PCAP_LIBS@
if HAVE_SSL
tp_monitor_qt_LDADD += libmitm.a @SSL_LIBS@
endif
tp_monitor_qt_CXXFLAGS = $(AM_CXXFLAGS) -DVERSION='"@VERSION@"' \
						  @QT_CFLAGS@ @THREAD_CFLAGS@