Lua: Remove heur dissectors when reload Lua plugins
[metze/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Wireshark
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
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.
12 #
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.
17 #
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.
21
22 include ./Makefile.am.inc
23
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 = `./aclocal-flags`
28
29 # Common headers
30 COMMONCPPFLAGS =
31
32 AM_CPPFLAGS = $(INCLUDEDIRS) $(WS_CPPFLAGS) $(COMMONCPPFLAGS)
33
34 bin_PROGRAMS = \
35         @wireshark_bin@         \
36         @tshark_bin@            \
37         @tfshark_bin@           \
38         @text2pcap_bin@         \
39         @mergecap_bin@          \
40         @capinfos_bin@          \
41         @captype_bin@           \
42         @editcap_bin@           \
43         @randpkt_bin@           \
44         @dftest_bin@            \
45         @dumpcap_bin@           \
46         @reordercap_bin@        \
47         @rawshark_bin@          \
48         @echld_test_bin@
49
50 EXTRA_PROGRAMS = wireshark-gtk wireshark tshark tfshark capinfos captype \
51         editcap mergecap dftest randpkt text2pcap dumpcap reordercap \
52         rawshark echld_test
53
54 #
55 # Wireshark configuration files are put in $(pkgdatadir).
56 #
57 dist_pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
58         smi_modules ipmap.html pdml2html.xsl
59
60 #
61 # Install global profiles in the "profiles" subdirectory
62 #
63 profilesdir = $(pkgdatadir)
64 nobase_dist_profiles_DATA = \
65         profiles/Bluetooth/colorfilters \
66         profiles/Classic/colorfilters
67
68 #
69 # Install the Diameter DTD and XML files in the "diameter" subdirectory
70 # of that directory.
71 #
72 diameterdir = $(pkgdatadir)/diameter
73 include diameter/Custom.make
74 dist_diameter_DATA = $(_CUSTOM_diameter_xml_files_) \
75         diameter/chargecontrol.xml \
76         diameter/Cisco.xml \
77         diameter/Custom.xml \
78         diameter/dictionary.dtd \
79         diameter/dictionary.xml \
80         diameter/eap.xml \
81         diameter/Ericsson.xml \
82         diameter/etsie2e4.xml \
83         diameter/mobileipv4.xml \
84         diameter/mobileipv6.xml \
85         diameter/nasreq.xml \
86         diameter/sip.xml \
87         diameter/Starent.xml \
88         diameter/sunping.xml \
89         diameter/TGPP.xml \
90         diameter/TGPP2.xml \
91         diameter/Vodafone.xml \
92         diameter/AlcatelLucent.xml \
93         diameter/Nokia.xml \
94         diameter/NokiaSolutionsAndNetworks.xml \
95         diameter/HP.xml \
96         diameter/Oracle.xml
97
98 #
99 # Install the DTDs directory files in the "dtds" subdirectory
100 # of that directory
101 #
102 dtdsdir = $(pkgdatadir)/dtds
103 dist_dtds_DATA = \
104         dtds/dc.dtd \
105         dtds/itunes.dtd \
106         dtds/mscml.dtd \
107         dtds/pocsettings.dtd \
108         dtds/presence.dtd \
109         dtds/reginfo.dtd \
110         dtds/rlmi.dtd \
111         dtds/rss.dtd \
112         dtds/smil.dtd \
113         dtds/xcap-caps.dtd \
114         dtds/xcap-error.dtd \
115         dtds/watcherinfo.dtd
116
117 #
118 # Install the RADIUS directory files in the "radius" subdirectory
119 # of that directory.
120 #
121 radiusdir = $(pkgdatadir)/radius
122 include radius/Custom.make
123 dist_radius_DATA = $(_CUSTOM_radius_dict_) \
124         radius/README.radius_dictionary \
125         radius/custom.includes \
126         radius/dictionary \
127         radius/dictionary.3com \
128         radius/dictionary.3gpp \
129         radius/dictionary.3gpp2 \
130         radius/dictionary.acc \
131         radius/dictionary.acme \
132         radius/dictionary.airespace \
133         radius/dictionary.actelis \
134         radius/dictionary.aerohive \
135         radius/dictionary.alcatel \
136         radius/dictionary.alcatel.esam \
137         radius/dictionary.alcatel.sr \
138         radius/dictionary.alcatel-lucent.aaa \
139         radius/dictionary.alteon \
140         radius/dictionary.altiga \
141         radius/dictionary.alvarion \
142         radius/dictionary.alvarion.wimax.v2_2 \
143         radius/dictionary.apc \
144         radius/dictionary.aptis \
145         radius/dictionary.arbor \
146         radius/dictionary.aruba \
147         radius/dictionary.ascend \
148         radius/dictionary.asn \
149         radius/dictionary.audiocodes \
150         radius/dictionary.avaya \
151         radius/dictionary.azaire \
152         radius/dictionary.bay \
153         radius/dictionary.bluecoat \
154         radius/dictionary.bintec \
155         radius/dictionary.broadsoft \
156         radius/dictionary.brocade \
157         radius/dictionary.bskyb \
158         radius/dictionary.bristol \
159         radius/dictionary.bt \
160         radius/dictionary.camiant \
161         radius/dictionary.cablelabs \
162         radius/dictionary.cabletron \
163         radius/dictionary.chillispot \
164         radius/dictionary.cisco \
165         radius/dictionary.cisco.asa \
166         radius/dictionary.cisco.bbsm \
167         radius/dictionary.cisco.vpn3000 \
168         radius/dictionary.cisco.vpn5000 \
169         radius/dictionary.citrix \
170         radius/dictionary.clavister \
171         radius/dictionary.colubris \
172         radius/dictionary.columbia_university \
173         radius/dictionary.compatible \
174         radius/dictionary.compat \
175         radius/dictionary.cosine \
176         radius/dictionary.dante \
177         radius/dictionary.dhcp \
178         radius/dictionary.dlink \
179         radius/dictionary.digium \
180         radius/dictionary.dragonwave \
181         radius/dictionary.efficientip \
182         radius/dictionary.eltex \
183         radius/dictionary.epygi \
184         radius/dictionary.equallogic \
185         radius/dictionary.ericsson \
186         radius/dictionary.ericsson.ab \
187         radius/dictionary.ericsson.packet.core.networks \
188         radius/dictionary.erx \
189         radius/dictionary.extreme \
190         radius/dictionary.f5 \
191         radius/dictionary.fdxtended \
192         radius/dictionary.fortinet \
193         radius/dictionary.foundry \
194         radius/dictionary.freedhcp \
195         radius/dictionary.freeradius \
196         radius/dictionary.freeradius.internal \
197         radius/dictionary.freeswitch \
198         radius/dictionary.gandalf \
199         radius/dictionary.garderos \
200         radius/dictionary.gemtek \
201         radius/dictionary.h3c \
202         radius/dictionary.hp \
203         radius/dictionary.huawei \
204         radius/dictionary.iana \
205         radius/dictionary.iea \
206         radius/dictionary.infoblox \
207         radius/dictionary.infonet \
208         radius/dictionary.ipunplugged \
209         radius/dictionary.issanni \
210         radius/dictionary.itk \
211         radius/dictionary.jradius \
212         radius/dictionary.juniper \
213         radius/dictionary.kineto \
214         radius/dictionary.karlnet \
215         radius/dictionary.lancom \
216         radius/dictionary.livingston \
217         radius/dictionary.localweb \
218         radius/dictionary.lucent \
219         radius/dictionary.manzara \
220         radius/dictionary.meinberg \
221         radius/dictionary.merit \
222         radius/dictionary.meru \
223         radius/dictionary.microsoft \
224         radius/dictionary.mikrotik \
225         radius/dictionary.motorola \
226         radius/dictionary.motorola.wimax \
227         radius/dictionary.navini \
228         radius/dictionary.netscreen \
229         radius/dictionary.networkphysics \
230         radius/dictionary.nexans \
231         radius/dictionary.nokia \
232         radius/dictionary.nokia.conflict \
233         radius/dictionary.nomadix \
234         radius/dictionary.nortel \
235         radius/dictionary.ntua \
236         radius/dictionary.openser \
237         radius/dictionary.packeteer \
238         radius/dictionary.paloalto \
239         radius/dictionary.patton \
240         radius/dictionary.perle \
241         radius/dictionary.propel \
242         radius/dictionary.prosoft \
243         radius/dictionary.proxim \
244         radius/dictionary.purewave \
245         radius/dictionary.quiconnect \
246         radius/dictionary.quintum \
247         radius/dictionary.redcreek \
248         radius/dictionary.rfc2865 \
249         radius/dictionary.rfc2866 \
250         radius/dictionary.rfc2867 \
251         radius/dictionary.rfc2868 \
252         radius/dictionary.rfc2869 \
253         radius/dictionary.rfc3162 \
254         radius/dictionary.rfc3576 \
255         radius/dictionary.rfc3580 \
256         radius/dictionary.rfc4072 \
257         radius/dictionary.rfc4372 \
258         radius/dictionary.rfc4603 \
259         radius/dictionary.rfc4675 \
260         radius/dictionary.rfc4679 \
261         radius/dictionary.rfc4818 \
262         radius/dictionary.rfc4849 \
263         radius/dictionary.rfc5090 \
264         radius/dictionary.rfc5176 \
265         radius/dictionary.rfc5447 \
266         radius/dictionary.rfc5580 \
267         radius/dictionary.rfc5607 \
268         radius/dictionary.rfc5904 \
269         radius/dictionary.rfc6519 \
270         radius/dictionary.rfc6572 \
271         radius/dictionary.rfc6677 \
272         radius/dictionary.rfc6911 \
273         radius/dictionary.rfc6929 \
274         radius/dictionary.rfc6930 \
275         radius/dictionary.rfc7055 \
276         radius/dictionary.rfc7155 \
277         radius/dictionary.rfc7268 \
278         radius/dictionary.rfc7499 \
279         radius/dictionary.riverbed \
280         radius/dictionary.riverstone \
281         radius/dictionary.roaringpenguin \
282         radius/dictionary.ruckus \
283         radius/dictionary.ruggedcom \
284         radius/dictionary.sg \
285         radius/dictionary.shasta \
286         radius/dictionary.shiva \
287         radius/dictionary.siemens \
288         radius/dictionary.slipstream \
289         radius/dictionary.sofaware \
290         radius/dictionary.sonicwall \
291         radius/dictionary.springtide \
292         radius/dictionary.starent \
293         radius/dictionary.starent.vsa1 \
294         radius/dictionary.surfnet \
295         radius/dictionary.symbol \
296         radius/dictionary.t_systems_nova \
297         radius/dictionary.telebit \
298         radius/dictionary.telkom \
299         radius/dictionary.terena \
300         radius/dictionary.trapeze \
301         radius/dictionary.travelping \
302         radius/dictionary.tropos \
303         radius/dictionary.ukerna \
304         radius/dictionary.unix \
305         radius/dictionary.usr \
306         radius/dictionary.utstarcom \
307         radius/dictionary.valemount \
308         radius/dictionary.versanet \
309         radius/dictionary.vqp \
310         radius/dictionary.walabi \
311         radius/dictionary.waverider \
312         radius/dictionary.wichorus \
313         radius/dictionary.wimax \
314         radius/dictionary.wimax.alvarion \
315         radius/dictionary.wimax.wichorus \
316         radius/dictionary.wispr \
317         radius/dictionary.xedia \
318         radius/dictionary.xylan \
319         radius/dictionary.yubico \
320         radius/dictionary.zeus \
321         radius/dictionary.zte \
322         radius/dictionary.zyxel
323
324 #
325 # Install the tpncp directory files in the "tpncp" subdirectory
326 # of that directory
327 #
328 tpncpdir = $(pkgdatadir)/tpncp
329 dist_tpncp_DATA = \
330         tpncp/tpncp.dat
331
332 #
333 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
334 # of that directory
335 #
336 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
337 dist_wimaxasncp_DATA = \
338         wimaxasncp/dictionary.xml \
339         wimaxasncp/dictionary.dtd
340
341 if HAVE_PLUGINS
342 -include plugins/Custom.make
343 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
344         -dlopen plugins/docsis/docsis.la \
345         -dlopen plugins/ethercat/ethercat.la \
346         -dlopen plugins/gryphon/gryphon.la \
347         -dlopen plugins/irda/irda.la \
348         -dlopen plugins/m2m/m2m.la \
349         -dlopen plugins/mate/mate.la \
350         -dlopen plugins/opcua/opcua.la \
351         -dlopen plugins/profinet/profinet.la \
352         -dlopen plugins/stats_tree/stats_tree.la \
353         -dlopen plugins/unistim/unistim.la \
354         -dlopen plugins/wimax/wimax.la \
355         -dlopen plugins/wimaxmacphy/wimaxmacphy.la
356
357 else            # HAVE_PLUGINS
358
359 plugin_ldadd =
360
361 endif           # HAVE_PLUGINS
362
363 include Makefile.common
364
365 if ENABLE_STATIC
366 EXTRALINKFLAGS = -Wl,-static -all-static
367 else
368 EXTRALINKFLAGS = -export-dynamic
369 endif
370
371 # Libraries and plugin flags with which to link wireshark.
372 #
373 # Note that Wireshark, when built with a version of GTK+ that runs
374 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
375 # as those should also be included in @GTK_LIBS@ (as those are also
376 # needed for X applications, and GTK+ applications are X applications
377 # if the version of GTK+ they're built with runs atop X11).
378 #
379 # GTK_CFLAGS/GTK_LIBS is a strict superset of GLIB_CFLAGS/GLIB_LIBS
380 # (see configure.ac for pkg-config modules used).
381 #
382 wireshark_common_ldadd = \
383         capchild/libcapchild.a          \
384         caputils/libcaputils.a          \
385         ui/libui.a                      \
386         ui/libui_dirty.a                \
387         codecs/libwscodecs.la           \
388         wiretap/libwiretap.la           \
389         epan/libwireshark.la            \
390         wsutil/libwsutil.la             \
391         @SSL_LIBS@                      \
392         $(plugin_ldadd)                 \
393         @PCAP_LIBS@                     \
394         @C_ARES_LIBS@                   \
395         @ADNS_LIBS@                     \
396         @KRB5_LIBS@                     \
397         @APPLICATIONSERVICES_FRAMEWORKS@        \
398         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
399         @COREFOUNDATION_FRAMEWORKS@     \
400         @LIBGCRYPT_LIBS@                \
401         @LIBGNUTLS_LIBS@                \
402         @LIBSMI_LDFLAGS@                \
403         @LIBNL_LIBS@
404
405 if HAVE_Qt
406 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC) wireshark-qt.cpp
407
408 wireshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(Qt_CFLAGS)
409
410 wireshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS) $(Qt_LDFLAGS)
411
412 wireshark_LDADD = \
413         ui/qt/libqtui.a                 \
414         $(wireshark_common_ldadd)       \
415         $(GLIB_LIBS)                    \
416         $(Qt_LIBS)
417 endif
418
419 if HAVE_GTK
420 wireshark_gtk_SOURCES = $(WIRESHARK_COMMON_SRC)
421
422 wireshark_gtk_CPPFLAGS = $(AM_CPPFLAGS) $(GTK_CFLAGS)
423
424 wireshark_gtk_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
425
426 wireshark_gtk_LDADD = \
427         ui/gtk/libgtkui.a               \
428         $(wireshark_common_ldadd)       \
429         $(GTK_LIBS)                     \
430         @PORTAUDIO_LIBS@
431 endif
432
433 tshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
434
435 tshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
436
437 # Libraries and plugin flags with which to link tshark.
438 tshark_LDADD = \
439         capchild/libcapchild.a          \
440         caputils/libcaputils.a          \
441         ui/cli/libcliui.a               \
442         ui/libui.a                      \
443         wiretap/libwiretap.la           \
444         epan/libwireshark.la            \
445         wsutil/libwsutil.la             \
446         @SSL_LIBS@                      \
447         $(plugin_ldadd)                 \
448         @GLIB_LIBS@                     \
449         @PCAP_LIBS@                     \
450         @SOCKET_LIBS@                   \
451         @NSL_LIBS@                      \
452         @C_ARES_LIBS@                   \
453         @ADNS_LIBS@                     \
454         @KRB5_LIBS@                     \
455         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
456         @COREFOUNDATION_FRAMEWORKS@     \
457         @LIBGCRYPT_LIBS@                \
458         @LIBGNUTLS_LIBS@                \
459         @LIBSMI_LDFLAGS@
460
461 tfshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
462
463 tfshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
464
465 # Libraries and plugin flags with which to link tfshark.
466 tfshark_LDADD = \
467         ui/cli/libcliui.a               \
468         ui/libui.a                      \
469         wiretap/libwiretap.la           \
470         epan/libwireshark.la            \
471         wsutil/libwsutil.la             \
472         @SSL_LIBS@                      \
473         $(plugin_ldadd)                 \
474         @GLIB_LIBS@                     \
475         @PCAP_LIBS@                     \
476         @SOCKET_LIBS@                   \
477         @NSL_LIBS@                      \
478         @KRB5_LIBS@                     \
479         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
480         @COREFOUNDATION_FRAMEWORKS@     \
481         @LIBGNUTLS_LIBS@                \
482         @LIBSMI_LDFLAGS@
483
484 rawshark_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
485
486 rawshark_LDFLAGS = $(AM_LDFLAGS) $(EXTRALINKFLAGS)
487
488 # Libraries and plugin flags with which to link rawshark.
489 rawshark_LDADD = \
490         caputils/libcaputils.a          \
491         ui/libui.a                      \
492         wiretap/libwiretap.la           \
493         epan/libwireshark.la            \
494         wsutil/libwsutil.la             \
495         @SSL_LIBS@                      \
496         $(plugin_ldadd)                 \
497         @GLIB_LIBS@                     \
498         @PCAP_LIBS@                     \
499         @SOCKET_LIBS@                   \
500         @NSL_LIBS@                      \
501         @C_ARES_LIBS@                   \
502         @ADNS_LIBS@                     \
503         @KRB5_LIBS@                     \
504         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
505         @COREFOUNDATION_FRAMEWORKS@     \
506         @LIBGCRYPT_LIBS@                \
507         @LIBGNUTLS_LIBS@                \
508         @LIBSMI_LDFLAGS@
509
510 text2pcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
511
512 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
513 # which is generated (and therefore not always clean).
514 # We could generate text2pcap.o as a library with -Werror but for now it
515 # doesn't seem worth the effort.
516 text2pcap_CFLAGS = $(GENERATED_CFLAGS)
517
518 # Libraries with which to link text2pcap.
519 text2pcap_LDADD = \
520         wsutil/libwsutil.la             \
521         @GLIB_LIBS@
522
523 mergecap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
524
525 # Libraries with which to link mergecap.
526 mergecap_LDADD = \
527         wiretap/libwiretap.la           \
528         wsutil/libwsutil.la             \
529         @GLIB_LIBS@
530
531 capinfos_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
532
533 # Libraries with which to link capinfos.
534 capinfos_LDADD = \
535         wiretap/libwiretap.la           \
536         wsutil/libwsutil.la             \
537         @GLIB_LIBS@                     \
538         @LIBGCRYPT_LIBS@
539
540 captype_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
541
542 # Libraries with which to link captype.
543 captype_LDADD = \
544         wiretap/libwiretap.la           \
545         wsutil/libwsutil.la             \
546         @GLIB_LIBS@
547
548 editcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
549
550 # Libraries with which to link editcap.
551 editcap_LDADD = \
552         wiretap/libwiretap.la           \
553         wsutil/libwsutil.la             \
554         @GLIB_LIBS@
555
556 reordercap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
557
558 # Libraries with which to link reordercap.
559 reordercap_LDADD = \
560         wiretap/libwiretap.la           \
561         wsutil/libwsutil.la             \
562         @GLIB_LIBS@
563
564 randpkt_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
565
566 # Libraries with which to link randpkt.
567 randpkt_LDADD = \
568         randpkt_core/librandpkt_core.a  \
569         wiretap/libwiretap.la           \
570         wsutil/libwsutil.la             \
571         @GLIB_LIBS@                     \
572         @PCAP_LIBS@                     \
573         @SOCKET_LIBS@                   \
574         @NSL_LIBS@                      \
575         @C_ARES_LIBS@                   \
576         @ADNS_LIBS@
577
578 dftest_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
579
580 # Libraries and plugin flags with which to link dftest.
581 dftest_LDADD = \
582         ui/libui.a                      \
583         wiretap/libwiretap.la           \
584         wsutil/libwsutil.la             \
585         epan/libwireshark.la            \
586         @SSL_LIBS@                      \
587         $(plugin_ldadd)                 \
588         @GLIB_LIBS@                     \
589         @PCAP_LIBS@                     \
590         @SOCKET_LIBS@                   \
591         @NSL_LIBS@                      \
592         @C_ARES_LIBS@                   \
593         @ADNS_LIBS@                     \
594         @KRB5_LIBS@                     \
595         @LIBGCRYPT_LIBS@                \
596         @LIBGNUTLS_LIBS@                \
597         @LIBSMI_LDFLAGS@
598
599 echld_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
600
601 echld_test_LDADD = \
602         epan/libwireshark.la            \
603         echld/libechld.la               \
604         wsutil/libwsutil.la             \
605         @GLIB_LIBS@                     \
606         @PCAP_LIBS@                     \
607         @SOCKET_LIBS@                   \
608         @NSL_LIBS@                      \
609         @C_ARES_LIBS@                   \
610         @ADNS_LIBS@
611
612 echld_test_DEPENDENCIES = \
613         echld/libechld.la \
614         epan/libwireshark.la
615
616 dumpcap_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS)
617
618 dumpcap_CFLAGS = $(AM_CFLAGS) $(PIE_CFLAGS)
619
620 dumpcap_LDFLAGS = $(AM_LDFLAGS) $(PIE_LDFLAGS)
621
622 # Libraries with which to link dumpcap.
623 dumpcap_LDADD = \
624         caputils/libcaputils.a          \
625         wsutil/libwsutil.la             \
626         @GLIB_LIBS@                     \
627         @PCAP_LIBS@                     \
628         @SOCKET_LIBS@                   \
629         @NSL_LIBS@                      \
630         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
631         @COREFOUNDATION_FRAMEWORKS@     \
632         @LIBCAP_LIBS@                   \
633         @LIBNL_LIBS@
634
635 #
636 # Build the version string
637 #
638 # FORCE is the portable version of .PHONY
639 FORCE:
640
641 version.h: FORCE
642         $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
643
644 #
645 # Build shell scripts by doing variable substitution.
646 # Taken from autoconf 2.13.
647 #
648 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
649
650 SUFFIXES = .sh
651 .sh:
652         rm -f $@ $@.tmp
653         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
654
655 services:
656         $(PYTHON) $(srcdir)/tools/make-services.py
657
658 CLEANFILES =            \
659         *~              \
660         doxygen-core.tag        \
661         vgcore.*
662
663 #
664 # We have to remove version.h with "make distclean", as, otherwise,
665 # "make distcheck" fails.  We still need to make the tarballs work
666 # even if you do "make distclean" and try to rebuild; that's a work in
667 # progress.
668 #
669 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
670 # list of files removed by "make distclean"?  (It's deliberately
671 # included in that list.)
672 #
673 DISTCLEANFILES = \
674         ps.c                    \
675         version.h
676
677 MAINTAINERCLEANFILES =          \
678         $(GENERATED_FILES)      \
679         Makefile.in             \
680         aclocal.m4              \
681         compile                 \
682         config.h.in             \
683         configure               \
684         depcomp                 \
685         install-sh              \
686         ltmain.sh               \
687         missing                 \
688         ylwrap
689
690 EXTRA_DIST = \
691         .editorconfig           \
692         .mailmap                \
693         INSTALL.configure       \
694         Makefile.am.inc         \
695         Makefile.common         \
696         Makefile.nmake          \
697         Makefile.nmake.inc      \
698         README.aix              \
699         README.bsd              \
700         README.DECT             \
701         README.hpux             \
702         README.linux            \
703         README.macos            \
704         README.tru64            \
705         README.vmware           \
706         README.windows          \
707         abi-descriptor.template \
708         aclocal-fallback/ax_append_flag.m4              \
709         aclocal-fallback/ax_check_compile_flag.m4       \
710         aclocal-fallback/ax_compiler_vendor.m4          \
711         aclocal-fallback/ax_ext.m4                      \
712         aclocal-fallback/ax_gcc_x86_cpuid.m4            \
713         aclocal-fallback/ax_gcc_x86_avx_xgetbv.m4       \
714         aclocal-fallback/ax_prog_cc_for_build.m4        \
715         aclocal-fallback/libsmi.m4                      \
716         aclocal-fallback/libgcrypt.m4                   \
717         aclocal-flags           \
718         adns_dll.dep            \
719         adns_dll.rc             \
720         autogen.sh              \
721         capinfos.c              \
722         captype.c               \
723         cfilters                \
724         colorfilters            \
725         config.h.win32          \
726         config.nmake            \
727         debian/changelog        \
728         debian/compat           \
729         debian/control          \
730         debian/copyright        \
731         debian/dirs             \
732         debian/ethereal-common.NEWS     \
733         debian/geoip_db_paths   \
734         debian/headers-check.c  \
735         debian/libwireshark0.install    \
736         debian/libwireshark0.symbols    \
737         debian/libwireshark-data.install        \
738         debian/libwireshark-dev.install \
739         debian/libwiretap0.docs \
740         debian/libwiretap0.install      \
741         debian/libwiretap0.symbols      \
742         debian/libwiretap-dev.install   \
743         debian/libwscodecs0.install     \
744         debian/libwscodecs0.symbols     \
745         debian/libwsutil0.install       \
746         debian/libwsutil0.symbols       \
747         debian/libwsutil-dev.install    \
748         debian/license-text-about-dialog        \
749         debian/patches/02_use_packaged_openlayers_js.patch      \
750         debian/patches/04_asn2wrs_ply.patch     \
751         debian/patches/05_note-README-when-running-as-root.patch        \
752         debian/patches/06_release-version.patch \
753         debian/patches/09_idl2wrs.patch \
754         debian/patches/16_licence_about_location.patch  \
755         debian/patches/series   \
756         debian/po/POTFILES.in   \
757         debian/po/cs.po \
758         debian/po/da.po \
759         debian/po/de.po \
760         debian/po/es.po \
761         debian/po/eu.po \
762         debian/po/fi.po \
763         debian/po/fr.po \
764         debian/po/hu.po \
765         debian/po/id.po \
766         debian/po/it.po \
767         debian/po/ja.po \
768         debian/po/ko.po \
769         debian/po/nl.po \
770         debian/po/pt.po \
771         debian/po/pt_BR.po      \
772         debian/po/ru.po \
773         debian/po/sk.po \
774         debian/po/sv.po \
775         debian/po/templates.pot \
776         debian/po/vi.po \
777         debian/postinst         \
778         debian/README.Debian    \
779         debian/README.Debian.security   \
780         debian/rules            \
781         debian/source/format    \
782         debian/templates        \
783         debian/tshark.docs      \
784         debian/tshark.install   \
785         debian/tshark.manpages  \
786         debian/wireshark-common.config  \
787         debian/wireshark-common.install \
788         debian/wireshark-common.manpages \
789         debian/wireshark-common.postinst        \
790         debian/wireshark-common.postrm  \
791         debian/wireshark-dev.docs \
792         debian/wireshark-dev.install    \
793         debian/wireshark-dev.manpages \
794         debian/wireshark-dev.prerm \
795         debian/wireshark-doc.docs       \
796         debian/wireshark-gtk.docs       \
797         debian/wireshark-gtk.install    \
798         debian/wireshark-qt.docs        \
799         debian/wireshark-qt.install     \
800         debian/wireshark-qt.manpages \
801         dfilters                \
802         doxygen_global.cfg      \
803         doxygen.cfg.in          \
804         dumpcap.c               \
805         editcap.c               \
806         epan/print.ps           \
807         fix/FIX.xml             \
808         fix/FIX40.xml           \
809         fix/FIX41.xml           \
810         fix/FIX42.xml           \
811         fix/FIX43.xml           \
812         fix/FIX44.xml           \
813         fix/FIX50.xml           \
814         fix/FIX50SP1.xml        \
815         fix/FIX50SP2.xml        \
816         fix/README              \
817         fix/Values.xsl          \
818         fix/hfDecl.xsl          \
819         fix/hfField.xsl         \
820         fix/hfList.xsl          \
821         idl/coseventcomm.idl    \
822         idl/cosnaming.idl       \
823         idl/tango.idl   \
824         idl/parlay/am.idl       \
825         idl/parlay/cccs.idl     \
826         idl/parlay/cm.idl       \
827         idl/parlay/common_cc_data.idl   \
828         idl/parlay/cs.idl       \
829         idl/parlay/dsc.idl      \
830         idl/parlay/fw_data.idl  \
831         idl/parlay/fw_if.idl    \
832         idl/parlay/fw_if_access.idl     \
833         idl/parlay/fw_if_app.idl        \
834         idl/parlay/fw_if_entop.idl      \
835         idl/parlay/fw_if_service.idl    \
836         idl/parlay/gcc_data.idl \
837         idl/parlay/gcc_interfaces.idl   \
838         idl/parlay/gms.idl      \
839         idl/parlay/mm.idl       \
840         idl/parlay/mmccs.idl    \
841         idl/parlay/mmm.idl      \
842         idl/parlay/mpcc_data.idl        \
843         idl/parlay/mpcc_interfaces.idl  \
844         idl/parlay/osa.idl      \
845         idl/parlay/pam_data.idl \
846         idl/parlay/pam_interfaces.idl   \
847         idl/parlay/Parlay.idl   \
848         idl/parlay/policy_data.idl      \
849         idl/parlay/policy_interfaces.idl        \
850         idl/parlay/README.parlay        \
851         idl/parlay/termcap.idl  \
852         idl/parlay/ui_data.idl  \
853         idl/parlay/ui_interfaces.idl    \
854         image/capinfos.rc.in    \
855         image/captype.rc.in     \
856         image/capture_comment.svg       \
857         image/capture_comment_add.png   \
858         image/capture_comment_disabled.png      \
859         image/capture_comment_update.png        \
860         image/capture_comment_update.svg        \
861         image/clist_ascend.xpm                  \
862         image/clist_descend.xpm                 \
863         image/copy-8.png                        \
864         image/dumpcap.rc.in     \
865         image/editcap.rc.in     \
866         image/file_dlg_win32.rc \
867         image/hi16-app-wireshark.png    \
868         image/hi32-app-wireshark.png    \
869         image/hi48-app-wireshark.png    \
870         image/languages/de.svg          \
871         image/languages/en.svg          \
872         image/languages/fr.svg          \
873         image/languages/it.svg          \
874         image/languages/ja_JP.svg       \
875         image/languages/pl.svg          \
876         image/languages/zh_CN.svg       \
877         image/layout_1.png              \
878         image/layout_1@2x.png           \
879         image/layout_2.png              \
880         image/layout_2@2x.png           \
881         image/layout_3.png              \
882         image/layout_3@2x.png           \
883         image/layout_4.png              \
884         image/layout_4@2x.png           \
885         image/layout_5.png              \
886         image/layout_5@2x.png           \
887         image/layout_6.png              \
888         image/layout_6@2x.png           \
889         image/libwscodecs.rc.in         \
890         image/libwireshark.rc.in        \
891         image/libwsutil.rc.in           \
892         image/lo16-app-wireshark.png    \
893         image/lo32-app-wireshark.png    \
894         image/lo48-app-wireshark.png    \
895         image/Makefile.nmake                    \
896         image/mergecap.rc.in                    \
897         image/minus-8.png                       \
898         image/nsis-checked.bmp                  \
899         image/nsis-unchecked.bmp                \
900         image/openhand-16.png                   \
901         image/plus-8.png                        \
902         image/rawshark.rc.in                    \
903         image/README.image                      \
904         image/reordercap.rc.in                  \
905         image/rubberband-16.png                 \
906         image/stock_dialog_error_48.xpm         \
907         image/stock_dialog_info_48.xpm          \
908         image/stock_dialog_question_48.xpm      \
909         image/stock_dialog_stop_48.xpm          \
910         image/stock_dialog_warning_48.xpm       \
911         image/text2pcap.rc.in                   \
912         image/tfshark.rc.in                     \
913         image/expert_ok.png                     \
914         image/toolbar/14x14/x-capture-comment-update.png        \
915         image/toolbar/14x14/x-capture-comment-update.svg        \
916         image/toolbar/14x14/x-capture-comment-update@2x.png     \
917         image/toolbar/14x14/x-capture-filter-bookmark.active.png \
918         image/toolbar/14x14/x-capture-filter-bookmark.active.svg \
919         image/toolbar/14x14/x-capture-filter-bookmark.active@2x.png \
920         image/toolbar/14x14/x-capture-filter-bookmark.png \
921         image/toolbar/14x14/x-capture-filter-bookmark.selected.png \
922         image/toolbar/14x14/x-capture-filter-bookmark.selected.svg \
923         image/toolbar/14x14/x-capture-filter-bookmark.selected@2x.png \
924         image/toolbar/14x14/x-capture-filter-bookmark.svg \
925         image/toolbar/14x14/x-capture-filter-bookmark@2x.png \
926         image/toolbar/14x14/x-display-filter-bookmark.active.png \
927         image/toolbar/14x14/x-display-filter-bookmark.active.svg \
928         image/toolbar/14x14/x-display-filter-bookmark.active@2x.png \
929         image/toolbar/14x14/x-display-filter-bookmark.png \
930         image/toolbar/14x14/x-display-filter-bookmark.selected.png \
931         image/toolbar/14x14/x-display-filter-bookmark.selected.svg \
932         image/toolbar/14x14/x-display-filter-bookmark.selected@2x.png \
933         image/toolbar/14x14/x-display-filter-bookmark.svg \
934         image/toolbar/14x14/x-display-filter-bookmark@2x.png \
935         image/toolbar/14x14/x-expert-chat.png   \
936         image/toolbar/14x14/x-expert-chat@2x.png        \
937         image/toolbar/14x14/x-expert-error.png  \
938         image/toolbar/14x14/x-expert-error@2x.png       \
939         image/toolbar/14x14/x-expert-indicators-all.svg \
940         image/toolbar/14x14/x-expert-none.png   \
941         image/toolbar/14x14/x-expert-none@2x.png        \
942         image/toolbar/14x14/x-expert-note.png   \
943         image/toolbar/14x14/x-expert-note@2x.png        \
944         image/toolbar/14x14/x-expert-warn.png   \
945         image/toolbar/14x14/x-expert-warn@2x.png        \
946         image/toolbar/14x14/x-filter-clear.active.png \
947         image/toolbar/14x14/x-filter-clear.active.svg \
948         image/toolbar/14x14/x-filter-clear.active@2x.png \
949         image/toolbar/14x14/x-filter-clear.png \
950         image/toolbar/14x14/x-filter-clear.selected.png \
951         image/toolbar/14x14/x-filter-clear.selected.svg \
952         image/toolbar/14x14/x-filter-clear.selected@2x.png \
953         image/toolbar/14x14/x-filter-clear.svg \
954         image/toolbar/14x14/x-filter-clear@2x.png \
955         image/toolbar/14x14/x-filter-dropdown.png \
956         image/toolbar/14x14/x-filter-dropdown.svg \
957         image/toolbar/14x14/x-filter-dropdown@2x.png \
958         image/toolbar/14x14/x-filter-matching-bookmark.active.png \
959         image/toolbar/14x14/x-filter-matching-bookmark.active.svg \
960         image/toolbar/14x14/x-filter-matching-bookmark.active@2x.png \
961         image/toolbar/14x14/x-filter-matching-bookmark.png \
962         image/toolbar/14x14/x-filter-matching-bookmark.selected.png \
963         image/toolbar/14x14/x-filter-matching-bookmark.selected.svg \
964         image/toolbar/14x14/x-filter-matching-bookmark.selected@2x.png \
965         image/toolbar/14x14/x-filter-matching-bookmark.svg \
966         image/toolbar/14x14/x-filter-matching-bookmark@2x.png \
967         image/toolbar/16x16/edit-find.png               \
968         image/toolbar/16x16/edit-find.svg               \
969         image/toolbar/16x16/edit-find@2x.png            \
970         image/toolbar/16x16/go-first.png                \
971         image/toolbar/16x16/go-first.svg                \
972         image/toolbar/16x16/go-first@2x.png             \
973         image/toolbar/16x16/go-jump.png                 \
974         image/toolbar/16x16/go-jump.svg                 \
975         image/toolbar/16x16/go-jump@2x.png              \
976         image/toolbar/16x16/go-last.png                 \
977         image/toolbar/16x16/go-last.svg                 \
978         image/toolbar/16x16/go-last@2x.png              \
979         image/toolbar/16x16/go-next.png                 \
980         image/toolbar/16x16/go-next.svg                 \
981         image/toolbar/16x16/go-next@2x.png              \
982         image/toolbar/16x16/go-previous.png             \
983         image/toolbar/16x16/go-previous.svg             \
984         image/toolbar/16x16/go-previous@2x.png          \
985         image/toolbar/16x16/x-capture-file-close.png    \
986         image/toolbar/16x16/x-capture-file-close.svg    \
987         image/toolbar/16x16/x-capture-file-close@2x.png \
988         image/toolbar/16x16/x-capture-file-close@2x.svg \
989         image/toolbar/16x16/x-capture-file-reload.png   \
990         image/toolbar/16x16/x-capture-file-reload.svg   \
991         image/toolbar/16x16/x-capture-file-reload@2x.png        \
992         image/toolbar/16x16/x-capture-file-reload@2x.svg        \
993         image/toolbar/16x16/x-capture-file-save.png     \
994         image/toolbar/16x16/x-capture-file-save.svg     \
995         image/toolbar/16x16/x-capture-file-save@2x.png  \
996         image/toolbar/16x16/x-capture-file-save@2x.svg  \
997         image/toolbar/16x16/x-capture-options-gear.svg  \
998         image/toolbar/16x16/x-capture-options-wrench.svg        \
999         image/toolbar/16x16/x-capture-options.png       \
1000         image/toolbar/16x16/x-capture-options@2x.png    \
1001         image/toolbar/16x16/x-capture-restart-fin.svg   \
1002         image/toolbar/16x16/x-capture-restart-triangle1.svg     \
1003         image/toolbar/16x16/x-capture-restart-triangle2.svg     \
1004         image/toolbar/16x16/x-capture-restart-turn1.svg \
1005         image/toolbar/16x16/x-capture-restart-turn2.svg \
1006         image/toolbar/16x16/x-capture-restart.png       \
1007         image/toolbar/16x16/x-capture-restart@2x.png    \
1008         image/toolbar/16x16/x-capture-start.on.png      \
1009         image/toolbar/16x16/x-capture-start.on.svg      \
1010         image/toolbar/16x16/x-capture-start.on@2x.png   \
1011         image/toolbar/16x16/x-capture-start.png         \
1012         image/toolbar/16x16/x-capture-start.svg         \
1013         image/toolbar/16x16/x-capture-start@2x.png      \
1014         image/toolbar/16x16/x-capture-stop-red.svg      \
1015         image/toolbar/16x16/x-capture-stop-white.svg    \
1016         image/toolbar/16x16/x-capture-stop.png          \
1017         image/toolbar/16x16/x-capture-stop@2x.png       \
1018         image/toolbar/16x16/x-colorize-packets.png      \
1019         image/toolbar/16x16/x-colorize-packets.svg      \
1020         image/toolbar/16x16/x-colorize-packets@2x.png   \
1021         image/toolbar/16x16/x-resize-columns.png        \
1022         image/toolbar/16x16/x-resize-columns.svg        \
1023         image/toolbar/16x16/x-resize-columns@2x.png     \
1024         image/toolbar/16x16/x-stay-last.png             \
1025         image/toolbar/16x16/x-stay-last.svg             \
1026         image/toolbar/16x16/x-stay-last@2x.png          \
1027         image/toolbar/16x16/zoom-in.png                 \
1028         image/toolbar/16x16/zoom-in.svg                 \
1029         image/toolbar/16x16/zoom-in@2x.png              \
1030         image/toolbar/16x16/zoom-original.png           \
1031         image/toolbar/16x16/zoom-original.svg           \
1032         image/toolbar/16x16/zoom-original@2x.png        \
1033         image/toolbar/16x16/zoom-out.png                \
1034         image/toolbar/16x16/zoom-out.svg                \
1035         image/toolbar/16x16/zoom-out@2x.png             \
1036         image/toolbar/24x14/x-filter-apply.active.png \
1037         image/toolbar/24x14/x-filter-apply.active.svg \
1038         image/toolbar/24x14/x-filter-apply.active@2x.png \
1039         image/toolbar/24x14/x-filter-apply.png \
1040         image/toolbar/24x14/x-filter-apply.selected.png \
1041         image/toolbar/24x14/x-filter-apply.selected.svg \
1042         image/toolbar/24x14/x-filter-apply.selected@2x.png \
1043         image/toolbar/24x14/x-filter-apply.svg \
1044         image/toolbar/24x14/x-filter-apply@2x.png \
1045         image/toolbar/24x24/edit-find.png       \
1046         image/toolbar/24x24/edit-find.svg       \
1047         image/toolbar/24x24/edit-find@2x.png    \
1048         image/toolbar/24x24/go-first.png        \
1049         image/toolbar/24x24/go-first.svg        \
1050         image/toolbar/24x24/go-first@2x.png     \
1051         image/toolbar/24x24/go-jump.png         \
1052         image/toolbar/24x24/go-jump.svg         \
1053         image/toolbar/24x24/go-jump@2x.png      \
1054         image/toolbar/24x24/go-last.png         \
1055         image/toolbar/24x24/go-last.svg         \
1056         image/toolbar/24x24/go-last@2x.png      \
1057         image/toolbar/24x24/go-next.png         \
1058         image/toolbar/24x24/go-next.svg         \
1059         image/toolbar/24x24/go-next@2x.png      \
1060         image/toolbar/24x24/go-previous.png     \
1061         image/toolbar/24x24/go-previous.svg     \
1062         image/toolbar/24x24/go-previous@2x.png  \
1063         image/toolbar/24x24/x-capture-file-close.png            \
1064         image/toolbar/24x24/x-capture-file-close.svg            \
1065         image/toolbar/24x24/x-capture-file-close@2x.png         \
1066         image/toolbar/24x24/x-capture-file-close@2x.svg         \
1067         image/toolbar/24x24/x-capture-file-reload.png           \
1068         image/toolbar/24x24/x-capture-file-reload.svg           \
1069         image/toolbar/24x24/x-capture-file-reload@2x.png        \
1070         image/toolbar/24x24/x-capture-file-reload@2x.svg        \
1071         image/toolbar/24x24/x-capture-file-save.png             \
1072         image/toolbar/24x24/x-capture-file-save.svg             \
1073         image/toolbar/24x24/x-capture-file-save@2x.png          \
1074         image/toolbar/24x24/x-capture-file-save@2x.svg          \
1075         image/toolbar/24x24/x-capture-options-gear.svg          \
1076         image/toolbar/24x24/x-capture-options-wrench.svg        \
1077         image/toolbar/24x24/x-capture-options.png               \
1078         image/toolbar/24x24/x-capture-options@2x.png            \
1079         image/toolbar/24x24/x-capture-restart-fin.svg           \
1080         image/toolbar/24x24/x-capture-restart-triangle1.svg     \
1081         image/toolbar/24x24/x-capture-restart-triangle2.svg     \
1082         image/toolbar/24x24/x-capture-restart-turn1.svg         \
1083         image/toolbar/24x24/x-capture-restart-turn2.svg         \
1084         image/toolbar/24x24/x-capture-restart.png               \
1085         image/toolbar/24x24/x-capture-restart@2x.png            \
1086         image/toolbar/24x24/x-capture-start.on.png              \
1087         image/toolbar/24x24/x-capture-start.on.svg              \
1088         image/toolbar/24x24/x-capture-start.on@2x.png           \
1089         image/toolbar/24x24/x-capture-start.png         \
1090         image/toolbar/24x24/x-capture-start.svg         \
1091         image/toolbar/24x24/x-capture-start@2x.png      \
1092         image/toolbar/24x24/x-capture-stop-red.svg      \
1093         image/toolbar/24x24/x-capture-stop-white.svg    \
1094         image/toolbar/24x24/x-capture-stop.png          \
1095         image/toolbar/24x24/x-capture-stop@2x.png       \
1096         image/toolbar/24x24/x-colorize-packets.png      \
1097         image/toolbar/24x24/x-colorize-packets.svg      \
1098         image/toolbar/24x24/x-colorize-packets@2x.png   \
1099         image/toolbar/24x24/x-resize-columns-motion.svg \
1100         image/toolbar/24x24/x-resize-columns.png        \
1101         image/toolbar/24x24/x-resize-columns.svg        \
1102         image/toolbar/24x24/x-resize-columns@2x.png     \
1103         image/toolbar/24x24/x-stay-last.png             \
1104         image/toolbar/24x24/x-stay-last.svg             \
1105         image/toolbar/24x24/x-stay-last@2x.png          \
1106         image/toolbar/24x24/zoom-in.png                 \
1107         image/toolbar/24x24/zoom-in.svg                 \
1108         image/toolbar/24x24/zoom-in@2x.png              \
1109         image/toolbar/24x24/zoom-original.png           \
1110         image/toolbar/24x24/zoom-original.svg           \
1111         image/toolbar/24x24/zoom-original@2x.png        \
1112         image/toolbar/24x24/zoom-out.png                \
1113         image/toolbar/24x24/zoom-out.svg                \
1114         image/toolbar/24x24/zoom-out@2x.png             \
1115         image/toolbar.qrc                       \
1116         image/toolbar/analyze_24.xpm            \
1117         image/toolbar/audio_player_24.xpm       \
1118         image/toolbar/autoscroll_24.xpm         \
1119         image/toolbar/capture_airpcap_16.xpm    \
1120         image/toolbar/capture_capture_16.xpm    \
1121         image/toolbar/capture_details_16.xpm    \
1122         image/toolbar/capture_details_24.xpm    \
1123         image/toolbar/capture_ethernet_16.xpm   \
1124         image/toolbar/capture_filter_24.xpm     \
1125         image/toolbar/capture_interfaces_16.png \
1126         image/toolbar/capture_interfaces_16.svg \
1127         image/toolbar/capture_interfaces_24.png \
1128         image/toolbar/capture_interfaces_24.svg \
1129         image/toolbar/capture_pause_16.png      \
1130         image/toolbar/capture_pause_16.svg      \
1131         image/toolbar/capture_pause_24.png      \
1132         image/toolbar/capture_pause_24.svg      \
1133         image/toolbar/capture_prepare_16.xpm    \
1134         image/toolbar/checkbox_16.xpm           \
1135         image/toolbar/colorize_24.xpm           \
1136         image/toolbar/conversations_16.xpm      \
1137         image/toolbar/decode_24.xpm             \
1138         image/toolbar/decode_as_16.xpm          \
1139         image/toolbar/display_filter_24.xpm     \
1140         image/toolbar/endpoints_16.xpm          \
1141         image/toolbar/expert_info_16.xpm        \
1142         image/toolbar/file_set_list_16.xpm      \
1143         image/toolbar/file_set_next_16.xpm      \
1144         image/toolbar/file_set_previous_16.xpm  \
1145         image/toolbar/flow_graph_16.xpm \
1146         image/toolbar/gnome_emblem_web_16.png   \
1147         image/toolbar/gnome_emblem_web_24.png   \
1148         image/toolbar/graphs_16.xpm     \
1149         image/toolbar/icon_color_0.xpm  \
1150         image/toolbar/icon_color_1.xpm  \
1151         image/toolbar/icon_color_2.xpm  \
1152         image/toolbar/icon_color_3.xpm  \
1153         image/toolbar/icon_color_4.xpm  \
1154         image/toolbar/icon_color_5.xpm  \
1155         image/toolbar/icon_color_6.xpm  \
1156         image/toolbar/icon_color_7.xpm  \
1157         image/toolbar/icon_color_8.xpm  \
1158         image/toolbar/icon_color_9.xpm  \
1159         image/toolbar/internet_24.xpm   \
1160         image/toolbar/modem_16.png      \
1161         image/toolbar/modem_16.xpm      \
1162         image/toolbar/network_bluetooth_16.png  \
1163         image/toolbar/network_usb.svg           \
1164         image/toolbar/network_usb_16.png        \
1165         image/toolbar/network_virtual_16.xpm    \
1166         image/toolbar/network_wired_16.png      \
1167         image/toolbar/network_wireless_16.png   \
1168         image/toolbar/pipe_16.png       \
1169         image/toolbar/remote_arrow_16.png       \
1170         image/toolbar/remote_globe_16.png       \
1171         image/toolbar/remote_sat_16.png \
1172         image/toolbar/resize_columns_24.xpm     \
1173         image/toolbar/svg-to-png.sh     \
1174         image/toolbar/svg/x-filter-apply.svg    \
1175         image/toolbar/svg/x-filter-bookmark.svg \
1176         image/toolbar/svg/x-filter-clear.svg    \
1177         image/toolbar/telephone_16.xpm  \
1178         image/toolbar/telephony_16.xpm  \
1179         image/toolbar/time_24.xpm       \
1180         image/toolbar/voip_flow_24.xpm  \
1181         image/toolbar/web_support_24.xpm        \
1182         image/toolbar/wep_closed_24.xpm \
1183         image/tshark.rc.in      \
1184         image/voip_select.xpm   \
1185         image/wireshark.exe.manifest.in \
1186         image/wireshark.ico     \
1187         image/wireshark.rc.in   \
1188         image/wiresharkdoc.ico  \
1189         image/wiresharkinst.ico \
1190         image/WiresharkDoc-16.png       \
1191         image/WiresharkDoc-24.png       \
1192         image/WiresharkDoc-32.png       \
1193         image/WiresharkDoc-48.png       \
1194         image/WiresharkDoc-64.png       \
1195         image/WiresharkDoc-128.png      \
1196         image/WiresharkDoc-256.png      \
1197         image/wiretap.rc.in     \
1198         image/wsicon.qrc        \
1199         image/wsicon.svg        \
1200         image/wsicon16.png      \
1201         image/wsicon24.png      \
1202         image/wsicon32.png      \
1203         image/wsicon48.png      \
1204         image/wsicon64.png      \
1205         image/wsicon128.png     \
1206         image/wsicon256.png     \
1207         image/wsicon512.png     \
1208         image/wsicon1024.png    \
1209         image/wsicon-ask.png    \
1210         image/wsicon-ask.svg    \
1211         image/wsiconcap.svg     \
1212         image/wsiconcap16.png   \
1213         image/wsiconcap24.png   \
1214         image/wsiconcap32.png   \
1215         image/wsiconcap48.png   \
1216         image/wsiconcap64.png   \
1217         image/wsiconcap128.png  \
1218         image/wsiconcap256.png  \
1219         image/wsiconcap512.png  \
1220         image/wsiconcap1024.png \
1221         image/wsiconinst.svg    \
1222         image/wsiconinst256.png \
1223         image/wslogo-dev.svg    \
1224         image/wslogo.eps        \
1225         image/wslogo.svg        \
1226         image/wssplash_dev.png  \
1227         image/wssplash.png      \
1228         ipmap.html              \
1229         macosx-setup.sh         \
1230         macosx-support-lib-patches/glib-gconvert.c.patch \
1231         macosx-support-lib-patches/glib-pkgconfig.patch \
1232         macosx-support-lib-patches/gnutls-pkgconfig.patch \
1233         macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
1234         macosx-support-lib-patches/portaudio-pa_mac_core.c.patch \
1235         macosx-support-lib-patches/qt-fix-pc-file \
1236         macosx-support-lib-patches/qt-fix-pc-files \
1237         make-version.pl         \
1238         manuf                   \
1239         manuf.tmpl              \
1240         mergecap.c              \
1241         pdml2html.xsl           \
1242         reordercap.c            \
1243         smi_modules             \
1244         text2pcap-scanner.l     \
1245         text2pcap.h             \
1246         services                \
1247         wireshark.desktop       \
1248         wireshark-gtk.desktop   \
1249         wireshark-mime-package.xml \
1250         wireshark.appdata.xml   \
1251         wireshark.pc.in         \
1252         wka.tmpl                \
1253         CMakeLists.txt          \
1254         CMakeListsCustom.txt.example            \
1255         cmakeconfig.h.in        \
1256         wsutil/CMakeLists.txt   \
1257         CMakeOptions.txt        \
1258         wiretap/CMakeLists.txt  \
1259         README.cmake            \
1260         ConfigureChecks.cmake   \
1261         cmake/modules/CheckCCompilerFlag.cmake  \
1262         cmake/modules/CheckCLinkerFlag.cmake    \
1263         cmake/modules/CMakeInstallDirs.cmake    \
1264         cmake/modules/COPYING-CMAKE-SCRIPTS     \
1265         cmake/modules/FindADNS.cmake            \
1266         cmake/modules/FindAIRPCAP.cmake         \
1267         cmake/modules/FindASCIIDOC.cmake        \
1268         cmake/modules/FindCAP.cmake             \
1269         cmake/modules/FindCARES.cmake           \
1270         cmake/modules/FindChocolatey.cmake      \
1271         cmake/modules/FindDOXYGEN.cmake         \
1272         cmake/modules/FindFOP.cmake             \
1273         cmake/modules/FindFreetype.cmake        \
1274         cmake/modules/FindGCRYPT.cmake          \
1275         cmake/modules/FindGEOIP.cmake           \
1276         cmake/modules/FindGLIB2.cmake           \
1277         cmake/modules/FindGMODULE2.cmake        \
1278         cmake/modules/FindGNUTLS.cmake          \
1279         cmake/modules/FindGTHREAD2.cmake        \
1280         cmake/modules/FindGTK2.cmake            \
1281         cmake/modules/FindGTK3.cmake            \
1282         cmake/modules/FindHtmlViewer.cmake      \
1283         cmake/modules/FindKERBEROS.cmake        \
1284         cmake/modules/FindLEX.cmake             \
1285         cmake/modules/FindLUA.cmake             \
1286         cmake/modules/FindLYNX.cmake            \
1287         cmake/modules/FindM.cmake               \
1288         cmake/modules/FindMSVC_REDIST.cmake     \
1289         cmake/modules/FindNL.cmake              \
1290         cmake/modules/FindNSIS.cmake            \
1291         cmake/modules/FindOS_X_FRAMEWORKS.cmake \
1292         cmake/modules/FindPCAP.cmake            \
1293         cmake/modules/FindPOD.cmake             \
1294         cmake/modules/FindPortableApps.cmake    \
1295         cmake/modules/FindPORTAUDIO.cmake       \
1296         cmake/modules/FindPowerShell.cmake      \
1297         cmake/modules/FindSBC.cmake             \
1298         cmake/modules/FindSED.cmake             \
1299         cmake/modules/FindSETCAP.cmake          \
1300         cmake/modules/FindSH.cmake              \
1301         cmake/modules/FindSMI.cmake             \
1302         cmake/modules/FindLIBSSH.cmake  \
1303         cmake/modules/FindWinSparkle.cmake      \
1304         cmake/modules/FindWireshark.cmake       \
1305         cmake/modules/FindWSWinLibs.cmake       \
1306         cmake/modules/FindXMLLINT.cmake         \
1307         cmake/modules/FindXSLTPROC.cmake        \
1308         cmake/modules/FindYACC.cmake            \
1309         cmake/modules/FindYAPP.cmake            \
1310         cmake/modules/FindZLIB.cmake            \
1311         cmake/modules/GenerateTestSh.cmake      \
1312         cmake/modules/gmxTestLargeFiles.cmake   \
1313         cmake/modules/hhc.cmake \
1314         cmake/modules/LICENSE.txt               \
1315         cmake/modules/LocatePythonExecutable.cmake      \
1316         cmake/modules/LocatePythonModule.cmake  \
1317         cmake/modules/readme.txt                \
1318         cmake/modules/UseABICheck.cmake         \
1319         cmake/modules/UseAsn2Wrs.cmake          \
1320         cmake/modules/UseCheckAPI.cmake         \
1321         cmake/modules/UseCustomIncludes.cmake           \
1322         cmake/modules/UseLemon.cmake            \
1323         cmake/modules/UseMakeDissectorReg.cmake \
1324         cmake/modules/UseMakeTapReg.cmake       \
1325         cmake/modules/UseWinLibs.cmake          \
1326         cmake/modules/WiresharkConfig.cmake.in  \
1327         cmake/modules/WiresharkConfigVersion.cmake.in \
1328         cmake/modules/WiresharkPlugin.cmake     \
1329         cmake/TestFileOffsetBits.c      \
1330         cmake/TestLargeFiles.c.cmakein  \
1331         cmake/TestWindowsFSeek.c        \
1332         ui/win32/.editorconfig                  \
1333         ui/win32/Makefile.nmake                 \
1334         ui/win32/console_win32.c                \
1335         ui/win32/console_win32.h                \
1336         ui/win32/file_dlg_win32.c               \
1337         ui/win32/file_dlg_win32.h               \
1338         ui/win32/print_win32.c                  \
1339         ui/win32/print_win32.h                  \
1340         ui/win32/settings.ini                   \
1341         version.h.in                            \
1342         CPackConfig.txt
1343
1344 install-exec-hook:
1345 if HAVE_DUMPCAP_GROUP
1346         chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
1347 endif
1348 if SETCAP_INSTALL
1349         $(SETCAP) cap_net_raw,cap_net_admin+ep $(DESTDIR)$(bindir)/dumpcap
1350         chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1351 else
1352 if SETUID_INSTALL
1353         chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1354         chmod +s $(DESTDIR)$(bindir)/dumpcap
1355 endif
1356 endif
1357
1358
1359 DIST_SUBDIRS = \
1360         asn1            \
1361         capchild        \
1362         caputils        \
1363         codecs          \
1364         doc             \
1365         epan            \
1366         echld           \
1367         ui              \
1368         ui/cli          \
1369         ui/gtk          \
1370         ui/qt           \
1371         help            \
1372         packaging       \
1373         plugins         \
1374         randpkt_core    \
1375         tools           \
1376         wiretap         \
1377         wsutil          \
1378         extcap          \
1379         docbook
1380
1381 SUBDIRS = \
1382         tools                   \
1383         wsutil                  \
1384         wiretap                 \
1385         epan                    \
1386         capchild                \
1387         caputils                \
1388         @echld_dir@             \
1389         @plugins_dir@           \
1390         packaging               \
1391         help                    \
1392         ui                      \
1393         @wireshark_SUBDIRS@     \
1394         ui/cli                  \
1395         randpkt_core            \
1396         extcap                  \
1397         .                       \
1398         doc
1399
1400 help/faq.txt: $(srcdir)/help/faq.py
1401         $(AM_V_GEN)(cd help ; \
1402         $(MAKE) faq.txt ;)
1403
1404 libtool: $(LIBTOOL_DEPS)
1405         $(SHELL) ./config.status --recheck
1406
1407
1408 # Used by patch-bzip2
1409 # Trim off any extra version information and find the previous micro release.
1410 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1411 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1412 PREV_DIR="wireshark-$(PREV_VERSION)"
1413 PREV_FILE="$(PREV_DIR).tar.bz2"
1414 PREV_URL="https://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1415
1416 patch-bzip2: distdir
1417         if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1418                 curl --time-cond $(PREV_FILE) --location --output $(PREV_FILE) $(PREV_URL) && \
1419                 tar -xjf $(PREV_FILE) && \
1420                 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1421                 echo "Created patch-bzip2" ; \
1422                 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1423         else \
1424                 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1425         fi
1426         $(am__remove_distdir)
1427
1428 #
1429 # Install icons and other desktop files for (for use with GNOME, KDE, or
1430 # any other freedesktop.org-compliant desktops).
1431 #
1432 # We use $(datadir).  If the desktop doesn't look for them there,
1433 # the desktop is broken; the latest XDG Base Directory Specification
1434 # at
1435 #
1436 #    http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
1437 #
1438 # says
1439 #
1440 # $XDG_DATA_DIRS defines the preference-ordered set of base directories
1441 # to search for data files in addition to the $XDG_DATA_HOME base
1442 # directory. The directories in $XDG_DATA_DIRS should be seperated with a
1443 # colon ':'.
1444 #
1445 # If $XDG_DATA_DIRS is either not set or empty, a value equal to
1446 # /usr/local/share/:/usr/share/ should be used.
1447 #
1448 # so:
1449 #
1450 #    if this is configured to install under /usr, that should Just Work,
1451 #    unless XDG_DATA_DIRS is set incorrectly or the desktop isn't
1452 #    compliant with the latest version of the spec;
1453 #
1454 #    if this installs under the default /usr/share, that should Just Work,
1455 #    unless XDG_DATA_DIRS is set incorrectly or the desktop isn't
1456 #    compliant with the latest version of the spec;
1457 #
1458 #    if this is configured to install somewhere else, whoever configured
1459 #    it should also have made sure that XDG_DATA_DIRS was set correctly
1460 #    and, if that doesn't work, the desktop isn't compliant with the
1461 #    latest version of the spec.
1462 #
1463 # We install these as part of the standard installation process, just
1464 # as, for example, Inkscape does with its icons.  See bug 10737.
1465 #
1466 # Do not use the -T flag to the install command, as it's not portable.
1467 # Some versions of install don't support a -T flag at all, and the
1468 # FreeBSD install command has a -T flag that takes an argument and
1469 # that has completely different semantics.
1470 #
1471 # We neither need nor want any of this on OS X, nor do we want it if
1472 # we're not building Wireshark (that being the only desktop app).
1473 #
1474 install-data-local:
1475 if BUILDING_WIRESHARK
1476 if NOT_OS_X
1477         mkdir -p $(DESTDIR)$(datadir)/mime/packages
1478         install -m 644 $(srcdir)/wireshark-mime-package.xml $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
1479         mkdir -p $(DESTDIR)$(datadir)/appdata
1480         install -m 644 $(srcdir)/wireshark.appdata.xml $(DESTDIR)$(datadir)/appdata/wireshark.appdata.xml
1481         mkdir -p $(DESTDIR)$(datadir)/applications
1482         if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1483                 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)$(datadir)/applications $(srcdir)/wireshark.desktop  $(srcdir)/wireshark-gtk.desktop ; \
1484         else \
1485                 install -m 644 $(srcdir)/wireshark.desktop $(srcdir)/wireshark-gtk.desktop $(DESTDIR)$(datadir)/applications; \
1486         fi
1487         for size in 16 24 32 48 64 128 256; \
1488         do \
1489                 mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps ; \
1490                 install -m 644 $(srcdir)/image/wsicon$${size}.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1491                 mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes ; \
1492                 install -m 644 $(srcdir)/image/WiresharkDoc-$${size}.png $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1493         done
1494         mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps
1495         install -m 644 $(srcdir)/image/wsicon.svg $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
1496 endif
1497 endif
1498
1499 uninstall-local:
1500 if BUILDING_WIRESHARK
1501 if NOT_OS_X
1502         rm -f $(DESTDIR)$(datadir)/appdata/wireshark.appdata.xml
1503         rm -f $(DESTDIR)$(datadir)/applications/wireshark.desktop
1504         rm -f $(DESTDIR)$(datadir)/applications/wireshark-gtk.desktop
1505         rm -f $(DESTDIR)$(datadir)/mime/packages/wireshark.xml
1506         for size in 16 24 32 48 64 128 256; \
1507         do \
1508                 rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1509                 rm -f $(DESTDIR)$(datadir)/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1510         done
1511         rm -f $(DESTDIR)$(datadir)/icons/hicolor/scalable/apps/wireshark.svg
1512 endif
1513 endif
1514
1515 install-data-hook: update-databases-and-caches-install
1516 uninstall-hook: update-databases-and-caches-uninstall
1517
1518 #
1519 # XXX - which of this stuff can, and should, we do ourselves?
1520 #
1521 # If we're "installing" under $(DESTDIR) as part of the process of
1522 # building a package, we probably don't need to, and shouldn't, do
1523 # any of this.
1524 #
1525 # If we're installing for use, we may need to do some of this; which
1526 # of them do we need to tell where to search, especially if we're
1527 # installing somewhere other than under /usr or /usr/local?
1528 #
1529 # What if we're installing in the user's home directory?
1530 #
1531 # What if we're installing under /opt?
1532 #
1533 # We only need to run ldconfig on systems where it's necessary in order
1534 # to update a shared library cache to know about our shared libraries.
1535 #
1536 # We only need to run update-desktop-database and update-mime-database
1537 # on freedesktop.org desktops.
1538 #
1539 # We only need to run gtk-update-icon-cache if we're installing a GTK+
1540 # version of Wireshark.
1541 #
1542 # We neither need nor want any of this on OS X, nor do we want it if
1543 # we're not building Wireshark (that being the only desktop app).
1544 #
1545 update-databases-and-caches-common:
1546 if BUILDING_WIRESHARK
1547 if NOT_OS_X
1548         @echo "You may need to run \"ldconfig\" as root"
1549         @echo "You may need to run \"update-desktop-database $(datadir)/applications\""
1550         @echo "You may need to run \"update-mime-database $(datadir)/mime\""
1551         @echo "You may need to run \"gtk-update-icon-cache -f -t $(datadir)/icons/hicolor\""
1552 endif
1553 endif
1554
1555 update-databases-and-caches-install: update-databases-and-caches-common
1556
1557 update-databases-and-caches-uninstall: update-databases-and-caches-common
1558
1559 # Used by svr4-package and osx-package
1560 # We load top_stagedir with an absolute path so that libtool doesn't freak.
1561 top_stagedir=$(abs_top_builddir)/packaging/staging
1562 stagedir=$(top_stagedir)/$(PACKAGE).inst
1563
1564 host_cpu=@host_cpu@
1565 host_os=@host_os@
1566
1567 solaris-package: svr4-package
1568
1569 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1570         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1571                 rm -rf $(stagedir) ; \
1572                 $(MAKE) DESTDIR=$(stagedir) install; \
1573                 $(srcdir)/packaging/svr4/mkpkg \
1574                         $(PACKAGE) \
1575                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1576                         $(prefix) \
1577                         $(top_stagedir) ; \
1578         else \
1579                 echo "Error: SVR4 packaging tools not found." ; \
1580                 echo "Package build abandoned." ; \
1581         fi
1582
1583
1584 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1585 rpm-package: dist
1586         @if test x$(HAVE_RPM) = xyes ; then \
1587                 cd $(rpm_topdir) ; \
1588                 mkdir -p BUILD RPMS SOURCES SRPMS; \
1589                 cd SOURCES ; \
1590                 ln -sf ../../../$(distdir).tar.bz2 ; \
1591                 cd .. ; \
1592                 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" \
1593                         @RPMBUILD_WITH_ARGS@ --clean -ba SPECS/wireshark.spec && \
1594                         echo "Package successfully built in `pwd`/RPMS." && \
1595                         rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1596         else \
1597                 echo "Error: RPM executable and/or source directory not found." ; \
1598                 false; \
1599         fi
1600
1601 # XXX - This assumes we're building from the source directory.
1602 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1603         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1604                 rm -rf $(stagedir) ; \
1605                 $(MAKE) DESTDIR=$(stagedir) install; \
1606                 cd $(srcdir)/packaging/macosx ; \
1607                 ./osx-app.sh @OSX_APP_FLAGS@ \
1608                         --create-bundle \
1609                         --binary-path ../staging/$(PACKAGE).inst$(bindir) \
1610                         --plugin-path ../staging/$(PACKAGE).inst$(plugindir) \
1611                         --extcap-path ../staging/$(PACKAGE).inst$(extcapdir) \
1612                         --library-path ../staging/$(PACKAGE).inst$(libdir) ; \
1613         else \
1614                 echo "Error: OS X packaging tools not found." ; \
1615                 echo "Package build abandoned." ; \
1616         fi
1617
1618 packaging/macosx/COPYING.txt: COPYING
1619         (cd packaging/macosx ; \
1620         $(MAKE) COPYING.txt ;)
1621
1622 osx-package: osx-app packaging/macosx/COPYING.txt
1623         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1624                 cd $(srcdir)/packaging/macosx ; \
1625                 chmod +x ./osx-dmg.sh ; \
1626                 ./osx-dmg.sh @OSX_DMG_FLAGS@ ; \
1627         fi
1628
1629 osx-install: osx-app
1630         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1631                 echo "Copying Wireshark.app to /Applications" ; \
1632                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ; \
1633         fi
1634
1635 test-programs:
1636         cd epan && $(MAKE) $@
1637
1638 clean-local:
1639         rm -rf $(top_stagedir)
1640
1641 dumpabi:
1642         $(MAKE) -C wiretap dumpabi-libwiretap
1643         $(MAKE) -C epan dumpabi-libwireshark
1644         $(MAKE) -C wsutil dumpabi-libwsutil
1645
1646 checkapi_local:
1647         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -build \
1648         -sourcedir=$(srcdir) \
1649         $(TSHARK_TAP_SRC) \
1650         $(wireshark_gtk_SOURCES)
1651 #       $(EXTRA_wireshark_gtk_SOURCES)
1652
1653 checkapi: checkapi_local
1654         cd wiretap && $(MAKE) checkapi
1655         cd codecs && $(MAKE) checkapi
1656         cd capchild && $(MAKE) checkapi
1657         cd caputils && $(MAKE) checkapi
1658         cd ui && $(MAKE) checkapi
1659         cd ui/gtk && $(MAKE) checkapi
1660 ##      cd epan && $(MAKE) checkapi
1661         cd epan/crypt && $(MAKE) checkapi
1662         cd epan/dfilter && $(MAKE) checkapi
1663 ##      cd epan/ftypes && $(MAKE) checkapi
1664         cd epan/wslua && $(MAKE) checkapi
1665         cd epan/dissectors && $(MAKE) checkapi
1666         cd plugins && $(MAKE) checkapi
1667         cd randpkt_core && $(MAKE) checkapi
1668         cd wsutil && $(MAKE) checkapi
1669
1670 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1671 if HAVE_DOXYGEN
1672         rm -rf wsar_html
1673         cd epan && $(MAKE) $@
1674         cd capchild && $(MAKE) $@
1675         cd caputils && $(MAKE) $@
1676         cd randpkt_core && $(MAKE) $@
1677         cd ui && $(MAKE) $@
1678         (umask 022 ; $(DOXYGEN) doxygen.cfg)
1679 endif
1680
1681 wsar-zip: wsar_html
1682 if HAVE_DOXYGEN
1683         rm -f wsar_html.zip
1684         zip -rq wsar_html.zip wsar_html
1685 endif
1686
1687 gen-authors:
1688 #Generate list of AUTHORS (Name + E-Mail) sort by number of commit
1689         git --no-pager shortlog -se HEAD > $(top_srcdir)/AUTHORS.git
1690         $(PERL) $(top_srcdir)/tools/generate_authors.pl $(top_srcdir)/AUTHORS.src $(top_srcdir)/AUTHORS.git > $(top_srcdir)/AUTHORS