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 \
67 diameter/dictionary.dtd \
68 diameter/dictionary.xml \
70 diameter/Ericsson.xml \
71 diameter/etsie2e4.xml \
72 diameter/gqpolicy.xml \
73 diameter/imscxdx.xml \
74 diameter/mobileipv4.xml \
75 diameter/mobileipv6.xml \
78 diameter/sunping.xml \
79 diameter/TGPPGmb.xml \
83 diameter/Vodafone.xml \
84 diameter/AlcatelLucent.xml \
86 diameter/NokiaSiemensNetworks.xml \
90 # Install the DTDs directory files in the "dtds" subdirectory
93 dtdsdir = $(pkgdatadir)/dtds
98 dtds/pocsettings.dtd \
105 dtds/xcap-error.dtd \
109 # Install the RADIUS directory files in the "radius" subdirectory
112 radiusdir = $(pkgdatadir)/radius
113 -include radius/Custom.make
114 radius_DATA = $(_CUSTOM_radius_dict_) \
115 radius/README.radius_dictionary \
116 radius/custom.includes \
118 radius/dictionary.3com \
119 radius/dictionary.3gpp \
120 radius/dictionary.3gpp2 \
121 radius/dictionary.acc \
122 radius/dictionary.acme \
123 radius/dictionary.airespace \
124 radius/dictionary.alcatel \
125 radius/dictionary.alcatel.esam \
126 radius/dictionary.alcatel.sr \
127 radius/dictionary.alcatel-lucent.xylan \
128 radius/dictionary.alteon \
129 radius/dictionary.altiga \
130 radius/dictionary.alvarion \
131 radius/dictionary.apc \
132 radius/dictionary.aptis \
133 radius/dictionary.aruba \
134 radius/dictionary.ascend \
135 radius/dictionary.asn \
136 radius/dictionary.audiocodes \
137 radius/dictionary.avaya \
138 radius/dictionary.azaire \
139 radius/dictionary.bay \
140 radius/dictionary.bintec \
141 radius/dictionary.bristol \
142 radius/dictionary.cablelabs \
143 radius/dictionary.cabletron \
144 radius/dictionary.chillispot \
145 radius/dictionary.cisco \
146 radius/dictionary.cisco.bbsm \
147 radius/dictionary.cisco.vpn3000 \
148 radius/dictionary.cisco.vpn5000 \
149 radius/dictionary.clavister \
150 radius/dictionary.colubris \
151 radius/dictionary.columbia_university \
152 radius/dictionary.compat \
153 radius/dictionary.cosine \
154 radius/dictionary.dhcp \
155 radius/dictionary.digium \
156 radius/dictionary.eltex \
157 radius/dictionary.epygi \
158 radius/dictionary.ericsson \
159 radius/dictionary.erx \
160 radius/dictionary.extreme \
161 radius/dictionary.fortinet \
162 radius/dictionary.foundry \
163 radius/dictionary.freeradius \
164 radius/dictionary.freeradius.internal \
165 radius/dictionary.freeswitch \
166 radius/dictionary.gandalf \
167 radius/dictionary.garderos \
168 radius/dictionary.gemtek \
169 radius/dictionary.h3c \
170 radius/dictionary.hp \
171 radius/dictionary.huawei \
172 radius/dictionary.iea \
173 radius/dictionary.infonet \
174 radius/dictionary.ipunplugged \
175 radius/dictionary.issanni \
176 radius/dictionary.itk \
177 radius/dictionary.jradius \
178 radius/dictionary.juniper \
179 radius/dictionary.karlnet \
180 radius/dictionary.lancom \
181 radius/dictionary.livingston \
182 radius/dictionary.localweb \
183 radius/dictionary.lucent \
184 radius/dictionary.manzara \
185 radius/dictionary.merit \
186 radius/dictionary.microsoft \
187 radius/dictionary.mikrotik \
188 radius/dictionary.motorola \
189 radius/dictionary.motorola.wimax \
190 radius/dictionary.navini \
191 radius/dictionary.netscreen \
192 radius/dictionary.networkphysics \
193 radius/dictionary.nexans \
194 radius/dictionary.nokia \
195 radius/dictionary.nokia.conflict \
196 radius/dictionary.nomadix \
197 radius/dictionary.nortel \
198 radius/dictionary.ntua \
199 radius/dictionary.openser \
200 radius/dictionary.packeteer \
201 radius/dictionary.patton \
202 radius/dictionary.propel \
203 radius/dictionary.prosoft \
204 radius/dictionary.quiconnect \
205 radius/dictionary.quintum \
206 radius/dictionary.redback \
207 radius/dictionary.redcreek \
208 radius/dictionary.rfc2865 \
209 radius/dictionary.rfc2866 \
210 radius/dictionary.rfc2867 \
211 radius/dictionary.rfc2868 \
212 radius/dictionary.rfc2869 \
213 radius/dictionary.rfc3162 \
214 radius/dictionary.rfc3576 \
215 radius/dictionary.rfc3580 \
216 radius/dictionary.rfc4072 \
217 radius/dictionary.rfc4372 \
218 radius/dictionary.rfc4603 \
219 radius/dictionary.rfc4675 \
220 radius/dictionary.rfc4679 \
221 radius/dictionary.rfc4818 \
222 radius/dictionary.rfc4849 \
223 radius/dictionary.rfc5090 \
224 radius/dictionary.rfc5176 \
225 radius/dictionary.rfc5447 \
226 radius/dictionary.rfc5580 \
227 radius/dictionary.rfc5607 \
228 radius/dictionary.rfc5904 \
229 radius/dictionary.rfc6519 \
230 radius/dictionary.rfc6572 \
231 radius/dictionary.riverstone \
232 radius/dictionary.roaringpenguin \
233 radius/dictionary.shasta \
234 radius/dictionary.shiva \
235 radius/dictionary.slipstream \
236 radius/dictionary.sofaware \
237 radius/dictionary.sonicwall \
238 radius/dictionary.springtide \
239 radius/dictionary.starent \
240 radius/dictionary.t_systems_nova \
241 radius/dictionary.telebit \
242 radius/dictionary.telkom \
243 radius/dictionary.trapeze \
244 radius/dictionary.tropos \
245 radius/dictionary.ukerna \
246 radius/dictionary.unix \
247 radius/dictionary.usr \
248 radius/dictionary.utstarcom \
249 radius/dictionary.valemount \
250 radius/dictionary.versanet \
251 radius/dictionary.vqp \
252 radius/dictionary.walabi \
253 radius/dictionary.waverider \
254 radius/dictionary.wichorus \
255 radius/dictionary.wimax \
256 radius/dictionary.wimax.wichorus \
257 radius/dictionary.wispr \
258 radius/dictionary.xedia \
259 radius/dictionary.zyxel
262 # Install the tpncp directory files in the "tpncp" subdirectory
265 tpncpdir = $(pkgdatadir)/tpncp
270 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
273 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
275 wimaxasncp/dictionary.xml \
276 wimaxasncp/dictionary.dtd
279 capture-pcap-util-unix.c \
280 capture_unix_ifnames.c
283 -include plugins/Custom.make
284 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
285 -dlopen plugins/asn1/asn1.la \
286 -dlopen plugins/docsis/docsis.la \
287 -dlopen plugins/ethercat/ethercat.la \
288 -dlopen plugins/gryphon/gryphon.la \
289 -dlopen plugins/irda/irda.la \
290 -dlopen plugins/m2m/m2m.la \
291 -dlopen plugins/mate/mate.la \
292 -dlopen plugins/opcua/opcua.la \
293 -dlopen plugins/profinet/profinet.la \
294 -dlopen plugins/stats_tree/stats_tree.la \
295 -dlopen plugins/unistim/unistim.la \
296 -dlopen plugins/wimax/wimax.la \
297 -dlopen plugins/wimaxmacphy/wimaxmacphy.la
299 WTAP_PLUGIN_SOURCES = \
307 WTAP_PLUGIN_SOURCES =
311 include Makefile.common
314 wireshark_LDFLAGS = -Wl,-static -all-static
316 wireshark_LDFLAGS = -export-dynamic
319 # Libraries and plugin flags with which to link wireshark.
321 # Note that Wireshark, when built with a version of GTK+ that runs
322 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
323 # as those should also be included in @GTK_LIBS@ (as those are also
324 # needed for X applications, and GTK+ applications are X applications
325 # if the version of GTK+ they're built with runs atop X11).
327 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
328 # the necessary GLib libraries are included in @GTK_LIBS@. To quote
329 # Gentoo bug 423743 at
331 # https://bugs.gentoo.org/show_bug.cgi?id=423743
333 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
334 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
335 # It is not actually a superset: gmodule is included in GLIB_LIBS but
336 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
338 # although it's also possible that -lgmodule is in GTK_LIBS but not
339 # GLIB_LIBS (that's the case on my machine right now, for example).
342 wireshark_ui_ldadd = ui/qt/libqtui.a
344 wireshark_ui_ldadd = ui/gtk/libgtkui.a
348 $(wireshark_ui_ldadd) \
352 wiretap/libwiretap.la \
353 epan/libwireshark.la \
354 wsutil/libwsutil.la \
361 @APPLICATIONSERVICES_FRAMEWORKS@ \
362 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
363 @COREFOUNDATION_FRAMEWORKS@ \
374 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
376 # Ideally we could trigger automatic c++ linking here with
377 # nodist_EXTRA_wireshark_SOURCES = dummy.cpp
378 # Unfortunately that check is done by automake and not configure.
379 # We do the following to try to avoid using c++ to link Wireshark at
381 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
382 wireshark_cxx_SOURCES =
384 if HAVE_WIRESHARK_CXX
385 wireshark_LINK = $(CXXLINK)
387 wireshark_LINK = $(LINK)
391 tshark_LDFLAGS = -Wl,-static -all-static
393 tshark_LDFLAGS = -export-dynamic
396 # Libraries and plugin flags with which to link tshark.
400 wiretap/libwiretap.la \
401 epan/libwireshark.la \
402 wsutil/libwsutil.la \
412 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
413 @COREFOUNDATION_FRAMEWORKS@ \
418 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
421 rawshark_LDFLAGS = -Wl,-static -all-static
423 rawshark_LDFLAGS = -export-dynamic
426 # Libraries and plugin flags with which to link rawshark.
429 wiretap/libwiretap.la \
430 epan/libwireshark.la \
431 wsutil/libwsutil.la \
441 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
442 @COREFOUNDATION_FRAMEWORKS@ \
447 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
449 # Libraries with which to link text2pcap.
451 wsutil/libwsutil.la \
453 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
454 # which is generated (and therefore not always clean).
455 # We could generate text2pcap.o as a library with -Werror but for now it
456 # doesn't seem worth the effort.
457 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
459 # Libraries with which to link mergecap.
461 wiretap/libwiretap.la \
462 wsutil/libwsutil.la \
464 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
466 # Libraries with which to link capinfos.
468 wiretap/libwiretap.la \
469 wsutil/libwsutil.la \
472 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
474 # Libraries with which to link editcap.
476 wiretap/libwiretap.la \
477 wsutil/libwsutil.la \
479 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
481 # Libraries with which to link reordercap.
483 wiretap/libwiretap.la \
484 wsutil/libwsutil.la \
486 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
488 # Libraries with which to link randpkt.
490 wiretap/libwiretap.la \
491 wsutil/libwsutil.la \
498 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
500 # Libraries and plugin flags with which to link dftest.
503 wiretap/libwiretap.la \
504 wsutil/libwsutil.la \
505 epan/libwireshark.la \
519 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
521 # Libraries with which to link dumpcap.
523 wsutil/libwsutil.la \
528 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
529 @COREFOUNDATION_FRAMEWORKS@ \
531 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
532 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
535 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
536 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
540 # Build the version string
542 # FORCE is the portable version of .PHONY
545 AM_V_PERL = $(am__v_PERL_@AM_V@)
546 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
547 am__v_PERL_0 = @echo " PERL " $@;
551 $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
554 # Build shell scripts by doing variable substitution.
555 # Taken from autoconf 2.13.
557 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
562 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
564 ps.c: print.ps $(srcdir)/tools/rdps.py
565 $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
568 $(PERL) $(srcdir)/tools/make-services.pl
575 # We have to remove svnversion.h with "make distclean", as, otherwise,
576 # "make distcheck" fails. We still need to make the tarballs work
577 # even if you do "make distclean" and try to rebuild; that's a work in
580 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
581 # list of files removed by "make distclean"? (It's deliberately
582 # included in that list.)
588 MAINTAINERCLEANFILES = \
617 abi-descriptor.template \
618 aclocal-fallback/libsmi.m4 \
619 aclocal-fallback/libgcrypt.m4 \
620 aclocal-fallback/glib-2.0.m4 \
621 aclocal-fallback/gtk-2.0.m4 \
622 aclocal-fallback/gtk-3.0.m4 \
623 aclocal-fallback/qt.m4 \
629 capture_win_ifnames.c \
630 capture_win_ifnames.h \
633 capture_wpcap_packet.c \
634 capture_wpcap_packet.h \
644 debian/headers-check.c \
645 debian/patches/00list \
646 debian/patches/03_preferences.dpatch \
651 debian/README.source \
652 debian/tshark.files \
653 debian/tshark.manpages \
655 debian/wireshark-common.files \
656 debian/wireshark-common.manpages \
657 debian/wireshark-common.shlibs \
658 debian/wireshark-dev.docs \
659 debian/wireshark-dev.files \
660 debian/wireshark-dev.header-files \
661 debian/wireshark-dev.manpages \
662 debian/wireshark-dev.prerm \
663 debian/wireshark-root.desktop \
664 debian/wireshark.desktop \
665 debian/wireshark.files \
666 debian/wireshark.manpages \
667 debian/wireshark.menu \
684 idl/coseventcomm.idl \
688 idl/parlay/cccs.idl \
690 idl/parlay/common_cc_data.idl \
693 idl/parlay/fw_data.idl \
694 idl/parlay/fw_if.idl \
695 idl/parlay/fw_if_access.idl \
696 idl/parlay/fw_if_app.idl \
697 idl/parlay/fw_if_entop.idl \
698 idl/parlay/fw_if_service.idl \
699 idl/parlay/gcc_data.idl \
700 idl/parlay/gcc_interfaces.idl \
703 idl/parlay/mmccs.idl \
705 idl/parlay/mpcc_data.idl \
706 idl/parlay/mpcc_interfaces.idl \
708 idl/parlay/pam_data.idl \
709 idl/parlay/pam_interfaces.idl \
710 idl/parlay/Parlay.idl \
711 idl/parlay/policy_data.idl \
712 idl/parlay/policy_interfaces.idl \
713 idl/parlay/README.parlay \
714 idl/parlay/termcap.idl \
715 idl/parlay/ui_data.idl \
716 idl/parlay/ui_interfaces.idl \
717 image/capinfos.rc.in \
718 image/capture_comment.svg \
719 image/capture_comment_add.png \
720 image/capture_comment_disabled.png \
721 image/capture_comment_update.png \
722 image/capture_start_24.png \
723 image/capture_start_active_24.png \
724 image/capture_stop_24.png \
725 image/clist_ascend.xpm \
726 image/clist_descend.xpm \
728 image/dfilter_apply_disabled.png \
729 image/dfilter_apply_hover.png \
730 image/dfilter_apply_normal.png \
731 image/dfilter_apply_pressed.png \
732 image/dfilter_bookmark_disabled.png \
733 image/dfilter_bookmark_hover.png \
734 image/dfilter_bookmark_normal.png \
735 image/dfilter_bookmark_pressed.png \
736 image/dfilter_dropdown.png \
737 image/dfilter_erase_active.png \
738 image/dfilter_erase_normal.png \
739 image/dfilter_erase_selected.png \
740 image/dfilter_refresh_active.png \
741 image/dfilter_refresh_normal.png \
742 image/display_filter.qrc \
743 image/dumpcap.rc.in \
744 image/editcap.rc.in \
745 image/expert_chat.png \
746 image/expert_error.png \
747 image/expert_indicators.svg \
748 image/expert_none.png \
749 image/expert_note.png \
750 image/expert_warn.png \
751 image/file_dlg_win32.rc \
752 image/hi16-app-wireshark.png \
753 image/hi32-app-wireshark.png \
754 image/hi48-app-wireshark.png \
761 image/libwireshark.rc.in \
762 image/libwsutil.rc.in \
763 image/lo16-app-wireshark.png \
764 image/lo32-app-wireshark.png \
765 image/lo48-app-wireshark.png \
766 image/Makefile.nmake \
767 image/mergecap.rc.in \
769 image/nsis-checked.bmp \
770 image/nsis-unchecked.bmp \
772 image/rawshark.rc.in \
774 image/reordercap.rc.in \
776 image/stock_dialog_error_48.xpm \
777 image/stock_dialog_info_48.xpm \
778 image/stock_dialog_question_48.xpm \
779 image/stock_dialog_stop_48.xpm \
780 image/stock_dialog_warning_48.xpm \
781 image/text2pcap.rc.in \
783 image/toolbar/analyze_24.xpm \
784 image/toolbar/audio_player_24.xpm \
785 image/toolbar/autoscroll_24.xpm \
786 image/toolbar/capture_airpcap_16.xpm \
787 image/toolbar/capture_capture_16.xpm \
788 image/toolbar/capture_details_16.xpm \
789 image/toolbar/capture_details_24.xpm \
790 image/toolbar/capture_ethernet_16.xpm \
791 image/toolbar/capture_filter_24.xpm \
792 image/toolbar/capture_interfaces_16.png \
793 image/toolbar/capture_interfaces_24.png \
794 image/toolbar/capture_options_16.png \
795 image/toolbar/capture_options_24.png \
796 image/toolbar/capture_prepare_16.xpm \
797 image/toolbar/capture_restart_16.png \
798 image/toolbar/capture_restart_24.png \
799 image/toolbar/capture_start_16.png \
800 image/toolbar/capture_start_24.png \
801 image/toolbar/capture_stop_16.png \
802 image/toolbar/capture_stop_24.png \
803 image/toolbar/checkbox_16.xpm \
804 image/toolbar/colorize_24.xpm \
805 image/toolbar/conversations_16.xpm \
806 image/toolbar/decode_24.xpm \
807 image/toolbar/decode_as_16.xpm \
808 image/toolbar/display_filter_24.xpm \
809 image/toolbar/endpoints_16.xpm \
810 image/toolbar/expert_info_16.xpm \
811 image/toolbar/file_set_list_16.xpm \
812 image/toolbar/file_set_next_16.xpm \
813 image/toolbar/file_set_previous_16.xpm \
814 image/toolbar/flow_graph_16.xpm \
815 image/toolbar/gnome_emblem_web_16.png \
816 image/toolbar/gnome_emblem_web_24.png \
817 image/toolbar/graphs_16.xpm \
818 image/toolbar/icon_color_0.xpm \
819 image/toolbar/icon_color_1.xpm \
820 image/toolbar/icon_color_2.xpm \
821 image/toolbar/icon_color_3.xpm \
822 image/toolbar/icon_color_4.xpm \
823 image/toolbar/icon_color_5.xpm \
824 image/toolbar/icon_color_6.xpm \
825 image/toolbar/icon_color_7.xpm \
826 image/toolbar/icon_color_8.xpm \
827 image/toolbar/icon_color_9.xpm \
828 image/toolbar/internet_24.xpm \
829 image/toolbar/modem_16.png \
830 image/toolbar/modem_16.xpm \
831 image/toolbar/network_bluetooth_16.png \
832 image/toolbar/network_usb.svg \
833 image/toolbar/network_usb_16.png \
834 image/toolbar/network_virtual_16.xpm \
835 image/toolbar/network_wired_16.png \
836 image/toolbar/network_wireless_16.png \
837 image/toolbar/pipe_16.png \
838 image/toolbar/remote_arrow_16.png \
839 image/toolbar/remote_globe_16.png \
840 image/toolbar/remote_sat_16.png \
841 image/toolbar/resize_columns_24.xpm \
842 image/toolbar/telephone_16.xpm \
843 image/toolbar/telephony_16.xpm \
844 image/toolbar/time_24.xpm \
845 image/toolbar/toolbar_wireshark_file_16.png \
846 image/toolbar/toolbar_wireshark_file_24.png \
847 image/toolbar/voip_flow_24.xpm \
848 image/toolbar/web_support_24.xpm \
849 image/toolbar/wep_closed_24.xpm \
852 image/voip_select.xpm \
853 image/wireshark.exe.manifest.in \
854 image/wireshark.ico \
855 image/wireshark.rc.in \
856 image/wiresharkdoc.ico \
857 image/wiresharkinst.ico \
858 image/WiresharkDoc-16.png \
859 image/WiresharkDoc-24.png \
860 image/WiresharkDoc-32.png \
861 image/WiresharkDoc-48.png \
862 image/WiresharkDoc-64.png \
863 image/WiresharkDoc-128.png \
864 image/WiresharkDoc-256.png \
865 image/wiretap.rc.in \
872 image/wsicon128.png \
873 image/wsicon256.png \
874 image/wsicon512.png \
875 image/wsicon1024.png \
876 image/wsicon-ask.png \
877 image/wsicon-ask.svg \
878 image/wsiconcap.svg \
879 image/wsiconcap256.png \
880 image/wsiconcap512.png \
881 image/wsiconcap1024.png \
882 image/wsiconinst.svg \
883 image/wsiconinst256.png \
884 image/wslogo-dev.svg \
887 image/wssplash_dev.png \
891 macosx-support-lib-patches/glib-pkgconfig.patch \
892 macosx-support-lib-patches/gnutls-pkgconfig.patch \
893 macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
908 text2pcap-scanner.l \
912 wireshark-mime-package.xml \
916 wsutil/CMakeLists.txt \
918 wiretap/CMakeLists.txt \
920 ConfigureChecks.cmake \
921 cmake/modules/CMakeInstallDirs.cmake \
922 cmake/modules/COPYING-CMAKE-SCRIPTS \
923 cmake/modules/CheckCLinkerFlag.cmake \
924 cmake/modules/FeatureSummary.cmake \
925 cmake/modules/FindADNS.cmake \
926 cmake/modules/FindCAP.cmake \
927 cmake/modules/FindCARES.cmake \
928 cmake/modules/FindFOP.cmake \
929 cmake/modules/FindGCRYPT.cmake \
930 cmake/modules/FindGEOIP.cmake \
931 cmake/modules/FindGLIB2.cmake \
932 cmake/modules/FindGMODULE2.cmake \
933 cmake/modules/FindGNUTLS.cmake \
934 cmake/modules/FindGTHREAD2.cmake \
935 cmake/modules/FindGTK2.cmake \
936 cmake/modules/FindGTK3.cmake \
937 cmake/modules/FindHtmlViewer.cmake \
938 cmake/modules/FindKERBEROS.cmake \
939 cmake/modules/FindNL.cmake \
940 cmake/modules/FindLEX.cmake \
941 cmake/modules/FindLUA.cmake \
942 cmake/modules/FindLYNX.cmake \
943 cmake/modules/FindM.cmake \
944 cmake/modules/FindPCAP.cmake \
945 cmake/modules/FindPOD.cmake \
946 cmake/modules/FindPORTAUDIO.cmake \
947 cmake/modules/FindPYTHON.cmake \
948 cmake/modules/FindSED.cmake \
949 cmake/modules/FindSH.cmake \
950 cmake/modules/FindSMI.cmake \
951 cmake/modules/FindXMLLINT.cmake \
952 cmake/modules/FindXSLTPROC.cmake \
953 cmake/modules/FindYACC.cmake \
954 cmake/modules/FindYAPP.cmake \
955 cmake/modules/FindZLIB.cmake \
956 cmake/modules/LICENSE.txt \
957 cmake/modules/UseLemon.cmake \
958 cmake/modules/UseMakeDissectorReg.cmake \
959 cmake/modules/UseMakeTapReg.cmake \
960 cmake/modules/readme.txt \
961 ui/win32/Makefile.nmake \
962 ui/win32/console_win32.c \
963 ui/win32/console_win32.h \
964 ui/win32/file_dlg_win32.c \
965 ui/win32/file_dlg_win32.h \
966 ui/win32/print_win32.c \
967 ui/win32/print_win32.h \
968 ui/win32/settings.ini \
977 if HAVE_DUMPCAP_GROUP
978 -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
981 -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
982 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
985 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
986 -chmod +s $(DESTDIR)$(bindir)/dumpcap
991 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
994 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
996 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
999 help/faq.txt: $(srcdir)/help/faq.py
1000 $(AM_V_GEN)(cd help ; \
1003 libtool: $(LIBTOOL_DEPS)
1004 $(SHELL) ./config.status --recheck
1007 # Used by patch-bzip2
1008 # Trim off any extra version information and find the previous micro release.
1009 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1010 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1011 PREV_DIR="wireshark-$(PREV_VERSION)"
1012 PREV_FILE="$(PREV_DIR).tar.bz2"
1013 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1015 patch-bzip2: distdir
1016 if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1017 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1018 tar -xjf $(PREV_FILE) && \
1019 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1020 echo "Created patch-bzip2" ; \
1021 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1023 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1025 $(am__remove_distdir)
1027 # Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
1028 # No, these do not go into $(datarootdir): the desktop won't look for them there.
1029 # Yes, that violate's autofoo's principle of relocatability.
1030 # What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
1031 # to install this stuff...
1032 install_desktop_files:
1033 mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
1034 install -m 644 -T wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
1035 if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1036 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications wireshark.desktop; \
1038 install -m 644 -T wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
1040 for size in 16 24 32 48 64 128 256; \
1042 mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
1043 install -m 644 image/wsicon$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1044 install -m 644 -T image/WiresharkDoc-$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1046 @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
1048 # Used by svr4-package and osx-package
1049 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1050 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
1051 stagedir=$(top_stagedir)/$(PACKAGE).inst
1056 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1057 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1058 rm -rf $(stagedir) ; \
1059 $(MAKE) DESTDIR=$(stagedir) install; \
1060 $(srcdir)/packaging/svr4/mkpkg \
1062 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1066 echo "Error: SVR4 packaging tools not found." ; \
1067 echo "Package build abandoned." ; \
1070 solaris-package: svr4-package
1072 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1074 @if test x$(HAVE_RPM) = xyes ; then \
1075 cd $(rpm_topdir) ; \
1076 mkdir -p BUILD RPMS SOURCES SRPMS; \
1078 ln -sf ../../../$(distdir).tar.bz2 ; \
1080 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" --clean -ba SPECS/wireshark.spec && \
1081 echo "Package successfully built in `pwd`/RPMS." && \
1082 rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1084 echo "Error: RPM executable and/or source directory not found." ; \
1088 debian-package: debian/rules
1089 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1090 dpkg-buildpackage -rfakeroot -us -uc ; \
1092 echo "Error: Debian packaging tools not found." ; \
1093 echo "Package build abandoned." ; \
1096 # XXX - This assumes we're building from the source directory.
1097 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1098 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1099 rm -rf $(stagedir) ; \
1100 $(MAKE) DESTDIR=$(stagedir) install; \
1101 cd $(srcdir)/packaging/macosx ; \
1102 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1104 echo "Error: OS X packaging tools not found." ; \
1105 echo "Package build abandoned." ; \
1108 packaging/macosx/COPYING.txt: COPYING
1109 (cd packaging/macosx ; \
1110 $(MAKE) COPYING.txt ;)
1112 osx-package: osx-app packaging/macosx/COPYING.txt
1113 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1114 cd $(srcdir)/packaging/macosx ; \
1115 chmod +x ./osx-dmg.sh ; \
1119 osx-install: osx-app
1120 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1121 echo "Copying Wireshark.app to /Applications" ; \
1122 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1126 rm -rf $(top_stagedir)
1129 $(MAKE) -C wiretap dumpabi-libwiretap
1130 $(MAKE) -C epan dumpabi-libwireshark
1131 $(MAKE) -C wsutil dumpabi-libwsutil
1134 $(PERL) tools/checkAPIs.pl -build \
1136 $(wireshark_SOURCES)
1137 # $(EXTRA_wireshark_SOURCES)
1139 checkapi: checkapi_local
1140 cd wiretap && $(MAKE) checkapi
1141 cd codecs && $(MAKE) checkapi
1142 cd ui && $(MAKE) checkapi
1143 cd ui/gtk && $(MAKE) checkapi
1144 ## cd epan && $(MAKE) checkapi
1145 ## cd epan/crypt && $(MAKE) checkapi
1146 cd epan/dfilter && $(MAKE) checkapi
1147 ## cd epan/ftypes && $(MAKE) checkapi
1148 ## cd epan/wslua && $(MAKE) checkapi
1149 cd epan/dissectors && $(MAKE) checkapi
1150 cd plugins && $(MAKE) checkapi
1151 cd wsutil && $(MAKE) checkapi