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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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
50 bin_SCRIPTS = @idl2wrs_bin@
52 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
53 randpkt text2pcap dumpcap rawshark
54 EXTRA_SCRIPTS = idl2wrs
56 idl2wrs: tools/idl2wrs.sh Makefile
57 cp tools/idl2wrs.sh idl2wrs
61 # Wireshark configuration files are put in $(pkgdatadir).
63 pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
64 smi_modules ipmap.html pdml2html.xsl
67 # Install the Diameter DTD and XML files in the "diameter" subdirectory
70 diameterdir = $(pkgdatadir)/diameter
72 diameter/chargecontrol.xml \
73 diameter/dictionary.dtd \
74 diameter/dictionary.xml \
76 diameter/Ericsson.xml \
77 diameter/etsie2e4.xml \
78 diameter/gqpolicy.xml \
79 diameter/imscxdx.xml \
80 diameter/mobileipv4.xml \
81 diameter/mobileipv6.xml \
84 diameter/sunping.xml \
85 diameter/TGPPGmb.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
114 radius/README.radius_dictionary \
116 radius/dictionary.3com \
117 radius/dictionary.3gpp \
118 radius/dictionary.3gpp2 \
119 radius/dictionary.acc \
120 radius/dictionary.acme \
121 radius/dictionary.airespace \
122 radius/dictionary.alcatel \
123 radius/dictionary.alcatel.esam \
124 radius/dictionary.alcatel.sr \
125 radius/dictionary.alteon \
126 radius/dictionary.altiga \
127 radius/dictionary.alvarion \
128 radius/dictionary.apc \
129 radius/dictionary.aptis \
130 radius/dictionary.aruba \
131 radius/dictionary.ascend \
132 radius/dictionary.asn \
133 radius/dictionary.audiocodes \
134 radius/dictionary.avaya \
135 radius/dictionary.azaire \
136 radius/dictionary.bay \
137 radius/dictionary.bintec \
138 radius/dictionary.bristol \
139 radius/dictionary.cablelabs \
140 radius/dictionary.cabletron \
141 radius/dictionary.chillispot \
142 radius/dictionary.cisco \
143 radius/dictionary.cisco.bbsm \
144 radius/dictionary.cisco.vpn3000 \
145 radius/dictionary.cisco.vpn5000 \
146 radius/dictionary.clavister \
147 radius/dictionary.colubris \
148 radius/dictionary.columbia_university \
149 radius/dictionary.compat \
150 radius/dictionary.cosine \
151 radius/dictionary.dhcp \
152 radius/dictionary.digium \
153 radius/dictionary.eltex \
154 radius/dictionary.epygi \
155 radius/dictionary.ericsson \
156 radius/dictionary.erx \
157 radius/dictionary.extreme \
158 radius/dictionary.fortinet \
159 radius/dictionary.foundry \
160 radius/dictionary.freeradius \
161 radius/dictionary.freeradius.internal \
162 radius/dictionary.freeswitch \
163 radius/dictionary.gandalf \
164 radius/dictionary.garderos \
165 radius/dictionary.gemtek \
166 radius/dictionary.h3c \
167 radius/dictionary.hp \
168 radius/dictionary.huawei \
169 radius/dictionary.iea \
170 radius/dictionary.infonet \
171 radius/dictionary.ipunplugged \
172 radius/dictionary.issanni \
173 radius/dictionary.itk \
174 radius/dictionary.jradius \
175 radius/dictionary.juniper \
176 radius/dictionary.karlnet \
177 radius/dictionary.lancom \
178 radius/dictionary.livingston \
179 radius/dictionary.localweb \
180 radius/dictionary.lucent \
181 radius/dictionary.manzara \
182 radius/dictionary.merit \
183 radius/dictionary.microsoft \
184 radius/dictionary.mikrotik \
185 radius/dictionary.motorola \
186 radius/dictionary.motorola.wimax \
187 radius/dictionary.navini \
188 radius/dictionary.netscreen \
189 radius/dictionary.networkphysics \
190 radius/dictionary.nexans \
191 radius/dictionary.nokia \
192 radius/dictionary.nokia.conflict \
193 radius/dictionary.nomadix \
194 radius/dictionary.nortel \
195 radius/dictionary.ntua \
196 radius/dictionary.openser \
197 radius/dictionary.packeteer \
198 radius/dictionary.patton \
199 radius/dictionary.propel \
200 radius/dictionary.prosoft \
201 radius/dictionary.quiconnect \
202 radius/dictionary.quintum \
203 radius/dictionary.redback \
204 radius/dictionary.redcreek \
205 radius/dictionary.rfc2865 \
206 radius/dictionary.rfc2866 \
207 radius/dictionary.rfc2867 \
208 radius/dictionary.rfc2868 \
209 radius/dictionary.rfc2869 \
210 radius/dictionary.rfc3162 \
211 radius/dictionary.rfc3576 \
212 radius/dictionary.rfc3580 \
213 radius/dictionary.rfc4072 \
214 radius/dictionary.rfc4372 \
215 radius/dictionary.rfc4603 \
216 radius/dictionary.rfc4675 \
217 radius/dictionary.rfc4679 \
218 radius/dictionary.rfc4818 \
219 radius/dictionary.rfc4849 \
220 radius/dictionary.rfc5090 \
221 radius/dictionary.rfc5176 \
222 radius/dictionary.rfc5580 \
223 radius/dictionary.rfc5607 \
224 radius/dictionary.rfc5904 \
225 radius/dictionary.riverstone \
226 radius/dictionary.roaringpenguin \
227 radius/dictionary.shasta \
228 radius/dictionary.shiva \
229 radius/dictionary.slipstream \
230 radius/dictionary.sofaware \
231 radius/dictionary.sonicwall \
232 radius/dictionary.springtide \
233 radius/dictionary.starent \
234 radius/dictionary.t_systems_nova \
235 radius/dictionary.telebit \
236 radius/dictionary.telkom \
237 radius/dictionary.trapeze \
238 radius/dictionary.tropos \
239 radius/dictionary.ukerna \
240 radius/dictionary.unix \
241 radius/dictionary.usr \
242 radius/dictionary.utstarcom \
243 radius/dictionary.valemount \
244 radius/dictionary.versanet \
245 radius/dictionary.vqp \
246 radius/dictionary.walabi \
247 radius/dictionary.waverider \
248 radius/dictionary.wichorus \
249 radius/dictionary.wimax \
250 radius/dictionary.wimax.wichorus \
251 radius/dictionary.wispr \
252 radius/dictionary.xedia \
253 radius/dictionary.xylan \
254 radius/dictionary.zyxel
257 # Install the tpncp directory files in the "tpncp" subdirectory
260 tpncpdir = $(pkgdatadir)/tpncp
266 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
269 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
271 wimaxasncp/dictionary.xml \
272 wimaxasncp/dictionary.dtd
274 PLATFORM_SRC = capture-pcap-util-unix.c
277 -include plugins/Custom.make
278 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
279 -dlopen plugins/asn1/asn1.la \
280 -dlopen plugins/docsis/docsis.la \
281 -dlopen plugins/ethercat/ethercat.la \
282 -dlopen plugins/giop/cosnaming.la \
283 -dlopen plugins/giop/coseventcomm.la \
284 -dlopen plugins/gryphon/gryphon.la \
285 -dlopen plugins/interlink/interlink.la \
286 -dlopen plugins/irda/irda.la \
287 -dlopen plugins/m2m/m2m.la \
288 -dlopen plugins/mate/mate.la \
289 -dlopen plugins/opcua/opcua.la \
290 -dlopen plugins/profinet/profinet.la \
291 -dlopen plugins/sercosiii/sercosiii.la \
292 -dlopen plugins/stats_tree/stats_tree.la \
293 -dlopen plugins/unistim/unistim.la \
294 -dlopen plugins/wimax/wimax.la
296 WTAP_PLUGIN_SOURCES = \
304 WTAP_PLUGIN_SOURCES =
308 include Makefile.common
311 wireshark_LDFLAGS = -Wl,-static -all-static
313 wireshark_LDFLAGS = -export-dynamic
316 # Libraries and plugin flags with which to link wireshark.
318 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
319 # they are included in @GTK_LIBS@, and doesn't have to be linked with
320 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
321 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
322 # applications are X applications).
327 wiretap/libwiretap.la \
328 epan/libwireshark.la \
329 wsutil/libwsutil.la \
338 @LAUNCHSERVICES_FRAMEWORKS@ \
339 @CORESERVICES_FRAMEWORKS@ \
344 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
347 tshark_LDFLAGS = -Wl,-static -all-static
349 tshark_LDFLAGS = -export-dynamic
352 # Libraries and plugin flags with which to link tshark.
354 wiretap/libwiretap.la \
355 epan/libwireshark.la \
356 wsutil/libwsutil.la \
367 @CORESERVICES_FRAMEWORKS@ \
371 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
374 rawshark_LDFLAGS = -Wl,-static -all-static
376 rawshark_LDFLAGS = -export-dynamic
379 # Libraries and plugin flags with which to link rawshark.
381 wiretap/libwiretap.la \
382 epan/libwireshark.la \
383 wsutil/libwsutil.la \
394 @CORESERVICES_FRAMEWORKS@ \
398 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
400 # Libraries with which to link text2pcap.
402 wiretap/libwiretap.la \
403 wsutil/libwsutil.la \
405 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
406 # which is generated (and therefore not always clean).
407 # We could generate text2pcap.o as a library with -Werror but for now it
408 # doesn't seem worth the effort.
409 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
411 # Libraries with which to link mergecap.
413 wiretap/libwiretap.la \
414 wsutil/libwsutil.la \
416 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
418 # Libraries with which to link capinfos.
420 wiretap/libwiretap.la \
421 wsutil/libwsutil.la \
424 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
426 # Libraries with which to link editcap.
428 wiretap/libwiretap.la \
429 wsutil/libwsutil.la \
431 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
433 # Libraries with which to link randpkt.
435 wiretap/libwiretap.la \
436 wsutil/libwsutil.la \
443 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
445 # Libraries and plugin flags with which to link dftest.
447 wiretap/libwiretap.la \
448 wsutil/libwsutil.la \
449 epan/libwireshark.la \
463 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
465 # Libraries with which to link dumpcap.
467 wsutil/libwsutil.la \
472 @CORESERVICES_FRAMEWORKS@ \
474 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
477 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
478 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
481 # Build the version string
483 # FORCE is the portable version of .PHONY
487 $(PERL) $(srcdir)/make-version.pl $(srcdir)
490 # Build shell scripts by doing variable substitution.
491 # Taken from autoconf 2.13.
493 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
498 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
501 # Build "tshark-tap-register.c", which contains a function
502 # "register_all_tap_listeners()"
503 # that calls the register routines for all tshark tap listeners.
505 # We do this by grepping through sources.
507 # Formatting conventions: The name of the tap_listener_register_*
508 # routines must start in column zero, or must be preceded only by
509 # "void " starting in column zero, and must not be inside #if.
511 # The first argument is the directory in which the source files live.
512 # All subsequent arguments are the files to scan.
514 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/tools/make-tapreg-dotc
515 @echo Making tshark-tap-register.c
516 @$(srcdir)/tools/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
518 ps.c: print.ps $(srcdir)/tools/rdps.py
519 $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
521 services: tools/make-services.pl
522 $(PERL) $(srcdir)/tools/make-services.pl
525 # XXX - "svnversion.h" is distributed in the release tarball; should
526 # we be deleting it with "make clean", or should we only do that with
527 # "make maintainer-clean"?
536 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
537 # list of files removed by "make distclean"? (It's deliberately
538 # included in that list.)
543 MAINTAINERCLEANFILES = \
569 aclocal-fallback/glib-2.0.m4 \
570 aclocal-fallback/gtk-2.0.m4 \
578 capture_wpcap_packet.c \
579 capture_wpcap_packet.h \
589 debian/headers-check.c \
590 debian/patches/00list \
591 debian/patches/03_preferences.dpatch \
596 debian/README.source \
597 debian/tshark.files \
598 debian/tshark.manpages \
600 debian/wireshark-common.files \
601 debian/wireshark-common.manpages \
602 debian/wireshark-common.shlibs \
603 debian/wireshark-dev.docs \
604 debian/wireshark-dev.files \
605 debian/wireshark-dev.header-files \
606 debian/wireshark-dev.manpages \
607 debian/wireshark-dev.prerm \
608 debian/wireshark-root.desktop \
609 debian/wireshark.desktop \
610 debian/wireshark.files \
611 debian/wireshark.manpages \
612 debian/wireshark.menu \
631 idl/parlay/cccs.idl \
633 idl/parlay/common_cc_data.idl \
636 idl/parlay/fw_data.idl \
637 idl/parlay/fw_if.idl \
638 idl/parlay/fw_if_access.idl \
639 idl/parlay/fw_if_app.idl \
640 idl/parlay/fw_if_entop.idl \
641 idl/parlay/fw_if_service.idl \
642 idl/parlay/gcc_data.idl \
643 idl/parlay/gcc_interfaces.idl \
646 idl/parlay/mmccs.idl \
648 idl/parlay/mpcc_data.idl \
649 idl/parlay/mpcc_interfaces.idl \
651 idl/parlay/pam_data.idl \
652 idl/parlay/pam_interfaces.idl \
653 idl/parlay/Parlay.idl \
654 idl/parlay/policy_data.idl \
655 idl/parlay/policy_interfaces.idl \
656 idl/parlay/README.parlay \
657 idl/parlay/termcap.idl \
658 idl/parlay/ui_data.idl \
659 idl/parlay/ui_interfaces.idl \
660 image/capinfos.rc.in \
661 image/clist_ascend.xpm \
662 image/clist_descend.xpm \
663 image/dumpcap.rc.in \
664 image/editcap.rc.in \
665 image/file_dlg_win32.rc \
666 image/hi16-app-wireshark.png \
667 image/hi32-app-wireshark.png \
668 image/hi48-app-wireshark.png \
669 image/icon_layout_1.xpm \
670 image/icon_layout_2.xpm \
671 image/icon_layout_3.xpm \
672 image/icon_layout_4.xpm \
673 image/icon_layout_5.xpm \
674 image/icon_layout_6.xpm \
675 image/libwireshark.rc.in \
676 image/libwsutil.rc.in \
677 image/lo16-app-wireshark.png \
678 image/lo32-app-wireshark.png \
679 image/lo48-app-wireshark.png \
680 image/Makefile.nmake \
681 image/mergecap.rc.in \
682 image/nsis-checked.bmp \
683 image/nsis-unchecked.bmp \
684 image/rawshark.rc.in \
686 image/stock_dialog_error_48.xpm \
687 image/stock_dialog_info_48.xpm \
688 image/stock_dialog_question_48.xpm \
689 image/stock_dialog_stop_48.xpm \
690 image/stock_dialog_warning_48.xpm \
691 image/text2pcap.rc.in \
692 image/WiresharkDoc_24.xpm \
693 image/toolbar/analyze_24.xpm \
694 image/toolbar/audio_player_24.xpm \
695 image/toolbar/autoscroll_24.xpm \
696 image/toolbar/capture_airpcap_16.xpm \
697 image/toolbar/capture_capture_16.xpm \
698 image/toolbar/capture_details_16.xpm \
699 image/toolbar/capture_details_24.xpm \
700 image/toolbar/capture_ethernet_16.xpm \
701 image/toolbar/capture_filter_24.xpm \
702 image/toolbar/capture_interfaces_24.xpm \
703 image/toolbar/capture_options_24.xpm \
704 image/toolbar/capture_prepare_16.xpm \
705 image/toolbar/capture_restart_24.xpm \
706 image/toolbar/capture_start_24.xpm \
707 image/toolbar/capture_stop_24.xpm \
708 image/toolbar/checkbox_16.xpm \
709 image/toolbar/colorize_24.xpm \
710 image/toolbar/conversations_16.xpm \
711 image/toolbar/decode_24.xpm \
712 image/toolbar/decode_as_16.xpm \
713 image/toolbar/display_filter_24.xpm \
714 image/toolbar/endpoints_16.xpm \
715 image/toolbar/expert_info_16.xpm \
716 image/toolbar/file_set_list_16.xpm \
717 image/toolbar/file_set_next_16.xpm \
718 image/toolbar/file_set_previous_16.xpm \
719 image/toolbar/flow_graph_16.xpm \
720 image/toolbar/graphs_16.xpm \
721 image/toolbar/icon_color_0.xpm \
722 image/toolbar/icon_color_1.xpm \
723 image/toolbar/icon_color_2.xpm \
724 image/toolbar/icon_color_3.xpm \
725 image/toolbar/icon_color_4.xpm \
726 image/toolbar/icon_color_5.xpm \
727 image/toolbar/icon_color_6.xpm \
728 image/toolbar/icon_color_7.xpm \
729 image/toolbar/icon_color_8.xpm \
730 image/toolbar/icon_color_9.xpm \
731 image/toolbar/internet_24.xpm \
732 image/toolbar/modem_16.png \
733 image/toolbar/modem_16.xpm \
734 image/toolbar/network_bluetooth_16.png \
735 image/toolbar/network_usb.svg \
736 image/toolbar/network_usb_16.png \
737 image/toolbar/network_virtual_16.xpm \
738 image/toolbar/network_wired_16.png \
739 image/toolbar/network_wireless_16.png \
740 image/toolbar/resize_columns_24.xpm \
741 image/toolbar/telephone_16.xpm \
742 image/toolbar/telephony_16.xpm \
743 image/toolbar/time_24.xpm \
744 image/toolbar/voip_flow_24.xpm \
745 image/toolbar/web_support_24.xpm \
746 image/toolbar/wep_closed_24.xpm \
747 image/toolbar/wiki_24.xpm \
750 image/voip_select.xpm \
751 image/wireshark.exe.manifest.in \
752 image/wireshark.ico \
753 image/wireshark.rc.in \
754 image/WiresharkDoc-128.png \
755 image/WiresharkDoc-16.png \
756 image/WiresharkDoc-24.png \
757 image/WiresharkDoc-256.png \
758 image/WiresharkDoc-32.png \
759 image/WiresharkDoc-48.png \
760 image/WiresharkDoc-64.png \
761 image/wiresharkdoc.ico \
762 image/wiresharkinst.ico \
763 image/wiretap.rc.in \
767 image/wsicon256.png \
774 image/wsiconcap.svg \
775 image/wsiconcap16.xpm \
776 image/wsiconcap256.png \
777 image/wsiconcap32.xpm \
778 image/wsiconcap48.xpm \
779 image/wsiconinst.svg \
780 image/wsiconinst256.png \
783 image/wssplash-dev.xpm \
799 text2pcap-scanner.l \
807 wsutil/CMakeLists.txt \
809 wiretap/CMakeLists.txt \
811 ConfigureChecks.cmake \
812 cmake/modules/readme.txt \
813 cmake/modules/FindLYNX.cmake \
814 cmake/modules/FindYACC.cmake \
815 cmake/modules/FeatureSummary.cmake \
816 cmake/modules/FindADNS.cmake \
817 cmake/modules/FindCAP.cmake \
818 cmake/modules/UseLemon.cmake \
819 cmake/modules/FindPCRE.cmake \
820 cmake/modules/FindZLIB.cmake \
821 cmake/modules/FindPORTAUDIO.cmake \
822 cmake/modules/FindPCAP.cmake \
823 cmake/modules/FindSMI.cmake \
824 cmake/modules/FindCARES.cmake \
825 cmake/modules/FindXSLTPROC.cmake \
826 cmake/modules/FindSH.cmake \
827 cmake/modules/FindGNUTLS.cmake \
828 cmake/modules/FindGCRYPT.cmake \
829 cmake/modules/UseMakeDissectorReg.cmake \
830 cmake/modules/FindLEX.cmake \
831 cmake/modules/FindPYTHON.cmake \
832 cmake/modules/FindLUA.cmake \
833 cmake/modules/FindYAPP.cmake \
834 cmake/modules/FindGEOIP.cmake \
835 cmake/modules/FindXMLLINT.cmake \
836 cmake/modules/FindSED.cmake \
837 cmake/modules/FindGLIB2.cmake \
838 cmake/modules/FindGMODULE2.cmake \
839 cmake/modules/FindGTHREAD2.cmake \
840 cmake/modules/FindHtmlViewer.cmake \
841 cmake/modules/FindGTK2.cmake \
842 cmake/modules/FindFOP.cmake \
843 cmake/modules/LICENSE.txt \
844 cmake/modules/CMakeInstallDirs.cmake \
845 cmake/modules/CheckCLinkerFlag.cmake \
846 cmake/modules/UseMakeTapReg.cmake \
847 cmake/modules/FindM.cmake \
848 cmake/modules/FindKERBEROS.cmake \
849 cmake/modules/FindPOD.cmake \
850 win32/Makefile.nmake \
851 win32/file_dlg_win32.c \
852 win32/file_dlg_win32.h \
853 win32/print_win32.c \
854 win32/print_win32.h \
863 if HAVE_DUMPCAP_GROUP
864 -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
867 -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
868 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
871 -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
872 -chmod +s $(DESTDIR)$(bindir)/dumpcap
877 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap wsutil docbook
880 SUBDIRS = tools wsutil wiretap epan plugins packaging help @wireshark_SUBDIRS@ . doc
882 SUBDIRS = tools wsutil wiretap epan packaging help @wireshark_SUBDIRS@ . doc
885 help/faq.txt: $(srcdir)/help/faq.py
889 libtool: $(LIBTOOL_DEPS)
890 $(SHELL) ./config.status --recheck
892 # Used by svr4-package and osx-package
893 # We load top_stagedir with an explicit path so that libtool doesn't freak.
894 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
895 stagedir=$(top_stagedir)/$(PACKAGE).inst
900 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
901 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
902 rm -rf $(stagedir) ; \
903 $(MAKE) DESTDIR=$(stagedir) install; \
904 $(srcdir)/packaging/svr4/mkpkg \
906 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
910 echo "Error: SVR4 packaging tools not found." ; \
911 echo "Package build abandoned." ; \
914 solaris-package: svr4-package
916 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
918 if test x$(HAVE_RPM) = xyes ; then \
920 mkdir -p BUILD RPMS SOURCES ; \
922 ln -s ../../../$(distdir).tar.bz2 ; \
923 ln -s ../../../wireshark.desktop ; \
924 ln -s ../../../image/wsicon64.png wireshark.png ; \
926 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
927 echo "Package successfully built in `pwd`/RPMS." ; \
929 echo "Error: RPM executable and/or source directory not found." ; \
932 if test x$(HAVE_RPM) = xyes ; then \
934 mkdir -p BUILD SRPMS SOURCES ; \
936 ln -s ../../../$(distdir).tar.bz2 ; \
937 ln -s ../../../wireshark.desktop ; \
938 ln -s ../../../image/wsicon64.png wireshark.png ; \
940 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
941 echo "Package successfully built in `pwd`/SRPMS." ; \
943 echo "Error: RPM executable and/or source directory not found." ; \
946 debian-package: debian/rules
947 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
948 dpkg-buildpackage -rfakeroot -us -uc ; \
950 echo "Error: Debian packaging tools not found." ; \
951 echo "Package build abandoned." ; \
954 # XXX - This assumes we're building from the source directory.
955 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
956 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
957 rm -rf $(stagedir) ; \
958 $(MAKE) DESTDIR=$(stagedir) install; \
959 cd $(srcdir)/packaging/macosx ; \
960 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
962 echo "Error: OS X packaging tools not found." ; \
963 echo "Package build abandoned." ; \
966 packaging/macosx/COPYING.txt: COPYING
967 (cd packaging/macosx ; \
968 $(MAKE) COPYING.txt ;)
970 osx-package: osx-app packaging/macosx/COPYING.txt
971 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
972 cd $(srcdir)/packaging/macosx ; \
977 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
978 echo "Copying Wireshark.app to /Applications" ; \
979 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
983 rm -rf $(top_stagedir)
986 $(PERL) tools/checkAPIs.pl \
988 # $(wireshark_SOURCES)
989 # $(EXTRA_wireshark_SOURCES)
991 checkapi: checkapi_local
992 cd wiretap && $(MAKE) checkapi
993 cd ../codecs && $(MAKE) checkapi
994 ## cd ../gtk && $(MAKE) checkapi
995 ## cd ../epan && $(MAKE) checkapi
996 ## cd ../epan/crypt && $(MAKE) checkapi
997 cd ../dfilter && $(MAKE) checkapi
998 ## cd ../ftypes && $(MAKE) checkapi
999 ## cd ../wslua && $(MAKE) checkapi
1000 cd ../dissectors && $(MAKE) checkapi
1001 cd ../../plugins && $(MAKE) checkapi
1002 cd ../wsutil && $(MAKE) checkapi