No more GIOP plugins, so get rid of the directory for the former plugins.
[metze/wireshark/wip.git] / Makefile.am
index fd9130cfbf7ba9c3a97cc3e0982b16394b85a055..e9eab287a1a6a02ab5c34a9cce161013794bcfa5 100644 (file)
@@ -47,15 +47,10 @@ bin_PROGRAMS = \
        @dftest_bin@    \
        @dumpcap_bin@   \
        @rawshark_bin@
-bin_SCRIPTS = @idl2wrs_bin@
 
 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
        randpkt text2pcap dumpcap rawshark
-EXTRA_SCRIPTS = idl2wrs
-
-idl2wrs: tools/idl2wrs.sh Makefile
-       cp tools/idl2wrs.sh idl2wrs
-       chmod +x idl2wrs
+bin_SCRIPTS = tools/idl2wrs
 
 #
 # Wireshark configuration files are put in $(pkgdatadir).
@@ -124,6 +119,7 @@ radius_DATA = \
        radius/dictionary.alcatel  \
        radius/dictionary.alcatel.esam \
        radius/dictionary.alcatel.sr \
+       radius/dictionary.alcatel-lucent.xylan \
        radius/dictionary.alteon  \
        radius/dictionary.altiga  \
        radius/dictionary.alvarion \
@@ -252,7 +248,6 @@ radius_DATA = \
        radius/dictionary.wimax.wichorus \
        radius/dictionary.wispr  \
        radius/dictionary.xedia \
-       radius/dictionary.xylan \
        radius/dictionary.zyxel
 
 #
@@ -263,6 +258,37 @@ tpncpdir = $(pkgdatadir)/tpncp
 tpncp_DATA = \
        tpncp/tpncp.dat
 
+#
+# Install the ui directory files in the "ui" subdirectory
+# of that directory
+#
+uidir = $(pkgdatadir)/ui
+ui_DATA = \
+       ui/gtk/ui/main-menubar-ui.xml
+
+#
+# Install the ui/gt directory files in the "ui/qt" subdirectory
+# of that directory
+#
+uiqtdir = $(pkgdatadir)/ui/qt
+uiqt_DATA = \
+       ui/qt/capture_start_24.png      \
+       ui/qt/capture_start_active_24.png       \
+       ui/qt/capture_stop_24.png       \
+       ui/qt/dfilter_apply_hover.png   \
+       ui/qt/dfilter_apply_normal.png  \
+       ui/qt/dfilter_apply_pressed.png \
+       ui/qt/dfilter_bookmark_hover.png        \
+       ui/qt/dfilter_bookmark_normal.png       \
+       ui/qt/dfilter_bookmark_pressed.png      \
+       ui/qt/dfilter_dropdown.png      \
+       ui/qt/dfilter_erase_active.png  \
+       ui/qt/dfilter_erase_normal.png  \
+       ui/qt/dfilter_erase_selected.png        \
+       ui/qt/dfilter_refresh_active.png        \
+       ui/qt/dfilter_refresh_normal.png        \
+       ui/qt/display_filter_16.svg     \
+       ui/qt/gpl-template.txt
 
 #
 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
@@ -281,8 +307,6 @@ plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
        -dlopen plugins/asn1/asn1.la \
        -dlopen plugins/docsis/docsis.la \
        -dlopen plugins/ethercat/ethercat.la \
-       -dlopen plugins/giop/cosnaming.la \
-       -dlopen plugins/giop/coseventcomm.la \
        -dlopen plugins/gryphon/gryphon.la \
        -dlopen plugins/irda/irda.la \
        -dlopen plugins/m2m/m2m.la \
@@ -321,17 +345,16 @@ endif
 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
 # applications are X applications).
 wireshark_LDADD = \
-       gtk/libui.a                     \
-       gtk/libui_dirty.a               \
+       ui/gtk/libgtkui.a               \
+       ui/gtk/libgtkui_dirty.a         \
+       ui/libui.a                      \
        codecs/libcodec.a               \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        wsutil/libwsutil.la             \
