Stop building and distributing the asn1 plugin. I bleleve it to be obsolete.
[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/docsis/docsis.la \
302         -dlopen plugins/ethercat/ethercat.la \
303         -dlopen plugins/gryphon/gryphon.la \
304         -dlopen plugins/irda/irda.la \
305         -dlopen plugins/m2m/m2m.la \
306         -dlopen plugins/mate/mate.la \
307         -dlopen plugins/opcua/opcua.la \
308         -dlopen plugins/profinet/profinet.la \
309         -dlopen plugins/stats_tree/stats_tree.la \
310         -dlopen plugins/unistim/unistim.la \
311         -dlopen plugins/wimax/wimax.la \
312         -dlopen plugins/wimaxmacphy/wimaxmacphy.la
313
314 else            # HAVE_PLUGINS
315
316 plugin_ldadd =
317
318 endif           # HAVE_PLUGINS
319
320 include Makefile.common
321
322 if ENABLE_STATIC
323 if HAVE_GTK
324 wireshark_LDFLAGS = -Wl,-static -all-static
325 endif
326 if HAVE_Qt
327 wireshark_qt_LDFLAGS = -Wl,-static -all-static
328 endif
329 else
330 if HAVE_GTK
331 wireshark_LDFLAGS = -export-dynamic
332 endif
333 if HAVE_Qt
334 wireshark_qt_LDFLAGS = -export-dynamic
335 endif
336 endif
337
338 # Libraries and plugin flags with which to link wireshark.
339 #
340 # Note that Wireshark, when built with a version of GTK+ that runs
341 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
342 # as those should also be included in @GTK_LIBS@ (as those are also
343 # needed for X applications, and GTK+ applications are X applications
344 # if the version of GTK+ they're built with runs atop X11).
345 #
346 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
347 # the necessary GLib libraries are included in @GTK_LIBS@.  To quote
348 # Gentoo bug 423743 at
349 #
350 #       https://bugs.gentoo.org/show_bug.cgi?id=423743
351 #
352 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
353 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
354 # It is not actually a superset: gmodule is included in GLIB_LIBS but
355 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
356 #
357 # although it's also possible that -lgmodule is in GTK_LIBS but not
358 # GLIB_LIBS (that's the case on my machine right now, for example).
359 #
360 wireshark_ldadd = \
361         ui/libui.a                      \
362         ui/libui_dirty.a                \
363         codecs/libcodec.a               \
364         wiretap/libwiretap.la           \
365         epan/libwireshark.la            \
366         wsutil/libwsutil.la             \
367         @SSL_LIBS@                      \
368         $(plugin_ldadd)                 \
369         @PCAP_LIBS@                     \
370         @C_ARES_LIBS@                   \
371         @ADNS_LIBS@                     \
372         @KRB5_LIBS@                     \
373         @APPLICATIONSERVICES_FRAMEWORKS@        \
374         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
375         @COREFOUNDATION_FRAMEWORKS@     \
376         @PY_LIBS@                       \
377         @LIBGCRYPT_LIBS@                \
378         @LIBGNUTLS_LIBS@                \
379         @LIBSMI_LDFLAGS@                \
380         @PORTAUDIO_LIBS@                \
381         @GLIB_LIBS@                     \
382         -lm
383
384 if HAVE_Qt
385 wireshark_qt_SOURCES = $(WIRESHARK_COMMON_SRC)
386 wireshark_qt_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
387 wireshark_qt_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
388 wireshark_qt_LDADD = \
389         ui/qt/libqtui.a \
390         $(wireshark_ldadd) \
391         @Qt_LIBS@
392
393 #
394 # XXX - this makes wireshark_qt_LDFLAGS not work; we should figure out
395 # another way to get wireshark-qt linked as a C++ program, perhaps by
396 # having a top-level wireshark-qt.cpp file that contains main() and
397 # hthat calls the UI code from ui/qt.
398 #
399 wireshark_qt_LINK = $(CXXLINK)
400 endif
401
402 if HAVE_GTK
403 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC)
404 wireshark_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
405 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
406 wireshark_LDADD = \
407         ui/gtk/libgtkui.a \
408         $(wireshark_ldadd) \
409         @GTK_LIBS@
410 endif
411
412 # Ideally we could trigger automatic c++ linking here with
413 #   nodist_EXTRA_wireshark_SOURCES = dummy.cpp
414 # Unfortunately that check is done by automake and not configure.
415 # We do the following to try to avoid using c++ to link Wireshark at
416 # all times.
417 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
418 wireshark_cxx_SOURCES =
419
420 if ENABLE_STATIC
421 tshark_LDFLAGS = -Wl,-static -all-static
422 else
423 tshark_LDFLAGS = -export-dynamic
424 endif
425
426 # Libraries and plugin flags with which to link tshark.
427 tshark_LDADD = \
428         ui/cli/libcliui.a               \
429         ui/libui.a                      \
430         wiretap/libwiretap.la           \
431         epan/libwireshark.la            \
432         wsutil/libwsutil.la             \
433         @SSL_LIBS@                      \
434         $(plugin_ldadd)                 \
435         @GLIB_LIBS@ -lm                 \
436         @PCAP_LIBS@                     \
437         @SOCKET_LIBS@                   \
438         @NSL_LIBS@                      \
439         @C_ARES_LIBS@                   \
440         @ADNS_LIBS@                     \
441         @KRB5_LIBS@                     \
442         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
443         @COREFOUNDATION_FRAMEWORKS@     \
444         @PY_LIBS@                       \
445         @LIBGCRYPT_LIBS@                \
446         @LIBGNUTLS_LIBS@                \
447         @LIBSMI_LDFLAGS@
448 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
449
450 if ENABLE_STATIC
451 rawshark_LDFLAGS = -Wl,-static -all-static
452 else
453 rawshark_LDFLAGS = -export-dynamic
454 endif
455
456 # Libraries and plugin flags with which to link rawshark.
457 rawshark_LDADD = \
458         ui/libui.a                      \
459         wiretap/libwiretap.la           \
460         epan/libwireshark.la            \
461         wsutil/libwsutil.la             \
462         @SSL_LIBS@                      \
463         $(plugin_ldadd)                 \
464         @GLIB_LIBS@ -lm                 \
465         @PCAP_LIBS@                     \
466         @SOCKET_LIBS@                   \
467         @NSL_LIBS@                      \
468         @C_ARES_LIBS@                   \
469         @ADNS_LIBS@                     \
470         @KRB5_LIBS@                     \
471         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
472         @COREFOUNDATION_FRAMEWORKS@     \
473         @PY_LIBS@                       \
474         @LIBGCRYPT_LIBS@                \
475         @LIBGNUTLS_LIBS@                \
476         @LIBSMI_LDFLAGS@
477 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
478
479 # Libraries with which to link text2pcap.
480 text2pcap_LDADD = \
481         wsutil/libwsutil.la             \
482         @GLIB_LIBS@ -lm
483 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
484 # which is generated (and therefore not always clean).
485 # We could generate text2pcap.o as a library with -Werror but for now it
486 # doesn't seem worth the effort.
487 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
488
489 # Libraries with which to link mergecap.
490 mergecap_LDADD = \
491         wiretap/libwiretap.la           \
492         wsutil/libwsutil.la             \
493         @GLIB_LIBS@
494 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
495
496 # Libraries with which to link capinfos.
497 capinfos_LDADD = \
498         wiretap/libwiretap.la           \
499         wsutil/libwsutil.la             \
500         @GLIB_LIBS@                     \
501         @LIBGCRYPT_LIBS@
502 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
503
504 # Libraries with which to link captype.
505 captype_LDADD = \
506         wiretap/libwiretap.la           \
507         wsutil/libwsutil.la             \
508         @GLIB_LIBS@
509 captype_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
510
511 # Libraries with which to link editcap.
512 editcap_LDADD = \
513         wiretap/libwiretap.la           \
514         wsutil/libwsutil.la             \
515         @GLIB_LIBS@
516 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
517
518 # Libraries with which to link reordercap.
519 reordercap_LDADD = \
520         wiretap/libwiretap.la           \
521         wsutil/libwsutil.la             \
522         @GLIB_LIBS@
523 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
524
525 # Libraries with which to link randpkt.
526 randpkt_LDADD = \
527         wiretap/libwiretap.la           \
528         wsutil/libwsutil.la             \
529         @GLIB_LIBS@ -lm                 \
530         @PCAP_LIBS@                     \
531         @SOCKET_LIBS@                   \
532         @NSL_LIBS@                      \
533         @C_ARES_LIBS@                   \
534         @ADNS_LIBS@
535 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
536
537 # Libraries and plugin flags with which to link dftest.
538 dftest_LDADD = \
539         ui/libui.a                      \
540         wiretap/libwiretap.la           \
541         wsutil/libwsutil.la             \
542         epan/libwireshark.la            \
543         @SSL_LIBS@                      \
544         $(plugin_ldadd)                 \
545         @GLIB_LIBS@ -lm                 \
546         @PCAP_LIBS@                     \
547         @SOCKET_LIBS@                   \
548         @NSL_LIBS@                      \
549         @C_ARES_LIBS@                   \
550         @ADNS_LIBS@                     \
551         @KRB5_LIBS@                     \
552         @PY_LIBS@                       \
553         @LIBGCRYPT_LIBS@                \
554         @LIBGNUTLS_LIBS@                \
555         @LIBSMI_LDFLAGS@
556 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
557
558 echld_test_LDADD = \
559         epan/libwireshark.la \
560         echld/libechld.la \
561         wsutil/libwsutil.la \
562         @GLIB_LIBS@ -lm                 \
563         @PCAP_LIBS@                     \
564         @SOCKET_LIBS@                   \
565         @NSL_LIBS@                      \
566         @C_ARES_LIBS@                   \
567         @ADNS_LIBS@
568
569 echld_test_DEPENDENCIES = \
570         echld/libechld.la \
571         epan/libwireshark.la
572
573 echld_test_CFLAGS = $(AM_CLEAN_CFLAGS)
574
575
576 # Libraries with which to link dumpcap.
577 dumpcap_LDADD = \
578         wsutil/libwsutil.la             \
579         @GLIB_LIBS@                     \
580         @PCAP_LIBS@                     \
581         @SOCKET_LIBS@                   \
582         @NSL_LIBS@                      \
583         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
584         @COREFOUNDATION_FRAMEWORKS@     \
585         @LIBCAP_LIBS@
586 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
587 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
588
589 # Common headers
590 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
591         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS) \
592         @LUA_INCLUDES@ -DTOP_SRCDIR=\"$(abs_top_srcdir)\"
593
594 #
595 # Build the version string
596 #
597 # FORCE is the portable version of .PHONY
598 FORCE:
599
600 AM_V_PERL = $(am__v_PERL_@AM_V@)
601 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
602 am__v_PERL_0 = @echo "  PERL    " $@;
603 am__v_PERL_1 =
604
605 svnversion.h: FORCE
606         $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
607
608 #
609 # Build shell scripts by doing variable substitution.
610 # Taken from autoconf 2.13.
611 #
612 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
613
614 SUFFIXES = .sh
615 .sh:
616         rm -f $@ $@.tmp
617         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
618
619 services:
620         $(PYTHON) $(srcdir)/tools/make-services.py
621
622 CLEANFILES =            \
623         *~              \
624         doxygen-core.tag        \
625         vgcore.*
626
627 #
628 # We have to remove svnversion.h with "make distclean", as, otherwise,
629 # "make distcheck" fails.  We still need to make the tarballs work
630 # even if you do "make distclean" and try to rebuild; that's a work in
631 # progress.
632 #
633 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
634 # list of files removed by "make distclean"?  (It's deliberately
635 # included in that list.)
636 #
637 DISTCLEANFILES = \
638         ps.c                    \
639         svnversion.h
640
641 MAINTAINERCLEANFILES =          \
642         $(GENERATED_FILES)      \
643         Makefile.in             \
644         aclocal.m4              \
645         compile                 \
646         config.h.in             \
647         configure               \
648         depcomp                 \
649         install-sh              \
650         ltmain.sh               \
651         missing                 \
652         ylwrap
653
654 EXTRA_DIST = \
655         INSTALL.configure       \
656         Makefile.am.inc         \
657         Makefile.common         \
658         Makefile.nmake          \
659         Makefile.nmake.inc      \
660         README.aix              \
661         README.bsd              \
662         README.DECT             \
663         README.hpux             \
664         README.irix             \
665         README.linux            \
666         README.macos            \
667         README.tru64            \
668         README.vmware           \
669         README.windows          \
670         abi-descriptor.template \
671         aclocal-fallback/libsmi.m4 \
672         aclocal-fallback/libgcrypt.m4 \
673         aclocal-fallback/glib-2.0.m4 \
674         aclocal-fallback/gtk-2.0.m4 \
675         aclocal-fallback/gtk-3.0.m4 \
676         aclocal-flags           \
677         adns_dll.dep            \
678         adns_dll.rc             \
679         autogen.sh              \
680         capinfos.c              \
681         captype.c               \
682         capture_win_ifnames.c   \
683         capture_win_ifnames.h   \
684         capture-wpcap.c         \
685         capture-wpcap.h         \
686         capture_wpcap_packet.c  \
687         capture_wpcap_packet.h  \
688         cfilters                \
689         colorfilters            \
690         config.h.win32          \
691         config.nmake            \
692         debian/changelog        \
693         debian/compat           \
694         debian/control          \
695         debian/copyright        \
696         debian/dirs             \
697         debian/headers-check.c  \
698         debian/patches/00list   \
699         debian/postinst         \
700         debian/pycompat         \
701         debian/pyversions       \
702         debian/rules            \
703         debian/README.source    \
704         debian/tshark.files     \
705         debian/tshark.manpages  \
706         debian/watch            \
707         debian/wireshark-common.files \
708         debian/wireshark-common.manpages \
709         debian/wireshark-common.shlibs \
710         debian/wireshark-dev.docs \
711         debian/wireshark-dev.files \
712         debian/wireshark-dev.header-files \
713         debian/wireshark-dev.manpages \
714         debian/wireshark-dev.prerm \
715         debian/wireshark-root.desktop \
716         debian/wireshark.desktop \
717         debian/wireshark.files \
718         debian/wireshark.manpages \
719         debian/wireshark.menu   \
720         dfilters                \
721         doxygen.cfg.in          \
722         dumpcap.c       \
723         editcap.c               \
724         epan/print.ps           \
725         fix/FIX.xml             \
726         fix/FIX40.xml           \
727         fix/FIX41.xml           \
728         fix/FIX42.xml           \
729         fix/FIX43.xml           \
730         fix/FIX44.xml           \
731         fix/README              \
732         fix/Values.xsl          \
733         fix/hfDecl.xsl          \
734         fix/hfField.xsl         \
735         fix/hfList.xsl          \
736         idl/coseventcomm.idl    \
737         idl/cosnaming.idl       \
738         idl/tango.idl   \
739         idl/parlay/am.idl       \
740         idl/parlay/cccs.idl     \
741         idl/parlay/cm.idl       \
742         idl/parlay/common_cc_data.idl   \
743         idl/parlay/cs.idl       \
744         idl/parlay/dsc.idl      \
745         idl/parlay/fw_data.idl  \
746         idl/parlay/fw_if.idl    \
747         idl/parlay/fw_if_access.idl     \
748         idl/parlay/fw_if_app.idl        \
749         idl/parlay/fw_if_entop.idl      \
750         idl/parlay/fw_if_service.idl    \
751         idl/parlay/gcc_data.idl \
752         idl/parlay/gcc_interfaces.idl   \
753         idl/parlay/gms.idl      \
754         idl/parlay/mm.idl       \
755         idl/parlay/mmccs.idl    \
756         idl/parlay/mmm.idl      \
757         idl/parlay/mpcc_data.idl        \
758         idl/parlay/mpcc_interfaces.idl  \
759         idl/parlay/osa.idl      \
760         idl/parlay/pam_data.idl \
761         idl/parlay/pam_interfaces.idl   \
762         idl/parlay/Parlay.idl   \
763         idl/parlay/policy_data.idl      \
764         idl/parlay/policy_interfaces.idl        \
765         idl/parlay/README.parlay        \
766         idl/parlay/termcap.idl  \
767         idl/parlay/ui_data.idl  \
768         idl/parlay/ui_interfaces.idl    \
769         image/capinfos.rc.in    \
770         image/captype.rc.in     \
771         image/capture_comment.svg       \
772         image/capture_comment_add.png   \
773         image/capture_comment_disabled.png      \
774         image/capture_comment_update.png        \
775         image/capture_start_24.png              \
776         image/capture_start_active_24.png       \
777         image/capture_stop_24.png               \
778         image/clist_ascend.xpm                  \
779         image/clist_descend.xpm                 \
780         image/copy-8.png                        \
781         image/dfilter_apply_disabled.png        \
782         image/dfilter_apply_hover.png           \
783         image/dfilter_apply_normal.png          \
784         image/dfilter_apply_pressed.png         \
785         image/dfilter_bookmark_disabled.png     \
786         image/dfilter_bookmark_hover.png        \
787         image/dfilter_bookmark_normal.png       \
788         image/dfilter_bookmark_pressed.png      \
789         image/dfilter_dropdown.png              \
790         image/dfilter_erase_active.png          \
791         image/dfilter_erase_normal.png          \
792         image/dfilter_erase_selected.png        \
793         image/dfilter_refresh_active.png        \
794         image/dfilter_refresh_normal.png        \
795         image/display_filter.qrc                \
796         image/dumpcap.rc.in     \
797         image/editcap.rc.in     \
798         image/expert_chat.png   \
799         image/expert_error.png  \
800         image/expert_indicators.svg     \
801         image/expert_none.png   \
802         image/expert_note.png   \
803         image/expert_warn.png   \
804         image/file_dlg_win32.rc \
805         image/hi16-app-wireshark.png    \
806         image/hi32-app-wireshark.png    \
807         image/hi48-app-wireshark.png    \
808         image/layout_1.png              \
809         image/layout_2.png              \
810         image/layout_3.png              \
811         image/layout_4.png              \
812         image/layout_5.png              \
813         image/layout_6.png              \
814         image/libwireshark.rc.in        \
815         image/libwsutil.rc.in           \
816         image/lo16-app-wireshark.png    \
817         image/lo32-app-wireshark.png    \
818         image/lo48-app-wireshark.png    \
819         image/Makefile.nmake                    \
820         image/mergecap.rc.in                    \
821         image/minus-8.png                       \
822         image/nsis-checked.bmp                  \
823         image/nsis-unchecked.bmp                \
824         image/openhand-16.png                   \
825         image/plus-8.png                        \
826         image/rawshark.rc.in                    \
827         image/README.image                      \
828         image/reordercap.rc.in                  \
829         image/rubberband-16.png                 \
830         image/status.qrc                        \
831         image/stock_dialog_error_48.xpm         \
832         image/stock_dialog_info_48.xpm          \
833         image/stock_dialog_question_48.xpm      \
834         image/stock_dialog_stop_48.xpm          \
835         image/stock_dialog_warning_48.xpm       \
836         image/text2pcap.rc.in                   \
837         image/toolbar.qrc                       \
838         image/toolbar/analyze_24.xpm            \
839         image/toolbar/audio_player_24.xpm       \
840         image/toolbar/autoscroll_24.xpm         \
841         image/toolbar/capture_airpcap_16.xpm    \
842         image/toolbar/capture_capture_16.xpm    \
843         image/toolbar/capture_details_16.xpm    \
844         image/toolbar/capture_details_24.xpm    \
845         image/toolbar/capture_ethernet_16.xpm   \
846         image/toolbar/capture_filter_24.xpm     \
847         image/toolbar/capture_interfaces_16.png \
848         image/toolbar/capture_interfaces_24.png \
849         image/toolbar/capture_options_16.png    \
850         image/toolbar/capture_options_24.png    \
851         image/toolbar/capture_prepare_16.xpm    \
852         image/toolbar/capture_restart_16.png    \
853         image/toolbar/capture_restart_24.png    \
854         image/toolbar/capture_start_16.png      \
855         image/toolbar/capture_start_24.png      \
856         image/toolbar/capture_stop_16.png       \
857         image/toolbar/capture_stop_24.png       \
858         image/toolbar/checkbox_16.xpm           \
859         image/toolbar/colorize_24.xpm           \
860         image/toolbar/conversations_16.xpm      \
861         image/toolbar/decode_24.xpm             \
862         image/toolbar/decode_as_16.xpm          \
863         image/toolbar/display_filter_24.xpm     \
864         image/toolbar/endpoints_16.xpm          \
865         image/toolbar/expert_info_16.xpm        \
866         image/toolbar/file_set_list_16.xpm      \
867         image/toolbar/file_set_next_16.xpm      \
868         image/toolbar/file_set_previous_16.xpm  \
869         image/toolbar/flow_graph_16.xpm \
870         image/toolbar/gnome_emblem_web_16.png   \
871         image/toolbar/gnome_emblem_web_24.png   \
872         image/toolbar/graphs_16.xpm     \
873         image/toolbar/icon_color_0.xpm  \
874         image/toolbar/icon_color_1.xpm  \
875         image/toolbar/icon_color_2.xpm  \
876         image/toolbar/icon_color_3.xpm  \
877         image/toolbar/icon_color_4.xpm  \
878         image/toolbar/icon_color_5.xpm  \
879         image/toolbar/icon_color_6.xpm  \
880         image/toolbar/icon_color_7.xpm  \
881         image/toolbar/icon_color_8.xpm  \
882         image/toolbar/icon_color_9.xpm  \
883         image/toolbar/internet_24.xpm   \
884         image/toolbar/modem_16.png      \
885         image/toolbar/modem_16.xpm      \
886         image/toolbar/network_bluetooth_16.png  \
887         image/toolbar/network_usb.svg           \
888         image/toolbar/network_usb_16.png        \
889         image/toolbar/network_virtual_16.xpm    \
890         image/toolbar/network_wired_16.png      \
891         image/toolbar/network_wireless_16.png   \
892         image/toolbar/pipe_16.png       \
893         image/toolbar/remote_arrow_16.png       \
894         image/toolbar/remote_globe_16.png       \
895         image/toolbar/remote_sat_16.png \
896         image/toolbar/resize_columns_24.xpm     \
897         image/toolbar/telephone_16.xpm  \
898         image/toolbar/telephony_16.xpm  \
899         image/toolbar/time_24.xpm       \
900         image/toolbar/toolbar_wireshark_file_16.png     \
901         image/toolbar/toolbar_wireshark_file_24.png     \
902         image/toolbar/voip_flow_24.xpm  \
903         image/toolbar/web_support_24.xpm        \
904         image/toolbar/wep_closed_24.xpm \
905         image/tshark.rc.in      \
906         image/voip_bg.xpm       \
907         image/voip_select.xpm   \
908         image/wireshark.exe.manifest.in \
909         image/wireshark.ico     \
910         image/wireshark.rc.in   \
911         image/wiresharkdoc.ico  \
912         image/wiresharkinst.ico \
913         image/WiresharkDoc-16.png       \
914         image/WiresharkDoc-24.png       \
915         image/WiresharkDoc-32.png       \
916         image/WiresharkDoc-48.png       \
917         image/WiresharkDoc-64.png       \
918         image/WiresharkDoc-128.png      \
919         image/WiresharkDoc-256.png      \
920         image/wiretap.rc.in     \
921         image/wsicon.svg        \
922         image/wsicon16.png      \
923         image/wsicon24.png      \
924         image/wsicon32.png      \
925         image/wsicon48.png      \
926         image/wsicon64.png      \
927         image/wsicon128.png     \
928         image/wsicon256.png     \
929         image/wsicon512.png     \
930         image/wsicon1024.png    \
931         image/wsicon-ask.png    \
932         image/wsicon-ask.svg    \
933         image/wsiconcap.svg     \
934         image/wsiconcap256.png  \
935         image/wsiconcap512.png  \
936         image/wsiconcap1024.png \
937         image/wsiconinst.svg    \
938         image/wsiconinst256.png \
939         image/wslogo-dev.svg    \
940         image/wslogo.eps        \
941         image/wslogo.svg        \
942         image/wssplash_dev.png  \
943         image/wssplash.png      \
944         ipmap.html              \
945         macosx-setup.sh         \
946         macosx-support-lib-patches/glib-gconvert.c.patch \
947         macosx-support-lib-patches/glib-pkgconfig.patch \
948         macosx-support-lib-patches/gnutls-pkgconfig.patch \
949         macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
950         macosx-support-lib-patches/portaudio-pa_mac_core.c.patch \
951         make-version.pl         \
952         manuf                   \
953         manuf.tmpl              \
954         mergecap.c              \
955         pdml2html.xsl           \
956         reordercap.c            \
957         smi_modules             \
958         text2pcap-scanner.l     \
959         text2pcap.h             \
960         services                \
961         wireshark.desktop       \
962         wireshark-mime-package.xml \
963         wka.tmpl                \
964         CMakeLists.txt          \
965         cmakeconfig.h.in        \
966         wsutil/CMakeLists.txt   \
967         CMakeOptions.txt        \
968         wiretap/CMakeLists.txt  \
969         README.cmake            \
970         ConfigureChecks.cmake   \
971         cmake/modules/CMakeInstallDirs.cmake    \
972         cmake/modules/COPYING-CMAKE-SCRIPTS     \
973         cmake/modules/CheckCLinkerFlag.cmake    \
974         cmake/modules/FeatureSummary.cmake      \
975         cmake/modules/FindADNS.cmake            \
976         cmake/modules/FindCAP.cmake             \
977         cmake/modules/FindCARES.cmake           \
978         cmake/modules/FindFOP.cmake             \
979         cmake/modules/FindGCRYPT.cmake          \
980         cmake/modules/FindGEOIP.cmake           \
981         cmake/modules/FindGLIB2.cmake           \
982         cmake/modules/FindGMODULE2.cmake        \
983         cmake/modules/FindGNUTLS.cmake          \
984         cmake/modules/FindGTHREAD2.cmake        \
985         cmake/modules/FindGTK2.cmake            \
986         cmake/modules/FindGTK3.cmake            \
987         cmake/modules/FindHtmlViewer.cmake      \
988         cmake/modules/FindKERBEROS.cmake        \
989         cmake/modules/FindNL.cmake              \
990         cmake/modules/FindLEX.cmake             \
991         cmake/modules/FindLUA.cmake             \
992         cmake/modules/FindLYNX.cmake            \
993         cmake/modules/FindM.cmake               \
994         cmake/modules/FindPCAP.cmake            \
995         cmake/modules/FindPOD.cmake             \
996         cmake/modules/FindPORTAUDIO.cmake       \
997         cmake/modules/FindSED.cmake             \
998         cmake/modules/FindSH.cmake              \
999         cmake/modules/FindSMI.cmake             \
1000         cmake/modules/FindXMLLINT.cmake         \
1001         cmake/modules/FindXSLTPROC.cmake        \
1002         cmake/modules/FindYACC.cmake            \
1003         cmake/modules/FindYAPP.cmake            \
1004         cmake/modules/FindZLIB.cmake            \
1005         cmake/modules/LICENSE.txt               \
1006         cmake/modules/UseLemon.cmake            \
1007         cmake/modules/UseMakeDissectorReg.cmake \
1008         cmake/modules/UseMakeTapReg.cmake       \
1009         cmake/modules/readme.txt                \
1010         ui/win32/Makefile.nmake                 \
1011         ui/win32/console_win32.c                \
1012         ui/win32/console_win32.h                \
1013         ui/win32/file_dlg_win32.c               \
1014         ui/win32/file_dlg_win32.h               \
1015         ui/win32/print_win32.c                  \
1016         ui/win32/print_win32.h                  \
1017         ui/win32/settings.ini                   \
1018         CPackConfig.txt                         \
1019         all.vcproj                              \
1020         dumpcap.vcproj                          \
1021         packaging.vcproj                        \
1022         tshark.vcproj                           \
1023         wireshark.vcproj
1024
1025 install-exec-hook:
1026 if HAVE_DUMPCAP_GROUP
1027         -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
1028 endif
1029 if SETCAP_INSTALL
1030         -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
1031         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1032 else
1033 if SETUID_INSTALL
1034         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1035         -chmod +s $(DESTDIR)$(bindir)/dumpcap
1036 endif
1037 endif
1038
1039
1040 DIST_SUBDIRS = asn1 codecs doc epan echld ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
1041
1042 if HAVE_PLUGINS
1043 SUBDIRS = tools wsutil wiretap epan @echld_dir@ plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1044 else
1045 SUBDIRS = tools wsutil wiretap epan @echld_dir@ packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
1046 endif
1047
1048 help/faq.txt: $(srcdir)/help/faq.py
1049         $(AM_V_GEN)(cd help ; \
1050         $(MAKE) faq.txt ;)
1051
1052 libtool: $(LIBTOOL_DEPS)
1053         $(SHELL) ./config.status --recheck
1054
1055
1056 # Used by patch-bzip2
1057 # Trim off any extra version information and find the previous micro release.
1058 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1059 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1060 PREV_DIR="wireshark-$(PREV_VERSION)"
1061 PREV_FILE="$(PREV_DIR).tar.bz2"
1062 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1063
1064 patch-bzip2: distdir
1065         if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1066                 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1067                 tar -xjf $(PREV_FILE) && \
1068                 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1069                 echo "Created patch-bzip2" ; \
1070                 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1071         else \
1072                 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1073         fi
1074         $(am__remove_distdir)
1075
1076 # Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
1077 # No, these do not go into $(datarootdir): the desktop won't look for them there.
1078 # Yes, that violate's autofoo's principle of relocatability.
1079 # What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
1080 # to install this stuff...
1081 install_desktop_files:
1082         mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
1083         install -m 644 -T wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
1084         if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1085                 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications wireshark.desktop; \
1086         else \
1087                 install -m 644 -T wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
1088         fi
1089         for size in 16 24 32 48 64 128 256; \
1090         do \
1091                 mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
1092                 install -m 644 image/wsicon$${size}.png  $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1093                 install -m 644 -T image/WiresharkDoc-$${size}.png  $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1094         done
1095         @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
1096
1097 # Used by svr4-package and osx-package
1098 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1099 top_stagedir=`cd $(top_builddir) && pwd`/packaging/staging
1100 stagedir=$(top_stagedir)/$(PACKAGE).inst
1101
1102 host_cpu=@host_cpu@
1103 host_os=@host_os@
1104
1105 solaris-package: svr4-package
1106
1107 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1108         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1109                 rm -rf $(stagedir) ; \
1110                 $(MAKE) DESTDIR=$(stagedir) install; \
1111                 $(srcdir)/packaging/svr4/mkpkg \
1112                         $(PACKAGE) \
1113                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1114                         $(prefix) \
1115                         $(top_stagedir) ; \
1116         else \
1117                 echo "Error: SVR4 packaging tools not found." ; \
1118                 echo "Package build abandoned." ; \
1119         fi
1120
1121
1122 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1123 rpm-package: dist
1124         @if test x$(HAVE_RPM) = xyes ; then \
1125                 cd $(rpm_topdir) ; \
1126                 mkdir -p BUILD RPMS SOURCES SRPMS; \
1127                 cd SOURCES ; \
1128                 ln -sf ../../../$(distdir).tar.bz2 ; \
1129                 cd .. ; \
1130                 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" \
1131                         @RPMBUILD_WITH_ARGS@ --clean -ba SPECS/wireshark.spec && \
1132                         echo "Package successfully built in `pwd`/RPMS." && \
1133                         rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1134         else \
1135                 echo "Error: RPM executable and/or source directory not found." ; \
1136                 false; \
1137         fi
1138
1139 debian-package: debian/rules
1140         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1141                 dpkg-buildpackage -rfakeroot -us -uc ; \
1142         else \
1143                 echo "Error: Debian packaging tools not found." ; \
1144                 echo "Package build abandoned." ; \
1145         fi
1146
1147 # XXX - This assumes we're building from the source directory.
1148 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1149         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1150                 rm -rf $(stagedir) ; \
1151                 $(MAKE) DESTDIR=$(stagedir) install; \
1152                 cd $(srcdir)/packaging/macosx ;  \
1153                 ./osx-app.sh @OSX_APP_FLAGS@ -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1154         else \
1155                 echo "Error: OS X packaging tools not found." ; \
1156                 echo "Package build abandoned." ; \
1157         fi
1158
1159 packaging/macosx/COPYING.txt: COPYING
1160         (cd packaging/macosx ; \
1161         $(MAKE) COPYING.txt ;)
1162
1163 osx-package: osx-app packaging/macosx/COPYING.txt
1164         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1165                 cd $(srcdir)/packaging/macosx ;  \
1166                 chmod +x ./osx-dmg.sh ; \
1167                 ./osx-dmg.sh @OSX_DMG_FLAGS@ ; \
1168         fi
1169
1170 osx-install: osx-app
1171         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1172                 echo "Copying Wireshark.app to /Applications" ; \
1173                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ;  \
1174         fi
1175
1176 clean-local:
1177         rm -rf $(top_stagedir)
1178
1179 dumpabi:
1180         $(MAKE) -C wiretap dumpabi-libwiretap
1181         $(MAKE) -C epan dumpabi-libwireshark
1182         $(MAKE) -C wsutil dumpabi-libwsutil
1183
1184 checkapi_local:
1185         $(PERL) tools/checkAPIs.pl -build \
1186         $(TSHARK_TAP_SRC) \
1187         $(wireshark_SOURCES)
1188 #       $(EXTRA_wireshark_SOURCES)
1189
1190 checkapi: checkapi_local
1191         cd wiretap && $(MAKE) checkapi
1192         cd codecs && $(MAKE) checkapi
1193         cd ui && $(MAKE) checkapi
1194         cd ui/gtk && $(MAKE) checkapi
1195 ##      cd epan && $(MAKE) checkapi
1196 ##      cd epan/crypt && $(MAKE) checkapi
1197         cd epan/dfilter && $(MAKE) checkapi
1198 ##      cd epan/ftypes && $(MAKE) checkapi
1199 ##      cd epan/wslua && $(MAKE) checkapi
1200         cd epan/dissectors && $(MAKE) checkapi
1201         cd plugins && $(MAKE) checkapi
1202         cd wsutil && $(MAKE) checkapi
1203
1204 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1205 if HAVE_DOXYGEN
1206         rm -rf wsar_html
1207         cd epan && $(MAKE) $@
1208         cd ui && $(MAKE) $@
1209         (umask 022 ; $(DOXYGEN) doxygen.cfg)
1210 endif
1211
1212 wsar-zip: wsar_html
1213 if HAVE_DOXYGEN
1214         rm -f wsar_html.zip
1215         zip -rq wsar_html.zip wsar_html
1216 endif
1217