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