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