@dumpcap_bin@ \
@reordercap_bin@ \
@rawshark_bin@ \
- @echld_test_bin@
+ @sharkd_bin@
EXTRA_PROGRAMS = wireshark-gtk wireshark tshark tfshark capinfos captype \
editcap mergecap dftest randpkt text2pcap dumpcap reordercap \
- rawshark echld_test
+ rawshark sharkd
#
# Wireshark configuration files are put in $(pkgdatadir).
diameter/eap.xml \
diameter/Ericsson.xml \
diameter/etsie2e4.xml \
+ diameter/Inovar.xml \
+ diameter/Juniper.xml \
diameter/mobileipv4.xml \
diameter/mobileipv6.xml \
diameter/nasreq.xml \
radius/dictionary.cisco.vpn5000 \
radius/dictionary.citrix \
radius/dictionary.clavister \
+ radius/dictionary.cnergee \
radius/dictionary.colubris \
radius/dictionary.columbia_university \
radius/dictionary.compatible \
radius/dictionary.compat \
radius/dictionary.cosine \
radius/dictionary.dante \
+ radius/dictionary.dellemc \
radius/dictionary.dhcp \
radius/dictionary.dlink \
radius/dictionary.digium \
radius/dictionary.meinberg \
radius/dictionary.merit \
radius/dictionary.meru \
+ radius/dictionary.microsemi \
radius/dictionary.microsoft \
radius/dictionary.mikrotik \
radius/dictionary.motorola \
radius/dictionary.rfc7155 \
radius/dictionary.rfc7268 \
radius/dictionary.rfc7499 \
+ radius/dictionary.rfc7930 \
radius/dictionary.riverbed \
radius/dictionary.riverstone \
radius/dictionary.roaringpenguin \
capture_opts.c \
file.c \
fileset.c \
- filter_files.c \
summary.c \
ws_version_info.c
WIRESHARK_COMMON_INCLUDES = \
capture_info.h \
capture_opts.h \
- filter_files.h \
globals.h \
log.h \
summary.h \
EXTRALINKFLAGS = -export-dynamic
endif
+EPAN_EXTRA_LIBS = \
+ @SSL_LIBS@ \
+ @C_ARES_LIBS@ \
+ @KRB5_LIBS@ \
+ @LIBGCRYPT_LIBS@ \
+ @LIBGNUTLS_LIBS@ \
+ @LIBSMI_LDFLAGS@
+
# Libraries and plugin flags with which to link wireshark.
#
# GTK_CFLAGS/GTK_LIBS is a strict superset of GLIB_CFLAGS/GLIB_LIBS
wiretap/libwiretap.la \
epan/libwireshark.la \
wsutil/libwsutil.la \
- @SSL_LIBS@ \
$(plugin_ldadd) \
@PCAP_LIBS@ \
- @C_ARES_LIBS@ \
- @KRB5_LIBS@ \
@APPLICATIONSERVICES_FRAMEWORKS@ \
@SYSTEMCONFIGURATION_FRAMEWORKS@ \
@COREFOUNDATION_FRAMEWORKS@ \
- @LIBGCRYPT_LIBS@ \
- @LIBGNUTLS_LIBS@ \
- @LIBSMI_LDFLAGS@ \
+ $(EPAN_EXTRA_LIBS) \
@LIBNL_LIBS@
if HAVE_Qt
tshark_SOURCES = \
$(SHARK_COMMON_SRC) \
capture_opts.c \
- filter_files.c \
tshark.c \
ws_version_info.c
wiretap/libwiretap.la \
epan/libwireshark.la \
wsutil/libwsutil.la \
- @SSL_LIBS@ \
$(plugin_ldadd) \
@GLIB_LIBS@ \
@PCAP_LIBS@ \
- @C_ARES_LIBS@ \
- @KRB5_LIBS@ \
+ ${EPAN_EXTRA_LIBS} \
@SYSTEMCONFIGURATION_FRAMEWORKS@ \
- @COREFOUNDATION_FRAMEWORKS@ \
- @LIBGCRYPT_LIBS@ \
- @LIBGNUTLS_LIBS@ \
- @LIBSMI_LDFLAGS@
+ @COREFOUNDATION_FRAMEWORKS@
tfshark_SOURCES = \
$(SHARK_COMMON_SRC) \
wiretap/libwiretap.la \
epan/libwireshark.la \
wsutil/libwsutil.la \
- @SSL_LIBS@ \
$(plugin_ldadd) \
@GLIB_LIBS@ \
@PCAP_LIBS@ \
- @KRB5_LIBS@ \
+ ${EPAN_EXTRA_LIBS} \
@SYSTEMCONFIGURATION_FRAMEWORKS@ \
- @COREFOUNDATION_FRAMEWORKS@ \
- @LIBGNUTLS_LIBS@ \
- @LIBSMI_LDFLAGS@
+ @COREFOUNDATION_FRAMEWORKS@
rawshark_SOURCES = \
$(SHARK_COMMON_SRC) \
wiretap/libwiretap.la \
epan/libwireshark.la \
wsutil/libwsutil.la \
- @SSL_LIBS@ \
$(plugin_ldadd) \
@GLIB_LIBS@ \
@PCAP_LIBS@ \
- @C_ARES_LIBS@ \
- @KRB5_LIBS@ \
+ ${EPAN_EXTRA_LIBS} \
@SYSTEMCONFIGURATION_FRAMEWORKS@ \
- @COREFOUNDATION_FRAMEWORKS@ \
- @LIBGCRYPT_LIBS@ \
- @LIBGNUTLS_LIBS@ \
- @LIBSMI_LDFLAGS@
+ @COREFOUNDATION_FRAMEWORKS@
+
+sharkd_SOURCES = \
+ $(SHARK_COMMON_SRC) \
+ sharkd.c \
+ sharkd.h \
+ sharkd_daemon.c \
+ sharkd_session.c \
+ ws_version_info.c
+
+sharkd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
+
+if HAVE_SPEEXDSP
+sharkd_CPPFLAGS += $(SPEEXDSP_CFLAGS)
+endif
+
+sharkd_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
+
+# Libraries and plugin flags with which to link sharkd.
+sharkd_LDADD = \
+ ui/cli/libcliui.a \
+ ui/libui.a \
+ codecs/libwscodecs.la \
+ wiretap/libwiretap.la \
+ epan/libwireshark.la \
+ wsutil/libwsutil.la \
+ $(plugin_ldadd) \
+ @GLIB_LIBS@ \
+ @PCAP_LIBS@ \
+ ${EPAN_EXTRA_LIBS} \
+ @SYSTEMCONFIGURATION_FRAMEWORKS@ \
+ @COREFOUNDATION_FRAMEWORKS@
+
+if HAVE_SPEEXDSP
+sharkd_LDADD += $(SPEEXDSP_LIBS)
+endif
text2pcap_SOURCES = \
text2pcap.c \
# Libraries with which to link mergecap.
mergecap_LDADD = \
+ ui/libui.a \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
@GLIB_LIBS@
# Libraries with which to link capinfos.
capinfos_LDADD = \
+ ui/libui.a \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
@GLIB_LIBS@ \
# Libraries with which to link captype.
captype_LDADD = \
+ ui/libui.a \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
@GLIB_LIBS@
# Libraries with which to link editcap.
editcap_LDADD = \
+ ui/libui.a \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
- @GLIB_LIBS@
+ @GLIB_LIBS@ \
+ @LIBGCRYPT_LIBS@
reordercap_SOURCES = \
reordercap.c \
# Libraries with which to link reordercap.
reordercap_LDADD = \
+ ui/libui.a \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
@GLIB_LIBS@
# Libraries with which to link randpkt.
randpkt_LDADD = \
randpkt_core/librandpkt_core.a \
+ ui/libui.a \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
@GLIB_LIBS@ \
wiretap/libwiretap.la \
wsutil/libwsutil.la \
epan/libwireshark.la \
- @SSL_LIBS@ \
$(plugin_ldadd) \
@GLIB_LIBS@ \
@PCAP_LIBS@ \
- @C_ARES_LIBS@ \
- @KRB5_LIBS@ \
- @LIBGCRYPT_LIBS@ \
- @LIBGNUTLS_LIBS@ \
- @LIBSMI_LDFLAGS@
-
-echld_test_SOURCES = \
- echld_test.c \
- capture_opts.c \
- capture_stop_conditions.c \
- cfile.c \
- conditions.c \
- ringbuffer.c \
- sync_pipe_write.c
-
-echld_test_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
-
-echld_test_LDADD = \
- epan/libwireshark.la \
- echld/libechld.la \
- writecap/libwritecap.a \
- wsutil/libwsutil.la \
- @GLIB_LIBS@ \
- @PCAP_LIBS@ \
- @C_ARES_LIBS@
-
-echld_test_DEPENDENCIES = \
- echld/libechld.la \
- epan/libwireshark.la
+ ${EPAN_EXTRA_LIBS}
dumpcap_SOURCES = \
capture_opts.c \
capture_stop_conditions.c \
conditions.c \
dumpcap.c \
- filter_files.c \
ringbuffer.c \
sync_pipe_write.c \
ws_version_info.c
# Libraries with which to link dumpcap.
dumpcap_LDADD = \
caputils/libcaputils.a \
+ ui/libui.a \
writecap/libwritecap.a \
wsutil/libwsutil.la \
@GLIB_LIBS@ \
codecs \
doc \
epan \
- echld \
ui \
ui/cli \
ui/gtk \
epan \
capchild \
caputils \
- @echld_dir@ \
@plugins_dir@ \
packaging \
help \
ui \
+ codecs \
@wireshark_SUBDIRS@ \
ui/cli \
randpkt_core \
# FreeBSD install command has a -T flag that takes an argument and
# that has completely different semantics.
#
-# We neither need nor want any of this on OS X, nor do we want it if
+# We neither need nor want any of this on macOS, nor do we want it if
# we're not building Wireshark (that being the only desktop app).
#
install-data-local:
# We only need to run gtk-update-icon-cache if we're installing a GTK+
# version of Wireshark.
#
-# We neither need nor want any of this on OS X, nor do we want it if
+# We neither need nor want any of this on macOS, nor do we want it if
# we're not building Wireshark (that being the only desktop app).
#
update-databases-and-caches-common:
rm -f SOURCES/$(distdir).tar.xz ../../$(distdir).tar.xz
else
rpm-package:
- @echo "RPM executable not available." ; \
+ @echo "'rpmbuild' executable not available." ; \
false
endif
--extcap-path ../staging/$(PACKAGE).inst$(extcapdir) \
--library-path ../staging/$(PACKAGE).inst$(libdir) ; \
else \
- echo "Error: OS X packaging tools not found." ; \
+ echo "Error: macOS packaging tools not found." ; \
echo "Package build abandoned." ; \
fi
cd writecap && $(MAKE) checkapi
cd wsutil && $(MAKE) checkapi
+if HAVE_SHELLCHECK
+# --external-sources requires 0.4.0 or later.
+shellcheck:
+ cd $(top_srcdir) && \
+ shellcheck --external-sources \
+ tools/fuzz-test.sh \
+ tools/randpkt-test.sh \
+ tools/runa2x.sh \
+ tools/test-captures.sh \
+ tools/valgrind-wireshark.sh
+else
+shellcheck:
+ @echo "Shellcheck not available." ; \
+ false
+endif
+
wsar_html: doxygen.cfg doxygen_global.cfg FORCE
if HAVE_DOXYGEN
rm -rf wsar_html
# Update AUTHORS file with entries from git shortlog
gen-authors:
cd $(top_srcdir) && $(PERL) tools/generate_authors.pl AUTHORS.src > AUTHORS
+
+dist-hook:
+ printf "git_description=%s\n" "$$(git -C $(top_srcdir) describe --match 'v[1-9]*')" \
+ > $(top_distdir)/version.conf