sec_vt_header: dissect call_id
[metze/wireshark/wip.git] / Makefile.am
index 63b148c8c397cd8091fd3777584fa63fd04ba3cb..9dbb686fdba58dee121cf024e1b682111f70fe93 100644 (file)
@@ -21,6 +21,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
+AM_DISTCHECK_CONFIGURE_FLAGS=@GUI_CONFIGURE_FLAGS@
 ACLOCAL_AMFLAGS = `./aclocal-flags`
 
 if HAVE_LIBPY
@@ -37,9 +38,11 @@ endif
 bin_PROGRAMS = \
        @wireshark_bin@         \
        @tshark_bin@            \
+       @tfshark_bin@           \
        @text2pcap_bin@         \
        @mergecap_bin@          \
        @capinfos_bin@          \
+       @captype_bin@           \
        @editcap_bin@           \
        @randpkt_bin@           \
        @dftest_bin@            \
@@ -48,21 +51,21 @@ bin_PROGRAMS = \
        @rawshark_bin@          \
        @echld_test_bin@
 
-EXTRA_PROGRAMS = wireshark wireshark-qt tshark capinfos editcap mergecap \
-       dftest randpkt text2pcap dumpcap reordercap rawshark wireshark_cxx \
-       echld_test
+EXTRA_PROGRAMS = wireshark wireshark-qt tshark tfshark capinfos captype editcap \
+       mergecap dftest randpkt text2pcap dumpcap reordercap rawshark \
+       wireshark_cxx echld_test
 
 #
 # Wireshark configuration files are put in $(pkgdatadir).
 #
-pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
+dist_pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
        smi_modules ipmap.html pdml2html.xsl
 
 #
 # Install global profiles in the "profiles" subdirectory
 #
 profilesdir = $(pkgdatadir)
-nobase_profiles_DATA = \
+nobase_dist_profiles_DATA = \
        profiles/Bluetooth/colorfilters \
        profiles/Classic/colorfilters
 
@@ -71,10 +74,12 @@ nobase_profiles_DATA = \
 # of that directory.
 #
 diameterdir = $(pkgdatadir)/diameter
-diameter_DATA = \
+include diameter/Custom.make
+dist_diameter_DATA = $(_CUSTOM_diameter_xml_files_) \
        diameter/chargecontrol.xml \
        diameter/ChinaTelecom.xml \
        diameter/Cisco.xml \
+       diameter/Custom.xml \
        diameter/dictionary.dtd \
        diameter/dictionary.xml \
        diameter/eap.xml \
@@ -90,19 +95,20 @@ diameter_DATA = \
        diameter/TGPPGmb.xml \
        diameter/TGPPRx.xml \
        diameter/TGPPS9.xml \
-       diameter/TGPPSh.xml     \
+       diameter/TGPPSh.xml \
        diameter/Vodafone.xml \
        diameter/AlcatelLucent.xml \
        diameter/Nokia.xml \
        diameter/NokiaSiemensNetworks.xml \
-       diameter/SKT.xml
+       diameter/SKT.xml \
+       diameter/VerizonWireless.xml
 
 #
 # Install the DTDs directory files in the "dtds" subdirectory
 # of that directory
 #
 dtdsdir = $(pkgdatadir)/dtds
-dtds_DATA = \
+dist_dtds_DATA = \
        dtds/dc.dtd \
        dtds/itunes.dtd \
        dtds/mscml.dtd \
@@ -121,8 +127,8 @@ dtds_DATA = \
 # of that directory.
 #
 radiusdir = $(pkgdatadir)/radius
--include radius/Custom.make
-radius_DATA = $(_CUSTOM_radius_dict_) \
+include radius/Custom.make
+dist_radius_DATA = $(_CUSTOM_radius_dict_) \
        radius/README.radius_dictionary  \
        radius/custom.includes  \
        radius/dictionary  \
@@ -135,6 +141,7 @@ radius_DATA = $(_CUSTOM_radius_dict_) \
        radius/dictionary.alcatel  \
        radius/dictionary.alcatel.esam \
        radius/dictionary.alcatel.sr \
