In ICMP taps, don't use g_slist_insert_sorted (which results in
[metze/wireshark/wip.git] / Makefile.am
index 6d8611efaba0a13dcc0eb2bc702471e50de21a89..4ee865075d6255fe0052d6ffa016970fb0ae3c31 100644 (file)
@@ -23,8 +23,6 @@
 
 ACLOCAL_AMFLAGS = `./aclocal-flags`
 
-INCLUDES= @LUA_INCLUDES@
-
 if HAVE_LIBPY
 py_dissectors_dir = -DPYTHON_DIR=\"@pythondir@\"
 else
@@ -58,6 +56,14 @@ EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
 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 = \
+       profiles/Bluetooth/colorfilters \
+       profiles/Classic/colorfilters
+
 #
 # Install the Diameter DTD and XML files in the "diameter" subdirectory
 # of that directory.
@@ -65,6 +71,7 @@ pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
 diameterdir = $(pkgdatadir)/diameter
 diameter_DATA = \
        diameter/chargecontrol.xml \
+       diameter/ChinaTelecom.xml \
        diameter/Cisco.xml \
        diameter/dictionary.dtd \
        diameter/dictionary.xml \
@@ -278,8 +285,7 @@ wimaxasncp_DATA = \
        wimaxasncp/dictionary.dtd
 
 PLATFORM_SRC = \
-       capture-pcap-util-unix.c \
-       capture_unix_ifnames.c
+       capture-pcap-util-unix.c
 
 if HAVE_PLUGINS
 -include plugins/Custom.make
@@ -535,7 +541,8 @@ dumpcap_LDFLAGS = $(PIE_LDFLAGS)
 
 # Common headers
 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
-       $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
+       $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
+       @LUA_INCLUDES@
 
 #
 # Build the version string
@@ -543,8 +550,13 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
 # FORCE is the portable version of .PHONY
 FORCE:
 
+AM_V_PERL = $(am__v_PERL_@AM_V@)
+am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
+am__v_PERL_0 = @echo "  PERL    " $@;
+am__v_PERL_1 =
+
 svnversion.h: FORCE
-       $(PERL) $(srcdir)/make-version.pl $(srcdir)
+       $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
 
 #
 # Build shell scripts by doing variable substitution.
@@ -565,6 +577,7 @@ services:
 
 CLEANFILES =           \
        *~              \
+       doxygen-core.tag        \
        vgcore.*
 
 #
@@ -611,8 +624,12 @@ EXTRA_DIST = \
        README.vmware           \
        README.windows          \
        abi-descriptor.template \
+       aclocal-fallback/libsmi.m4 \
+       aclocal-fallback/libgcrypt.m4 \
        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             \
@@ -657,6 +674,7 @@ EXTRA_DIST = \
        debian/wireshark.files \
        debian/wireshark.manpages \
        debian/wireshark.menu   \
+       debian-setup.sh         \
        dfilters                \
        doxygen.cfg.in          \
        dumpcap.c       \
@@ -716,9 +734,11 @@ EXTRA_DIST = \
        image/clist_ascend.xpm                  \
        image/clist_descend.xpm                 \
        image/copy-8.png                        \
+       image/dfilter_apply_disabled.png        \
        image/dfilter_apply_hover.png           \
        image/dfilter_apply_normal.png          \
        image/dfilter_apply_pressed.png         \
+       image/dfilter_bookmark_disabled.png     \
        image/dfilter_bookmark_hover.png        \
        image/dfilter_bookmark_normal.png       \
        image/dfilter_bookmark_pressed.png      \
@@ -752,7 +772,6 @@ EXTRA_DIST = \
        image/lo16-app-wireshark.png    \
        image/lo32-app-wireshark.png    \
        image/lo48-app-wireshark.png    \
-       image/make-icons                        \
        image/Makefile.nmake                    \
        image/mergecap.rc.in                    \
        image/minus-8.png                       \
@@ -779,12 +798,17 @@ EXTRA_DIST = \
        image/toolbar/capture_details_24.xpm    \
        image/toolbar/capture_ethernet_16.xpm   \
        image/toolbar/capture_filter_24.xpm     \
-       image/toolbar/capture_interfaces_24.xpm \
-       image/toolbar/capture_options_24.xpm    \
+       image/toolbar/capture_interfaces_16.png \
+       image/toolbar/capture_interfaces_24.png \
+       image/toolbar/capture_options_16.png    \
+       image/toolbar/capture_options_24.png    \
        image/toolbar/capture_prepare_16.xpm    \
-       image/toolbar/capture_restart_24.xpm    \
-       image/toolbar/capture_start_24.xpm      \
-       image/toolbar/capture_stop_24.xpm       \
+       image/toolbar/capture_restart_16.png    \
+       image/toolbar/capture_restart_24.png    \
+       image/toolbar/capture_start_16.png      \
+       image/toolbar/capture_start_24.png      \
+       image/toolbar/capture_stop_16.png       \
+       image/toolbar/capture_stop_24.png       \
        image/toolbar/checkbox_16.xpm           \
        image/toolbar/colorize_24.xpm           \
        image/toolbar/conversations_16.xpm      \
