2 # Automake file for Wireshark
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
27 py_dissectors_dir = -DPYTHON_DIR=\"@pythondir@\"
29 py_dissectors_dir = -DPYTHON_DIR=
33 if HAVE_WARNINGS_AS_ERRORS
34 AM_CLEAN_CFLAGS = -Werror
50 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
51 randpkt text2pcap dumpcap reordercap rawshark wireshark_cxx
54 # Wireshark configuration files are put in $(pkgdatadir).
56 pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
57 smi_modules ipmap.html pdml2html.xsl
60 # Install the Diameter DTD and XML files in the "diameter" subdirectory
63 diameterdir = $(pkgdatadir)/diameter
65 diameter/chargecontrol.xml \
66 diameter/ChinaTelecom.xml \
68 diameter/dictionary.dtd \
69 diameter/dictionary.xml \
71 diameter/Ericsson.xml \
72 diameter/etsie2e4.xml \
73 diameter/gqpolicy.xml \
74 diameter/imscxdx.xml \
75 diameter/mobileipv4.xml \
76 diameter/mobileipv6.xml \
79 diameter/sunping.xml \
80 diameter/TGPPGmb.xml \
84 diameter/Vodafone.xml \
85 diameter/AlcatelLucent.xml \
87 diameter/NokiaSiemensNetworks.xml \
91 # Install the DTDs directory files in the "dtds" subdirectory
94 dtdsdir = $(pkgdatadir)/dtds
99 dtds/pocsettings.dtd \
106 dtds/xcap-error.dtd \
110 # Install the RADIUS directory files in the "radius" subdirectory
113 radiusdir = $(pkgdatadir)/radius
114 -include radius/Custom.make
115 radius_DATA = $(_CUSTOM_radius_dict_) \
116 radius/README.radius_dictionary \
117 radius/custom.includes \
119 radius/dictionary.3com \
120 radius/dictionary.3gpp \
121 radius/dictionary.3gpp2 \
122 radius/dictionary.acc \
123 radius/dictionary.acme \
124 radius/dictionary.airespace \
125 radius/dictionary.alcatel \
126 radius/dictionary.alcatel.esam \
127 radius/dictionary.alcatel.sr \
128 radius/dictionary.alcatel-lucent.xylan \
129 radius/dictionary.alteon \
130 radius/dictionary.altiga \
131 radius/dictionary.alvarion \
132 radius/dictionary.apc \
133 radius/dictionary.aptis \
134 radius/dictionary.aruba \
135 radius/dictionary.ascend \
136 radius/dictionary.asn \
137 radius/dictionary.audiocodes \
138 radius/dictionary.avaya \
139 radius/dictionary.azaire \
140 radius/dictionary.bay \
141 radius/dictionary.bintec \
142 radius/dictionary.bristol \
143 radius/dictionary.cablelabs \
144 radius/dictionary.cabletron \
145 radius/dictionary.chillispot \
146 radius/dictionary.cisco \
147 radius/dictionary.cisco.bbsm \
148 radius/dictionary.cisco.vpn3000 \
149 radius/dictionary.cisco.vpn5000 \
150 radius/dictionary.clavister \
151 radius/dictionary.colubris \
152 radius/dictionary.columbia_university \
153 radius/dictionary.compat \
154 radius/dictionary.cosine \
155 radius/dictionary.dhcp \
156 radius/dictionary.digium \
157 radius/dictionary.eltex \
158 radius/dictionary.epygi \
159 radius/dictionary.ericsson \
160 radius/dictionary.erx \
161 radius/dictionary.extreme \
162 radius/dictionary.fortinet \
163 radius/dictionary.foundry \
164 radius/dictionary.freeradius \
165 radius/dictionary.freeradius.internal \
166 radius/dictionary.freeswitch \
167 radius/dictionary.gandalf \
168 radius/dictionary.garderos \
169 radius/dictionary.gemtek \
170 radius/dictionary.h3c \
171 radius/dictionary.hp \
172 radius/dictionary.huawei \
173 radius/dictionary.iea \
174 radius/dictionary.infonet \
175 radius/dictionary.ipunplugged \
176 radius/dictionary.issanni \
177 radius/dictionary.itk \
178 radius/dictionary.jradius \
179 radius/dictionary.juniper \
180 radius/dictionary.karlnet \
181 radius/dictionary.lancom \
182 radius/dictionary.livingston \
183 radius/dictionary.localweb \
184 radius/dictionary.lucent \
185 radius/dictionary.manzara \
186 radius/dictionary.merit \
187 radius/dictionary.microsoft \
188 radius/dictionary.mikrotik \
189 radius/dictionary.motorola \
190 radius/dictionary.motorola.wimax \
191 radius/dictionary.navini \
192 radius/dictionary.netscreen \
193 radius/dictionary.networkphysics \
194 radius/dictionary.nexans \
195 radius/dictionary.nokia \
196 radius/dictionary.nokia.conflict \
197 radius/dictionary.nomadix \
198 radius/dictionary.nortel \
199 radius/dictionary.ntua \
200 radius/dictionary.openser \
201 radius/dictionary.packeteer \
202 radius/dictionary.patton \
203 radius/dictionary.propel \
204 radius/dictionary.prosoft \
205 radius/dictionary.quiconnect \
206 radius/dictionary.quintum \
207 radius/dictionary.redback \
208 radius/dictionary.redcreek \
209 radius/dictionary.rfc2865 \
210 radius/dictionary.rfc2866 \
211 radius/dictionary.rfc2867 \
212 radius/dictionary.rfc2868 \
213 radius/dictionary.rfc2869 \
214 radius/dictionary.rfc3162 \
215 radius/dictionary.rfc3576 \
216 radius/dictionary.rfc3580 \
217 radius/dictionary.rfc4072 \
218 radius/dictionary.rfc4372 \
219 radius/dictionary.rfc4603 \
220 radius/dictionary.rfc4675 \
221 radius/dictionary.rfc4679 \
222 radius/dictionary.rfc4818 \
223 radius/dictionary.rfc4849 \
224 radius/dictionary.rfc5090 \
225 radius/dictionary.rfc5176 \
226 radius/dictionary.rfc5447 \
227 radius/dictionary.rfc5580 \
228 radius/dictionary.rfc5607 \
229 radius/dictionary.rfc5904 \
230 radius/dictionary.rfc6519 \
231 radius/dictionary.rfc6572 \
232 radius/dictionary.riverstone \
233 radius/dictionary.roaringpenguin \
234 radius/dictionary.shasta \
235 radius/dictionary.shiva \
236 radius/dictionary.slipstream \
237 radius/dictionary.sofaware \
238 radius/dictionary.sonicwall \
239 radius/dictionary.springtide \
240 radius/dictionary.starent \
241 radius/dictionary.t_systems_nova \
242 radius/dictionary.telebit \
243 radius/dictionary.telkom \
244 radius/dictionary.trapeze \
245 radius/dictionary.tropos \
246 radius/dictionary.ukerna \
247 radius/dictionary.unix \
248 radius/dictionary.usr \
249 radius/dictionary.utstarcom \
250 radius/dictionary.valemount \
251 radius/dictionary.versanet \
252 radius/dictionary.vqp \
253 radius/dictionary.walabi \
254 radius/dictionary.waverider \
255 radius/dictionary.wichorus \
256 radius/dictionary.wimax \
257 radius/dictionary.wimax.wichorus \
258 radius/dictionary.wispr \
259 radius/dictionary.xedia \
260 radius/dictionary.zyxel
263 # Install the tpncp directory files in the "tpncp" subdirectory
266 tpncpdir = $(pkgdatadir)/tpncp
271 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
274 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
276 wimaxasncp/dictionary.xml \
277 wimaxasncp/dictionary.dtd
280 capture-pcap-util-unix.c \
281 capture_unix_ifnames.c
284 -include plugins/Custom.make
285 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
286 -dlopen plugins/asn1/asn1.la \
287 -dlopen plugins/docsis/docsis.la \
288 -dlopen plugins/ethercat/ethercat.la \
289 -dlopen plugins/gryphon/gryphon.la \
290 -dlopen plugins/irda/irda.la \
291 -dlopen plugins/m2m/m2m.la \
292 -dlopen plugins/mate/mate.la \
293 -dlopen plugins/opcua/opcua.la \
294 -dlopen plugins/profinet/profinet.la \
295 -dlopen plugins/stats_tree/stats_tree.la \
296 -dlopen plugins/unistim/unistim.la \
297 -dlopen plugins/wimax/wimax.la \
298 -dlopen plugins/wimaxmacphy/wimaxmacphy.la
300 WTAP_PLUGIN_SOURCES = \
308 WTAP_PLUGIN_SOURCES =
312 include Makefile.common
315 wireshark_LDFLAGS = -Wl,-static -all-static
317 wireshark_LDFLAGS = -export-dynamic
320 # Libraries and plugin flags with which to link wireshark.
322 # Note that Wireshark, when built with a version of GTK+ that runs
323 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
324 # as those should also be included in @GTK_LIBS@ (as those are also
325 # needed for X applications, and GTK+ applications are X applications
326 # if the version of GTK+ they're built with runs atop X11).
328 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
329 # the necessary GLib libraries are included in @GTK_LIBS@. To quote
330 # Gentoo bug 423743 at
332 # https://bugs.gentoo.org/show_bug.cgi?id=423743
334 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
335 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
336 # It is not actually a superset: gmodule is included in GLIB_LIBS but
337 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
339 # although it's also possible that -lgmodule is in GTK_LIBS but not
340 # GLIB_LIBS (that's the case on my machine right now, for example).
343 wireshark_ui_ldadd = ui/qt/libqtui.a
345 wireshark_ui_ldadd = ui/gtk/libgtkui.a
349 $(wireshark_ui_ldadd) \
353 wiretap/libwiretap.la \
354 epan/libwireshark.la \
355 wsutil/libwsutil.la \
362 @APPLICATIONSERVICES_FRAMEWORKS@ \
363 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
364 @COREFOUNDATION_FRAMEWORKS@ \
375 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
377 # Ideally we could trigger automatic c++ linking here with
378 # nodist_EXTRA_wireshark_SOURCES = dummy.cpp
379 # Unfortunately that check is done by automake and not configure.
380 # We do the following to try to avoid using c++ to link Wireshark at
382 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
383 wireshark_cxx_SOURCES =
385 if HAVE_WIRESHARK_CXX
386 wireshark_LINK = $(CXXLINK)
388 wireshark_LINK = $(LINK)
392 tshark_LDFLAGS = -Wl,-static -all-static
394 tshark_LDFLAGS = -export-dynamic
397 # Libraries and plugin flags with which to link tshark.
401 wiretap/libwiretap.la \
402 epan/libwireshark.la \
403 wsutil/libwsutil.la \
413 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
414 @COREFOUNDATION_FRAMEWORKS@ \
419 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
422 rawshark_LDFLAGS = -Wl,-static -all-static
424 rawshark_LDFLAGS = -export-dynamic
427 # Libraries and plugin flags with which to link rawshark.
430 wiretap/libwiretap.la \
431 epan/libwireshark.la \
432 wsutil/libwsutil.la \
442 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
443 @COREFOUNDATION_FRAMEWORKS@ \
448 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
450 # Libraries with which to link text2pcap.
452 wsutil/libwsutil.la \
454 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
455 # which is generated (and therefore not always clean).
456 # We could generate text2pcap.o as a library with -Werror but for now it
457 # doesn't seem worth the effort.
458 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
460 # Libraries with which to link mergecap.
462 wiretap/libwiretap.la \
463 wsutil/libwsutil.la \
465 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
467 # Libraries with which to link capinfos.
469 wiretap/libwiretap.la \
470 wsutil/libwsutil.la \
473 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
475 # Libraries with which to link editcap.
477 wiretap/libwiretap.la \
478 wsutil/libwsutil.la \
480 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
482 # Libraries with which to link reordercap.
484 wiretap/libwiretap.la \
485 wsutil/libwsutil.la \
487 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
489 # Libraries with which to link randpkt.
491 wiretap/libwiretap.la \
492 wsutil/libwsutil.la \
499 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
501 # Libraries and plugin flags with which to link dftest.
504 wiretap/libwiretap.la \
505 wsutil/libwsutil.la \
506 epan/libwireshark.la \
520 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
522 # Libraries with which to link dumpcap.
524 wsutil/libwsutil.la \
529 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
530 @COREFOUNDATION_FRAMEWORKS@ \
532 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
533 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
536 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
537 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
541 # Build the version string
543 # FORCE is the portable version of .PHONY
546 AM_V_PERL = $(am__v_PERL_@AM_V@)
547 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
548 am__v_PERL_0 = @echo " PERL " $@;
552 $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
555 # Build shell scripts by doing variable substitution.
556 # Taken from autoconf 2.13.
558 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
563 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
565 ps.c: print.ps $(srcdir)/tools/rdps.py
566 $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
569 $(PERL) $(srcdir)/tools/make-services.pl
577 # We have to remove svnversion.h with "make distclean", as, otherwise,
578 # "make distcheck" fails. We still need to make the tarballs work
579 # even if you do "make distclean" and try to rebuild; that's a work in
582 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
583 # list of files removed by "make distclean"? (It's deliberately
584 # included in that list.)
590 MAINTAINERCLEANFILES = \
619 abi-descriptor.template \
620 aclocal-fallback/libsmi.m4 \
621 aclocal-fallback/libgcrypt.m4 \
622 aclocal-fallback/glib-2.0.m4 \
623 aclocal-fallback/gtk-2.0.m4 \
624 aclocal-fallback/gtk-3.0.m4 \
625 aclocal-fallback/qt.m4 \
631 capture_win_ifnames.c \
632 capture_win_ifnames.h \
635 capture_wpcap_packet.c \
636 capture_wpcap_packet.h \
646 debian/headers-check.c \
647 debian/patches/00list \
648 debian/patches/03_preferences.dpatch \
653 debian/README.source \
654 debian/tshark.files \
655 debian/tshark.manpages \
657 debian/wireshark-common.files \
658 debian/wireshark-common.manpages \
659 debian/wireshark-common.shlibs \
660 debian/wireshark-dev.docs \
661 debian/wireshark-dev.files \
662 debian/wireshark-dev.header-files \
663 debian/wireshark-dev.manpages \
664 debian/wireshark-dev.prerm \
665 debian/wireshark-root.desktop \
666 debian/wireshark.desktop \
667 debian/wireshark.files \
668 debian/wireshark.manpages \
669 debian/wireshark.menu \
686 idl/coseventcomm.idl \
690 idl/parlay/cccs.idl \
692 idl/parlay/common_cc_data.idl \
695 idl/parlay/fw_data.idl \
696 idl/parlay/fw_if.idl \
697 idl/parlay/fw_if_access.idl \
698 idl/parlay/fw_if_app.idl \
699 idl/parlay/fw_if_entop.idl \
700 idl/parlay/fw_if_service.idl \
701 idl/parlay/gcc_data.idl \
702 idl/parlay/gcc_interfaces.idl \
705 idl/parlay/mmccs.idl \
707 idl/parlay/mpcc_data.idl \
708 idl/parlay/mpcc_interfaces.idl \
710 idl/parlay/pam_data.idl \
711 idl/parlay/pam_interfaces.idl \
712 idl/parlay/Parlay.idl \
713 idl/parlay/policy_data.idl \
714 idl/parlay/policy_interfaces.idl \
715 idl/parlay/README.parlay \
716 idl/parlay/termcap.idl \
717 idl/parlay/ui_data.idl \
718 idl/parlay/ui_interfaces.idl \
719 image/capinfos.rc.in \
720 image/capture_comment.svg \
721 image/capture_comment_add.png \
722 image/capture_comment_disabled.png \
723 image/capture_comment_update.png \
724 image/capture_start_24.png \
725 image/capture_start_active_24.png \
726 image/capture_stop_24.png \
727 image/clist_ascend.xpm \
728 image/clist_descend.xpm \
730 image/dfilter_apply_disabled.png \
731 image/dfilter_apply_hover.png \
732 image/dfilter_apply_normal.png \
733 image/dfilter_apply_pressed.png \
734 image/dfilter_bookmark_disabled.png \
735 image/dfilter_bookmark_hover.png \
736 image/dfilter_bookmark_normal.png \
737 image/dfilter_bookmark_pressed.png \
738 image/dfilter_dropdown.png \
739 image/dfilter_erase_active.png \
740 image/dfilter_erase_normal.png \
741 image/dfilter_erase_selected.png \
742 image/dfilter_refresh_active.png \
743 image/dfilter_refresh_normal.png \
744 image/display_filter.qrc \
745 image/dumpcap.rc.in \
746 image/editcap.rc.in \
747 image/expert_chat.png \
748 image/expert_error.png \
749 image/expert_indicators.svg \
750 image/expert_none.png \
751 image/expert_note.png \
752 image/expert_warn.png \
753 image/file_dlg_win32.rc \
754 image/hi16-app-wireshark.png \
755 image/hi32-app-wireshark.png \
756 image/hi48-app-wireshark.png \
763 image/libwireshark.rc.in \
764 image/libwsutil.rc.in \
765 image/lo16-app-wireshark.png \
766 image/lo32-app-wireshark.png \
767 image/lo48-app-wireshark.png \
768 image/Makefile.nmake \
769 image/mergecap.rc.in \
771 image/nsis-checked.bmp \
772 image/nsis-unchecked.bmp \
774 image/rawshark.rc.in \
776 image/reordercap.rc.in \
778 image/stock_dialog_error_48.xpm \
779 image/stock_dialog_info_48.xpm \
780 image/stock_dialog_question_48.xpm \
781 image/stock_dialog_stop_48.xpm \
782 image/stock_dialog_warning_48.xpm \
783 image/text2pcap.rc.in \
785 image/toolbar/analyze_24.xpm \
786 image/toolbar/audio_player_24.xpm \
787 image/toolbar/autoscroll_24.xpm \
788 image/toolbar/capture_airpcap_16.xpm \
789 image/toolbar/capture_capture_16.xpm \
790 image/toolbar/capture_details_16.xpm \
791 image/toolbar/capture_details_24.xpm \
792 image/toolbar/capture_ethernet_16.xpm \
793 image/toolbar/capture_filter_24.xpm \
794 image/toolbar/capture_interfaces_16.png \
795 image/toolbar/capture_interfaces_24.png \
796 image/toolbar/capture_options_16.png \
797 image/toolbar/capture_options_24.png \
798 image/toolbar/capture_prepare_16.xpm \
799 image/toolbar/capture_restart_16.png \
800 image/toolbar/capture_restart_24.png \
801 image/toolbar/capture_start_16.png \
802 image/toolbar/capture_start_24.png \
803 image/toolbar/capture_stop_16.png \
804 image/toolbar/capture_stop_24.png \
805 image/toolbar/checkbox_16.xpm \
806 image/toolbar/colorize_24.xpm \
807 image/toolbar/conversations_16.xpm \
808 image/toolbar/decode_24.xpm \
809 image/toolbar/decode_as_16.xpm \
810 image/toolbar/display_filter_24.xpm \
811 image/toolbar/endpoints_16.xpm \
812 image/toolbar/expert_info_16.xpm \
813 image/toolbar/file_set_list_16.xpm \
814 image/toolbar/file_set_next_16.xpm \
815 image/toolbar/file_set_previous_16.xpm \
816 image/toolbar/flow_graph_16.xpm \
817 image/toolbar/gnome_emblem_web_16.png \
818 image/toolbar/gnome_emblem_web_24.png \
819 image/toolbar/graphs_16.xpm \
820 image/toolbar/icon_color_0.xpm \
821 image/toolbar/icon_color_1.xpm \
822 image/toolbar/icon_color_2.xpm \
823 image/toolbar/icon_color_3.xpm \
824 image/toolbar/icon_color_4.xpm \
825 image/toolbar/icon_color_5.xpm \
826 image/toolbar/icon_color_6.xpm \
827 image/toolbar/icon_color_7.xpm \
828 image/toolbar/icon_color_8.xpm \
829 image/toolbar/icon_color_9.xpm \
830 image/toolbar/internet_24.xpm \
831 image/toolbar/modem_16.png \
832 image/toolbar/modem_16.xpm \
833 image/toolbar/network_bluetooth_16.png \
834 image/toolbar/network_usb.svg \
835 image/toolbar/network_usb_16.png \
836 image/toolbar/network_virtual_16.xpm \
837 image/toolbar/network_wired_16.png \
838 image/toolbar/network_wireless_16.png \
839 image/toolbar/pipe_16.png \
840 image/toolbar/remote_arrow_16.png \
841 image/toolbar/remote_globe_16.png \
842 image/toolbar/remote_sat_16.png \
843 image/toolbar/resize_columns_24.xpm \
844 image/toolbar/telephone_16.xpm \
845 image/toolbar/telephony_16.xpm \
846 image/toolbar/time_24.xpm \
847 image/toolbar/toolbar_wireshark_file_16.png \
848 image/toolbar/toolbar_wireshark_file_24.png \
849 image/toolbar/voip_flow_24.xpm \
850 image/toolbar/web_support_24.xpm \
851 image/toolbar/wep_closed_24.xpm \
854 image/voip_select.xpm \
855 image/wireshark.exe.manifest.in \
856 image/wireshark.ico \
857 image/wireshark.rc.in \
858 image/wiresharkdoc.ico \
859 image/wiresharkinst.ico \
860 image/WiresharkDoc-16.png \
861 image/WiresharkDoc-24.png \
862 image/WiresharkDoc-32.png \
863 image/WiresharkDoc-48.png \
864 image/WiresharkDoc-64.png \
865 image/WiresharkDoc-128.png \
866 image/WiresharkDoc-256.png \
867 image/wiretap.rc.in \
874 image/wsicon128.png \
875 image/wsicon256.png \
876 image/wsicon512.png \
877 image/wsicon1024.png \
878 image/wsicon-ask.png \
879 image/wsicon-ask.svg \
880 image/wsiconcap.svg \
881 image/wsiconcap256.png \
882 image/wsiconcap512.png \
883 image/wsiconcap1024.png \
884 image/wsiconinst.svg \
885 image/wsiconinst256.png \
886 image/wslogo-dev.svg \
889 image/wssplash_dev.png \
893 macosx-support-lib-patches/glib-pkgconfig.patch \
894 macosx-support-lib-patches/gnutls-pkgconfig.patch \
895 macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
910 text2pcap-scanner.l \
914 wireshark-mime-package.xml \
918 wsutil/CMakeLists.txt \
920 wiretap/CMakeLists.txt \
922 ConfigureChecks.cmake \
923 cmake/modules/CMakeInstallDirs.cmake \
924 cmake/modules/COPYING-CMAKE-SCRIPTS \
925 cmake/modules/CheckCLinkerFlag.cmake \
926 cmake/modules/FeatureSummary.cmake \
927 cmake/modules/FindADNS.cmake \
928 cmake/modules/FindCAP.cmake \
929 cmake/modules/FindCARES.cmake \
930 cmake/modules/FindFOP.cmake \
931 cmake/modules/FindGCRYPT.cmake \
932 cmake/modules/FindGEOIP.cmake \
933 cmake/modules/FindGLIB2.cmake \
934 cmake/modules/FindGMODULE2.cmake \
935 cmake/modules/FindGNUTLS.cmake \
936 cmake/modules/FindGTHREAD2.cmake \
937 cmake/modules/FindGTK2.cmake \
938 cmake/modules/FindGTK3.cmake \
939 cmake/modules/FindHtmlViewer.cmake \
940 cmake/modules/FindKERBEROS.cmake \
941 cmake/modules/FindNL.cmake \
942 cmake/modules/FindLEX.cmake \
943 cmake/modules/FindLUA.cmake \
944 cmake/modules/FindLYNX.cmake \
945 cmake/modules/FindM.cmake \
946 cmake/modules/FindPCAP.cmake \
947 cmake/modules/FindPOD.cmake \
948 cmake/modules/FindPORTAUDIO.cmake \
949 cmake/modules/FindPYTHON.cmake \
950 cmake/modules/FindSED.cmake \
951 cmake/modules/FindSH.cmake \
952 cmake/modules/FindSMI.cmake \
953 cmake/modules/FindXMLLINT.cmake \
954 cmake/modules/FindXSLTPROC.cmake \
955 cmake/modules/FindYACC.cmake \
956 cmake/modules/FindYAPP.cmake \
957 cmake/modules/FindZLIB.cmake \
958 cmake/modules/LICENSE.txt \
959 cmake/modules/UseLemon.cmake \
960 cmake/modules/UseMakeDissectorReg.cmake \
961 cmake/modules/UseMakeTapReg.cmake \
962 cmake/modules/readme.txt \
963 ui/win32/Makefile.nmake \
964 ui/win32/console_win32.c \
965 ui/win32/console_win32.h \
966 ui/win32/file_dlg_win32.c \
967 ui/win32/file_dlg_win32.h \
968 ui/win32/print_win32.c \
969 ui/win32/print_win32.h \
970 ui/win32/settings.ini \
979 if HAVE_DUMPCAP_GROUP
980 -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
983 -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
984 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
987 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
988 -chmod +s $(DESTDIR)$(bindir)/dumpcap
993 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
996 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
998 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1001 help/faq.txt: $(srcdir)/help/faq.py
1002 $(AM_V_GEN)(cd help ; \
1005 libtool: $(LIBTOOL_DEPS)
1006 $(SHELL) ./config.status --recheck
1009 # Used by patch-bzip2
1010 # Trim off any extra version information and find the previous micro release.
1011 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1012 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1013 PREV_DIR="wireshark-$(PREV_VERSION)"
1014 PREV_FILE="$(PREV_DIR).tar.bz2"
1015 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1017 patch-bzip2: distdir
1018 if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1019 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1020 tar -xjf $(PREV_FILE) && \
1021 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1022 echo "Created patch-bzip2" ; \
1023 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1025 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1027 $(am__remove_distdir)
1029 # Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
1030 # No, these do not go into $(datarootdir): the desktop won't look for them there.
1031 # Yes, that violate's autofoo's principle of relocatability.
1032 # What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
1033 # to install this stuff...
1034 install_desktop_files:
1035 mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
1036 install -m 644 -T wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
1037 if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1038 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications wireshark.desktop; \
1040 install -m 644 -T wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
1042 for size in 16 24 32 48 64 128 256; \
1044 mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
1045 install -m 644 image/wsicon$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1046 install -m 644 -T image/WiresharkDoc-$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1048 @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
1050 # Used by svr4-package and osx-package
1051 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1052 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
1053 stagedir=$(top_stagedir)/$(PACKAGE).inst
1058 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1059 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1060 rm -rf $(stagedir) ; \
1061 $(MAKE) DESTDIR=$(stagedir) install; \
1062 $(srcdir)/packaging/svr4/mkpkg \
1064 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1068 echo "Error: SVR4 packaging tools not found." ; \
1069 echo "Package build abandoned." ; \
1072 solaris-package: svr4-package
1074 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1076 @if test x$(HAVE_RPM) = xyes ; then \
1077 cd $(rpm_topdir) ; \
1078 mkdir -p BUILD RPMS SOURCES SRPMS; \
1080 ln -sf ../../../$(distdir).tar.bz2 ; \
1082 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" --clean -ba SPECS/wireshark.spec && \
1083 echo "Package successfully built in `pwd`/RPMS." && \
1084 rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1086 echo "Error: RPM executable and/or source directory not found." ; \
1090 debian-package: debian/rules
1091 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1092 dpkg-buildpackage -rfakeroot -us -uc ; \
1094 echo "Error: Debian packaging tools not found." ; \
1095 echo "Package build abandoned." ; \
1098 # XXX - This assumes we're building from the source directory.
1099 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1100 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1101 rm -rf $(stagedir) ; \
1102 $(MAKE) DESTDIR=$(stagedir) install; \
1103 cd $(srcdir)/packaging/macosx ; \
1104 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1106 echo "Error: OS X packaging tools not found." ; \
1107 echo "Package build abandoned." ; \
1110 packaging/macosx/COPYING.txt: COPYING
1111 (cd packaging/macosx ; \
1112 $(MAKE) COPYING.txt ;)
1114 osx-package: osx-app packaging/macosx/COPYING.txt
1115 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1116 cd $(srcdir)/packaging/macosx ; \
1117 chmod +x ./osx-dmg.sh ; \
1121 osx-install: osx-app
1122 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1123 echo "Copying Wireshark.app to /Applications" ; \
1124 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1128 rm -rf $(top_stagedir)
1131 $(MAKE) -C wiretap dumpabi-libwiretap
1132 $(MAKE) -C epan dumpabi-libwireshark
1133 $(MAKE) -C wsutil dumpabi-libwsutil
1136 $(PERL) tools/checkAPIs.pl -build \
1138 $(wireshark_SOURCES)
1139 # $(EXTRA_wireshark_SOURCES)
1141 checkapi: checkapi_local
1142 cd wiretap && $(MAKE) checkapi
1143 cd codecs && $(MAKE) checkapi
1144 cd ui && $(MAKE) checkapi
1145 cd ui/gtk && $(MAKE) checkapi
1146 ## cd epan && $(MAKE) checkapi
1147 ## cd epan/crypt && $(MAKE) checkapi
1148 cd epan/dfilter && $(MAKE) checkapi
1149 ## cd epan/ftypes && $(MAKE) checkapi
1150 ## cd epan/wslua && $(MAKE) checkapi
1151 cd epan/dissectors && $(MAKE) checkapi
1152 cd plugins && $(MAKE) checkapi
1153 cd wsutil && $(MAKE) checkapi
1155 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1158 cd epan && $(MAKE) $@
1160 (umask 022 ; $(DOXYGEN) doxygen.cfg)
1166 zip -rq wsar_html.zip wsar_html