+       radius/dictionary.alcatel-lucent.aaa \
        radius/dictionary.alcatel-lucent.xylan \
        radius/dictionary.alteon  \
        radius/dictionary.altiga  \
@@ -274,7 +281,7 @@ radius_DATA = $(_CUSTOM_radius_dict_) \
 # of that directory
 #
 tpncpdir = $(pkgdatadir)/tpncp
-tpncp_DATA = \
+dist_tpncp_DATA = \
        tpncp/tpncp.dat
 
 #
@@ -282,17 +289,16 @@ tpncp_DATA = \
 # of that directory
 #
 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
-wimaxasncp_DATA = \
+dist_wimaxasncp_DATA = \
        wimaxasncp/dictionary.xml \
        wimaxasncp/dictionary.dtd
 
-PLATFORM_SRC = \
+PLATFORM_PCAP_SRC = \
        capture-pcap-util-unix.c
 
 if HAVE_PLUGINS
 -include plugins/Custom.make
 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
-       -dlopen plugins/asn1/asn1.la \
        -dlopen plugins/docsis/docsis.la \
        -dlopen plugins/ethercat/ethercat.la \
        -dlopen plugins/gryphon/gryphon.la \
@@ -306,15 +312,9 @@ plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
        -dlopen plugins/wimax/wimax.la \
        -dlopen plugins/wimaxmacphy/wimaxmacphy.la
 
-WTAP_PLUGIN_SOURCES = \
-       epan/plugins.c \
-       epan/report_err.c \
-       epan/filesystem.c
-
 else           # HAVE_PLUGINS
 
 plugin_ldadd =
-WTAP_PLUGIN_SOURCES =
 
 endif          # HAVE_PLUGINS
 
@@ -329,7 +329,7 @@ wireshark_qt_LDFLAGS = -Wl,-static -all-static
 endif
 else
 if HAVE_GTK
-wireshark_LDFLAGS = -export-dynamic -Wl,-rpath @executable_path/../lib -rpath /usr/local/lib
+wireshark_LDFLAGS = -export-dynamic
 endif
 if HAVE_Qt
 wireshark_qt_LDFLAGS = -export-dynamic
@@ -362,6 +362,7 @@ wireshark_ldadd = \
        ui/libui.a                      \
        ui/libui_dirty.a                \
        codecs/libcodec.a               \
+       filetap/libfiletap.la           \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        wsutil/libwsutil.la             \
@@ -386,7 +387,17 @@ if HAVE_Qt
 wireshark_qt_SOURCES = $(WIRESHARK_COMMON_SRC)
 wireshark_qt_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
 wireshark_qt_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
-wireshark_qt_LDADD =  ui/qt/libqtui.a $(wireshark_ldadd) @Qt_LIBS@
+wireshark_qt_LDADD = \
+       ui/qt/libqtui.a \
+       $(wireshark_ldadd) \
+       @Qt_LIBS@
+
+#
+# XXX - this makes wireshark_qt_LDFLAGS not work; we should figure out
+# another way to get wireshark-qt linked as a C++ program, perhaps by
+# having a top-level wireshark-qt.cpp file that contains main() and
+# hthat calls the UI code from ui/qt.
+#
 wireshark_qt_LINK = $(CXXLINK)
 endif
 
@@ -394,8 +405,10 @@ if HAVE_GTK
 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC)
 wireshark_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
-wireshark_LDADD = ui/gtk/libgtkui.a $(wireshark_ldadd) @GTK_LIBS@
-wireshark_LINK = $(LINK)
+wireshark_LDADD = \
+       ui/gtk/libgtkui.a \
+       $(wireshark_ldadd) \
+       @GTK_LIBS@
 endif
 
 # Ideally we could trigger automatic c++ linking here with
@@ -436,6 +449,34 @@ tshark_LDADD = \
        @LIBSMI_LDFLAGS@
 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
 
