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