@@ -797,6 +821,8 @@ EXTRA_DIST = \
        image/toolbar/file_set_next_16.xpm      \
        image/toolbar/file_set_previous_16.xpm  \
        image/toolbar/flow_graph_16.xpm \
+       image/toolbar/gnome_emblem_web_16.png   \
+       image/toolbar/gnome_emblem_web_24.png   \
        image/toolbar/graphs_16.xpm     \
        image/toolbar/icon_color_0.xpm  \
        image/toolbar/icon_color_1.xpm  \
@@ -830,7 +856,6 @@ EXTRA_DIST = \
        image/toolbar/voip_flow_24.xpm  \
        image/toolbar/web_support_24.xpm        \
        image/toolbar/wep_closed_24.xpm \
-       image/toolbar/wiki_24.xpm       \
        image/tshark.rc.in      \
        image/voip_bg.xpm       \
        image/voip_select.xpm   \
@@ -839,38 +864,37 @@ EXTRA_DIST = \
        image/wireshark.rc.in   \
        image/wiresharkdoc.ico  \
        image/wiresharkinst.ico \
-       image/WiresharkDoc-128.png      \
        image/WiresharkDoc-16.png       \
        image/WiresharkDoc-24.png       \
-       image/WiresharkDoc-256.png      \
        image/WiresharkDoc-32.png       \
        image/WiresharkDoc-48.png       \
        image/WiresharkDoc-64.png       \
+       image/WiresharkDoc-128.png      \
+       image/WiresharkDoc-256.png      \
        image/wiretap.rc.in     \
        image/wsicon.svg        \
        image/wsicon16.png      \
-       image/wsicon16.xpm      \
-       image/wsicon256.png     \
+       image/wsicon24.png      \
        image/wsicon32.png      \
-       image/wsicon32.xpm      \
        image/wsicon48.png      \
-       image/wsicon48.xpm      \
        image/wsicon64.png      \
-       image/wsicon64.xpm      \
+       image/wsicon128.png     \
+       image/wsicon256.png     \
+       image/wsicon512.png     \
+       image/wsicon1024.png    \
        image/wsicon-ask.png    \
        image/wsicon-ask.svg    \
        image/wsiconcap.svg     \
-       image/wsiconcap16.xpm   \
        image/wsiconcap256.png  \
-       image/wsiconcap32.xpm   \
-       image/wsiconcap48.xpm   \
+       image/wsiconcap512.png  \
+       image/wsiconcap1024.png \
        image/wsiconinst.svg    \
        image/wsiconinst256.png \
        image/wslogo-dev.svg    \
        image/wslogo.eps        \
        image/wslogo.svg        \
-       image/wssplash-dev.xpm  \
-       image/wssplash.xpm      \
+       image/wssplash_dev.png  \
+       image/wssplash.png      \
        ipmap.html              \
        macosx-setup.sh         \
        macosx-support-lib-patches/glib-pkgconfig.patch \
@@ -884,6 +908,7 @@ EXTRA_DIST = \
        print.ps                \
        $(diameter_DATA)        \
        $(dtds_DATA)            \
+       $(nobase_profiles_DATA) \
        $(radius_DATA)          \
        $(tpncp_DATA)           \
        $(ui_DATA)              \
@@ -929,7 +954,6 @@ EXTRA_DIST = \
        cmake/modules/FindPCAP.cmake            \
        cmake/modules/FindPOD.cmake             \
        cmake/modules/FindPORTAUDIO.cmake       \
-       cmake/modules/FindPYTHON.cmake          \
        cmake/modules/FindSED.cmake             \
        cmake/modules/FindSH.cmake              \
        cmake/modules/FindSMI.cmake             \
@@ -1009,6 +1033,26 @@ patch-bzip2: distdir
        fi
        $(am__remove_distdir)
 
+# Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
+# No, these do not go into $(datarootdir): the desktop won't look for them there.
+# Yes, that violate's autofoo's principle of relocatability.
+# What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
+# to install this stuff...
+install_desktop_files:
+       mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
+       install -m 644 -T wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
+       if test x$(DESKTOP_FILE_INSTALL) != x ; then \
+               $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications wireshark.desktop; \
+       else \
+               install -m 644 -T wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
+       fi
+       for size in 16 24 32 48 64 128 256; \
+       do \
+               mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
+               install -m 644 image/wsicon$${size}.png  $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
+               install -m 644 -T image/WiresharkDoc-$${size}.png  $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
+       done
+       @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
 
 # Used by svr4-package and osx-package
 # We load top_stagedir with an explicit path so that libtool doesn't freak.
