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