-       @SSL_LIBS@                      \
+       @SSL_LIBS@                      \
        $(plugin_ldadd)                 \
-       @PCRE_LIBS@                     \
        @PCAP_LIBS@                     \
-       @GTK_LIBS@ -lm                  \
        @C_ARES_LIBS@                   \
        @ADNS_LIBS@                     \
        @KRB5_LIBS@                     \
@@ -341,7 +364,9 @@ wireshark_LDADD = \
        @LIBGCRYPT_LIBS@                \
        @LIBGNUTLS_LIBS@                \
        @LIBSMI_LDFLAGS@                \
-       @PORTAUDIO_LIBS@
+       @PORTAUDIO_LIBS@                \
+       @GTK_LIBS@ -lm
+
 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
 
 if ENABLE_STATIC
@@ -352,12 +377,13 @@ endif
 
 # Libraries and plugin flags with which to link tshark.
 tshark_LDADD = \
+       ui/cli/libcliui.a               \
+       ui/libui.a                      \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        wsutil/libwsutil.la             \
        @SSL_LIBS@                      \
        $(plugin_ldadd)                 \
-       @PCRE_LIBS@                     \
        @GLIB_LIBS@ -lm                 \
        @PCAP_LIBS@                     \
        @SOCKET_LIBS@                   \
@@ -380,12 +406,12 @@ endif
 
 # Libraries and plugin flags with which to link rawshark.
 rawshark_LDADD = \
+       ui/libui.a                      \
        wiretap/libwiretap.la           \
        epan/libwireshark.la            \
        wsutil/libwsutil.la             \
        @SSL_LIBS@                      \
        $(plugin_ldadd)                 \
-       @PCRE_LIBS@                     \
        @GLIB_LIBS@ -lm                 \
        @PCAP_LIBS@                     \
        @SOCKET_LIBS@                   \
@@ -447,12 +473,12 @@ randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
 
 # Libraries and plugin flags with which to link dftest.
 dftest_LDADD = \
+       ui/libui.a                      \
        wiretap/libwiretap.la           \
        wsutil/libwsutil.la             \
        epan/libwireshark.la            \
        @SSL_LIBS@                      \
        $(plugin_ldadd)                 \
-       @PCRE_LIBS@                     \
        @GLIB_LIBS@ -lm                 \
        @PCAP_LIBS@                     \
        @SOCKET_LIBS@                   \
@@ -501,48 +527,29 @@ SUFFIXES = .sh
        rm -f $@ $@.tmp
        $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
 
-#
-# Build "tshark-tap-register.c", which contains a function
-# "register_all_tap_listeners()"
-# that calls the register routines for all tshark tap listeners.
-#
-# We do this by grepping through sources.
-#
-# Formatting conventions:  The name of the tap_listener_register_*
-# routines must start in column zero, or must be preceded only by
-# "void " starting in column zero, and must not be inside #if.
-#
-# The first argument is the directory in which the source files live.
-# All subsequent arguments are the files to scan.
-#
-tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/tools/make-tapreg-dotc
-       @echo Making tshark-tap-register.c
-       @$(srcdir)/tools/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
-
 ps.c: print.ps $(srcdir)/tools/rdps.py
        $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
 
-services: tools/make-services.pl
+services:
        $(PERL) $(srcdir)/tools/make-services.pl
 
-#
-# XXX - "svnversion.h" is distributed in the release tarball; should
-# we be deleting it with "make clean", or should we only do that with
-# "make maintainer-clean"?
-#
 CLEANFILES =           \
-       svnversion.h    \
-       idl2wrs         \
        *~              \
        vgcore.*
 
+#
+# We have to remove svnversion.h with "make distclean", as, otherwise,
+# "make distcheck" fails.  We still need to make the tarballs work
+# even if you do "make distclean" and try to rebuild; that's a work in
+# progress.
 #
 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
 # list of files removed by "make distclean"?  (It's deliberately
 # included in that list.)
 #
 DISTCLEANFILES = \
