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