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`
26 INCLUDES= @LUA_INCLUDES@
29 py_dissectors_dir = -DPYTHON_DIR=\"@pythondir@\"
31 py_dissectors_dir = -DPYTHON_DIR=
35 if HAVE_WARNINGS_AS_ERRORS
36 AM_CLEAN_CFLAGS = -Werror
52 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
53 randpkt text2pcap dumpcap reordercap rawshark \
54 wireshark_c wireshark_cxx
57 # Wireshark configuration files are put in $(pkgdatadir).
59 pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
60 smi_modules ipmap.html pdml2html.xsl
63 # Install the Diameter DTD and XML files in the "diameter" subdirectory
66 diameterdir = $(pkgdatadir)/diameter
68 diameter/chargecontrol.xml \
70 diameter/dictionary.dtd \
71 diameter/dictionary.xml \
73 diameter/Ericsson.xml \
74 diameter/etsie2e4.xml \
75 diameter/gqpolicy.xml \
76 diameter/imscxdx.xml \
77 diameter/mobileipv4.xml \
78 diameter/mobileipv6.xml \
81 diameter/sunping.xml \
82 diameter/TGPPGmb.xml \
86 diameter/Vodafone.xml \
87 diameter/AlcatelLucent.xml \
89 diameter/NokiaSiemensNetworks.xml
92 # Install the DTDs directory files in the "dtds" subdirectory
95 dtdsdir = $(pkgdatadir)/dtds
100 dtds/pocsettings.dtd \
107 dtds/xcap-error.dtd \
111 # Install the RADIUS directory files in the "radius" subdirectory
114 radiusdir = $(pkgdatadir)/radius
116 radius/README.radius_dictionary \
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).
346 wiretap/libwiretap.la \
347 epan/libwireshark.la \
348 wsutil/libwsutil.la \
355 @APPLICATIONSERVICES_FRAMEWORKS@ \
356 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
357 @COREFOUNDATION_FRAMEWORKS@ \
368 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
370 # Ideally we could trigger automatic c++ linking here with
371 # nodist_EXTRA_wireshark_SOURCES = dummy.cpp
372 # Unfortunately that check is done by automake and not configure.
373 # We do the following to try to avoid c++ linking for Wireshark at
375 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
376 wireshark_c_CFLAGS = $(wireshark_CFLAGS)
377 wireshark_c_LDFLAGS = $(wireshark_LDFLAGS)
378 wireshark_cxx_CFLAGS = $(wireshark_CFLAGS)
379 wireshark_cxx_LDFLAGS = $(wireshark_LDFLAGS)
381 if HAVE_WIRESHARK_CXX
382 wireshark_LINK = $(wireshark_cxx_LINK)
384 wireshark_LINK = $(wireshark_c_LINK)
388 tshark_LDFLAGS = -Wl,-static -all-static
390 tshark_LDFLAGS = -export-dynamic
393 # Libraries and plugin flags with which to link tshark.
397 wiretap/libwiretap.la \
398 epan/libwireshark.la \
399 wsutil/libwsutil.la \
409 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
410 @COREFOUNDATION_FRAMEWORKS@ \
415 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
418 rawshark_LDFLAGS = -Wl,-static -all-static
420 rawshark_LDFLAGS = -export-dynamic
423 # Libraries and plugin flags with which to link rawshark.
426 wiretap/libwiretap.la \
427 epan/libwireshark.la \
428 wsutil/libwsutil.la \
438 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
439 @COREFOUNDATION_FRAMEWORKS@ \
444 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
446 # Libraries with which to link text2pcap.
448 wsutil/libwsutil.la \
450 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
451 # which is generated (and therefore not always clean).
452 # We could generate text2pcap.o as a library with -Werror but for now it
453 # doesn't seem worth the effort.
454 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
456 # Libraries with which to link mergecap.
458 wiretap/libwiretap.la \
459 wsutil/libwsutil.la \
461 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
463 # Libraries with which to link capinfos.
465 wiretap/libwiretap.la \
466 wsutil/libwsutil.la \
469 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
471 # Libraries with which to link editcap.
473 wiretap/libwiretap.la \
474 wsutil/libwsutil.la \
476 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
478 # Libraries with which to link reordercap.
480 wiretap/libwiretap.la \
481 wsutil/libwsutil.la \
483 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
485 # Libraries with which to link randpkt.
487 wiretap/libwiretap.la \
488 wsutil/libwsutil.la \
495 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
497 # Libraries and plugin flags with which to link dftest.
500 wiretap/libwiretap.la \
501 wsutil/libwsutil.la \
502 epan/libwireshark.la \
516 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
518 # Libraries with which to link dumpcap.
520 wsutil/libwsutil.la \
525 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
526 @COREFOUNDATION_FRAMEWORKS@ \
528 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
529 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
532 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
533 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
536 # Build the version string
538 # FORCE is the portable version of .PHONY
542 $(PERL) $(srcdir)/make-version.pl $(srcdir)
545 # Build shell scripts by doing variable substitution.
546 # Taken from autoconf 2.13.
548 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
553 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
555 ps.c: print.ps $(srcdir)/tools/rdps.py
556 $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
559 $(PERL) $(srcdir)/tools/make-services.pl
566 # We have to remove svnversion.h with "make distclean", as, otherwise,
567 # "make distcheck" fails. We still need to make the tarballs work
568 # even if you do "make distclean" and try to rebuild; that's a work in
571 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
572 # list of files removed by "make distclean"? (It's deliberately
573 # included in that list.)
579 MAINTAINERCLEANFILES = \
608 abi-descriptor.template \
609 aclocal-fallback/glib-2.0.m4 \
610 aclocal-fallback/gtk-2.0.m4 \
616 capture_win_ifnames.c \
617 capture_win_ifnames.h \
620 capture_wpcap_packet.c \
621 capture_wpcap_packet.h \
631 debian/headers-check.c \
632 debian/patches/00list \
633 debian/patches/03_preferences.dpatch \
638 debian/README.source \
639 debian/tshark.files \
640 debian/tshark.manpages \
642 debian/wireshark-common.files \
643 debian/wireshark-common.manpages \
644 debian/wireshark-common.shlibs \
645 debian/wireshark-dev.docs \
646 debian/wireshark-dev.files \
647 debian/wireshark-dev.header-files \
648 debian/wireshark-dev.manpages \
649 debian/wireshark-dev.prerm \
650 debian/wireshark-root.desktop \
651 debian/wireshark.desktop \
652 debian/wireshark.files \
653 debian/wireshark.manpages \
654 debian/wireshark.menu \
670 idl/coseventcomm.idl \
674 idl/parlay/cccs.idl \
676 idl/parlay/common_cc_data.idl \
679 idl/parlay/fw_data.idl \
680 idl/parlay/fw_if.idl \
681 idl/parlay/fw_if_access.idl \
682 idl/parlay/fw_if_app.idl \
683 idl/parlay/fw_if_entop.idl \
684 idl/parlay/fw_if_service.idl \
685 idl/parlay/gcc_data.idl \
686 idl/parlay/gcc_interfaces.idl \
689 idl/parlay/mmccs.idl \
691 idl/parlay/mpcc_data.idl \
692 idl/parlay/mpcc_interfaces.idl \
694 idl/parlay/pam_data.idl \
695 idl/parlay/pam_interfaces.idl \
696 idl/parlay/Parlay.idl \
697 idl/parlay/policy_data.idl \
698 idl/parlay/policy_interfaces.idl \
699 idl/parlay/README.parlay \
700 idl/parlay/termcap.idl \
701 idl/parlay/ui_data.idl \
702 idl/parlay/ui_interfaces.idl \
703 image/capinfos.rc.in \
704 image/capture_comment.svg \
705 image/capture_comment_add.png \
706 image/capture_comment_disabled.png \
707 image/capture_comment_update.png \
708 image/capture_start_24.png \
709 image/capture_start_active_24.png \
710 image/capture_stop_24.png \
711 image/clist_ascend.xpm \
712 image/clist_descend.xpm \
714 image/dfilter_apply_hover.png \
715 image/dfilter_apply_normal.png \
716 image/dfilter_apply_pressed.png \
717 image/dfilter_bookmark_hover.png \
718 image/dfilter_bookmark_normal.png \
719 image/dfilter_bookmark_pressed.png \
720 image/dfilter_dropdown.png \
721 image/dfilter_erase_active.png \
722 image/dfilter_erase_normal.png \
723 image/dfilter_erase_selected.png \
724 image/dfilter_refresh_active.png \
725 image/dfilter_refresh_normal.png \
726 image/display_filter.qrc \
727 image/dumpcap.rc.in \
728 image/editcap.rc.in \
729 image/expert_chat.png \
730 image/expert_error.png \
731 image/expert_indicators.svg \
732 image/expert_none.png \
733 image/expert_note.png \
734 image/expert_warn.png \
735 image/file_dlg_win32.rc \
736 image/hi16-app-wireshark.png \
737 image/hi32-app-wireshark.png \
738 image/hi48-app-wireshark.png \
739 image/icon_layout_1.xpm \
740 image/icon_layout_2.xpm \
741 image/icon_layout_3.xpm \
742 image/icon_layout_4.xpm \
743 image/icon_layout_5.xpm \
744 image/icon_layout_6.xpm \
745 image/libwireshark.rc.in \
746 image/libwsutil.rc.in \
747 image/lo16-app-wireshark.png \
748 image/lo32-app-wireshark.png \
749 image/lo48-app-wireshark.png \
751 image/Makefile.nmake \
752 image/mergecap.rc.in \
754 image/nsis-checked.bmp \
755 image/nsis-unchecked.bmp \
757 image/rawshark.rc.in \
759 image/reordercap.rc.in \
761 image/stock_dialog_error_48.xpm \
762 image/stock_dialog_info_48.xpm \
763 image/stock_dialog_question_48.xpm \
764 image/stock_dialog_stop_48.xpm \
765 image/stock_dialog_warning_48.xpm \
766 image/text2pcap.rc.in \
768 image/toolbar/analyze_24.xpm \
769 image/toolbar/audio_player_24.xpm \
770 image/toolbar/autoscroll_24.xpm \
771 image/toolbar/capture_airpcap_16.xpm \
772 image/toolbar/capture_capture_16.xpm \
773 image/toolbar/capture_details_16.xpm \
774 image/toolbar/capture_details_24.xpm \
775 image/toolbar/capture_ethernet_16.xpm \
776 image/toolbar/capture_filter_24.xpm \
777 image/toolbar/capture_interfaces_24.xpm \
778 image/toolbar/capture_options_24.xpm \
779 image/toolbar/capture_prepare_16.xpm \
780 image/toolbar/capture_restart_24.xpm \
781 image/toolbar/capture_start_24.xpm \
782 image/toolbar/capture_stop_24.xpm \
783 image/toolbar/checkbox_16.xpm \
784 image/toolbar/colorize_24.xpm \
785 image/toolbar/conversations_16.xpm \
786 image/toolbar/decode_24.xpm \
787 image/toolbar/decode_as_16.xpm \
788 image/toolbar/display_filter_24.xpm \
789 image/toolbar/endpoints_16.xpm \
790 image/toolbar/expert_info_16.xpm \
791 image/toolbar/file_set_list_16.xpm \
792 image/toolbar/file_set_next_16.xpm \
793 image/toolbar/file_set_previous_16.xpm \
794 image/toolbar/flow_graph_16.xpm \
795 image/toolbar/graphs_16.xpm \
796 image/toolbar/icon_color_0.xpm \
797 image/toolbar/icon_color_1.xpm \
798 image/toolbar/icon_color_2.xpm \
799 image/toolbar/icon_color_3.xpm \
800 image/toolbar/icon_color_4.xpm \
801 image/toolbar/icon_color_5.xpm \
802 image/toolbar/icon_color_6.xpm \
803 image/toolbar/icon_color_7.xpm \
804 image/toolbar/icon_color_8.xpm \
805 image/toolbar/icon_color_9.xpm \
806 image/toolbar/internet_24.xpm \
807 image/toolbar/modem_16.png \
808 image/toolbar/modem_16.xpm \
809 image/toolbar/network_bluetooth_16.png \
810 image/toolbar/network_usb.svg \
811 image/toolbar/network_usb_16.png \
812 image/toolbar/network_virtual_16.xpm \
813 image/toolbar/network_wired_16.png \
814 image/toolbar/network_wireless_16.png \
815 image/toolbar/pipe_16.png \
816 image/toolbar/remote_arrow_16.png \
817 image/toolbar/remote_globe_16.png \
818 image/toolbar/remote_sat_16.png \
819 image/toolbar/resize_columns_24.xpm \
820 image/toolbar/telephone_16.xpm \
821 image/toolbar/telephony_16.xpm \
822 image/toolbar/time_24.xpm \
823 image/toolbar/toolbar_wireshark_file_16.png \
824 image/toolbar/toolbar_wireshark_file_24.png \
825 image/toolbar/voip_flow_24.xpm \
826 image/toolbar/web_support_24.xpm \
827 image/toolbar/wep_closed_24.xpm \
828 image/toolbar/wiki_24.xpm \
831 image/voip_select.xpm \
832 image/wireshark.exe.manifest.in \
833 image/wireshark.ico \
834 image/wireshark.rc.in \
835 image/wiresharkdoc.ico \
836 image/wiresharkinst.ico \
837 image/WiresharkDoc-128.png \
838 image/WiresharkDoc-16.png \
839 image/WiresharkDoc-24.png \
840 image/WiresharkDoc-256.png \
841 image/WiresharkDoc-32.png \
842 image/WiresharkDoc-48.png \
843 image/WiresharkDoc-64.png \
844 image/wiretap.rc.in \
848 image/wsicon256.png \
855 image/wsicon-ask.png \
856 image/wsicon-ask.svg \
857 image/wsiconcap.svg \
858 image/wsiconcap16.xpm \
859 image/wsiconcap256.png \
860 image/wsiconcap32.xpm \
861 image/wsiconcap48.xpm \
862 image/wsiconinst.svg \
863 image/wsiconinst256.png \
864 image/wslogo-dev.svg \
867 image/wssplash-dev.xpm \
871 macosx-support-lib-patches/glib-pkgconfig.patch \
872 macosx-support-lib-patches/gnutls-pkgconfig.patch \
873 macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
888 text2pcap-scanner.l \
892 wireshark-mime-package.xml \
896 wsutil/CMakeLists.txt \
898 wiretap/CMakeLists.txt \
900 ConfigureChecks.cmake \
901 cmake/modules/CMakeInstallDirs.cmake \
902 cmake/modules/COPYING-CMAKE-SCRIPTS \
903 cmake/modules/CheckCLinkerFlag.cmake \
904 cmake/modules/FeatureSummary.cmake \
905 cmake/modules/FindADNS.cmake \
906 cmake/modules/FindCAP.cmake \
907 cmake/modules/FindCARES.cmake \
908 cmake/modules/FindFOP.cmake \
909 cmake/modules/FindGCRYPT.cmake \
910 cmake/modules/FindGEOIP.cmake \
911 cmake/modules/FindGLIB2.cmake \
912 cmake/modules/FindGMODULE2.cmake \
913 cmake/modules/FindGNUTLS.cmake \
914 cmake/modules/FindGTHREAD2.cmake \
915 cmake/modules/FindGTK2.cmake \
916 cmake/modules/FindGTK3.cmake \
917 cmake/modules/FindHtmlViewer.cmake \
918 cmake/modules/FindKERBEROS.cmake \
919 cmake/modules/FindNL.cmake \
920 cmake/modules/FindLEX.cmake \
921 cmake/modules/FindLUA.cmake \
922 cmake/modules/FindLYNX.cmake \
923 cmake/modules/FindM.cmake \
924 cmake/modules/FindPCAP.cmake \
925 cmake/modules/FindPOD.cmake \
926 cmake/modules/FindPORTAUDIO.cmake \
927 cmake/modules/FindPYTHON.cmake \
928 cmake/modules/FindSED.cmake \
929 cmake/modules/FindSH.cmake \
930 cmake/modules/FindSMI.cmake \
931 cmake/modules/FindXMLLINT.cmake \
932 cmake/modules/FindXSLTPROC.cmake \
933 cmake/modules/FindYACC.cmake \
934 cmake/modules/FindYAPP.cmake \
935 cmake/modules/FindZLIB.cmake \
936 cmake/modules/LICENSE.txt \
937 cmake/modules/UseLemon.cmake \
938 cmake/modules/UseMakeDissectorReg.cmake \
939 cmake/modules/UseMakeTapReg.cmake \
940 cmake/modules/readme.txt \
941 ui/win32/Makefile.nmake \
942 ui/win32/console_win32.c \
943 ui/win32/console_win32.h \
944 ui/win32/file_dlg_win32.c \
945 ui/win32/file_dlg_win32.h \
946 ui/win32/print_win32.c \
947 ui/win32/print_win32.h \
948 ui/win32/settings.ini \
957 if HAVE_DUMPCAP_GROUP
958 -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
961 -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
962 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
965 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
966 -chmod +s $(DESTDIR)$(bindir)/dumpcap
971 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
974 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
976 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
979 help/faq.txt: $(srcdir)/help/faq.py
983 libtool: $(LIBTOOL_DEPS)
984 $(SHELL) ./config.status --recheck
987 # Used by patch-bzip2
988 # Trim off any extra version information and find the previous micro release.
989 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
990 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
991 PREV_DIR="wireshark-$(PREV_VERSION)"
992 PREV_FILE="$(PREV_DIR).tar.bz2"
993 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
996 if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
997 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
998 tar -xjf $(PREV_FILE) && \
999 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1000 echo "Created patch-bzip2" ; \
1001 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1003 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1005 $(am__remove_distdir)
1008 # Used by svr4-package and osx-package
1009 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1010 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
1011 stagedir=$(top_stagedir)/$(PACKAGE).inst
1016 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1017 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1018 rm -rf $(stagedir) ; \
1019 $(MAKE) DESTDIR=$(stagedir) install; \
1020 $(srcdir)/packaging/svr4/mkpkg \
1022 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1026 echo "Error: SVR4 packaging tools not found." ; \
1027 echo "Package build abandoned." ; \
1030 solaris-package: svr4-package
1032 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1034 if test x$(HAVE_RPM) = xyes ; then \
1035 cd $(rpm_topdir) ; \
1036 mkdir -p BUILD RPMS SOURCES ; \
1038 ln -s ../../../$(distdir).tar.bz2 ; \
1039 ln -s ../../../wireshark.desktop ; \
1040 ln -s ../../../image/wsicon64.png wireshark.png ; \
1042 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
1043 echo "Package successfully built in `pwd`/RPMS." ; \
1045 echo "Error: RPM executable and/or source directory not found." ; \
1048 # Install some desktop files (for use with GNOME and/or freedesktop.org-compliant desktops?)
1049 install_desktop_files:
1050 mkdir -p $(datarootdir)/{icons/gnome/{16x16,32x32,48x48,256x256}/mimetypes,mime/packages}
1051 install -m 644 -T wireshark-mime-package.xml $(datarootdir)/mime/packages/wireshark.xml
1052 install -m 644 -T wireshark.desktop $(datarootdir)/applications
1053 mkdir -p $(datarootdir)/icons/hicolor/{16x16,32x32,48x48,64x64,256x256}/apps
1054 install -m 644 image/wsicon16.png $(datarootdir)/icons/hicolor/16x16/apps/wireshark.png
1055 install -m 644 image/wsicon32.png $(datarootdir)/icons/hicolor/32x32/apps/wireshark.png
1056 install -m 644 image/wsicon48.png $(datarootdir)/icons/hicolor/48x48/apps/wireshark.png
1057 install -m 644 image/wsicon64.png $(datarootdir)/icons/hicolor/64x64/apps/wireshark.png
1058 install -m 644 image/wsicon256.png $(datarootdir)/icons/hicolor/256x256/apps/wireshark.png
1059 install -m 644 -T image/WiresharkDoc-16.png $(datarootdir)/icons/gnome/16x16/mimetypes/application-wireshark-doc.png
1060 install -m 644 -T image/WiresharkDoc-32.png $(datarootdir)/icons/gnome/32x32/mimetypes/application-wireshark-doc.png
1061 install -m 644 -T image/WiresharkDoc-48.png $(datarootdir)/icons/gnome/48x48/mimetypes/application-wireshark-doc.png
1062 install -m 644 -T image/WiresharkDoc-256.png $(datarootdir)/icons/gnome/256x256/mimetypes/application-wireshark-doc.png
1063 @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database $(datarootdir)/mime\""
1066 if test x$(HAVE_RPM) = xyes ; then \
1067 cd $(rpm_topdir) ; \
1068 mkdir -p BUILD SRPMS SOURCES ; \
1070 ln -s ../../../$(distdir).tar.bz2 ; \
1071 ln -s ../../../wireshark.desktop ; \
1072 ln -s ../../../image/wsicon64.png wireshark.png ; \
1074 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
1075 echo "Package successfully built in `pwd`/SRPMS." ; \
1077 echo "Error: RPM executable and/or source directory not found." ; \
1080 debian-package: debian/rules
1081 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1082 dpkg-buildpackage -rfakeroot -us -uc ; \
1084 echo "Error: Debian packaging tools not found." ; \
1085 echo "Package build abandoned." ; \
1088 # XXX - This assumes we're building from the source directory.
1089 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1090 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1091 rm -rf $(stagedir) ; \
1092 $(MAKE) DESTDIR=$(stagedir) install; \
1093 cd $(srcdir)/packaging/macosx ; \
1094 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1096 echo "Error: OS X packaging tools not found." ; \
1097 echo "Package build abandoned." ; \
1100 packaging/macosx/COPYING.txt: COPYING
1101 (cd packaging/macosx ; \
1102 $(MAKE) COPYING.txt ;)
1104 osx-package: osx-app packaging/macosx/COPYING.txt
1105 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1106 cd $(srcdir)/packaging/macosx ; \
1107 chmod +x ./osx-dmg.sh ; \
1111 osx-install: osx-app
1112 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1113 echo "Copying Wireshark.app to /Applications" ; \
1114 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1118 rm -rf $(top_stagedir)
1121 $(MAKE) -C wiretap dumpabi
1122 $(MAKE) -C epan dumpabi
1123 $(MAKE) -C wsutil dumpabi
1126 $(PERL) tools/checkAPIs.pl -build \
1128 $(wireshark_SOURCES)
1129 # $(EXTRA_wireshark_SOURCES)
1131 checkapi: checkapi_local
1132 cd wiretap && $(MAKE) checkapi
1133 cd codecs && $(MAKE) checkapi
1134 cd ui && $(MAKE) checkapi
1135 cd ui/gtk && $(MAKE) checkapi
1136 ## cd epan && $(MAKE) checkapi
1137 ## cd epan/crypt && $(MAKE) checkapi
1138 cd epan/dfilter && $(MAKE) checkapi
1139 ## cd epan/ftypes && $(MAKE) checkapi
1140 ## cd epan/wslua && $(MAKE) checkapi
1141 cd epan/dissectors && $(MAKE) checkapi
1142 cd plugins && $(MAKE) checkapi
1143 cd wsutil && $(MAKE) checkapi