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 wireshark_cxx
56 # Wireshark configuration files are put in $(pkgdatadir).
58 pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
59 smi_modules ipmap.html pdml2html.xsl
62 # Install the Diameter DTD and XML files in the "diameter" subdirectory
65 diameterdir = $(pkgdatadir)/diameter
67 diameter/chargecontrol.xml \
69 diameter/dictionary.dtd \
70 diameter/dictionary.xml \
72 diameter/Ericsson.xml \
73 diameter/etsie2e4.xml \
74 diameter/gqpolicy.xml \
75 diameter/imscxdx.xml \
76 diameter/mobileipv4.xml \
77 diameter/mobileipv6.xml \
80 diameter/sunping.xml \
81 diameter/TGPPGmb.xml \
85 diameter/Vodafone.xml \
86 diameter/AlcatelLucent.xml \
88 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
115 -include radius/Custom.make
116 radius_DATA = $(_CUSTOM_radius_dict_) \
117 radius/README.radius_dictionary \
118 radius/custom.includes \
120 radius/dictionary.3com \
121 radius/dictionary.3gpp \
122 radius/dictionary.3gpp2 \
123 radius/dictionary.acc \
124 radius/dictionary.acme \
125 radius/dictionary.airespace \
126 radius/dictionary.alcatel \
127 radius/dictionary.alcatel.esam \
128 radius/dictionary.alcatel.sr \
129 radius/dictionary.alcatel-lucent.xylan \
130 radius/dictionary.alteon \
131 radius/dictionary.altiga \
132 radius/dictionary.alvarion \
133 radius/dictionary.apc \
134 radius/dictionary.aptis \
135 radius/dictionary.aruba \
136 radius/dictionary.ascend \
137 radius/dictionary.asn \
138 radius/dictionary.audiocodes \
139 radius/dictionary.avaya \
140 radius/dictionary.azaire \
141 radius/dictionary.bay \
142 radius/dictionary.bintec \
143 radius/dictionary.bristol \
144 radius/dictionary.cablelabs \
145 radius/dictionary.cabletron \
146 radius/dictionary.chillispot \
147 radius/dictionary.cisco \
148 radius/dictionary.cisco.bbsm \
149 radius/dictionary.cisco.vpn3000 \
150 radius/dictionary.cisco.vpn5000 \
151 radius/dictionary.clavister \
152 radius/dictionary.colubris \
153 radius/dictionary.columbia_university \
154 radius/dictionary.compat \
155 radius/dictionary.cosine \
156 radius/dictionary.dhcp \
157 radius/dictionary.digium \
158 radius/dictionary.eltex \
159 radius/dictionary.epygi \
160 radius/dictionary.ericsson \
161 radius/dictionary.erx \
162 radius/dictionary.extreme \
163 radius/dictionary.fortinet \
164 radius/dictionary.foundry \
165 radius/dictionary.freeradius \
166 radius/dictionary.freeradius.internal \
167 radius/dictionary.freeswitch \
168 radius/dictionary.gandalf \
169 radius/dictionary.garderos \
170 radius/dictionary.gemtek \
171 radius/dictionary.h3c \
172 radius/dictionary.hp \
173 radius/dictionary.huawei \
174 radius/dictionary.iea \
175 radius/dictionary.infonet \
176 radius/dictionary.ipunplugged \
177 radius/dictionary.issanni \
178 radius/dictionary.itk \
179 radius/dictionary.jradius \
180 radius/dictionary.juniper \
181 radius/dictionary.karlnet \
182 radius/dictionary.lancom \
183 radius/dictionary.livingston \
184 radius/dictionary.localweb \
185 radius/dictionary.lucent \
186 radius/dictionary.manzara \
187 radius/dictionary.merit \
188 radius/dictionary.microsoft \
189 radius/dictionary.mikrotik \
190 radius/dictionary.motorola \
191 radius/dictionary.motorola.wimax \
192 radius/dictionary.navini \
193 radius/dictionary.netscreen \
194 radius/dictionary.networkphysics \
195 radius/dictionary.nexans \
196 radius/dictionary.nokia \
197 radius/dictionary.nokia.conflict \
198 radius/dictionary.nomadix \
199 radius/dictionary.nortel \
200 radius/dictionary.ntua \
201 radius/dictionary.openser \
202 radius/dictionary.packeteer \
203 radius/dictionary.patton \
204 radius/dictionary.propel \
205 radius/dictionary.prosoft \
206 radius/dictionary.quiconnect \
207 radius/dictionary.quintum \
208 radius/dictionary.redback \
209 radius/dictionary.redcreek \
210 radius/dictionary.rfc2865 \
211 radius/dictionary.rfc2866 \
212 radius/dictionary.rfc2867 \
213 radius/dictionary.rfc2868 \
214 radius/dictionary.rfc2869 \
215 radius/dictionary.rfc3162 \
216 radius/dictionary.rfc3576 \
217 radius/dictionary.rfc3580 \
218 radius/dictionary.rfc4072 \
219 radius/dictionary.rfc4372 \
220 radius/dictionary.rfc4603 \
221 radius/dictionary.rfc4675 \
222 radius/dictionary.rfc4679 \
223 radius/dictionary.rfc4818 \
224 radius/dictionary.rfc4849 \
225 radius/dictionary.rfc5090 \
226 radius/dictionary.rfc5176 \
227 radius/dictionary.rfc5447 \
228 radius/dictionary.rfc5580 \
229 radius/dictionary.rfc5607 \
230 radius/dictionary.rfc5904 \
231 radius/dictionary.rfc6519 \
232 radius/dictionary.rfc6572 \
233 radius/dictionary.riverstone \
234 radius/dictionary.roaringpenguin \
235 radius/dictionary.shasta \
236 radius/dictionary.shiva \
237 radius/dictionary.slipstream \
238 radius/dictionary.sofaware \
239 radius/dictionary.sonicwall \
240 radius/dictionary.springtide \
241 radius/dictionary.starent \
242 radius/dictionary.t_systems_nova \
243 radius/dictionary.telebit \
244 radius/dictionary.telkom \
245 radius/dictionary.trapeze \
246 radius/dictionary.tropos \
247 radius/dictionary.ukerna \
248 radius/dictionary.unix \
249 radius/dictionary.usr \
250 radius/dictionary.utstarcom \
251 radius/dictionary.valemount \
252 radius/dictionary.versanet \
253 radius/dictionary.vqp \
254 radius/dictionary.walabi \
255 radius/dictionary.waverider \
256 radius/dictionary.wichorus \
257 radius/dictionary.wimax \
258 radius/dictionary.wimax.wichorus \
259 radius/dictionary.wispr \
260 radius/dictionary.xedia \
261 radius/dictionary.zyxel
264 # Install the tpncp directory files in the "tpncp" subdirectory
267 tpncpdir = $(pkgdatadir)/tpncp
272 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
275 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
277 wimaxasncp/dictionary.xml \
278 wimaxasncp/dictionary.dtd
281 capture-pcap-util-unix.c \
282 capture_unix_ifnames.c
285 -include plugins/Custom.make
286 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
287 -dlopen plugins/asn1/asn1.la \
288 -dlopen plugins/docsis/docsis.la \
289 -dlopen plugins/ethercat/ethercat.la \
290 -dlopen plugins/gryphon/gryphon.la \
291 -dlopen plugins/irda/irda.la \
292 -dlopen plugins/m2m/m2m.la \
293 -dlopen plugins/mate/mate.la \
294 -dlopen plugins/opcua/opcua.la \
295 -dlopen plugins/profinet/profinet.la \
296 -dlopen plugins/stats_tree/stats_tree.la \
297 -dlopen plugins/unistim/unistim.la \
298 -dlopen plugins/wimax/wimax.la \
299 -dlopen plugins/wimaxmacphy/wimaxmacphy.la
301 WTAP_PLUGIN_SOURCES = \
309 WTAP_PLUGIN_SOURCES =
313 include Makefile.common
316 wireshark_LDFLAGS = -Wl,-static -all-static
318 wireshark_LDFLAGS = -export-dynamic
321 # Libraries and plugin flags with which to link wireshark.
323 # Note that Wireshark, when built with a version of GTK+ that runs
324 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
325 # as those should also be included in @GTK_LIBS@ (as those are also
326 # needed for X applications, and GTK+ applications are X applications
327 # if the version of GTK+ they're built with runs atop X11).
329 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
330 # the necessary GLib libraries are included in @GTK_LIBS@. To quote
331 # Gentoo bug 423743 at
333 # https://bugs.gentoo.org/show_bug.cgi?id=423743
335 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
336 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
337 # It is not actually a superset: gmodule is included in GLIB_LIBS but
338 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
340 # although it's also possible that -lgmodule is in GTK_LIBS but not
341 # GLIB_LIBS (that's the case on my machine right now, for example).
344 wireshark_ui_ldadd = ui/qt/libqtui.a
346 wireshark_ui_ldadd = ui/gtk/libgtkui.a
350 $(wireshark_ui_ldadd) \
354 wiretap/libwiretap.la \
355 epan/libwireshark.la \
356 wsutil/libwsutil.la \
363 @APPLICATIONSERVICES_FRAMEWORKS@ \
364 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
365 @COREFOUNDATION_FRAMEWORKS@ \
374 @QtPrintSupport_LIBS@ \
378 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
380 # Ideally we could trigger automatic c++ linking here with
381 # nodist_EXTRA_wireshark_SOURCES = dummy.cpp
382 # Unfortunately that check is done by automake and not configure.
383 # We do the following to try to avoid using c++ to link Wireshark at
385 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
386 wireshark_cxx_SOURCES =
388 if HAVE_WIRESHARK_CXX
389 wireshark_LINK = $(CXXLINK)
391 wireshark_LINK = $(LINK)
395 tshark_LDFLAGS = -Wl,-static -all-static
397 tshark_LDFLAGS = -export-dynamic
400 # Libraries and plugin flags with which to link tshark.
404 wiretap/libwiretap.la \
405 epan/libwireshark.la \
406 wsutil/libwsutil.la \
416 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
417 @COREFOUNDATION_FRAMEWORKS@ \
422 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
425 rawshark_LDFLAGS = -Wl,-static -all-static
427 rawshark_LDFLAGS = -export-dynamic
430 # Libraries and plugin flags with which to link rawshark.
433 wiretap/libwiretap.la \
434 epan/libwireshark.la \
435 wsutil/libwsutil.la \
445 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
446 @COREFOUNDATION_FRAMEWORKS@ \
451 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
453 # Libraries with which to link text2pcap.
455 wsutil/libwsutil.la \
457 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
458 # which is generated (and therefore not always clean).
459 # We could generate text2pcap.o as a library with -Werror but for now it
460 # doesn't seem worth the effort.
461 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
463 # Libraries with which to link mergecap.
465 wiretap/libwiretap.la \
466 wsutil/libwsutil.la \
468 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
470 # Libraries with which to link capinfos.
472 wiretap/libwiretap.la \
473 wsutil/libwsutil.la \
476 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
478 # Libraries with which to link editcap.
480 wiretap/libwiretap.la \
481 wsutil/libwsutil.la \
483 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
485 # Libraries with which to link reordercap.
487 wiretap/libwiretap.la \
488 wsutil/libwsutil.la \
490 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
492 # Libraries with which to link randpkt.
494 wiretap/libwiretap.la \
495 wsutil/libwsutil.la \
502 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
504 # Libraries and plugin flags with which to link dftest.
507 wiretap/libwiretap.la \
508 wsutil/libwsutil.la \
509 epan/libwireshark.la \
523 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
525 # Libraries with which to link dumpcap.
527 wsutil/libwsutil.la \
532 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
533 @COREFOUNDATION_FRAMEWORKS@ \
535 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
536 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
539 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
540 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
543 # Build the version string
545 # FORCE is the portable version of .PHONY
549 $(PERL) $(srcdir)/make-version.pl $(srcdir)
552 # Build shell scripts by doing variable substitution.
553 # Taken from autoconf 2.13.
555 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
560 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
562 ps.c: print.ps $(srcdir)/tools/rdps.py
563 $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
566 $(PERL) $(srcdir)/tools/make-services.pl
573 # We have to remove svnversion.h with "make distclean", as, otherwise,
574 # "make distcheck" fails. We still need to make the tarballs work
575 # even if you do "make distclean" and try to rebuild; that's a work in
578 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
579 # list of files removed by "make distclean"? (It's deliberately
580 # included in that list.)
586 MAINTAINERCLEANFILES = \
615 abi-descriptor.template \
616 aclocal-fallback/glib-2.0.m4 \
617 aclocal-fallback/gtk-2.0.m4 \
623 capture_win_ifnames.c \
624 capture_win_ifnames.h \
627 capture_wpcap_packet.c \
628 capture_wpcap_packet.h \
638 debian/headers-check.c \
639 debian/patches/00list \
640 debian/patches/03_preferences.dpatch \
645 debian/README.source \
646 debian/tshark.files \
647 debian/tshark.manpages \
649 debian/wireshark-common.files \
650 debian/wireshark-common.manpages \
651 debian/wireshark-common.shlibs \
652 debian/wireshark-dev.docs \
653 debian/wireshark-dev.files \
654 debian/wireshark-dev.header-files \
655 debian/wireshark-dev.manpages \
656 debian/wireshark-dev.prerm \
657 debian/wireshark-root.desktop \
658 debian/wireshark.desktop \
659 debian/wireshark.files \
660 debian/wireshark.manpages \
661 debian/wireshark.menu \
677 idl/coseventcomm.idl \
681 idl/parlay/cccs.idl \
683 idl/parlay/common_cc_data.idl \
686 idl/parlay/fw_data.idl \
687 idl/parlay/fw_if.idl \
688 idl/parlay/fw_if_access.idl \
689 idl/parlay/fw_if_app.idl \
690 idl/parlay/fw_if_entop.idl \
691 idl/parlay/fw_if_service.idl \
692 idl/parlay/gcc_data.idl \
693 idl/parlay/gcc_interfaces.idl \
696 idl/parlay/mmccs.idl \
698 idl/parlay/mpcc_data.idl \
699 idl/parlay/mpcc_interfaces.idl \
701 idl/parlay/pam_data.idl \
702 idl/parlay/pam_interfaces.idl \
703 idl/parlay/Parlay.idl \
704 idl/parlay/policy_data.idl \
705 idl/parlay/policy_interfaces.idl \
706 idl/parlay/README.parlay \
707 idl/parlay/termcap.idl \
708 idl/parlay/ui_data.idl \
709 idl/parlay/ui_interfaces.idl \
710 image/capinfos.rc.in \
711 image/capture_comment.svg \
712 image/capture_comment_add.png \
713 image/capture_comment_disabled.png \
714 image/capture_comment_update.png \
715 image/capture_start_24.png \
716 image/capture_start_active_24.png \
717 image/capture_stop_24.png \
718 image/clist_ascend.xpm \
719 image/clist_descend.xpm \
721 image/dfilter_apply_hover.png \
722 image/dfilter_apply_normal.png \
723 image/dfilter_apply_pressed.png \
724 image/dfilter_bookmark_hover.png \
725 image/dfilter_bookmark_normal.png \
726 image/dfilter_bookmark_pressed.png \
727 image/dfilter_dropdown.png \
728 image/dfilter_erase_active.png \
729 image/dfilter_erase_normal.png \
730 image/dfilter_erase_selected.png \
731 image/dfilter_refresh_active.png \
732 image/dfilter_refresh_normal.png \
733 image/display_filter.qrc \
734 image/dumpcap.rc.in \
735 image/editcap.rc.in \
736 image/expert_chat.png \
737 image/expert_error.png \
738 image/expert_indicators.svg \
739 image/expert_none.png \
740 image/expert_note.png \
741 image/expert_warn.png \
742 image/file_dlg_win32.rc \
743 image/hi16-app-wireshark.png \
744 image/hi32-app-wireshark.png \
745 image/hi48-app-wireshark.png \
752 image/libwireshark.rc.in \
753 image/libwsutil.rc.in \
754 image/lo16-app-wireshark.png \
755 image/lo32-app-wireshark.png \
756 image/lo48-app-wireshark.png \
758 image/Makefile.nmake \
759 image/mergecap.rc.in \
761 image/nsis-checked.bmp \
762 image/nsis-unchecked.bmp \
764 image/rawshark.rc.in \
766 image/reordercap.rc.in \
768 image/stock_dialog_error_48.xpm \
769 image/stock_dialog_info_48.xpm \
770 image/stock_dialog_question_48.xpm \
771 image/stock_dialog_stop_48.xpm \
772 image/stock_dialog_warning_48.xpm \
773 image/text2pcap.rc.in \
775 image/toolbar/analyze_24.xpm \
776 image/toolbar/audio_player_24.xpm \
777 image/toolbar/autoscroll_24.xpm \
778 image/toolbar/capture_airpcap_16.xpm \
779 image/toolbar/capture_capture_16.xpm \
780 image/toolbar/capture_details_16.xpm \
781 image/toolbar/capture_details_24.xpm \
782 image/toolbar/capture_ethernet_16.xpm \
783 image/toolbar/capture_filter_24.xpm \
784 image/toolbar/capture_interfaces_24.xpm \
785 image/toolbar/capture_options_24.xpm \
786 image/toolbar/capture_prepare_16.xpm \
787 image/toolbar/capture_restart_24.xpm \
788 image/toolbar/capture_start_24.xpm \
789 image/toolbar/capture_stop_24.xpm \
790 image/toolbar/checkbox_16.xpm \
791 image/toolbar/colorize_24.xpm \
792 image/toolbar/conversations_16.xpm \
793 image/toolbar/decode_24.xpm \
794 image/toolbar/decode_as_16.xpm \
795 image/toolbar/display_filter_24.xpm \
796 image/toolbar/endpoints_16.xpm \
797 image/toolbar/expert_info_16.xpm \
798 image/toolbar/file_set_list_16.xpm \
799 image/toolbar/file_set_next_16.xpm \
800 image/toolbar/file_set_previous_16.xpm \
801 image/toolbar/flow_graph_16.xpm \
802 image/toolbar/graphs_16.xpm \
803 image/toolbar/icon_color_0.xpm \
804 image/toolbar/icon_color_1.xpm \
805 image/toolbar/icon_color_2.xpm \
806 image/toolbar/icon_color_3.xpm \
807 image/toolbar/icon_color_4.xpm \
808 image/toolbar/icon_color_5.xpm \
809 image/toolbar/icon_color_6.xpm \
810 image/toolbar/icon_color_7.xpm \
811 image/toolbar/icon_color_8.xpm \
812 image/toolbar/icon_color_9.xpm \
813 image/toolbar/internet_24.xpm \
814 image/toolbar/modem_16.png \
815 image/toolbar/modem_16.xpm \
816 image/toolbar/network_bluetooth_16.png \
817 image/toolbar/network_usb.svg \
818 image/toolbar/network_usb_16.png \
819 image/toolbar/network_virtual_16.xpm \
820 image/toolbar/network_wired_16.png \
821 image/toolbar/network_wireless_16.png \
822 image/toolbar/pipe_16.png \
823 image/toolbar/remote_arrow_16.png \
824 image/toolbar/remote_globe_16.png \
825 image/toolbar/remote_sat_16.png \
826 image/toolbar/resize_columns_24.xpm \
827 image/toolbar/telephone_16.xpm \
828 image/toolbar/telephony_16.xpm \
829 image/toolbar/time_24.xpm \
830 image/toolbar/toolbar_wireshark_file_16.png \
831 image/toolbar/toolbar_wireshark_file_24.png \
832 image/toolbar/voip_flow_24.xpm \
833 image/toolbar/web_support_24.xpm \
834 image/toolbar/wep_closed_24.xpm \
835 image/toolbar/wiki_24.xpm \
838 image/voip_select.xpm \
839 image/wireshark.exe.manifest.in \
840 image/wireshark.ico \
841 image/wireshark.rc.in \
842 image/wiresharkdoc.ico \
843 image/wiresharkinst.ico \
844 image/WiresharkDoc-128.png \
845 image/WiresharkDoc-16.png \
846 image/WiresharkDoc-24.png \
847 image/WiresharkDoc-256.png \
848 image/WiresharkDoc-32.png \
849 image/WiresharkDoc-48.png \
850 image/WiresharkDoc-64.png \
851 image/wiretap.rc.in \
855 image/wsicon256.png \
862 image/wsicon-ask.png \
863 image/wsicon-ask.svg \
864 image/wsiconcap.svg \
865 image/wsiconcap16.xpm \
866 image/wsiconcap256.png \
867 image/wsiconcap32.xpm \
868 image/wsiconcap48.xpm \
869 image/wsiconinst.svg \
870 image/wsiconinst256.png \
871 image/wslogo-dev.svg \
874 image/wssplash-dev.xpm \
878 macosx-support-lib-patches/glib-pkgconfig.patch \
879 macosx-support-lib-patches/gnutls-pkgconfig.patch \
880 macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
895 text2pcap-scanner.l \
899 wireshark-mime-package.xml \
903 wsutil/CMakeLists.txt \
905 wiretap/CMakeLists.txt \
907 ConfigureChecks.cmake \
908 cmake/modules/CMakeInstallDirs.cmake \
909 cmake/modules/COPYING-CMAKE-SCRIPTS \
910 cmake/modules/CheckCLinkerFlag.cmake \
911 cmake/modules/FeatureSummary.cmake \
912 cmake/modules/FindADNS.cmake \
913 cmake/modules/FindCAP.cmake \
914 cmake/modules/FindCARES.cmake \
915 cmake/modules/FindFOP.cmake \
916 cmake/modules/FindGCRYPT.cmake \
917 cmake/modules/FindGEOIP.cmake \
918 cmake/modules/FindGLIB2.cmake \
919 cmake/modules/FindGMODULE2.cmake \
920 cmake/modules/FindGNUTLS.cmake \
921 cmake/modules/FindGTHREAD2.cmake \
922 cmake/modules/FindGTK2.cmake \
923 cmake/modules/FindGTK3.cmake \
924 cmake/modules/FindHtmlViewer.cmake \
925 cmake/modules/FindKERBEROS.cmake \
926 cmake/modules/FindNL.cmake \
927 cmake/modules/FindLEX.cmake \
928 cmake/modules/FindLUA.cmake \
929 cmake/modules/FindLYNX.cmake \
930 cmake/modules/FindM.cmake \
931 cmake/modules/FindPCAP.cmake \
932 cmake/modules/FindPOD.cmake \
933 cmake/modules/FindPORTAUDIO.cmake \
934 cmake/modules/FindPYTHON.cmake \
935 cmake/modules/FindSED.cmake \
936 cmake/modules/FindSH.cmake \
937 cmake/modules/FindSMI.cmake \
938 cmake/modules/FindXMLLINT.cmake \
939 cmake/modules/FindXSLTPROC.cmake \
940 cmake/modules/FindYACC.cmake \
941 cmake/modules/FindYAPP.cmake \
942 cmake/modules/FindZLIB.cmake \
943 cmake/modules/LICENSE.txt \
944 cmake/modules/UseLemon.cmake \
945 cmake/modules/UseMakeDissectorReg.cmake \
946 cmake/modules/UseMakeTapReg.cmake \
947 cmake/modules/readme.txt \
948 ui/win32/Makefile.nmake \
949 ui/win32/console_win32.c \
950 ui/win32/console_win32.h \
951 ui/win32/file_dlg_win32.c \
952 ui/win32/file_dlg_win32.h \
953 ui/win32/print_win32.c \
954 ui/win32/print_win32.h \
955 ui/win32/settings.ini \
964 if HAVE_DUMPCAP_GROUP
965 -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
968 -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
969 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
972 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
973 -chmod +s $(DESTDIR)$(bindir)/dumpcap
978 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
981 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
983 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
986 help/faq.txt: $(srcdir)/help/faq.py
987 $(AM_V_GEN)(cd help ; \
990 libtool: $(LIBTOOL_DEPS)
991 $(SHELL) ./config.status --recheck
994 # Used by patch-bzip2
995 # Trim off any extra version information and find the previous micro release.
996 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
997 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
998 PREV_DIR="wireshark-$(PREV_VERSION)"
999 PREV_FILE="$(PREV_DIR).tar.bz2"
1000 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1002 patch-bzip2: distdir
1003 if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1004 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1005 tar -xjf $(PREV_FILE) && \
1006 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1007 echo "Created patch-bzip2" ; \
1008 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1010 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1012 $(am__remove_distdir)
1015 # Used by svr4-package and osx-package
1016 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1017 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
1018 stagedir=$(top_stagedir)/$(PACKAGE).inst
1023 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1024 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1025 rm -rf $(stagedir) ; \
1026 $(MAKE) DESTDIR=$(stagedir) install; \
1027 $(srcdir)/packaging/svr4/mkpkg \
1029 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1033 echo "Error: SVR4 packaging tools not found." ; \
1034 echo "Package build abandoned." ; \
1037 solaris-package: svr4-package
1039 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1041 if test x$(HAVE_RPM) = xyes ; then \
1042 cd $(rpm_topdir) ; \
1043 mkdir -p BUILD RPMS SOURCES ; \
1045 ln -s ../../../$(distdir).tar.bz2 ; \
1046 ln -s ../../../wireshark.desktop ; \
1047 ln -s ../../../image/wsicon64.png wireshark.png ; \
1049 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
1050 echo "Package successfully built in `pwd`/RPMS." ; \
1052 echo "Error: RPM executable and/or source directory not found." ; \
1055 # Install some desktop files (for use with GNOME and/or freedesktop.org-compliant desktops?)
1056 install_desktop_files:
1057 mkdir -p $(datarootdir)/{icons/gnome/{16x16,32x32,48x48,256x256}/mimetypes,mime/packages}
1058 install -m 644 -T wireshark-mime-package.xml $(datarootdir)/mime/packages/wireshark.xml
1059 install -m 644 -T wireshark.desktop $(datarootdir)/applications
1060 mkdir -p $(datarootdir)/icons/hicolor/{16x16,32x32,48x48,64x64,256x256}/apps
1061 install -m 644 image/wsicon16.png $(datarootdir)/icons/hicolor/16x16/apps/wireshark.png
1062 install -m 644 image/wsicon32.png $(datarootdir)/icons/hicolor/32x32/apps/wireshark.png
1063 install -m 644 image/wsicon48.png $(datarootdir)/icons/hicolor/48x48/apps/wireshark.png
1064 install -m 644 image/wsicon64.png $(datarootdir)/icons/hicolor/64x64/apps/wireshark.png
1065 install -m 644 image/wsicon256.png $(datarootdir)/icons/hicolor/256x256/apps/wireshark.png
1066 install -m 644 -T image/WiresharkDoc-16.png $(datarootdir)/icons/gnome/16x16/mimetypes/application-wireshark-doc.png
1067 install -m 644 -T image/WiresharkDoc-32.png $(datarootdir)/icons/gnome/32x32/mimetypes/application-wireshark-doc.png
1068 install -m 644 -T image/WiresharkDoc-48.png $(datarootdir)/icons/gnome/48x48/mimetypes/application-wireshark-doc.png
1069 install -m 644 -T image/WiresharkDoc-256.png $(datarootdir)/icons/gnome/256x256/mimetypes/application-wireshark-doc.png
1070 @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database $(datarootdir)/mime\""
1073 if test x$(HAVE_RPM) = xyes ; then \
1074 cd $(rpm_topdir) ; \
1075 mkdir -p BUILD SRPMS SOURCES ; \
1077 ln -s ../../../$(distdir).tar.bz2 ; \
1078 ln -s ../../../wireshark.desktop ; \
1079 ln -s ../../../image/wsicon64.png wireshark.png ; \
1081 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
1082 echo "Package successfully built in `pwd`/SRPMS." ; \
1084 echo "Error: RPM executable and/or source directory not found." ; \
1087 debian-package: debian/rules
1088 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1089 dpkg-buildpackage -rfakeroot -us -uc ; \
1091 echo "Error: Debian packaging tools not found." ; \
1092 echo "Package build abandoned." ; \
1095 # XXX - This assumes we're building from the source directory.
1096 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1097 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1098 rm -rf $(stagedir) ; \
1099 $(MAKE) DESTDIR=$(stagedir) install; \
1100 cd $(srcdir)/packaging/macosx ; \
1101 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1103 echo "Error: OS X packaging tools not found." ; \
1104 echo "Package build abandoned." ; \
1107 packaging/macosx/COPYING.txt: COPYING
1108 (cd packaging/macosx ; \
1109 $(MAKE) COPYING.txt ;)
1111 osx-package: osx-app packaging/macosx/COPYING.txt
1112 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1113 cd $(srcdir)/packaging/macosx ; \
1114 chmod +x ./osx-dmg.sh ; \
1118 osx-install: osx-app
1119 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1120 echo "Copying Wireshark.app to /Applications" ; \
1121 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1125 rm -rf $(top_stagedir)
1128 $(MAKE) -C wiretap dumpabi
1129 $(MAKE) -C epan dumpabi
1130 $(MAKE) -C wsutil dumpabi
1133 $(PERL) tools/checkAPIs.pl -build \
1135 $(wireshark_SOURCES)
1136 # $(EXTRA_wireshark_SOURCES)
1138 checkapi: checkapi_local
1139 cd wiretap && $(MAKE) checkapi
1140 cd codecs && $(MAKE) checkapi
1141 cd ui && $(MAKE) checkapi
1142 cd ui/gtk && $(MAKE) checkapi
1143 ## cd epan && $(MAKE) checkapi
1144 ## cd epan/crypt && $(MAKE) checkapi
1145 cd epan/dfilter && $(MAKE) checkapi
1146 ## cd epan/ftypes && $(MAKE) checkapi
1147 ## cd epan/wslua && $(MAKE) checkapi
1148 cd epan/dissectors && $(MAKE) checkapi
1149 cd plugins && $(MAKE) checkapi
1150 cd wsutil && $(MAKE) checkapi