(Try to) fix VS Clang Analysis warning:
[metze/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Wireshark
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23
24 AM_DISTCHECK_CONFIGURE_FLAGS=@GUI_CONFIGURE_FLAGS@
25 ACLOCAL_AMFLAGS = `./aclocal-flags`
26
27 if HAVE_LIBPY
28 py_dissectors_dir = -DPYTHON_DIR=\"@pythondir@\"
29 else
30 py_dissectors_dir = -DPYTHON_DIR=
31 endif
32
33
34 if HAVE_WARNINGS_AS_ERRORS
35 AM_CLEAN_CFLAGS = -Werror
36 endif
37
38 bin_PROGRAMS = \
39         @wireshark_bin@         \
40         @tshark_bin@            \
41         @text2pcap_bin@         \
42         @mergecap_bin@          \
43         @capinfos_bin@          \
44         @captype_bin@           \
45         @editcap_bin@           \
46         @randpkt_bin@           \
47         @dftest_bin@            \
48         @dumpcap_bin@           \
49         @reordercap_bin@        \
50         @rawshark_bin@          \
51         @echld_test_bin@
52
53 EXTRA_PROGRAMS = wireshark wireshark-qt tshark capinfos captype editcap \
54         mergecap dftest randpkt text2pcap dumpcap reordercap rawshark \
55         wireshark_cxx 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/ChinaTelecom.xml \
80         diameter/Cisco.xml \
81         diameter/Custom.xml \
82         diameter/dictionary.dtd \
83         diameter/dictionary.xml \
84         diameter/eap.xml \
85         diameter/Ericsson.xml \
86         diameter/etsie2e4.xml \
87         diameter/gqpolicy.xml \
88         diameter/imscxdx.xml \
89         diameter/mobileipv4.xml \
90         diameter/mobileipv6.xml \
91         diameter/nasreq.xml \
92         diameter/sip.xml \
93         diameter/sunping.xml \
94         diameter/TGPPGmb.xml \
95         diameter/TGPPRx.xml \
96         diameter/TGPPS9.xml \
97         diameter/TGPPSh.xml \
98         diameter/Vodafone.xml \
99         diameter/AlcatelLucent.xml \
100         diameter/Nokia.xml \
101         diameter/NokiaSiemensNetworks.xml \
102         diameter/SKT.xml \
103         diameter/VerizonWireless.xml
104
105 #
106 # Install the DTDs directory files in the "dtds" subdirectory
107 # of that directory
108 #
109 dtdsdir = $(pkgdatadir)/dtds
110 dist_dtds_DATA = \
111         dtds/dc.dtd \
112         dtds/itunes.dtd \
113         dtds/mscml.dtd \
114         dtds/pocsettings.dtd \
115         dtds/presence.dtd \
116         dtds/reginfo.dtd \
117         dtds/rlmi.dtd \
118         dtds/rss.dtd \
119         dtds/smil.dtd \
120         dtds/xcap-caps.dtd \
121         dtds/xcap-error.dtd \
122         dtds/watcherinfo.dtd
123
124 #
125 # Install the RADIUS directory files in the "radius" subdirectory
126 # of that directory.
127 #
128 radiusdir = $(pkgdatadir)/radius
129 include radius/Custom.make
130 dist_radius_DATA = $(_CUSTOM_radius_dict_) \
131         radius/README.radius_dictionary  \
132         radius/custom.includes  \
133         radius/dictionary  \
134         radius/dictionary.3com  \
135         radius/dictionary.3gpp  \
136         radius/dictionary.3gpp2  \
137         radius/dictionary.acc  \
138         radius/dictionary.acme \
139         radius/dictionary.airespace \
140         radius/dictionary.alcatel  \
141         radius/dictionary.alcatel.esam \
142         radius/dictionary.alcatel.sr \
143         radius/dictionary.alcatel-lucent.aaa \
144         radius/dictionary.alcatel-lucent.xylan \
145         radius/dictionary.alteon  \
146         radius/dictionary.altiga  \
147         radius/dictionary.alvarion \
148         radius/dictionary.apc \
149         radius/dictionary.aptis  \
150         radius/dictionary.aruba  \
151         radius/dictionary.ascend  \
152         radius/dictionary.asn \
153         radius/dictionary.audiocodes \
154         radius/dictionary.avaya \
155         radius/dictionary.azaire \
156         radius/dictionary.bay  \
157         radius/dictionary.bintec  \
158         radius/dictionary.bristol  \
159         radius/dictionary.cablelabs  \
160         radius/dictionary.cabletron  \
161         radius/dictionary.chillispot \
162         radius/dictionary.cisco  \
163         radius/dictionary.cisco.bbsm  \
164         radius/dictionary.cisco.vpn3000  \
165         radius/dictionary.cisco.vpn5000  \
166         radius/dictionary.clavister \
167         radius/dictionary.colubris  \
168         radius/dictionary.columbia_university  \
169         radius/dictionary.compat  \
170         radius/dictionary.cosine  \
171         radius/dictionary.dhcp \
172         radius/dictionary.digium \
173         radius/dictionary.eltex \
174         radius/dictionary.epygi \
175         radius/dictionary.ericsson  \
176         radius/dictionary.erx  \
177         radius/dictionary.extreme  \
178         radius/dictionary.fortinet \
179         radius/dictionary.foundry  \
180         radius/dictionary.freeradius  \
181         radius/dictionary.freeradius.internal  \
182         radius/dictionary.freeswitch \
183         radius/dictionary.gandalf  \
184         radius/dictionary.garderos  \
185         radius/dictionary.gemtek  \
186         radius/dictionary.h3c \
187         radius/dictionary.hp \
188         radius/dictionary.huawei \
189         radius/dictionary.iea \
190         radius/dictionary.infonet \
191         radius/dictionary.ipunplugged \
192         radius/dictionary.issanni \
193         radius/dictionary.itk  \
194         radius/dictionary.jradius \
195         radius/dictionary.juniper  \
196         radius/dictionary.karlnet  \
197         radius/dictionary.lancom \
198         radius/dictionary.livingston  \
199         radius/dictionary.localweb  \
200         radius/dictionary.lucent \
201         radius/dictionary.manzara \
202         radius/dictionary.merit  \
203         radius/dictionary.microsoft  \
204         radius/dictionary.mikrotik  \
205         radius/dictionary.motorola \
206         radius/dictionary.motorola.wimax \
207         radius/dictionary.navini  \
208         radius/dictionary.netscreen  \
209         radius/dictionary.networkphysics \
210         radius/dictionary.nexans \
211         radius/dictionary.nokia  \
212         radius/dictionary.nokia.conflict \
213         radius/dictionary.nomadix  \
214         radius/dictionary.nortel \
215         radius/dictionary.ntua \
216         radius/dictionary.openser \
217         radius/dictionary.packeteer \
218         radius/dictionary.patton \
219         radius/dictionary.propel  \
220         radius/dictionary.prosoft \
221         radius/dictionary.quiconnect \
222         radius/dictionary.quintum  \
223         radius/dictionary.redback  \
224         radius/dictionary.redcreek  \
225         radius/dictionary.rfc2865 \
226         radius/dictionary.rfc2866 \
227         radius/dictionary.rfc2867 \
228         radius/dictionary.rfc2868 \
229         radius/dictionary.rfc2869 \
230         radius/dictionary.rfc3162 \
231         radius/dictionary.rfc3576 \
232         radius/dictionary.rfc3580 \
233         radius/dictionary.rfc4072 \
234         radius/dictionary.rfc4372 \
235         radius/dictionary.rfc4603 \
236         radius/dictionary.rfc4675 \
237         radius/dictionary.rfc4679 \
238         radius/dictionary.rfc4818 \
239         radius/dictionary.rfc4849 \
240         radius/dictionary.rfc5090 \
241         radius/dictionary.rfc5176 \
242         radius/dictionary.rfc5447 \
243         radius/dictionary.rfc5580 \
244         radius/dictionary.rfc5607 \
245         radius/dictionary.rfc5904 \
246         radius/dictionary.rfc6519 \
247         radius/dictionary.rfc6572 \
248         radius/dictionary.riverstone \
249         radius/dictionary.roaringpenguin \
250         radius/dictionary.shasta  \
251         radius/dictionary.shiva  \
252         radius/dictionary.slipstream \
253         radius/dictionary.sofaware \
254         radius/dictionary.sonicwall  \
255         radius/dictionary.springtide  \
256         radius/dictionary.starent  \
257         radius/dictionary.t_systems_nova  \
258         radius/dictionary.telebit  \
259         radius/dictionary.telkom \
260         radius/dictionary.trapeze  \
261         radius/dictionary.tropos \
262         radius/dictionary.ukerna  \
263         radius/dictionary.unix  \
264         radius/dictionary.usr  \
265         radius/dictionary.utstarcom \
266         radius/dictionary.valemount  \
267         radius/dictionary.versanet  \
268         radius/dictionary.vqp \
269         radius/dictionary.walabi \
270         radius/dictionary.waverider \
271         radius/dictionary.wichorus \
272         radius/dictionary.wimax  \
273         radius/dictionary.wimax.wichorus \
274         radius/dictionary.wispr  \
275         radius/dictionary.xedia \
276         radius/dictionary.zyxel
277
278 #
279 # Install the tpncp directory files in the "tpncp" subdirectory
280 # of that directory
281 #
282 tpncpdir = $(pkgdatadir)/tpncp
283 dist_tpncp_DATA = \
284         tpncp/tpncp.dat
285
286 #
287 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
288 # of that directory
289 #
290 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
291 dist_wimaxasncp_DATA = \
292         wimaxasncp/dictionary.xml \
293         wimaxasncp/dictionary.dtd
294
295 PLATFORM_SRC = \
296         capture-pcap-util-unix.c
297
298 if HAVE_PLUGINS
299 -include plugins/Custom.make
300 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
301         -dlopen plugins/asn1/asn1.la \
302         -dlopen plugins/docsis/docsis.la \
303         -dlopen plugins/ethercat/ethercat.la \
304         -dlopen plugins/gryphon/gryphon.la \
305         -dlopen plugins/irda/irda.la \
306         -dlopen plugins/m2m/m2m.la \
307         -dlopen plugins/mate/mate.la \
308         -dlopen plugins/opcua/opcua.la \
309         -dlopen plugins/profinet/profinet.la \
310         -dlopen plugins/stats_tree/stats_tree.la \
311         -dlopen plugins/unistim/unistim.la \
312         -dlopen plugins/wimax/wimax.la \
313         -dlopen plugins/wimaxmacphy/wimaxmacphy.la
314
315 else            # HAVE_PLUGINS
316
317 plugin_ldadd =
318
319 endif           # HAVE_PLUGINS
320
321 include Makefile.common
322
323 if ENABLE_STATIC
324 if HAVE_GTK
325 wireshark_LDFLAGS = -Wl,-static -all-static
326 endif
327 if HAVE_Qt
328 wireshark_qt_LDFLAGS = -Wl,-static -all-static
329 endif
330 else
331 if HAVE_GTK
332 wireshark_LDFLAGS = -export-dynamic
333 endif
334 if HAVE_Qt
335 wireshark_qt_LDFLAGS = -export-dynamic
336 endif
337 endif
338
339 # Libraries and plugin flags with which to link wireshark.
340 #
341 # Note that Wireshark, when built with a version of GTK+ that runs
342 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
343 # as those should also be included in @GTK_LIBS@ (as those are also
344 # needed for X applications, and GTK+ applications are X applications
345 # if the version of GTK+ they're built with runs atop X11).
346 #
347 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
348 # the necessary GLib libraries are included in @GTK_LIBS@.  To quote
349 # Gentoo bug 423743 at
350 #
351 #       https://bugs.gentoo.org/show_bug.cgi?id=423743
352 #
353 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
354 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
355 # It is not actually a superset: gmodule is included in GLIB_LIBS but
356 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
357 #
358 # although it's also possible that -lgmodule is in GTK_LIBS but not
359 # GLIB_LIBS (that's the case on my machine right now, for example).
360 #
361 wireshark_ldadd = \
362         ui/libui.a                      \
363         ui/libui_dirty.a                \
364         codecs/libcodec.a               \
365         wiretap/libwiretap.la           \
366         epan/libwireshark.la            \
367         wsutil/libwsutil.la             \
368         @SSL_LIBS@                      \
369         $(plugin_ldadd)                 \
370         @PCAP_LIBS@                     \
371         @C_ARES_LIBS@                   \
372         @ADNS_LIBS@                     \
373         @KRB5_LIBS@                     \
374         @APPLICATIONSERVICES_FRAMEWORKS@        \
375         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
376         @COREFOUNDATION_FRAMEWORKS@     \
377         @PY_LIBS@                       \
378         @LIBGCRYPT_LIBS@                \
379         @LIBGNUTLS_LIBS@                \
380         @LIBSMI_LDFLAGS@                \
381         @PORTAUDIO_LIBS@                \
382         @GLIB_LIBS@                     \
383         -lm
384
385 if HAVE_Qt
386 wireshark_qt_SOURCES = $(WIRESHARK_COMMON_SRC)
387 wireshark_qt_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
388 wireshark_qt_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
389 wireshark_qt_LDADD = \
390         ui/qt/libqtui.a \
391         $(wireshark_ldadd) \
392         @Qt_LIBS@
393
394 #
395 # XXX - this makes wireshark_qt_LDFLAGS not work; we should figure out
396 # another way to get wireshark-qt linked as a C++ program, perhaps by
397 # having a top-level wireshark-qt.cpp file that contains main() and
398 # hthat calls the UI code from ui/qt.
399 #
400 wireshark_qt_LINK = $(CXXLINK)
401 endif
402
403 if HAVE_GTK
404 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC)
405 wireshark_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
406 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
407 wireshark_LDADD = \
408         ui/gtk/libgtkui.a \
409         $(wireshark_ldadd) \
410         @GTK_LIBS@
411 endif
412
413 # Ideally we could trigger automatic c++ linking here with
414 #   nodist_EXTRA_wireshark_SOURCES = dummy.cpp
415 # Unfortunately that check is done by automake and not configure.
416 # We do the following to try to avoid using c++ to link Wireshark at
417 # all times.
418 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
419 wireshark_cxx_SOURCES =
420
421 if ENABLE_STATIC
422 tshark_LDFLAGS = -Wl,-static -all-static
423 else
424 tshark_LDFLAGS = -export-dynamic
425 endif
426
427 # Libraries and plugin flags with which to link tshark.
428 tshark_LDADD = \
429         ui/cli/libcliui.a               \
430         ui/libui.a                      \
431         wiretap/libwiretap.la           \
432         epan/libwireshark.la            \
433         wsutil/libwsutil.la             \
434         @SSL_LIBS@                      \
435         $(plugin_ldadd)                 \
436         @GLIB_LIBS@ -lm                 \
437         @PCAP_LIBS@                     \
438         @SOCKET_LIBS@                   \
439         @NSL_LIBS@                      \
440         @C_ARES_LIBS@                   \
441         @ADNS_LIBS@                     \
442         @KRB5_LIBS@                     \
443         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
444         @COREFOUNDATION_FRAMEWORKS@     \
445         @PY_LIBS@                       \
446         @LIBGCRYPT_LIBS@                \
447         @LIBGNUTLS_LIBS@                \
448         @LIBSMI_LDFLAGS@
449 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
450
451 if ENABLE_STATIC
452 rawshark_LDFLAGS = -Wl,-static -all-static
453 else
454 rawshark_LDFLAGS = -export-dynamic
455 endif
456
457 # Libraries and plugin flags with which to link rawshark.
458 rawshark_LDADD = \
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@ -lm                 \
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         @PY_LIBS@                       \
475         @LIBGCRYPT_LIBS@                \
476         @LIBGNUTLS_LIBS@                \
477         @LIBSMI_LDFLAGS@
478 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
479
480 # Libraries with which to link text2pcap.
481 text2pcap_LDADD = \
482         wsutil/libwsutil.la             \
483         @GLIB_LIBS@ -lm
484 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
485 # which is generated (and therefore not always clean).
486 # We could generate text2pcap.o as a library with -Werror but for now it
487 # doesn't seem worth the effort.
488 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
489
490 # Libraries with which to link mergecap.
491 mergecap_LDADD = \
492         wiretap/libwiretap.la           \
493         wsutil/libwsutil.la             \
494         @GLIB_LIBS@
495 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
496
497 # Libraries with which to link capinfos.
498 capinfos_LDADD = \
499         wiretap/libwiretap.la           \
500         wsutil/libwsutil.la             \
501         @GLIB_LIBS@                     \
502         @LIBGCRYPT_LIBS@
503 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
504
505 # Libraries with which to link captype.
506 captype_LDADD = \
507         wiretap/libwiretap.la           \
508         wsutil/libwsutil.la             \
509         @GLIB_LIBS@
510 captype_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
511
512 # Libraries with which to link editcap.
513 editcap_LDADD = \
514         wiretap/libwiretap.la           \
515         wsutil/libwsutil.la             \
516         @GLIB_LIBS@
517 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
518
519 # Libraries with which to link reordercap.
520 reordercap_LDADD = \
521         wiretap/libwiretap.la           \
522         wsutil/libwsutil.la             \
523         @GLIB_LIBS@
524 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
525
526 # Libraries with which to link randpkt.
527 randpkt_LDADD = \
528         wiretap/libwiretap.la           \
529         wsutil/libwsutil.la             \
530         @GLIB_LIBS@ -lm                 \
531         @PCAP_LIBS@                     \
532         @SOCKET_LIBS@                   \
533         @NSL_LIBS@                      \
534         @C_ARES_LIBS@                   \
535         @ADNS_LIBS@
536 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
537
538 # Libraries and plugin flags with which to link dftest.
539 dftest_LDADD = \
540         ui/libui.a                      \
541         wiretap/libwiretap.la           \
542         wsutil/libwsutil.la             \
543         epan/libwireshark.la            \
544         @SSL_LIBS@                      \
545         $(plugin_ldadd)                 \
546         @GLIB_LIBS@ -lm                 \
547         @PCAP_LIBS@                     \
548         @SOCKET_LIBS@                   \
549         @NSL_LIBS@                      \
550         @C_ARES_LIBS@                   \
551         @ADNS_LIBS@                     \
552         @KRB5_LIBS@                     \
553         @PY_LIBS@                       \
554         @LIBGCRYPT_LIBS@                \
555         @LIBGNUTLS_LIBS@                \
556         @LIBSMI_LDFLAGS@
557 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
558
559 echld_test_LDADD = \
560         epan/libwireshark.la \
561         echld/libechld.la \
562         wsutil/libwsutil.la \
563         @GLIB_LIBS@ -lm                 \
564         @PCAP_LIBS@                     \
565         @SOCKET_LIBS@                   \
566         @NSL_LIBS@                      \
567         @C_ARES_LIBS@                   \
568         @ADNS_LIBS@
569
570 echld_test_DEPENDENCIES = \
571         echld/libechld.la \
572         epan/libwireshark.la
573
574 echld_test_CFLAGS = $(AM_CLEAN_CFLAGS)
575
576
577 # Libraries with which to link dumpcap.
578 dumpcap_LDADD = \
579         wsutil/libwsutil.la             \
580         @GLIB_LIBS@                     \
581         @PCAP_LIBS@                     \
582         @SOCKET_LIBS@                   \
583         @NSL_LIBS@                      \
584         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
585         @COREFOUNDATION_FRAMEWORKS@     \
586         @LIBCAP_LIBS@
587 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
588 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
589
590 # Common headers
591 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
592         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
593         @LUA_INCLUDES@ -DTOP_SRCDIR=\"$(abs_top_srcdir)\"
594
595 #
596 # Build the version string
597 #
598 # FORCE is the portable version of .PHONY
599 FORCE:
600
601 AM_V_PERL = $(am__v_PERL_@AM_V@)
602 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
603 am__v_PERL_0 = @echo "  PERL    " $@;
604 am__v_PERL_1 =
605
606 svnversion.h: FORCE
607         $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
608
609 #
610 # Build shell scripts by doing variable substitution.
611 # Taken from autoconf 2.13.
612 #
613 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
614
615 SUFFIXES = .sh
616 .sh:
617         rm -f $@ $@.tmp
618         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
619
620 services:
621         $(PYTHON) $(srcdir)/tools/make-services.py
622
623 CLEANFILES =            \
624         *~              \
625         doxygen-core.tag        \
626         vgcore.*
627
628 #
629 # We have to remove svnversion.h with "make distclean", as, otherwise,
630 # "make distcheck" fails.  We still need to make the tarballs work
631 # even if you do "make distclean" and try to rebuild; that's a work in
632 # progress.
633 #
634 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
635 # list of files removed by "make distclean"?  (It's deliberately
636 # included in that list.)
637 #
638 DISTCLEANFILES = \
639         ps.c                    \
640         svnversion.h
641
642 MAINTAINERCLEANFILES =          \
643         $(GENERATED_FILES)      \
644         Makefile.in             \
645         aclocal.m4              \
646         compile                 \
647         config.h.in             \
648         configure               \
649         depcomp                 \
650         install-sh              \
651         ltmain.sh               \
652         missing                 \
653         ylwrap
654
655 EXTRA_DIST = \
656         INSTALL.configure       \
657         Makefile.am.inc         \
658         Makefile.common         \
659         Makefile.nmake          \
660         Makefile.nmake.inc      \
661         README.aix              \
662         README.bsd              \
663         README.DECT             \
664         README.hpux             \
665         README.irix             \
666         README.linux            \
667         README.macos            \
668         README.tru64            \
669         README.vmware           \
670         README.windows          \
671         abi-descriptor.template \
672         aclocal-fallback/libsmi.m4 \
673         aclocal-fallback/libgcrypt.m4 \
674         aclocal-fallback/glib-2.0.m4 \
675         aclocal-fallback/gtk-2.0.m4 \
676         aclocal-fallback/gtk-3.0.m4 \
677         aclocal-flags           \
678         adns_dll.dep            \
679         adns_dll.rc             \
680         autogen.sh              \
681         capinfos.c              \
682         captype.c               \
683         capture_win_ifnames.c   \
684         capture_win_ifnames.h   \
685         capture-wpcap.c         \
686         capture-wpcap.h         \
687         capture_wpcap_packet.c  \
688         capture_wpcap_packet.h  \
689         cfilters                \
690         colorfilters            \
691         config.h.win32          \
692         config.nmake            \
693         debian/changelog        \
694         debian/compat           \
695         debian/control          \
696         debian/copyright        \
697         debian/dirs             \
698         debian/headers-check.c  \
699         debian/patches/00list   \
700         debian/postinst         \
701         debian/pycompat         \
702         debian/pyversions       \
703         debian/rules            \
704         debian/README.source    \
705         debian/tshark.files     \
706         debian/tshark.manpages  \
707         debian/watch            \
708         debian/wireshark-common.files \
709         debian/wireshark-common.manpages \
710         debian/wireshark-common.shlibs \
711         debian/wireshark-dev.docs \
712         debian/wireshark-dev.files \
713         debian/wireshark-dev.header-files \
714         debian/wireshark-dev.manpages \
715         debian/wireshark-dev.prerm \
716         debian/wireshark-root.desktop \
717         debian/wireshark.desktop \
718         debian/wireshark.files \
719         debian/wireshark.manpages \
720         debian/wireshark.menu   \
721         dfilters                \
722         doxygen.cfg.in          \
723         dumpcap.c       \
724         editcap.c               \
725         epan/print.ps           \
726         fix/FIX.xml             \
727         fix/FIX40.xml           \
728         fix/FIX41.xml           \
729         fix/FIX42.xml           \
730         fix/FIX43.xml           \
731         fix/FIX44.xml           \
732         fix/README              \
733         fix/Values.xsl          \
734         fix/hfDecl.xsl          \
735         fix/hfField.xsl         \
736         fix/hfList.xsl          \
737         idl/coseventcomm.idl    \
738         idl/cosnaming.idl       \
739         idl/tango.idl   \
740         idl/parlay/am.idl       \
741         idl/parlay/cccs.idl     \
742         idl/parlay/cm.idl       \
743         idl/parlay/common_cc_data.idl   \
744         idl/parlay/cs.idl       \
745         idl/parlay/dsc.idl      \
746         idl/parlay/fw_data.idl  \
747         idl/parlay/fw_if.idl    \
748         idl/parlay/fw_if_access.idl     \
749         idl/parlay/fw_if_app.idl        \
750         idl/parlay/fw_if_entop.idl      \
751         idl/parlay/fw_if_service.idl    \
752         idl/parlay/gcc_data.idl \
753         idl/parlay/gcc_interfaces.idl   \
754         idl/parlay/gms.idl      \
755         idl/parlay/mm.idl       \
756         idl/parlay/mmccs.idl    \
757         idl/parlay/mmm.idl      \
758         idl/parlay/mpcc_data.idl        \
759         idl/parlay/mpcc_interfaces.idl  \
760         idl/parlay/osa.idl      \
761         idl/parlay/pam_data.idl \
762         idl/parlay/pam_interfaces.idl   \
763         idl/parlay/Parlay.idl   \
764         idl/parlay/policy_data.idl      \
765         idl/parlay/policy_interfaces.idl        \
766         idl/parlay/README.parlay        \
767         idl/parlay/termcap.idl  \
768         idl/parlay/ui_data.idl  \
769         idl/parlay/ui_interfaces.idl    \
770         image/capinfos.rc.in    \
771         image/captype.rc.in     \
772         image/capture_comment.svg       \
773         image/capture_comment_add.png   \
774         image/capture_comment_disabled.png      \
775         image/capture_comment_update.png        \
776         image/capture_start_24.png              \
777         image/capture_start_active_24.png       \
778         image/capture_stop_24.png               \
779         image/clist_ascend.xpm                  \
780         image/clist_descend.xpm                 \
781         image/copy-8.png                        \
782         image/dfilter_apply_disabled.png        \
783         image/dfilter_apply_hover.png           \
784         image/dfilter_apply_normal.png          \
785         image/dfilter_apply_pressed.png         \
786         image/dfilter_bookmark_disabled.png     \
787         image/dfilter_bookmark_hover.png        \
788         image/dfilter_bookmark_normal.png       \
789         image/dfilter_bookmark_pressed.png      \
790         image/dfilter_dropdown.png              \
791         image/dfilter_erase_active.png          \
792         image/dfilter_erase_normal.png          \
793         image/dfilter_erase_selected.png        \
794         image/dfilter_refresh_active.png        \
795         image/dfilter_refresh_normal.png        \
796         image/display_filter.qrc                \
797         image/dumpcap.rc.in     \
798         image/editcap.rc.in     \
799         image/expert_chat.png   \
800         image/expert_error.png  \
801         image/expert_indicators.svg     \
802         image/expert_none.png   \
803         image/expert_note.png   \
804         image/expert_warn.png   \
805         image/file_dlg_win32.rc \
806         image/hi16-app-wireshark.png    \
807         image/hi32-app-wireshark.png    \
808         image/hi48-app-wireshark.png    \
809         image/layout_1.png              \
810         image/layout_2.png              \
811         image/layout_3.png              \
812         image/layout_4.png              \
813         image/layout_5.png              \
814         image/layout_6.png              \
815         image/libwireshark.rc.in        \
816         image/libwsutil.rc.in           \
817         image/lo16-app-wireshark.png    \
818         image/lo32-app-wireshark.png    \
819         image/lo48-app-wireshark.png    \
820         image/Makefile.nmake                    \
821         image/mergecap.rc.in                    \
822         image/minus-8.png                       \
823         image/nsis-checked.bmp                  \
824         image/nsis-unchecked.bmp                \
825         image/openhand-16.png                   \
826         image/plus-8.png                        \
827         image/rawshark.rc.in                    \
828         image/README.image                      \
829         image/reordercap.rc.in                  \
830         image/rubberband-16.png                 \
831         image/status.qrc                        \
832         image/stock_dialog_error_48.xpm         \
833         image/stock_dialog_info_48.xpm          \
834         image/stock_dialog_question_48.xpm      \
835         image/stock_dialog_stop_48.xpm          \
836         image/stock_dialog_warning_48.xpm       \
837         image/text2pcap.rc.in                   \
838         image/toolbar.qrc                       \
839         image/toolbar/analyze_24.xpm            \
840         image/toolbar/audio_player_24.xpm       \
841         image/toolbar/autoscroll_24.xpm         \
842         image/toolbar/capture_airpcap_16.xpm    \
843         image/toolbar/capture_capture_16.xpm    \
844         image/toolbar/capture_details_16.xpm    \
845         image/toolbar/capture_details_24.xpm    \
846         image/toolbar/capture_ethernet_16.xpm   \
847         image/toolbar/capture_filter_24.xpm     \
848         image/toolbar/capture_interfaces_16.png \
849         image/toolbar/capture_interfaces_24.png \
850         image/toolbar/capture_options_16.png    \
851         image/toolbar/capture_options_24.png    \
852         image/toolbar/capture_prepare_16.xpm    \
853         image/toolbar/capture_restart_16.png    \
854         image/toolbar/capture_restart_24.png    \
855         image/toolbar/capture_start_16.png      \
856         image/toolbar/capture_start_24.png      \
857         image/toolbar/capture_stop_16.png       \
858         image/toolbar/capture_stop_24.png       \
859         image/toolbar/checkbox_16.xpm           \
860         image/toolbar/colorize_24.xpm           \
861         image/toolbar/conversations_16.xpm      \
862         image/toolbar/decode_24.xpm             \
863         image/toolbar/decode_as_16.xpm          \
864         image/toolbar/display_filter_24.xpm     \
865         image/toolbar/endpoints_16.xpm          \
866         image/toolbar/expert_info_16.xpm        \
867         image/toolbar/file_set_list_16.xpm      \
868         image/toolbar/file_set_next_16.xpm      \
869         image/toolbar/file_set_previous_16.xpm  \
870         image/toolbar/flow_graph_16.xpm \
871         image/toolbar/gnome_emblem_web_16.png   \
872         image/toolbar/gnome_emblem_web_24.png   \
873         image/toolbar/graphs_16.xpm     \
874         image/toolbar/icon_color_0.xpm  \
875         image/toolbar/icon_color_1.xpm  \
876         image/toolbar/icon_color_2.xpm  \
877         image/toolbar/icon_color_3.xpm  \
878         image/toolbar/icon_color_4.xpm  \
879         image/toolbar/icon_color_5.xpm  \
880         image/toolbar/icon_color_6.xpm  \
881         image/toolbar/icon_color_7.xpm  \
882         image/toolbar/icon_color_8.xpm  \
883         image/toolbar/icon_color_9.xpm  \
884         image/toolbar/internet_24.xpm   \
885         image/toolbar/modem_16.png      \
886         image/toolbar/modem_16.xpm      \
887         image/toolbar/network_bluetooth_16.png  \
888         image/toolbar/network_usb.svg           \
889         image/toolbar/network_usb_16.png        \
890         image/toolbar/network_virtual_16.xpm    \
891         image/toolbar/network_wired_16.png      \
892         image/toolbar/network_wireless_16.png   \
893         image/toolbar/pipe_16.png       \
894         image/toolbar/remote_arrow_16.png       \
895         image/toolbar/remote_globe_16.png       \
896         image/toolbar/remote_sat_16.png \
897         image/toolbar/resize_columns_24.xpm     \
898         image/toolbar/telephone_16.xpm  \
899         image/toolbar/telephony_16.xpm  \
900         image/toolbar/time_24.xpm       \
901         image/toolbar/toolbar_wireshark_file_16.png     \
902         image/toolbar/toolbar_wireshark_file_24.png     \
903         image/toolbar/voip_flow_24.xpm  \
904         image/toolbar/web_support_24.xpm        \
905         image/toolbar/wep_closed_24.xpm \
906         image/tshark.rc.in      \
907         image/voip_bg.xpm       \
908         image/voip_select.xpm   \
909         image/wireshark.exe.manifest.in \
910         image/wireshark.ico     \
911         image/wireshark.rc.in   \
912         image/wiresharkdoc.ico  \
913         image/wiresharkinst.ico \
914         image/WiresharkDoc-16.png       \
915         image/WiresharkDoc-24.png       \
916         image/WiresharkDoc-32.png       \
917         image/WiresharkDoc-48.png       \
918         image/WiresharkDoc-64.png       \
919         image/WiresharkDoc-128.png      \
920         image/WiresharkDoc-256.png      \
921         image/wiretap.rc.in     \
922         image/wsicon.svg        \
923         image/wsicon16.png      \
924         image/wsicon24.png      \
925         image/wsicon32.png      \
926         image/wsicon48.png      \
927         image/wsicon64.png      \
928         image/wsicon128.png     \
929         image/wsicon256.png     \
930         image/wsicon512.png     \
931         image/wsicon1024.png    \
932         image/wsicon-ask.png    \
933         image/wsicon-ask.svg    \
934         image/wsiconcap.svg     \
935         image/wsiconcap256.png  \
936         image/wsiconcap512.png  \
937         image/wsiconcap1024.png \
938         image/wsiconinst.svg    \
939         image/wsiconinst256.png \
940         image/wslogo-dev.svg    \
941         image/wslogo.eps        \
942         image/wslogo.svg        \
943         image/wssplash_dev.png  \
944         image/wssplash.png      \
945         ipmap.html              \
946         macosx-setup.sh         \
947         macosx-support-lib-patches/glib-gconvert.c.patch \
948         macosx-support-lib-patches/glib-pkgconfig.patch \
949         macosx-support-lib-patches/gnutls-pkgconfig.patch \
950         macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
951         macosx-support-lib-patches/portaudio-pa_mac_core.c.patch \
952         make-version.pl         \
953         manuf                   \
954         manuf.tmpl              \
955         mergecap.c              \
956         pdml2html.xsl           \
957         reordercap.c            \
958         smi_modules             \
959         text2pcap-scanner.l     \
960         text2pcap.h             \
961         services                \
962         wireshark.desktop       \
963         wireshark-mime-package.xml \
964         wka.tmpl                \
965         CMakeLists.txt          \
966         cmakeconfig.h.in        \
967         wsutil/CMakeLists.txt   \
968         CMakeOptions.txt        \
969         wiretap/CMakeLists.txt  \
970         README.cmake            \
971         ConfigureChecks.cmake   \
972         cmake/modules/CMakeInstallDirs.cmake    \
973         cmake/modules/COPYING-CMAKE-SCRIPTS     \
974         cmake/modules/CheckCLinkerFlag.cmake    \
975         cmake/modules/FeatureSummary.cmake      \
976         cmake/modules/FindADNS.cmake            \
977         cmake/modules/FindCAP.cmake             \
978         cmake/modules/FindCARES.cmake           \
979         cmake/modules/FindFOP.cmake             \
980         cmake/modules/FindGCRYPT.cmake          \
981         cmake/modules/FindGEOIP.cmake           \
982         cmake/modules/FindGLIB2.cmake           \
983         cmake/modules/FindGMODULE2.cmake        \
984         cmake/modules/FindGNUTLS.cmake          \
985         cmake/modules/FindGTHREAD2.cmake        \
986         cmake/modules/FindGTK2.cmake            \
987         cmake/modules/FindGTK3.cmake            \
988         cmake/modules/FindHtmlViewer.cmake      \
989         cmake/modules/FindKERBEROS.cmake        \
990         cmake/modules/FindNL.cmake              \
991         cmake/modules/FindLEX.cmake             \
992         cmake/modules/FindLUA.cmake             \
993         cmake/modules/FindLYNX.cmake            \
994         cmake/modules/FindM.cmake               \
995         cmake/modules/FindPCAP.cmake            \
996         cmake/modules/FindPOD.cmake             \
997         cmake/modules/FindPORTAUDIO.cmake       \
998         cmake/modules/FindSED.cmake             \
999         cmake/modules/FindSH.cmake              \
1000         cmake/modules/FindSMI.cmake             \
1001         cmake/modules/FindXMLLINT.cmake         \
1002         cmake/modules/FindXSLTPROC.cmake        \
1003         cmake/modules/FindYACC.cmake            \
1004         cmake/modules/FindYAPP.cmake            \
1005         cmake/modules/FindZLIB.cmake            \
1006         cmake/modules/LICENSE.txt               \
1007         cmake/modules/UseLemon.cmake            \
1008         cmake/modules/UseMakeDissectorReg.cmake \
1009         cmake/modules/UseMakeTapReg.cmake       \
1010         cmake/modules/readme.txt                \
1011         ui/win32/Makefile.nmake                 \
1012         ui/win32/console_win32.c                \
1013         ui/win32/console_win32.h                \
1014         ui/win32/file_dlg_win32.c               \
1015         ui/win32/file_dlg_win32.h               \
1016         ui/win32/print_win32.c                  \
1017         ui/win32/print_win32.h                  \
1018         ui/win32/settings.ini                   \
1019         CPackConfig.txt                         \
1020         all.vcproj                              \
1021         dumpcap.vcproj                          \
1022         packaging.vcproj                        \
1023         tshark.vcproj                           \
1024         wireshark.vcproj
1025
1026 install-exec-hook:
1027 if HAVE_DUMPCAP_GROUP
1028         -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
1029 endif
1030 if SETCAP_INSTALL
1031         -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
1032         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1033 else
1034 if SETUID_INSTALL
1035         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1036         -chmod +s $(DESTDIR)$(bindir)/dumpcap
1037 endif
1038 endif
1039
1040
1041 DIST_SUBDIRS = asn1 codecs doc epan echld ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
1042
1043 if HAVE_PLUGINS
1044 SUBDIRS = tools wsutil wiretap epan @echld_dir@ plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1045 else
1046 SUBDIRS = tools wsutil wiretap epan @echld_dir@ packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1047 endif
1048
1049 help/faq.txt: $(srcdir)/help/faq.py
1050         $(AM_V_GEN)(cd help ; \
1051         $(MAKE) faq.txt ;)
1052
1053 libtool: $(LIBTOOL_DEPS)
1054         $(SHELL) ./config.status --recheck
1055
1056
1057 # Used by patch-bzip2
1058 # Trim off any extra version information and find the previous micro release.
1059 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1060 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1061 PREV_DIR="wireshark-$(PREV_VERSION)"
1062 PREV_FILE="$(PREV_DIR).tar.bz2"
1063 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1064
1065 patch-bzip2: distdir
1066         if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1067                 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1068                 tar -xjf $(PREV_FILE) && \
1069                 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1070                 echo "Created patch-bzip2" ; \
1071                 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1072         else \
1073                 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1074         fi
1075         $(am__remove_distdir)
1076
1077 # Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
1078 # No, these do not go into $(datarootdir): the desktop won't look for them there.
1079 # Yes, that violate's autofoo's principle of relocatability.
1080 # What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
1081 # to install this stuff...
1082 install_desktop_files:
1083         mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
1084         install -m 644 -T wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
1085         if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1086                 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications wireshark.desktop; \
1087         else \
1088                 install -m 644 -T wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
1089         fi
1090         for size in 16 24 32 48 64 128 256; \
1091         do \
1092                 mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
1093                 install -m 644 image/wsicon$${size}.png  $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1094                 install -m 644 -T image/WiresharkDoc-$${size}.png  $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1095         done
1096         @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
1097
1098 # Used by svr4-package and osx-package
1099 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1100 top_stagedir=`cd $(top_builddir) && pwd`/packaging/staging
1101 stagedir=$(top_stagedir)/$(PACKAGE).inst
1102
1103 host_cpu=@host_cpu@
1104 host_os=@host_os@
1105
1106 solaris-package: svr4-package
1107
1108 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1109         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1110                 rm -rf $(stagedir) ; \
1111                 $(MAKE) DESTDIR=$(stagedir) install; \
1112                 $(srcdir)/packaging/svr4/mkpkg \
1113                         $(PACKAGE) \
1114                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1115                         $(prefix) \
1116                         $(top_stagedir) ; \
1117         else \
1118                 echo "Error: SVR4 packaging tools not found." ; \
1119                 echo "Package build abandoned." ; \
1120         fi
1121
1122
1123 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1124 rpm-package: dist
1125         @if test x$(HAVE_RPM) = xyes ; then \
1126                 cd $(rpm_topdir) ; \
1127                 mkdir -p BUILD RPMS SOURCES SRPMS; \
1128                 cd SOURCES ; \
1129                 ln -sf ../../../$(distdir).tar.bz2 ; \
1130                 cd .. ; \
1131                 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" \
1132                         @RPMBUILD_WITH_ARGS@ --clean -ba SPECS/wireshark.spec && \
1133                         echo "Package successfully built in `pwd`/RPMS." && \
1134                         rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1135         else \
1136                 echo "Error: RPM executable and/or source directory not found." ; \
1137                 false; \
1138         fi
1139
1140 debian-package: debian/rules
1141         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1142                 dpkg-buildpackage -rfakeroot -us -uc ; \
1143         else \
1144                 echo "Error: Debian packaging tools not found." ; \
1145                 echo "Package build abandoned." ; \
1146         fi
1147
1148 # XXX - This assumes we're building from the source directory.
1149 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1150         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1151                 rm -rf $(stagedir) ; \
1152                 $(MAKE) DESTDIR=$(stagedir) install; \
1153                 cd $(srcdir)/packaging/macosx ;  \
1154                 ./osx-app.sh @OSX_APP_FLAGS@ -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1155         else \
1156                 echo "Error: OS X packaging tools not found." ; \
1157                 echo "Package build abandoned." ; \
1158         fi
1159
1160 packaging/macosx/COPYING.txt: COPYING
1161         (cd packaging/macosx ; \
1162         $(MAKE) COPYING.txt ;)
1163
1164 osx-package: osx-app packaging/macosx/COPYING.txt
1165         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1166                 cd $(srcdir)/packaging/macosx ;  \
1167                 chmod +x ./osx-dmg.sh ; \
1168                 ./osx-dmg.sh @OSX_DMG_FLAGS@ ; \
1169         fi
1170
1171 osx-install: osx-app
1172         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1173                 echo "Copying Wireshark.app to /Applications" ; \
1174                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ;  \
1175         fi
1176
1177 clean-local:
1178         rm -rf $(top_stagedir)
1179
1180 dumpabi:
1181         $(MAKE) -C wiretap dumpabi-libwiretap
1182         $(MAKE) -C epan dumpabi-libwireshark
1183         $(MAKE) -C wsutil dumpabi-libwsutil
1184
1185 checkapi_local:
1186         $(PERL) tools/checkAPIs.pl -build \
1187         $(TSHARK_TAP_SRC) \
1188         $(wireshark_SOURCES)
1189 #       $(EXTRA_wireshark_SOURCES)
1190
1191 checkapi: checkapi_local
1192         cd wiretap && $(MAKE) checkapi
1193         cd codecs && $(MAKE) checkapi
1194         cd ui && $(MAKE) checkapi
1195         cd ui/gtk && $(MAKE) checkapi
1196 ##      cd epan && $(MAKE) checkapi
1197 ##      cd epan/crypt && $(MAKE) checkapi
1198         cd epan/dfilter && $(MAKE) checkapi
1199 ##      cd epan/ftypes && $(MAKE) checkapi
1200 ##      cd epan/wslua && $(MAKE) checkapi
1201         cd epan/dissectors && $(MAKE) checkapi
1202         cd plugins && $(MAKE) checkapi
1203         cd wsutil && $(MAKE) checkapi
1204
1205 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1206 if HAVE_DOXYGEN
1207         rm -rf wsar_html
1208         cd epan && $(MAKE) $@
1209         cd ui && $(MAKE) $@
1210         (umask 022 ; $(DOXYGEN) doxygen.cfg)
1211 endif
1212
1213 wsar-zip: wsar_html
1214 if HAVE_DOXYGEN
1215         rm -f wsar_html.zip
1216         zip -rq wsar_html.zip wsar_html
1217 endif
1218