2 # Automake file for Wireshark
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 include ./Makefile.am.inc
24 AM_DISTCHECK_CONFIGURE_FLAGS=@GUI_CONFIGURE_FLAGS@
25 # Make sure to keep ACLOCAL_AMFLAGS in Makefile.am and AC_CONFIG_MACRO_DIRS
26 # in configure.ac in sync, otherwise there will be an error running autogen.sh.
27 ACLOCAL_AMFLAGS = -I m4
32 AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(COMMONCPPFLAGS)
50 EXTRA_PROGRAMS = wireshark-gtk wireshark tshark tfshark capinfos captype \
51 editcap mergecap dftest randpkt text2pcap dumpcap reordercap \
55 # Wireshark configuration files are put in $(pkgdatadir).
57 dist_pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
58 smi_modules ipmap.html pdml2html.xsl
60 pkgconfigdir = $(libdir)/pkgconfig
61 pkgconfig_DATA = wireshark.pc
64 # Install global profiles in the "profiles" subdirectory
66 profilesdir = $(pkgdatadir)
67 nobase_dist_profiles_DATA = \
68 profiles/Bluetooth/colorfilters \
69 profiles/Classic/colorfilters
72 # Install the Diameter DTD and XML files in the "diameter" subdirectory
75 diameterdir = $(pkgdatadir)/diameter
76 include diameter/Custom.make
77 dist_diameter_DATA = $(_CUSTOM_diameter_xml_files_) \
78 diameter/chargecontrol.xml \
80 diameter/CiscoSystems.xml \
82 diameter/dictionary.dtd \
83 diameter/dictionary.xml \
85 diameter/Ericsson.xml \
86 diameter/etsie2e4.xml \
87 diameter/mobileipv4.xml \
88 diameter/mobileipv6.xml \
91 diameter/Starent.xml \
92 diameter/sunping.xml \
95 diameter/Vodafone.xml \
96 diameter/AlcatelLucent.xml \
98 diameter/NokiaSolutionsAndNetworks.xml \
103 # Install the DTDs directory files in the "dtds" subdirectory
106 dtdsdir = $(pkgdatadir)/dtds
111 dtds/pocsettings.dtd \
118 dtds/xcap-error.dtd \
122 # Install the RADIUS directory files in the "radius" subdirectory
125 radiusdir = $(pkgdatadir)/radius
126 include radius/Custom.make
127 dist_radius_DATA = $(_CUSTOM_radius_dict_) \
128 radius/README.radius_dictionary \
129 radius/custom.includes \
131 radius/dictionary.3com \
132 radius/dictionary.3gpp \
133 radius/dictionary.3gpp2 \
134 radius/dictionary.acc \
135 radius/dictionary.acme \
136 radius/dictionary.airespace \
137 radius/dictionary.actelis \
138 radius/dictionary.aerohive \
139 radius/dictionary.alcatel \
140 radius/dictionary.alcatel.esam \
141 radius/dictionary.alcatel.sr \
142 radius/dictionary.alcatel-lucent.aaa \
143 radius/dictionary.alteon \
144 radius/dictionary.altiga \
145 radius/dictionary.alvarion \
146 radius/dictionary.alvarion.wimax.v2_2 \
147 radius/dictionary.apc \
148 radius/dictionary.aptis \
149 radius/dictionary.arbor \
150 radius/dictionary.aruba \
151 radius/dictionary.ascend \
152 radius/dictionary.asn \
153 radius/dictionary.audiocodes \
154 radius/dictionary.avaya \
155 radius/dictionary.azaire \
156 radius/dictionary.bay \
157 radius/dictionary.bluecoat \
158 radius/dictionary.bintec \
159 radius/dictionary.broadsoft \
160 radius/dictionary.brocade \
161 radius/dictionary.bskyb \
162 radius/dictionary.bristol \
163 radius/dictionary.bt \
164 radius/dictionary.camiant \
165 radius/dictionary.cablelabs \
166 radius/dictionary.cabletron \
167 radius/dictionary.chillispot \
168 radius/dictionary.cisco \
169 radius/dictionary.cisco.asa \
170 radius/dictionary.cisco.bbsm \
171 radius/dictionary.cisco.vpn3000 \
172 radius/dictionary.cisco.vpn5000 \
173 radius/dictionary.citrix \
174 radius/dictionary.clavister \
175 radius/dictionary.colubris \
176 radius/dictionary.columbia_university \
177 radius/dictionary.compatible \
178 radius/dictionary.compat \
179 radius/dictionary.cosine \
180 radius/dictionary.dante \
181 radius/dictionary.dhcp \
182 radius/dictionary.dlink \
183 radius/dictionary.digium \
184 radius/dictionary.dragonwave \
185 radius/dictionary.efficientip \
186 radius/dictionary.eltex \
187 radius/dictionary.epygi \
188 radius/dictionary.equallogic \
189 radius/dictionary.ericsson \
190 radius/dictionary.ericsson.ab \
191 radius/dictionary.ericsson.packet.core.networks \
192 radius/dictionary.erx \
193 radius/dictionary.extreme \
194 radius/dictionary.f5 \
195 radius/dictionary.fdxtended \
196 radius/dictionary.fortinet \
197 radius/dictionary.foundry \
198 radius/dictionary.freedhcp \
199 radius/dictionary.freeradius \
200 radius/dictionary.freeradius.internal \
201 radius/dictionary.freeswitch \
202 radius/dictionary.gandalf \
203 radius/dictionary.garderos \
204 radius/dictionary.gemtek \
205 radius/dictionary.h3c \
206 radius/dictionary.hp \
207 radius/dictionary.huawei \
208 radius/dictionary.iana \
209 radius/dictionary.iea \
210 radius/dictionary.infoblox \
211 radius/dictionary.infonet \
212 radius/dictionary.ipunplugged \
213 radius/dictionary.issanni \
214 radius/dictionary.itk \
215 radius/dictionary.jradius \
216 radius/dictionary.juniper \
217 radius/dictionary.kineto \
218 radius/dictionary.karlnet \
219 radius/dictionary.lancom \
220 radius/dictionary.livingston \
221 radius/dictionary.localweb \
222 radius/dictionary.lucent \
223 radius/dictionary.manzara \
224 radius/dictionary.meinberg \
225 radius/dictionary.merit \
226 radius/dictionary.meru \
227 radius/dictionary.microsoft \
228 radius/dictionary.mikrotik \
229 radius/dictionary.motorola \
230 radius/dictionary.motorola.wimax \
231 radius/dictionary.navini \
232 radius/dictionary.netscreen \
233 radius/dictionary.networkphysics \
234 radius/dictionary.nexans \
235 radius/dictionary.nokia \
236 radius/dictionary.nokia.conflict \
237 radius/dictionary.nomadix \
238 radius/dictionary.nortel \
239 radius/dictionary.ntua \
240 radius/dictionary.openser \
241 radius/dictionary.packeteer \
242 radius/dictionary.paloalto \
243 radius/dictionary.patton \
244 radius/dictionary.perle \
245 radius/dictionary.propel \
246 radius/dictionary.prosoft \
247 radius/dictionary.proxim \
248 radius/dictionary.purewave \
249 radius/dictionary.quiconnect \
250 radius/dictionary.quintum \
251 radius/dictionary.redcreek \
252 radius/dictionary.rfc2865 \
253 radius/dictionary.rfc2866 \
254 radius/dictionary.rfc2867 \
255 radius/dictionary.rfc2868 \
256 radius/dictionary.rfc2869 \
257 radius/dictionary.rfc3162 \
258 radius/dictionary.rfc3576 \
259 radius/dictionary.rfc3580 \
260 radius/dictionary.rfc4072 \
261 radius/dictionary.rfc4372 \
262 radius/dictionary.rfc4603 \
263 radius/dictionary.rfc4675 \
264 radius/dictionary.rfc4679 \
265 radius/dictionary.rfc4818 \
266 radius/dictionary.rfc4849 \
267 radius/dictionary.rfc5090 \
268 radius/dictionary.rfc5176 \
269 radius/dictionary.rfc5447 \
270 radius/dictionary.rfc5580 \
271 radius/dictionary.rfc5607 \
272 radius/dictionary.rfc5904 \
273 radius/dictionary.rfc6519 \
274 radius/dictionary.rfc6572 \
275 radius/dictionary.rfc6677 \
276 radius/dictionary.rfc6911 \
277 radius/dictionary.rfc6929 \
278 radius/dictionary.rfc6930 \
279 radius/dictionary.rfc7055 \
280 radius/dictionary.rfc7155 \
281 radius/dictionary.rfc7268 \
282 radius/dictionary.rfc7499 \
283 radius/dictionary.riverbed \
284 radius/dictionary.riverstone \
285 radius/dictionary.roaringpenguin \
286 radius/dictionary.ruckus \
287 radius/dictionary.ruggedcom \
288 radius/dictionary.sangoma \
289 radius/dictionary.sg \
290 radius/dictionary.shasta \
291 radius/dictionary.shiva \
292 radius/dictionary.siemens \
293 radius/dictionary.slipstream \
294 radius/dictionary.sofaware \
295 radius/dictionary.sonicwall \
296 radius/dictionary.springtide \
297 radius/dictionary.starent \
298 radius/dictionary.starent.vsa1 \
299 radius/dictionary.surfnet \
300 radius/dictionary.symbol \
301 radius/dictionary.t_systems_nova \
302 radius/dictionary.telebit \
303 radius/dictionary.telkom \
304 radius/dictionary.terena \
305 radius/dictionary.trapeze \
306 radius/dictionary.travelping \
307 radius/dictionary.tropos \
308 radius/dictionary.ukerna \
309 radius/dictionary.unix \
310 radius/dictionary.usr \
311 radius/dictionary.utstarcom \
312 radius/dictionary.valemount \
313 radius/dictionary.versanet \
314 radius/dictionary.vqp \
315 radius/dictionary.walabi \
316 radius/dictionary.waverider \
317 radius/dictionary.wichorus \
318 radius/dictionary.wimax \
319 radius/dictionary.wimax.alvarion \
320 radius/dictionary.wimax.wichorus \
321 radius/dictionary.wispr \
322 radius/dictionary.xedia \
323 radius/dictionary.xylan \
324 radius/dictionary.yubico \
325 radius/dictionary.zeus \
326 radius/dictionary.zte \
327 radius/dictionary.zyxel
330 # Install the tpncp directory files in the "tpncp" subdirectory
333 tpncpdir = $(pkgdatadir)/tpncp
338 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
341 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
342 dist_wimaxasncp_DATA = \
343 wimaxasncp/dictionary.xml \
344 wimaxasncp/dictionary.dtd
347 -include plugins/Custom.make
348 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
349 -dlopen plugins/docsis/docsis.la \
350 -dlopen plugins/ethercat/ethercat.la \
351 -dlopen plugins/gryphon/gryphon.la \
352 -dlopen plugins/irda/irda.la \
353 -dlopen plugins/m2m/m2m.la \
354 -dlopen plugins/mate/mate.la \
355 -dlopen plugins/opcua/opcua.la \
356 -dlopen plugins/profinet/profinet.la \
357 -dlopen plugins/stats_tree/stats_tree.la \
358 -dlopen plugins/unistim/unistim.la \
359 -dlopen plugins/wimax/wimax.la \
360 -dlopen plugins/wimaxmacphy/wimaxmacphy.la
368 # "BUILT_SOURCES" are built before any "make all" or "make check" targets.
369 BUILT_HEADER_FILES = \
374 BUILT_SOURCES = $(BUILT_C_FILES) $(BUILT_HEADER_FILES)
376 # Header files generated from source files.
377 GENERATED_HEADER_FILES = \
378 text2pcap-scanner_lex.h \
379 $(BUILT_HEADER_FILES)
381 # C source files generated from source files.
384 # All the generated files.
385 GENERATED_FILES = $(GENERATED_C_FILES) $(GENERATED_HEADER_FILES)
387 EXTCAP_COMMON_SRC = \
392 EXTCAP_COMMON_INCLUDES = \
397 # sources common for wireshark, tshark, and rawshark
403 # corresponding headers
404 SHARK_COMMON_INCLUDES = \
412 # wireshark specifics
413 WIRESHARK_COMMON_SRC = \
414 $(SHARK_COMMON_SRC) \
423 # corresponding headers
424 WIRESHARK_COMMON_INCLUDES = \
434 SHARK_COMMON_SRC += $(EXTCAP_COMMON_SRC)
438 EXTRALINKFLAGS = -Wl,-static -all-static
440 EXTRALINKFLAGS = -export-dynamic
443 # Libraries and plugin flags with which to link wireshark.
445 # GTK_CFLAGS/GTK_LIBS is a strict superset of GLIB_CFLAGS/GLIB_LIBS
446 # (see configure.ac for pkg-config modules used).
448 wireshark_common_ldadd = \
449 capchild/libcapchild.a \
450 caputils/libcaputils.a \
453 codecs/libwscodecs.la \
454 wiretap/libwiretap.la \
455 epan/libwireshark.la \
456 wsutil/libwsutil.la \
462 @APPLICATIONSERVICES_FRAMEWORKS@ \
463 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
464 @COREFOUNDATION_FRAMEWORKS@ \
471 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC) wireshark-qt.cpp
473 wireshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(Qt_CFLAGS)
475 wireshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS) $(Qt_LDFLAGS)
479 $(wireshark_common_ldadd) \
484 wireshark_LDADD += $(SPEEXDSP_LIBS)
489 wireshark_gtk_SOURCES = $(WIRESHARK_COMMON_SRC)
491 wireshark_gtk_CPPFLAGS = $(AM_CPPFLAGS) $(GTK_CFLAGS)
493 wireshark_gtk_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
495 wireshark_gtk_LDADD = \
497 $(wireshark_common_ldadd) \
503 $(SHARK_COMMON_SRC) \
509 tshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
511 tshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
513 # Libraries and plugin flags with which to link tshark.
515 capchild/libcapchild.a \
516 caputils/libcaputils.a \
519 wiretap/libwiretap.la \
520 epan/libwireshark.la \
521 wsutil/libwsutil.la \
528 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
529 @COREFOUNDATION_FRAMEWORKS@ \
535 $(SHARK_COMMON_SRC) \
539 tfshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
541 tfshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
543 # Libraries and plugin flags with which to link tfshark.
547 wiretap/libwiretap.la \
548 epan/libwireshark.la \
549 wsutil/libwsutil.la \
555 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
556 @COREFOUNDATION_FRAMEWORKS@ \
561 $(SHARK_COMMON_SRC) \
565 rawshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
567 rawshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
569 # Libraries and plugin flags with which to link rawshark.
571 caputils/libcaputils.a \
573 wiretap/libwiretap.la \
574 epan/libwireshark.la \
575 wsutil/libwsutil.la \
582 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
583 @COREFOUNDATION_FRAMEWORKS@ \
588 text2pcap_SOURCES = \
590 text2pcap-scanner.l \
593 text2pcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
595 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
596 # which is generated (and therefore not always clean).
597 # We could generate text2pcap.o as a library with -Werror but for now it
598 # doesn't seem worth the effort.
599 text2pcap_CFLAGS = $(GENERATED_CFLAGS)
601 # Libraries with which to link text2pcap.
603 writecap/libwritecap.a \
604 wsutil/libwsutil.la \
611 mergecap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
613 # Libraries with which to link mergecap.
615 wiretap/libwiretap.la \
616 wsutil/libwsutil.la \
623 capinfos_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
625 # Libraries with which to link capinfos.
627 wiretap/libwiretap.la \
628 wsutil/libwsutil.la \
636 captype_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
638 # Libraries with which to link captype.
640 wiretap/libwiretap.la \
641 wsutil/libwsutil.la \
648 editcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
650 # Libraries with which to link editcap.
652 wiretap/libwiretap.la \
653 wsutil/libwsutil.la \
656 reordercap_SOURCES = \
660 reordercap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
662 # Libraries with which to link reordercap.
664 wiretap/libwiretap.la \
665 wsutil/libwsutil.la \
672 randpkt_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
674 # Libraries with which to link randpkt.
676 randpkt_core/librandpkt_core.a \
677 wiretap/libwiretap.la \
678 wsutil/libwsutil.la \
686 dftest_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
688 # Libraries and plugin flags with which to link dftest.
691 wiretap/libwiretap.la \
692 wsutil/libwsutil.la \
693 epan/libwireshark.la \
704 echld_test_SOURCES = \
707 capture_stop_conditions.c \
713 echld_test_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
716 epan/libwireshark.la \
718 writecap/libwritecap.a \
719 wsutil/libwsutil.la \
724 echld_test_DEPENDENCIES = \
730 capture_stop_conditions.c \
738 dumpcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
740 dumpcap_CFLAGS = $(AM_CFLAGS) $(PIE_CFLAGS)
742 dumpcap_LDFLAGS = $(AM_LDFLAGS) $(PIE_LDFLAGS)
744 # Libraries with which to link dumpcap.
746 caputils/libcaputils.a \
747 writecap/libwritecap.a \
748 wsutil/libwsutil.la \
751 @SYSTEMCONFIGURATION_FRAMEWORKS@ \
752 @COREFOUNDATION_FRAMEWORKS@ \
756 # this target needed for distribution only
758 $(SHARK_COMMON_INCLUDES) \
759 $(EXTCAP_COMMON_INCLUDES) \
760 $(WIRESHARK_COMMON_INCLUDES) \
761 capture_stop_conditions.h \
768 # Build the version string
770 # FORCE is the portable version of .PHONY
774 $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
777 # Build shell scripts by doing variable substitution.
778 # Taken from autoconf 2.13.
780 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
785 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
788 $(PYTHON) $(srcdir)/tools/make-services.py
796 # We have to remove version.h with "make distclean", as, otherwise,
797 # "make distcheck" fails. We still need to make the tarballs work
798 # even if you do "make distclean" and try to rebuild; that's a work in
801 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
802 # list of files removed by "make distclean"? (It's deliberately
803 # included in that list.)
809 MAINTAINERCLEANFILES = \
836 abi-descriptor.template \
850 macosx-support-lib-patches \
856 text2pcap-scanner.l \
860 wireshark-gtk.desktop \
861 wireshark-mime-package.xml \
862 wireshark.appdata.xml \
866 CMakeListsCustom.txt.example \
870 ConfigureChecks.cmake \
875 if HAVE_DUMPCAP_GROUP
876 chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
879 $(SETCAP) cap_net_raw,cap_net_admin+ep $(DESTDIR)$(bindir)/dumpcap
880 chmod o-rws $(DESTDIR)$(bindir)/dumpcap
883 chmod o-rws $(DESTDIR)$(bindir)/dumpcap
884 chmod +s $(DESTDIR)$(bindir)/dumpcap
924 @wireshark_SUBDIRS@ \
931 help/faq.txt: $(srcdir)/help/faq.py
932 $(AM_V_GEN)(cd help ; \
935 libtool: $(LIBTOOL_DEPS)
936 $(SHELL) ./config.status --recheck
940 # Install icons and other desktop files for (for use with GNOME, KDE, or
941 # any other freedesktop.org-compliant desktops).
943 # We use $(datadir). If the desktop doesn't look for them there,
944 # the desktop is broken; the latest XDG Base Directory Specification
947 # http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
951 # $XDG_DATA_DIRS defines the preference-ordered set of base directories
952 # to search for data files in addition to the $XDG_DATA_HOME base
953 # directory. The directories in $XDG_DATA_DIRS should be seperated with a
956 # If $XDG_DATA_DIRS is either not set or empty, a value equal to
957 # /usr/local/share/:/usr/share/ should be used.
961 # if this is configured to install under /usr, that should Just Work,
962 # unless XDG_DATA_DIRS is set incorrectly or the desktop isn't
963 # compliant with the latest version of the spec;
965 # if this installs under the default /usr/share, that should Just Work,
966 # unless XDG_DATA_DIRS is set incorrectly or the desktop isn't
967 # compliant with the latest version of the spec;
969 # if this is configured to install somewhere else, whoever configured
970 # it should also have made sure that XDG_DATA_DIRS was set correctly
971 # and, if that doesn't work, the desktop isn't compliant with the
972 # latest version of the spec.
974 # We install these as part of the standard installation process, just
975 # as, for example, Inkscape does with its icons. See bug 10737.
977 # Do not use the -T flag to the install command, as it's not portable.
978 # Some versions of install don't support a -T flag at all, and the
979 # FreeBSD install command has a -T flag that takes an argument and
980 # that has completely different semantics.
982 # We neither need nor want any of this on OS X, nor do we want it if
983 # we're not building Wireshark (that being the only desktop app).
986 if BUILDING_WIRESHARK
988 mkdir -p $(DESTDIR)$(datadir)/mime/packages
989 install -m 644 $(srcdir)/wireshark-mime-package.xml $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
990 mkdir -p $(DESTDIR)$(datadir)/appdata
991 install -m 644 $(srcdir)/wireshark.appdata.xml $(DESTDIR)$(datadir)/appdata/wireshark.appdata.xml
992 mkdir -p $(DESTDIR)$(datadir)/applications
993 if test x$(DESKTOP_FILE_INSTALL) != x ; then \
994 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)$(datadir)/applications $(srcdir)/wireshark.desktop $(srcdir)/wireshark-gtk.desktop ; \
996 install -m 644 $(srcdir)/wireshark.desktop $(srcdir)/wireshark-gtk.desktop $(DESTDIR)$(datadir)/applications; \
998 for size in 16 24 32 48 64 128 256; \
1000 mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps ; \
1001 install -m 644 $(srcdir)/image/wsicon$${size}.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1002 mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes ; \
1003 install -m 644 $(srcdir)/image/WiresharkDoc-$${size}.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1005 mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
1006 install -m 644 $(srcdir)/image/wsicon.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
1011 if BUILDING_WIRESHARK
1013 rm -f $(DESTDIR)$(datadir)/appdata/wireshark.appdata.xml
1014 rm -f $(DESTDIR)$(datadir)/applications/wireshark.desktop
1015 rm -f $(DESTDIR)$(datadir)/applications/wireshark-gtk.desktop
1016 rm -f $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
1017 for size in 16 24 32 48 64 128 256; \
1019 rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1020 rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1022 rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
1026 install-data-hook: update-databases-and-caches-install
1027 uninstall-hook: update-databases-and-caches-uninstall
1030 # XXX - which of this stuff can, and should, we do ourselves?
1032 # If we're "installing" under $(DESTDIR) as part of the process of
1033 # building a package, we probably don't need to, and shouldn't, do
1036 # If we're installing for use, we may need to do some of this; which
1037 # of them do we need to tell where to search, especially if we're
1038 # installing somewhere other than under /usr or /usr/local?
1040 # What if we're installing in the user's home directory?
1042 # What if we're installing under /opt?
1044 # We only need to run ldconfig on systems where it's necessary in order
1045 # to update a shared library cache to know about our shared libraries.
1047 # We only need to run update-desktop-database and update-mime-database
1048 # on freedesktop.org desktops.
1050 # We only need to run gtk-update-icon-cache if we're installing a GTK+
1051 # version of Wireshark.
1053 # We neither need nor want any of this on OS X, nor do we want it if
1054 # we're not building Wireshark (that being the only desktop app).
1056 update-databases-and-caches-common:
1057 if BUILDING_WIRESHARK
1059 @echo "You may need to run \"ldconfig\" as root"
1060 @echo "You may need to run \"update-desktop-database $(datadir)/applications\""
1061 @echo "You may need to run \"update-mime-database $(datadir)/mime\""
1062 @echo "You may need to run \"gtk-update-icon-cache -f -t $(datadir)/icons/hicolor\""
1066 update-databases-and-caches-install: update-databases-and-caches-common
1068 update-databases-and-caches-uninstall: update-databases-and-caches-common
1070 # Used by svr4-package and osx-package
1071 # We load top_stagedir with an absolute path so that libtool doesn't freak.
1072 top_stagedir=$(abs_top_builddir)/packaging/staging
1073 stagedir=$(top_stagedir)/$(PACKAGE).inst
1078 solaris-package: svr4-package
1080 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1081 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1082 rm -rf $(stagedir) ; \
1083 $(MAKE) DESTDIR=$(stagedir) install; \
1084 $(srcdir)/packaging/svr4/mkpkg \
1086 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1090 echo "Error: SVR4 packaging tools not found." ; \
1091 echo "Package build abandoned." ; \
1095 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1098 @cd $(rpm_topdir) && \
1099 mkdir -p BUILD RPMS SOURCES SRPMS && \
1101 ln -sf ../../../$(distdir).tar.xz && \
1103 $(RPMBUILD) --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" \
1104 @RPMBUILD_WITH_ARGS@ --clean -ba SPECS/wireshark.spec && \
1105 echo "Package successfully built in `pwd`/RPMS." ; \
1106 rm -f SOURCES/$(distdir).tar.xz ../../$(distdir).tar.xz
1109 @echo "RPM executable not available." ; \
1113 # XXX - This assumes we're building from the source directory.
1114 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1115 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1116 rm -rf $(stagedir) ; \
1117 $(MAKE) DESTDIR=$(stagedir) install; \
1118 cd $(srcdir)/packaging/macosx ; \
1119 ./osx-app.sh @OSX_APP_FLAGS@ \
1121 --binary-path ../staging/$(PACKAGE).inst$(bindir) \
1122 --plugin-path ../staging/$(PACKAGE).inst$(plugindir) \
1123 --extcap-path ../staging/$(PACKAGE).inst$(extcapdir) \
1124 --library-path ../staging/$(PACKAGE).inst$(libdir) ; \
1126 echo "Error: OS X packaging tools not found." ; \
1127 echo "Package build abandoned." ; \
1130 packaging/macosx/COPYING.txt: COPYING
1131 (cd packaging/macosx ; \
1132 $(MAKE) COPYING.txt ;)
1134 osx-package: osx-app packaging/macosx/COPYING.txt
1135 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1136 cd $(srcdir)/packaging/macosx ; \
1137 chmod +x ./osx-dmg.sh ; \
1138 ./osx-dmg.sh @OSX_DMG_FLAGS@ ; \
1141 osx-install: osx-app
1142 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1143 echo "Copying Wireshark.app to /Applications" ; \
1144 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1148 cd epan && $(MAKE) $@
1151 rm -rf $(top_stagedir)
1154 $(MAKE) -C wiretap dumpabi-libwiretap
1155 $(MAKE) -C epan dumpabi-libwireshark
1156 $(MAKE) -C wsutil dumpabi-libwsutil
1159 $(PERL) $(top_srcdir)/tools/checkAPIs.pl -build \
1160 -sourcedir=$(srcdir) \
1162 $(wireshark_gtk_SOURCES)
1163 # $(EXTRA_wireshark_gtk_SOURCES)
1165 checkapi: checkapi_local
1166 cd wiretap && $(MAKE) checkapi
1167 cd codecs && $(MAKE) checkapi
1168 cd capchild && $(MAKE) checkapi
1169 cd caputils && $(MAKE) checkapi
1170 cd ui && $(MAKE) checkapi
1171 cd ui/gtk && $(MAKE) checkapi
1172 cd ui/cli && $(MAKE) checkapi
1173 cd epan && $(MAKE) checkapi
1174 cd epan/crypt && $(MAKE) checkapi
1175 cd epan/dfilter && $(MAKE) checkapi
1176 cd epan/ftypes && $(MAKE) checkapi
1177 cd epan/wmem && $(MAKE) checkapi
1178 cd epan/wslua && $(MAKE) checkapi
1179 cd epan/dissectors && $(MAKE) checkapi
1180 cd plugins && $(MAKE) checkapi
1181 cd randpkt_core && $(MAKE) checkapi
1182 cd writecap && $(MAKE) checkapi
1183 cd wsutil && $(MAKE) checkapi
1185 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1188 cd epan && $(MAKE) $@
1189 cd capchild && $(MAKE) $@
1190 cd caputils && $(MAKE) $@
1191 cd randpkt_core && $(MAKE) $@
1193 (umask 022 ; $(DOXYGEN) doxygen.cfg)
1199 zip -rq wsar_html.zip wsar_html
1202 # Update AUTHORS file with entries from git shortlog
1204 cd $(top_srcdir) && $(PERL) tools/generate_authors.pl AUTHORS.src > AUTHORS