-       ps.c
+       ps.c                    \
+       svnversion.h
 
 MAINTAINERCLEANFILES =         \
        $(GENERATED_FILES)      \
@@ -585,8 +592,8 @@ EXTRA_DIST = \
        capture-wpcap.h         \
        capture_wpcap_packet.c  \
        capture_wpcap_packet.h  \
-       cfilters                \
-       colorfilters            \
+       cfilters                \
+       colorfilters            \
        config.h.win32          \
        config.nmake            \
        debian/changelog        \
@@ -619,7 +626,7 @@ EXTRA_DIST = \
        debian/wireshark.manpages \
        debian/wireshark.menu   \
        epan/dfilter/README.dfilter     \
-       dfilters                \
+       dfilters                \
        doxygen.cfg.in          \
        dumpcap.c       \
        editcap.c               \
@@ -668,10 +675,20 @@ EXTRA_DIST = \
        idl/parlay/ui_data.idl  \
        idl/parlay/ui_interfaces.idl    \
        image/capinfos.rc.in    \
+       image/capture_comment.svg       \
+       image/capture_comment_add.png   \
+       image/capture_comment_disabled.png      \
+       image/capture_comment_update.png        \
        image/clist_ascend.xpm  \
        image/clist_descend.xpm \
        image/dumpcap.rc.in     \
        image/editcap.rc.in     \
+       image/expert_chat.png   \
+       image/expert_error.png  \
+       image/expert_indicators.svg     \
+       image/expert_none.png   \
+       image/expert_note.png   \
+       image/expert_warn.png   \
        image/file_dlg_win32.rc \
        image/hi16-app-wireshark.png    \
        image/hi32-app-wireshark.png    \
@@ -687,6 +704,7 @@ 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/nsis-checked.bmp  \
@@ -699,7 +717,6 @@ EXTRA_DIST = \
        image/stock_dialog_stop_48.xpm  \
        image/stock_dialog_warning_48.xpm       \
        image/text2pcap.rc.in   \
-       image/WiresharkDoc_24.xpm       \
        image/toolbar/analyze_24.xpm \
        image/toolbar/audio_player_24.xpm       \
        image/toolbar/autoscroll_24.xpm \
@@ -747,6 +764,10 @@ EXTRA_DIST = \
        image/toolbar/network_virtual_16.xpm    \
        image/toolbar/network_wired_16.png      \
        image/toolbar/network_wireless_16.png   \
+       image/toolbar/pipe_16.png       \
+       image/toolbar/remote_arrow_16.png       \
+       image/toolbar/remote_globe_16.png       \
+       image/toolbar/remote_sat_16.png \
        image/toolbar/resize_columns_24.xpm     \
        image/toolbar/telephone_16.xpm  \
        image/toolbar/telephony_16.xpm  \
@@ -761,6 +782,8 @@ EXTRA_DIST = \
        image/wireshark.exe.manifest.in \
        image/wireshark.ico     \
        image/wireshark.rc.in   \
+       image/wiresharkdoc.ico  \
+       image/wiresharkinst.ico \
        image/WiresharkDoc-128.png      \
        image/WiresharkDoc-16.png       \
        image/WiresharkDoc-24.png       \
@@ -768,8 +791,7 @@ EXTRA_DIST = \
        image/WiresharkDoc-32.png       \
        image/WiresharkDoc-48.png       \
        image/WiresharkDoc-64.png       \
-       image/wiresharkdoc.ico  \
-       image/wiresharkinst.ico \
+       image/WiresharkDoc_24.xpm       \
        image/wiretap.rc.in     \
        image/wsicon.svg        \
        image/wsicon16.png      \
@@ -788,13 +810,13 @@ EXTRA_DIST = \
        image/wsiconcap48.xpm   \
        image/wsiconinst.svg    \
        image/wsiconinst256.png \
