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