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