+       image/wslogo-dev.svg    \
        image/wslogo.eps        \
        image/wslogo.svg        \
        image/wssplash-dev.xpm  \
        image/wssplash.xpm      \
        ipmap.html              \
        macosx-setup.sh         \
-       macosx-support-lib-patches/glib-gconvert.patch \
        macosx-support-lib-patches/glib-pkgconfig.patch \
        macosx-support-lib-patches/gnutls-pkgconfig.patch \
        make-version.pl         \
@@ -807,6 +829,8 @@ EXTRA_DIST = \
        $(dtds_DATA)            \
        $(radius_DATA)          \
        $(tpncp_DATA)           \
+       $(ui_DATA)              \
+       $(uiqt_DATA)            \
        $(wimaxasncp_DATA)      \
        randpkt.c               \
        smi_modules             \
@@ -823,55 +847,55 @@ EXTRA_DIST = \
        wiretap/CMakeLists.txt  \
        README.cmake            \
        ConfigureChecks.cmake   \
-       cmake/modules/readme.txt                \
-       cmake/modules/FindLYNX.cmake            \
-       cmake/modules/FindYACC.cmake            \
+       cmake/modules/CMakeInstallDirs.cmake    \
+       cmake/modules/COPYING-CMAKE-SCRIPTS     \
+       cmake/modules/CheckCLinkerFlag.cmake    \
        cmake/modules/FeatureSummary.cmake      \
        cmake/modules/FindADNS.cmake            \
        cmake/modules/FindCAP.cmake             \
-       cmake/modules/UseLemon.cmake            \
-       cmake/modules/FindPCRE.cmake            \
-       cmake/modules/FindZLIB.cmake            \
-       cmake/modules/FindPORTAUDIO.cmake       \
-       cmake/modules/FindPCAP.cmake            \
-       cmake/modules/FindSMI.cmake             \
        cmake/modules/FindCARES.cmake           \
-       cmake/modules/FindXSLTPROC.cmake        \
-       cmake/modules/FindSH.cmake              \
-       cmake/modules/FindGNUTLS.cmake          \
+       cmake/modules/FindFOP.cmake             \
        cmake/modules/FindGCRYPT.cmake          \
-       cmake/modules/UseMakeDissectorReg.cmake \
-       cmake/modules/FindLEX.cmake             \
-       cmake/modules/FindPYTHON.cmake          \
-       cmake/modules/FindLUA.cmake             \
-       cmake/modules/FindYAPP.cmake            \
        cmake/modules/FindGEOIP.cmake           \
-       cmake/modules/FindXMLLINT.cmake         \
-       cmake/modules/FindSED.cmake             \
        cmake/modules/FindGLIB2.cmake           \
-       cmake/modules/FindGMODULE2.cmake                \
-       cmake/modules/FindGTHREAD2.cmake                \
-       cmake/modules/FindHtmlViewer.cmake      \
+       cmake/modules/FindGMODULE2.cmake        \
+       cmake/modules/FindGNUTLS.cmake          \
+       cmake/modules/FindGTHREAD2.cmake        \
        cmake/modules/FindGTK2.cmake            \
-       cmake/modules/FindFOP.cmake             \
-       cmake/modules/LICENSE.txt               \
-       cmake/modules/CMakeInstallDirs.cmake    \
-       cmake/modules/CheckCLinkerFlag.cmake    \
-       cmake/modules/COPYING-CMAKE-SCRIPTS     \
-       cmake/modules/UseMakeTapReg.cmake       \
-       cmake/modules/FindM.cmake               \
+       cmake/modules/FindGTK3.cmake            \
+       cmake/modules/FindHtmlViewer.cmake      \
        cmake/modules/FindKERBEROS.cmake        \
+       cmake/modules/FindLEX.cmake             \
+       cmake/modules/FindLUA.cmake             \
+       cmake/modules/FindLYNX.cmake            \
+       cmake/modules/FindM.cmake               \
+       cmake/modules/FindPCAP.cmake            \
        cmake/modules/FindPOD.cmake             \