@@ -1036,50 +1080,18 @@ solaris-package: svr4-package
 
 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
 rpm-package: dist
-       if test x$(HAVE_RPM) = xyes ; then \
+       @if test x$(HAVE_RPM) = xyes ; then \
                cd $(rpm_topdir) ; \
-               mkdir -p BUILD RPMS SOURCES ; \
+               mkdir -p BUILD RPMS SOURCES SRPMS; \
                cd SOURCES ; \
-               ln -s ../../../$(distdir).tar.bz2 ; \
-               ln -s ../../../wireshark.desktop ; \
-               ln -s ../../../image/wsicon64.png wireshark.png ; \
+               ln -sf ../../../$(distdir).tar.bz2 ; \
                cd .. ; \
-               rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
-                       echo "Package successfully built in `pwd`/RPMS." ; \
-       else \
-               echo "Error: RPM executable and/or source directory not found." ; \
-       fi
-
-# Install some desktop files (for use with GNOME and/or freedesktop.org-compliant desktops?)
-install_desktop_files:
-       mkdir -p $(datarootdir)/{icons/gnome/{16x16,32x32,48x48,256x256}/mimetypes,mime/packages}
-       install -m 644 -T wireshark-mime-package.xml $(datarootdir)/mime/packages/wireshark.xml
-       install -m 644 -T wireshark.desktop $(datarootdir)/applications
-       mkdir -p $(datarootdir)/icons/hicolor/{16x16,32x32,48x48,64x64,256x256}/apps
-       install -m 644 image/wsicon16.png  $(datarootdir)/icons/hicolor/16x16/apps/wireshark.png
-       install -m 644 image/wsicon32.png  $(datarootdir)/icons/hicolor/32x32/apps/wireshark.png
-       install -m 644 image/wsicon48.png  $(datarootdir)/icons/hicolor/48x48/apps/wireshark.png
-       install -m 644 image/wsicon64.png  $(datarootdir)/icons/hicolor/64x64/apps/wireshark.png
-       install -m 644 image/wsicon256.png $(datarootdir)/icons/hicolor/256x256/apps/wireshark.png
-       install -m 644 -T image/WiresharkDoc-16.png  $(datarootdir)/icons/gnome/16x16/mimetypes/application-wireshark-doc.png
-       install -m 644 -T image/WiresharkDoc-32.png  $(datarootdir)/icons/gnome/32x32/mimetypes/application-wireshark-doc.png
-       install -m 644 -T image/WiresharkDoc-48.png  $(datarootdir)/icons/gnome/48x48/mimetypes/application-wireshark-doc.png
-       install -m 644 -T image/WiresharkDoc-256.png $(datarootdir)/icons/gnome/256x256/mimetypes/application-wireshark-doc.png
-       @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database $(datarootdir)/mime\""
-
-srpm-package: dist
-       if test x$(HAVE_RPM) = xyes ; then \
-               cd $(rpm_topdir) ; \
-               mkdir -p BUILD SRPMS SOURCES ; \
-               cd SOURCES ; \
-               ln -s ../../../$(distdir).tar.bz2 ; \
-               ln -s ../../../wireshark.desktop ; \
-               ln -s ../../../image/wsicon64.png wireshark.png ; \
-               cd .. ; \
-               rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
-                       echo "Package successfully built in `pwd`/SRPMS." ; \
+               rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" --clean -ba SPECS/wireshark.spec && \
+                       echo "Package successfully built in `pwd`/RPMS." && \
+                       rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
        else \
                echo "Error: RPM executable and/or source directory not found." ; \
+               false; \
        fi
 
 debian-package: debian/rules
@@ -1123,9 +1135,9 @@ clean-local:
        rm -rf $(top_stagedir)
 
 dumpabi:
-       $(MAKE) -C wiretap dumpabi
-       $(MAKE) -C epan dumpabi
-       $(MAKE) -C wsutil dumpabi
+       $(MAKE) -C wiretap dumpabi-libwiretap
+       $(MAKE) -C epan dumpabi-libwireshark
+       $(MAKE) -C wsutil dumpabi-libwsutil
 
 checkapi_local:
        $(PERL) tools/checkAPIs.pl -build \
@@ -1146,3 +1158,17 @@ checkapi: checkapi_local
        cd epan/dissectors && $(MAKE) checkapi
        cd plugins && $(MAKE) checkapi
        cd wsutil && $(MAKE) checkapi
+
+wsar_html: doxygen.cfg doxygen_global.cfg FORCE
+if HAVE_DOXYGEN
+       rm -rf wsar_html
+       cd epan && $(MAKE) $@
+       cd ui && $(MAKE) $@
+       (umask 022 ; $(DOXYGEN) doxygen.cfg)
+endif
+
+wsar-zip: wsar_html
+if HAVE_DOXYGEN
+       rm -f wsar_html.zip
+       zip -rq wsar_html.zip wsar_html
+endif