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