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