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 global profiles in the "profiles" subdirectory
62 profilesdir = $(pkgdatadir)
63 nobase_profiles_DATA = \
64 profiles/Bluetooth/colorfilters \
65 profiles/Classic/colorfilters
68 # Install the Diameter DTD and XML files in the "diameter" subdirectory
71 diameterdir = $(pkgdatadir)/diameter
73 diameter/chargecontrol.xml \
74 diameter/ChinaTelecom.xml \
76 diameter/dictionary.dtd \
77 diameter/dictionary.xml \
79 diameter/Ericsson.xml \
80 diameter/etsie2e4.xml \
81 diameter/gqpolicy.xml \
82 diameter/imscxdx.xml \
83 diameter/mobileipv4.xml \
84 diameter/mobileipv6.xml \
87 diameter/sunping.xml \
88 diameter/TGPPGmb.xml \
92 diameter/Vodafone.xml \
93 diameter/AlcatelLucent.xml \
95 diameter/NokiaSiemensNetworks.xml \
99 # Install the DTDs directory files in the "dtds" subdirectory
102 dtdsdir = $(pkgdatadir)/dtds
107 dtds/pocsettings.dtd \
114 dtds/xcap-error.dtd \
118 # Install the RADIUS directory files in the "radius" subdirectory
121 radiusdir = $(pkgdatadir)/radius
122 -include radius/Custom.make
123 radius_DATA = $(_CUSTOM_radius_dict_) \
124 radius/README.radius_dictionary \
125 radius/custom.includes \
127 radius/dictionary.3com \
128 radius/dictionary.3gpp \
129 radius/dictionary.3gpp2 \
130 radius/dictionary.acc \
131 radius/dictionary.acme \
132 radius/dictionary.airespace \
133 radius/dictionary.alcatel \
134 radius/dictionary.alcatel.esam \
135 radius/dictionary.alcatel.sr \
136 radius/dictionary.alcatel-lucent.xylan \
137 radius/dictionary.alteon \
138 radius/dictionary.altiga \
139 radius/dictionary.alvarion \
140 radius/dictionary.apc \
141 radius/dictionary.aptis \
142 radius/dictionary.aruba \
143 radius/dictionary.ascend \
144 radius/dictionary.asn \
145 radius/dictionary.audiocodes \
146 radius/dictionary.avaya \
147 radius/dictionary.azaire \
148 radius/dictionary.bay \
149 radius/dictionary.bintec \
150 radius/dictionary.bristol \
151 radius/dictionary.cablelabs \
152 radius/dictionary.cabletron \
153 radius/dictionary.chillispot \
154 radius/dictionary.cisco \
155 radius/dictionary.cisco.bbsm \
156 radius/dictionary.cisco.vpn3000 \
157 radius/dictionary.cisco.vpn5000 \
158 radius/dictionary.clavister \
159 radius/dictionary.colubris \
160 radius/dictionary.columbia_university \
161 radius/dictionary.compat \
162 radius/dictionary.cosine \
163 radius/dictionary.dhcp \
164 radius/dictionary.digium \
165 radius/dictionary.eltex \
166 radius/dictionary.epygi \
167 radius/dictionary.ericsson \
168 radius/dictionary.erx \
169 radius/dictionary.extreme \
170 radius/dictionary.fortinet \
171 radius/dictionary.foundry \
172 radius/dictionary.freeradius \
173 radius/dictionary.freeradius.internal \
174 radius/dictionary.freeswitch \
175 radius/dictionary.gandalf \
176 radius/dictionary.garderos \
177 radius/dictionary.gemtek \
178 radius/dictionary.h3c \
179 radius/dictionary.hp \
180 radius/dictionary.huawei \
181 radius/dictionary.iea \
182 radius/dictionary.infonet \
183 radius/dictionary.ipunplugged \
184 radius/dictionary.issanni \
185 radius/dictionary.itk \
186 radius/dictionary.jradius \
187 radius/dictionary.juniper \
188 radius/dictionary.karlnet \
189 radius/dictionary.lancom \
190 radius/dictionary.livingston \
191 radius/dictionary.localweb \
192 radius/dictionary.lucent \
193 radius/dictionary.manzara \
194 radius/dictionary.merit \
195 radius/dictionary.microsoft \
196 radius/dictionary.mikrotik \
197 radius/dictionary.motorola \
198 radius/dictionary.motorola.wimax \
199 radius/dictionary.navini \
200 radius/dictionary.netscreen \
201 radius/dictionary.networkphysics \
202 radius/dictionary.nexans \
203 radius/dictionary.nokia \
204 radius/dictionary.nokia.conflict \
205 radius/dictionary.nomadix \
206 radius/dictionary.nortel \
207 radius/dictionary.ntua \
208 radius/dictionary.openser \
209 radius/dictionary.packeteer \
210 radius/dictionary.patton \
211 radius/dictionary.propel \
212 radius/dictionary.prosoft \
213 radius/dictionary.quiconnect \
214 radius/dictionary.quintum \
215 radius/dictionary.redback \
216 radius/dictionary.redcreek \
217 radius/dictionary.rfc2865 \
218 radius/dictionary.rfc2866 \
219 radius/dictionary.rfc2867 \
220 radius/dictionary.rfc2868 \
221 radius/dictionary.rfc2869 \
222 radius/dictionary.rfc3162 \
223 radius/dictionary.rfc3576 \
224 radius/dictionary.rfc3580 \
225 radius/dictionary.rfc4072 \
226 radius/dictionary.rfc4372 \
227 radius/dictionary.rfc4603 \
228 radius/dictionary.rfc4675 \
229 radius/dictionary.rfc4679 \
230 radius/dictionary.rfc4818 \
231 radius/dictionary.rfc4849 \
232 radius/dictionary.rfc5090 \
233 radius/dictionary.rfc5176 \
234 radius/dictionary.rfc5447 \
235 radius/dictionary.rfc5580 \
236 radius/dictionary.rfc5607 \
237 radius/dictionary.rfc5904 \
238 radius/dictionary.rfc6519 \
239 radius/dictionary.rfc6572 \
240 radius/dictionary.riverstone \
241 radius/dictionary.roaringpenguin \
242 radius/dictionary.shasta \
243 radius/dictionary.shiva \
244 radius/dictionary.slipstream \
245 radius/dictionary.sofaware \
246 radius/dictionary.sonicwall \
247 radius/dictionary.springtide \
248 radius/dictionary.starent \
249 radius/dictionary.t_systems_nova \
250 radius/dictionary.telebit \
251 radius/dictionary.telkom \
252 radius/dictionary.trapeze \
253 radius/dictionary.tropos \
254 radius/dictionary.ukerna \
255 radius/dictionary.unix \
256 radius/dictionary.usr \
257 radius/dictionary.utstarcom \
258 radius/dictionary.valemount \
259 radius/dictionary.versanet \
260 radius/dictionary.vqp \
261 radius/dictionary.walabi \
262 radius/dictionary.waverider \
263 radius/dictionary.wichorus \
264 radius/dictionary.wimax \
265 radius/dictionary.wimax.wichorus \
266 radius/dictionary.wispr \
267 radius/dictionary.xedia \
268 radius/dictionary.zyxel
271 # Install the tpncp directory files in the "tpncp" subdirectory
274 tpncpdir = $(pkgdatadir)/tpncp
279 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
282 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
284 wimaxasncp/dictionary.xml \
285 wimaxasncp/dictionary.dtd
288 capture-pcap-util-unix.c
291 -include plugins/Custom.make
292 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
293 -dlopen plugins/asn1/asn1.la \
294 -dlopen plugins/docsis/docsis.la \
295 -dlopen plugins/ethercat/ethercat.la \
296 -dlopen plugins/gryphon/gryphon.la \
297 -dlopen plugins/irda/irda.la \
298 -dlopen plugins/m2m/m2m.la \
299 -dlopen plugins/mate/mate.la \
300 -dlopen plugins/opcua/opcua.la \
301 -dlopen plugins/profinet/profinet.la \
302 -dlopen plugins/stats_tree/stats_tree.la \
303 -dlopen plugins/unistim/unistim.la \
304 -dlopen plugins/wimax/wimax.la \
305 -dlopen plugins/wimaxmacphy/wimaxmacphy.la
307 WTAP_PLUGIN_SOURCES = \
315 WTAP_PLUGIN_SOURCES =
319 include Makefile.common
322 wireshark_LDFLAGS = -Wl,-static -all-static
324 wireshark_LDFLAGS = -export-dynamic
327 # Libraries and plugin flags with which to link wireshark.
329 # Note that Wireshark, when built with a version of GTK+ that runs
330 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
331 # as those should also be included in @GTK_LIBS@ (as those are also
332 # needed for X applications, and GTK+ applications are X applications
333 # if the version of GTK+ they're built with runs atop X11).
335 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
336 # the necessary GLib libraries are included in @GTK_LIBS@. To quote
337 # Gentoo bug 423743 at
339 # https://bugs.gentoo.org/show_bug.cgi?id=423743
341 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
342 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
343 # It is not actually a superset: gmodule is included in GLIB_LIBS but
344 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
346 # although it's also possible that -lgmodule is in GTK_LIBS but not
347 # GLIB_LIBS (that's the case on my machine right now, for example).
350 wireshark_ui_ldadd = ui/qt/libqtui.a
352 wireshark_ui_ldadd = ui/gtk/libgtkui.a
356 $(wireshark_ui_ldadd) \
360 wiretap/libwiretap.la \
361 epan/libwireshark.la \
362 wsutil/libwsutil.la \
369 @APPLICATIONSERVICES_FRAMEWORKS@ \
370 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
371 @COREFOUNDATION_FRAMEWORKS@ \
382 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
384 # Ideally we could trigger automatic c++ linking here with
385 # nodist_EXTRA_wireshark_SOURCES = dummy.cpp
386 # Unfortunately that check is done by automake and not configure.
387 # We do the following to try to avoid using c++ to link Wireshark at
389 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
390 wireshark_cxx_SOURCES =
392 if HAVE_WIRESHARK_CXX
393 wireshark_LINK = $(CXXLINK)
395 wireshark_LINK = $(LINK)
399 tshark_LDFLAGS = -Wl,-static -all-static
401 tshark_LDFLAGS = -export-dynamic
404 # Libraries and plugin flags with which to link tshark.
408 wiretap/libwiretap.la \
409 epan/libwireshark.la \
410 wsutil/libwsutil.la \
420 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
421 @COREFOUNDATION_FRAMEWORKS@ \
426 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
429 rawshark_LDFLAGS = -Wl,-static -all-static
431 rawshark_LDFLAGS = -export-dynamic
434 # Libraries and plugin flags with which to link rawshark.
437 wiretap/libwiretap.la \
438 epan/libwireshark.la \
439 wsutil/libwsutil.la \
449 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
450 @COREFOUNDATION_FRAMEWORKS@ \
455 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
457 # Libraries with which to link text2pcap.
459 wsutil/libwsutil.la \
461 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
462 # which is generated (and therefore not always clean).
463 # We could generate text2pcap.o as a library with -Werror but for now it
464 # doesn't seem worth the effort.
465 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
467 # Libraries with which to link mergecap.
469 wiretap/libwiretap.la \
470 wsutil/libwsutil.la \
472 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
474 # Libraries with which to link capinfos.
476 wiretap/libwiretap.la \
477 wsutil/libwsutil.la \
480 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
482 # Libraries with which to link editcap.
484 wiretap/libwiretap.la \
485 wsutil/libwsutil.la \
487 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
489 # Libraries with which to link reordercap.
491 wiretap/libwiretap.la \
492 wsutil/libwsutil.la \
494 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
496 # Libraries with which to link randpkt.
498 wiretap/libwiretap.la \
499 wsutil/libwsutil.la \
506 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
508 # Libraries and plugin flags with which to link dftest.
511 wiretap/libwiretap.la \
512 wsutil/libwsutil.la \
513 epan/libwireshark.la \
527 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
529 # Libraries with which to link dumpcap.
531 wsutil/libwsutil.la \
536 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
537 @COREFOUNDATION_FRAMEWORKS@ \
539 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
540 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
543 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
544 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
548 # Build the version string
550 # FORCE is the portable version of .PHONY
553 AM_V_PERL = $(am__v_PERL_@AM_V@)
554 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
555 am__v_PERL_0 = @echo " PERL " $@;
559 $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
562 # Build shell scripts by doing variable substitution.
563 # Taken from autoconf 2.13.
565 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
570 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
572 ps.c: print.ps $(srcdir)/tools/rdps.py
573 $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
576 $(PERL) $(srcdir)/tools/make-services.pl
584 # We have to remove svnversion.h with "make distclean", as, otherwise,
585 # "make distcheck" fails. We still need to make the tarballs work
586 # even if you do "make distclean" and try to rebuild; that's a work in
589 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
590 # list of files removed by "make distclean"? (It's deliberately
591 # included in that list.)
597 MAINTAINERCLEANFILES = \
626 abi-descriptor.template \
627 aclocal-fallback/libsmi.m4 \
628 aclocal-fallback/libgcrypt.m4 \
629 aclocal-fallback/glib-2.0.m4 \
630 aclocal-fallback/gtk-2.0.m4 \
631 aclocal-fallback/gtk-3.0.m4 \
632 aclocal-fallback/qt.m4 \
638 capture_win_ifnames.c \
639 capture_win_ifnames.h \
642 capture_wpcap_packet.c \
643 capture_wpcap_packet.h \
653 debian/headers-check.c \
654 debian/patches/00list \
655 debian/patches/03_preferences.dpatch \
660 debian/README.source \
661 debian/tshark.files \
662 debian/tshark.manpages \
664 debian/wireshark-common.files \
665 debian/wireshark-common.manpages \
666 debian/wireshark-common.shlibs \
667 debian/wireshark-dev.docs \
668 debian/wireshark-dev.files \
669 debian/wireshark-dev.header-files \
670 debian/wireshark-dev.manpages \
671 debian/wireshark-dev.prerm \
672 debian/wireshark-root.desktop \
673 debian/wireshark.desktop \
674 debian/wireshark.files \
675 debian/wireshark.manpages \
676 debian/wireshark.menu \
693 idl/coseventcomm.idl \
697 idl/parlay/cccs.idl \
699 idl/parlay/common_cc_data.idl \
702 idl/parlay/fw_data.idl \
703 idl/parlay/fw_if.idl \
704 idl/parlay/fw_if_access.idl \
705 idl/parlay/fw_if_app.idl \
706 idl/parlay/fw_if_entop.idl \
707 idl/parlay/fw_if_service.idl \
708 idl/parlay/gcc_data.idl \
709 idl/parlay/gcc_interfaces.idl \
712 idl/parlay/mmccs.idl \
714 idl/parlay/mpcc_data.idl \
715 idl/parlay/mpcc_interfaces.idl \
717 idl/parlay/pam_data.idl \
718 idl/parlay/pam_interfaces.idl \
719 idl/parlay/Parlay.idl \
720 idl/parlay/policy_data.idl \
721 idl/parlay/policy_interfaces.idl \
722 idl/parlay/README.parlay \
723 idl/parlay/termcap.idl \
724 idl/parlay/ui_data.idl \
725 idl/parlay/ui_interfaces.idl \
726 image/capinfos.rc.in \
727 image/capture_comment.svg \
728 image/capture_comment_add.png \
729 image/capture_comment_disabled.png \
730 image/capture_comment_update.png \
731 image/capture_start_24.png \
732 image/capture_start_active_24.png \
733 image/capture_stop_24.png \
734 image/clist_ascend.xpm \
735 image/clist_descend.xpm \
737 image/dfilter_apply_disabled.png \
738 image/dfilter_apply_hover.png \
739 image/dfilter_apply_normal.png \
740 image/dfilter_apply_pressed.png \
741 image/dfilter_bookmark_disabled.png \
742 image/dfilter_bookmark_hover.png \
743 image/dfilter_bookmark_normal.png \
744 image/dfilter_bookmark_pressed.png \
745 image/dfilter_dropdown.png \
746 image/dfilter_erase_active.png \
747 image/dfilter_erase_normal.png \
748 image/dfilter_erase_selected.png \
749 image/dfilter_refresh_active.png \
750 image/dfilter_refresh_normal.png \
751 image/display_filter.qrc \
752 image/dumpcap.rc.in \
753 image/editcap.rc.in \
754 image/expert_chat.png \
755 image/expert_error.png \
756 image/expert_indicators.svg \
757 image/expert_none.png \
758 image/expert_note.png \
759 image/expert_warn.png \
760 image/file_dlg_win32.rc \
761 image/hi16-app-wireshark.png \
762 image/hi32-app-wireshark.png \
763 image/hi48-app-wireshark.png \
770 image/libwireshark.rc.in \
771 image/libwsutil.rc.in \
772 image/lo16-app-wireshark.png \
773 image/lo32-app-wireshark.png \
774 image/lo48-app-wireshark.png \
775 image/Makefile.nmake \
776 image/mergecap.rc.in \
778 image/nsis-checked.bmp \
779 image/nsis-unchecked.bmp \
781 image/rawshark.rc.in \
783 image/reordercap.rc.in \
785 image/stock_dialog_error_48.xpm \
786 image/stock_dialog_info_48.xpm \
787 image/stock_dialog_question_48.xpm \
788 image/stock_dialog_stop_48.xpm \
789 image/stock_dialog_warning_48.xpm \
790 image/text2pcap.rc.in \
792 image/toolbar/analyze_24.xpm \
793 image/toolbar/audio_player_24.xpm \
794 image/toolbar/autoscroll_24.xpm \
795 image/toolbar/capture_airpcap_16.xpm \
796 image/toolbar/capture_capture_16.xpm \
797 image/toolbar/capture_details_16.xpm \
798 image/toolbar/capture_details_24.xpm \
799 image/toolbar/capture_ethernet_16.xpm \
800 image/toolbar/capture_filter_24.xpm \
801 image/toolbar/capture_interfaces_16.png \
802 image/toolbar/capture_interfaces_24.png \
803 image/toolbar/capture_options_16.png \
804 image/toolbar/capture_options_24.png \
805 image/toolbar/capture_prepare_16.xpm \
806 image/toolbar/capture_restart_16.png \
807 image/toolbar/capture_restart_24.png \
808 image/toolbar/capture_start_16.png \
809 image/toolbar/capture_start_24.png \
810 image/toolbar/capture_stop_16.png \
811 image/toolbar/capture_stop_24.png \
812 image/toolbar/checkbox_16.xpm \
813 image/toolbar/colorize_24.xpm \
814 image/toolbar/conversations_16.xpm \
815 image/toolbar/decode_24.xpm \
816 image/toolbar/decode_as_16.xpm \
817 image/toolbar/display_filter_24.xpm \
818 image/toolbar/endpoints_16.xpm \
819 image/toolbar/expert_info_16.xpm \
820 image/toolbar/file_set_list_16.xpm \
821 image/toolbar/file_set_next_16.xpm \
822 image/toolbar/file_set_previous_16.xpm \
823 image/toolbar/flow_graph_16.xpm \
824 image/toolbar/gnome_emblem_web_16.png \
825 image/toolbar/gnome_emblem_web_24.png \
826 image/toolbar/graphs_16.xpm \
827 image/toolbar/icon_color_0.xpm \
828 image/toolbar/icon_color_1.xpm \
829 image/toolbar/icon_color_2.xpm \
830 image/toolbar/icon_color_3.xpm \
831 image/toolbar/icon_color_4.xpm \
832 image/toolbar/icon_color_5.xpm \
833 image/toolbar/icon_color_6.xpm \
834 image/toolbar/icon_color_7.xpm \
835 image/toolbar/icon_color_8.xpm \
836 image/toolbar/icon_color_9.xpm \
837 image/toolbar/internet_24.xpm \
838 image/toolbar/modem_16.png \
839 image/toolbar/modem_16.xpm \
840 image/toolbar/network_bluetooth_16.png \
841 image/toolbar/network_usb.svg \
842 image/toolbar/network_usb_16.png \
843 image/toolbar/network_virtual_16.xpm \
844 image/toolbar/network_wired_16.png \
845 image/toolbar/network_wireless_16.png \
846 image/toolbar/pipe_16.png \
847 image/toolbar/remote_arrow_16.png \
848 image/toolbar/remote_globe_16.png \
849 image/toolbar/remote_sat_16.png \
850 image/toolbar/resize_columns_24.xpm \
851 image/toolbar/telephone_16.xpm \
852 image/toolbar/telephony_16.xpm \
853 image/toolbar/time_24.xpm \
854 image/toolbar/toolbar_wireshark_file_16.png \
855 image/toolbar/toolbar_wireshark_file_24.png \
856 image/toolbar/voip_flow_24.xpm \
857 image/toolbar/web_support_24.xpm \
858 image/toolbar/wep_closed_24.xpm \
861 image/voip_select.xpm \
862 image/wireshark.exe.manifest.in \
863 image/wireshark.ico \
864 image/wireshark.rc.in \
865 image/wiresharkdoc.ico \
866 image/wiresharkinst.ico \
867 image/WiresharkDoc-16.png \
868 image/WiresharkDoc-24.png \
869 image/WiresharkDoc-32.png \
870 image/WiresharkDoc-48.png \
871 image/WiresharkDoc-64.png \
872 image/WiresharkDoc-128.png \
873 image/WiresharkDoc-256.png \
874 image/wiretap.rc.in \
881 image/wsicon128.png \
882 image/wsicon256.png \
883 image/wsicon512.png \
884 image/wsicon1024.png \
885 image/wsicon-ask.png \
886 image/wsicon-ask.svg \
887 image/wsiconcap.svg \
888 image/wsiconcap256.png \
889 image/wsiconcap512.png \
890 image/wsiconcap1024.png \
891 image/wsiconinst.svg \
892 image/wsiconinst256.png \
893 image/wslogo-dev.svg \
896 image/wssplash_dev.png \
900 macosx-support-lib-patches/glib-pkgconfig.patch \
901 macosx-support-lib-patches/gnutls-pkgconfig.patch \
902 macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
911 $(nobase_profiles_DATA) \
918 text2pcap-scanner.l \
922 wireshark-mime-package.xml \
926 wsutil/CMakeLists.txt \
928 wiretap/CMakeLists.txt \
930 ConfigureChecks.cmake \
931 cmake/modules/CMakeInstallDirs.cmake \
932 cmake/modules/COPYING-CMAKE-SCRIPTS \
933 cmake/modules/CheckCLinkerFlag.cmake \
934 cmake/modules/FeatureSummary.cmake \
935 cmake/modules/FindADNS.cmake \
936 cmake/modules/FindCAP.cmake \
937 cmake/modules/FindCARES.cmake \
938 cmake/modules/FindFOP.cmake \
939 cmake/modules/FindGCRYPT.cmake \
940 cmake/modules/FindGEOIP.cmake \
941 cmake/modules/FindGLIB2.cmake \
942 cmake/modules/FindGMODULE2.cmake \
943 cmake/modules/FindGNUTLS.cmake \
944 cmake/modules/FindGTHREAD2.cmake \
945 cmake/modules/FindGTK2.cmake \
946 cmake/modules/FindGTK3.cmake \
947 cmake/modules/FindHtmlViewer.cmake \
948 cmake/modules/FindKERBEROS.cmake \
949 cmake/modules/FindNL.cmake \
950 cmake/modules/FindLEX.cmake \
951 cmake/modules/FindLUA.cmake \
952 cmake/modules/FindLYNX.cmake \
953 cmake/modules/FindM.cmake \
954 cmake/modules/FindPCAP.cmake \
955 cmake/modules/FindPOD.cmake \
956 cmake/modules/FindPORTAUDIO.cmake \
957 cmake/modules/FindSED.cmake \
958 cmake/modules/FindSH.cmake \
959 cmake/modules/FindSMI.cmake \
960 cmake/modules/FindXMLLINT.cmake \
961 cmake/modules/FindXSLTPROC.cmake \
962 cmake/modules/FindYACC.cmake \
963 cmake/modules/FindYAPP.cmake \
964 cmake/modules/FindZLIB.cmake \
965 cmake/modules/LICENSE.txt \
966 cmake/modules/UseLemon.cmake \
967 cmake/modules/UseMakeDissectorReg.cmake \
968 cmake/modules/UseMakeTapReg.cmake \
969 cmake/modules/readme.txt \
970 ui/win32/Makefile.nmake \
971 ui/win32/console_win32.c \
972 ui/win32/console_win32.h \
973 ui/win32/file_dlg_win32.c \
974 ui/win32/file_dlg_win32.h \
975 ui/win32/print_win32.c \
976 ui/win32/print_win32.h \
977 ui/win32/settings.ini \
986 if HAVE_DUMPCAP_GROUP
987 -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
990 -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
991 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
994 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
995 -chmod +s $(DESTDIR)$(bindir)/dumpcap
1000 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
1003 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1005 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1008 help/faq.txt: $(srcdir)/help/faq.py
1009 $(AM_V_GEN)(cd help ; \
1012 libtool: $(LIBTOOL_DEPS)
1013 $(SHELL) ./config.status --recheck
1016 # Used by patch-bzip2
1017 # Trim off any extra version information and find the previous micro release.
1018 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1019 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1020 PREV_DIR="wireshark-$(PREV_VERSION)"
1021 PREV_FILE="$(PREV_DIR).tar.bz2"
1022 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1024 patch-bzip2: distdir
1025 if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1026 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1027 tar -xjf $(PREV_FILE) && \
1028 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1029 echo "Created patch-bzip2" ; \
1030 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1032 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1034 $(am__remove_distdir)
1036 # Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
1037 # No, these do not go into $(datarootdir): the desktop won't look for them there.
1038 # Yes, that violate's autofoo's principle of relocatability.
1039 # What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
1040 # to install this stuff...
1041 install_desktop_files:
1042 mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
1043 install -m 644 -T wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
1044 if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1045 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications wireshark.desktop; \
1047 install -m 644 -T wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
1049 for size in 16 24 32 48 64 128 256; \
1051 mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
1052 install -m 644 image/wsicon$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1053 install -m 644 -T image/WiresharkDoc-$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1055 @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
1057 # Used by svr4-package and osx-package
1058 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1059 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
1060 stagedir=$(top_stagedir)/$(PACKAGE).inst
1065 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1066 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1067 rm -rf $(stagedir) ; \
1068 $(MAKE) DESTDIR=$(stagedir) install; \
1069 $(srcdir)/packaging/svr4/mkpkg \
1071 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1075 echo "Error: SVR4 packaging tools not found." ; \
1076 echo "Package build abandoned." ; \
1079 solaris-package: svr4-package
1081 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1083 @if test x$(HAVE_RPM) = xyes ; then \
1084 cd $(rpm_topdir) ; \
1085 mkdir -p BUILD RPMS SOURCES SRPMS; \
1087 ln -sf ../../../$(distdir).tar.bz2 ; \
1089 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" --clean -ba SPECS/wireshark.spec && \
1090 echo "Package successfully built in `pwd`/RPMS." && \
1091 rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1093 echo "Error: RPM executable and/or source directory not found." ; \
1097 debian-package: debian/rules
1098 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1099 dpkg-buildpackage -rfakeroot -us -uc ; \
1101 echo "Error: Debian packaging tools not found." ; \
1102 echo "Package build abandoned." ; \
1105 # XXX - This assumes we're building from the source directory.
1106 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1107 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1108 rm -rf $(stagedir) ; \
1109 $(MAKE) DESTDIR=$(stagedir) install; \
1110 cd $(srcdir)/packaging/macosx ; \
1111 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1113 echo "Error: OS X packaging tools not found." ; \
1114 echo "Package build abandoned." ; \
1117 packaging/macosx/COPYING.txt: COPYING
1118 (cd packaging/macosx ; \
1119 $(MAKE) COPYING.txt ;)
1121 osx-package: osx-app packaging/macosx/COPYING.txt
1122 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1123 cd $(srcdir)/packaging/macosx ; \
1124 chmod +x ./osx-dmg.sh ; \
1128 osx-install: osx-app
1129 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1130 echo "Copying Wireshark.app to /Applications" ; \
1131 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1135 rm -rf $(top_stagedir)
1138 $(MAKE) -C wiretap dumpabi-libwiretap
1139 $(MAKE) -C epan dumpabi-libwireshark
1140 $(MAKE) -C wsutil dumpabi-libwsutil
1143 $(PERL) tools/checkAPIs.pl -build \
1145 $(wireshark_SOURCES)
1146 # $(EXTRA_wireshark_SOURCES)
1148 checkapi: checkapi_local
1149 cd wiretap && $(MAKE) checkapi
1150 cd codecs && $(MAKE) checkapi
1151 cd ui && $(MAKE) checkapi
1152 cd ui/gtk && $(MAKE) checkapi
1153 ## cd epan && $(MAKE) checkapi
1154 ## cd epan/crypt && $(MAKE) checkapi
1155 cd epan/dfilter && $(MAKE) checkapi
1156 ## cd epan/ftypes && $(MAKE) checkapi
1157 ## cd epan/wslua && $(MAKE) checkapi
1158 cd epan/dissectors && $(MAKE) checkapi
1159 cd plugins && $(MAKE) checkapi
1160 cd wsutil && $(MAKE) checkapi
1162 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1165 cd epan && $(MAKE) $@
1167 (umask 022 ; $(DOXYGEN) doxygen.cfg)
1173 zip -rq wsar_html.zip wsar_html