+if ENABLE_STATIC
+tfshark_LDFLAGS = -Wl,-static -all-static
+else
+tfshark_LDFLAGS = -export-dynamic
+endif
+
+# Libraries and plugin flags with which to link tfshark.
+tfshark_LDADD = \
+       ui/cli/libcliui.a               \
+       ui/libui.a                      \
+       filetap/libfiletap.la           \
+       wiretap/libwiretap.la           \
+       epan/libwireshark.la            \
+       wsutil/libwsutil.la             \
+       @SSL_LIBS@                      \
+       $(plugin_ldadd)                 \
+       @GLIB_LIBS@ -lm                 \
+       @PCAP_LIBS@                     \
+       @SOCKET_LIBS@                   \
+       @NSL_LIBS@                      \
+       @KRB5_LIBS@                     \
+       @SYSTEMCONFIGURATION_FRAMEWORKS@        \
+       @COREFOUNDATION_FRAMEWORKS@     \
+       @PY_LIBS@                       \
+       @LIBGNUTLS_LIBS@                \
+       @LIBSMI_LDFLAGS@
+tfshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
+
 if ENABLE_STATIC
 rawshark_LDFLAGS = -Wl,-static -all-static
 else
@@ -490,6 +531,13 @@ capinfos_LDADD = \
        @LIBGCRYPT_LIBS@
 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
 
+# Libraries with which to link captype.
+captype_LDADD = \
+       wiretap/libwiretap.la           \
+       wsutil/libwsutil.la             \
+       @GLIB_LIBS@
+captype_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
+
 # Libraries with which to link editcap.
 editcap_LDADD = \
        wiretap/libwiretap.la           \
@@ -571,7 +619,7 @@ dumpcap_LDFLAGS = $(PIE_LDFLAGS)
 # Common headers
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
        $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
-       @LUA_INCLUDES@
+       @LUA_INCLUDES@ -DTOP_SRCDIR=\"$(abs_top_srcdir)\"
 
 #
 # Build the version string
@@ -599,7 +647,7 @@ SUFFIXES = .sh
        $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
 
 services:
-       $(PERL) $(srcdir)/tools/make-services.pl
+       $(PYTHON) $(srcdir)/tools/make-services.py
 
 CLEANFILES =           \
        *~              \
@@ -655,12 +703,12 @@ EXTRA_DIST = \
        aclocal-fallback/glib-2.0.m4 \
        aclocal-fallback/gtk-2.0.m4 \
        aclocal-fallback/gtk-3.0.m4 \
-       aclocal-fallback/qt.m4 \
        aclocal-flags           \
        adns_dll.dep            \
        adns_dll.rc             \
        autogen.sh              \
        capinfos.c              \
+       captype.c               \
        capture_win_ifnames.c   \
        capture_win_ifnames.h   \
        capture-wpcap.c         \
@@ -678,7 +726,6 @@ EXTRA_DIST = \
        debian/dirs             \
        debian/headers-check.c  \
        debian/patches/00list   \
-       debian/patches/03_preferences.dpatch \
        debian/postinst         \
        debian/pycompat         \
        debian/pyversions       \
@@ -700,12 +747,12 @@ EXTRA_DIST = \
        debian/wireshark.files \
        debian/wireshark.manpages \
        debian/wireshark.menu   \
-       debian-setup.sh         \
        dfilters                \
        doxygen.cfg.in          \
        dumpcap.c       \
        editcap.c               \
        epan/print.ps           \
+       filetap/CMakeLists.txt  \
        fix/FIX.xml             \
        fix/FIX40.xml           \
        fix/FIX41.xml           \
@@ -751,6 +798,7 @@ EXTRA_DIST = \
        idl/parlay/ui_data.idl  \
        idl/parlay/ui_interfaces.idl    \
        image/capinfos.rc.in    \
+       image/captype.rc.in     \
        image/capture_comment.svg       \
        image/capture_comment_add.png   \
        image/capture_comment_disabled.png      \
@@ -785,6 +833,7 @@ EXTRA_DIST = \
        image/expert_note.png   \
        image/expert_warn.png   \
        image/file_dlg_win32.rc \
+       image/filetap.rc.in     \
        image/hi16-app-wireshark.png    \
        image/hi32-app-wireshark.png    \
        image/hi48-app-wireshark.png    \
@@ -804,10 +853,12 @@ EXTRA_DIST = \
        image/minus-8.png                       \
        image/nsis-checked.bmp                  \
        image/nsis-unchecked.bmp                \