-       win32/Makefile.nmake    \
-       win32/file_dlg_win32.c          \
-       win32/file_dlg_win32.h          \
-       win32/print_win32.c                     \
-       win32/print_win32.h                     \
+       cmake/modules/FindPORTAUDIO.cmake       \
+       cmake/modules/FindPYTHON.cmake          \
+       cmake/modules/FindSED.cmake             \
+       cmake/modules/FindSH.cmake              \
+       cmake/modules/FindSMI.cmake             \
+       cmake/modules/FindXMLLINT.cmake         \
+       cmake/modules/FindXSLTPROC.cmake        \
+       cmake/modules/FindYACC.cmake            \
+       cmake/modules/FindYAPP.cmake            \
+       cmake/modules/FindZLIB.cmake            \
+       cmake/modules/LICENSE.txt               \
+       cmake/modules/UseLemon.cmake            \
+       cmake/modules/UseMakeDissectorReg.cmake \
+       cmake/modules/UseMakeTapReg.cmake       \
+       cmake/modules/readme.txt                \
+       ui/win32/Makefile.nmake                 \
+       ui/win32/file_dlg_win32.c               \
+       ui/win32/file_dlg_win32.h               \
+       ui/win32/print_win32.c                  \
+       ui/win32/print_win32.h                  \
        CPackConfig.txt                         \
-       all.vcproj              \
-       dumpcap.vcproj          \
-       packaging.vcproj        \
-       tshark.vcproj           \
+       all.vcproj                              \
+       dumpcap.vcproj                          \
+       packaging.vcproj                        \
+       tshark.vcproj                           \
        wireshark.vcproj
 
 install-exec-hook:
@@ -889,12 +913,12 @@ endif
 endif
 
 
-DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap wsutil docbook
+DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
 
 if HAVE_PLUGINS
-SUBDIRS = tools wsutil wiretap epan plugins packaging help @wireshark_SUBDIRS@ . doc
+SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
 else
-SUBDIRS = tools wsutil wiretap epan packaging help @wireshark_SUBDIRS@ . doc
+SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
 endif
 
 help/faq.txt: $(srcdir)/help/faq.py
@@ -1003,20 +1027,21 @@ dumpabi:
        $(MAKE) -C wsutil dumpabi
 
 checkapi_local:
-       $(PERL) tools/checkAPIs.pl \
-       $(TSHARK_TAP_SRC)
-#      $(wireshark_SOURCES)
+       $(PERL) tools/checkAPIs.pl -build \
+       $(TSHARK_TAP_SRC) \
+       $(wireshark_SOURCES)
 #      $(EXTRA_wireshark_SOURCES)
 
 checkapi: checkapi_local
        cd wiretap && $(MAKE) checkapi
-       cd ../codecs && $(MAKE) checkapi
-##     cd ../gtk && $(MAKE) checkapi
-##     cd ../epan && $(MAKE) checkapi
-##     cd ../epan/crypt && $(MAKE) checkapi
-       cd ../dfilter && $(MAKE) checkapi
-##     cd ../ftypes && $(MAKE) checkapi
-##     cd ../wslua && $(MAKE) checkapi
-       cd ../dissectors && $(MAKE) checkapi
-       cd ../../plugins && $(MAKE) checkapi
-       cd ../wsutil && $(MAKE) checkapi
+       cd codecs && $(MAKE) checkapi
+       cd ui && $(MAKE) checkapi
+       cd ui/gtk && $(MAKE) checkapi
+##     cd epan && $(MAKE) checkapi
+##     cd epan/crypt && $(MAKE) checkapi
+       cd epan/dfilter && $(MAKE) checkapi
+##     cd epan/ftypes && $(MAKE) checkapi
+##     cd epan/wslua && $(MAKE) checkapi
+       cd epan/dissectors && $(MAKE) checkapi
+       cd plugins && $(MAKE) checkapi
+       cd wsutil && $(MAKE) checkapi