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