+       image/openhand-16.png                   \
        image/plus-8.png                        \
        image/rawshark.rc.in                    \
        image/README.image                      \
        image/reordercap.rc.in                  \
+       image/rubberband-16.png                 \
        image/status.qrc                        \
        image/stock_dialog_error_48.xpm         \
        image/stock_dialog_info_48.xpm          \
@@ -934,13 +985,6 @@ EXTRA_DIST = \
        manuf.tmpl              \
        mergecap.c              \
        pdml2html.xsl           \
-       $(diameter_DATA)        \
-       $(dtds_DATA)            \
-       $(nobase_profiles_DATA) \
-       $(radius_DATA)          \
-       $(tpncp_DATA)           \
-       $(ui_DATA)              \
-       $(wimaxasncp_DATA)      \
        reordercap.c            \
        smi_modules             \
        text2pcap-scanner.l     \
@@ -1015,7 +1059,7 @@ if HAVE_DUMPCAP_GROUP
        -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
 endif
 if SETCAP_INSTALL
-       -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
+       -$(SETCAP) cap_net_raw,cap_net_admin+ep $(DESTDIR)$(bindir)/dumpcap
        -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
 else
 if SETUID_INSTALL
@@ -1025,12 +1069,12 @@ endif
 endif
 
 
-DIST_SUBDIRS = asn1 codecs doc epan echld ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
+DIST_SUBDIRS = asn1 codecs doc epan echld filetap ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
 
 if HAVE_PLUGINS
-SUBDIRS = tools wsutil wiretap epan @echld_dir@ plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
+SUBDIRS = tools wsutil wiretap filetap epan @echld_dir@ plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
 else
-SUBDIRS = tools wsutil wiretap epan @echld_dir@ packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
+SUBDIRS = tools wsutil wiretap filetap epan @echld_dir@ packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
 endif
 
 help/faq.txt: $(srcdir)/help/faq.py
@@ -1084,12 +1128,14 @@ install_desktop_files:
 
 # Used by svr4-package and osx-package
 # We load top_stagedir with an explicit path so that libtool doesn't freak.
-top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
+top_stagedir=`cd $(top_builddir) && pwd`/packaging/staging
 stagedir=$(top_stagedir)/$(PACKAGE).inst
 
 host_cpu=@host_cpu@
 host_os=@host_os@
 
+solaris-package: svr4-package
+
 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
        @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
                rm -rf $(stagedir) ; \
@@ -1104,7 +1150,6 @@ svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
                echo "Package build abandoned." ; \
        fi
 
-solaris-package: svr4-package
 
 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
 rpm-package: dist
@@ -1114,7 +1159,8 @@ rpm-package: dist
                cd SOURCES ; \
                ln -sf ../../../$(distdir).tar.bz2 ; \
                cd .. ; \
-               rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" --clean -ba SPECS/wireshark.spec && \
+               rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" \
+                       @RPMBUILD_WITH_ARGS@ --clean -ba SPECS/wireshark.spec && \
                        echo "Package successfully built in `pwd`/RPMS." && \
                        rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
        else \
@@ -1150,7 +1196,7 @@ osx-package: osx-app packaging/macosx/COPYING.txt
        @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
                cd $(srcdir)/packaging/macosx ;  \
                chmod +x ./osx-dmg.sh ; \
-               ./osx-dmg.sh ; \
+               ./osx-dmg.sh @OSX_DMG_FLAGS@ ; \
        fi
 
 osx-install: osx-app
@@ -1163,6 +1209,7 @@ clean-local:
        rm -rf $(top_stagedir)
 
 dumpabi:
+       $(MAKE) -C filetap dumpabi-libfiletap
        $(MAKE) -C wiretap dumpabi-libwiretap
        $(MAKE) -C epan dumpabi-libwireshark
        $(MAKE) -C wsutil dumpabi-libwsutil
@@ -1175,6 +1222,7 @@ checkapi_local:
 
 checkapi: checkapi_local
        cd wiretap && $(MAKE) checkapi
+       cd filetap && $(MAKE) checkapi
        cd codecs && $(MAKE) checkapi
        cd ui && $(MAKE) checkapi
        cd ui/gtk && $(MAKE) checkapi