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