Re-apply r40728 and fix Coverity CID 1371 UNINIT again.
[obnox/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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
25
26 INCLUDES= @LUA_INCLUDES@
27
28 if HAVE_LIBPY
29 py_dissectors_dir = -DPYTHON_DIR=\"@pythondir@\"
30 else
31 py_dissectors_dir = -DPYTHON_DIR=
32 endif
33
34
35 if HAVE_WARNINGS_AS_ERRORS
36 AM_CLEAN_CFLAGS = -Werror
37 endif
38
39 bin_PROGRAMS = \
40         @wireshark_bin@ \
41         @tshark_bin@    \
42         @text2pcap_bin@ \
43         @mergecap_bin@  \
44         @capinfos_bin@  \
45         @editcap_bin@   \
46         @randpkt_bin@   \
47         @dftest_bin@    \
48         @dumpcap_bin@   \
49         @rawshark_bin@
50
51 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
52         randpkt text2pcap dumpcap rawshark
53 bin_SCRIPTS = tools/idl2wrs
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 the Diameter DTD and XML files in the "diameter" subdirectory
63 # of that directory.
64 #
65 diameterdir = $(pkgdatadir)/diameter
66 diameter_DATA = \
67         diameter/chargecontrol.xml \
68         diameter/Cisco.xml \
69         diameter/dictionary.dtd \
70         diameter/dictionary.xml \
71         diameter/eap.xml \
72         diameter/Ericsson.xml \
73         diameter/etsie2e4.xml \
74         diameter/gqpolicy.xml \
75         diameter/imscxdx.xml \
76         diameter/mobileipv4.xml \
77         diameter/mobileipv6.xml \
78         diameter/nasreq.xml \
79         diameter/sip.xml \
80         diameter/sunping.xml \
81         diameter/TGPPGmb.xml \
82         diameter/TGPPRx.xml \
83         diameter/TGPPSh.xml     \
84         diameter/Vodafone.xml
85
86 #
87 # Install the DTDs directory files in the "dtds" subdirectory
88 # of that directory
89 #
90 dtdsdir = $(pkgdatadir)/dtds
91 dtds_DATA = \
92         dtds/dc.dtd \
93         dtds/itunes.dtd \
94         dtds/mscml.dtd \
95         dtds/pocsettings.dtd \
96         dtds/presence.dtd \
97         dtds/reginfo.dtd \
98         dtds/rlmi.dtd \
99         dtds/rss.dtd \
100         dtds/smil.dtd \
101         dtds/xcap-caps.dtd \
102         dtds/xcap-error.dtd \
103         dtds/watcherinfo.dtd
104
105 #
106 # Install the RADIUS directory files in the "radius" subdirectory
107 # of that directory.
108 #
109 radiusdir = $(pkgdatadir)/radius
110 radius_DATA = \
111         radius/README.radius_dictionary  \
112         radius/dictionary  \
113         radius/dictionary.3com  \
114         radius/dictionary.3gpp  \
115         radius/dictionary.3gpp2  \
116         radius/dictionary.acc  \
117         radius/dictionary.acme \
118         radius/dictionary.airespace \
119         radius/dictionary.alcatel  \
120         radius/dictionary.alcatel.esam \
121         radius/dictionary.alcatel.sr \
122         radius/dictionary.alteon  \
123         radius/dictionary.altiga  \
124         radius/dictionary.alvarion \
125         radius/dictionary.apc \
126         radius/dictionary.aptis  \
127         radius/dictionary.aruba  \
128         radius/dictionary.ascend  \
129         radius/dictionary.asn \
130         radius/dictionary.audiocodes \
131         radius/dictionary.avaya \
132         radius/dictionary.azaire \
133         radius/dictionary.bay  \
134         radius/dictionary.bintec  \
135         radius/dictionary.bristol  \
136         radius/dictionary.cablelabs  \
137         radius/dictionary.cabletron  \
138         radius/dictionary.chillispot \
139         radius/dictionary.cisco  \
140         radius/dictionary.cisco.bbsm  \
141         radius/dictionary.cisco.vpn3000  \
142         radius/dictionary.cisco.vpn5000  \
143         radius/dictionary.clavister \
144         radius/dictionary.colubris  \
145         radius/dictionary.columbia_university  \
146         radius/dictionary.compat  \
147         radius/dictionary.cosine  \
148         radius/dictionary.dhcp \
149         radius/dictionary.digium \
150         radius/dictionary.eltex \
151         radius/dictionary.epygi \
152         radius/dictionary.ericsson  \
153         radius/dictionary.erx  \
154         radius/dictionary.extreme  \
155         radius/dictionary.fortinet \
156         radius/dictionary.foundry  \
157         radius/dictionary.freeradius  \
158         radius/dictionary.freeradius.internal  \
159         radius/dictionary.freeswitch \
160         radius/dictionary.gandalf  \
161         radius/dictionary.garderos  \
162         radius/dictionary.gemtek  \
163         radius/dictionary.h3c \
164         radius/dictionary.hp \
165         radius/dictionary.huawei \
166         radius/dictionary.iea \
167         radius/dictionary.infonet \
168         radius/dictionary.ipunplugged \
169         radius/dictionary.issanni \
170         radius/dictionary.itk  \
171         radius/dictionary.jradius \
172         radius/dictionary.juniper  \
173         radius/dictionary.karlnet  \
174         radius/dictionary.lancom \
175         radius/dictionary.livingston  \
176         radius/dictionary.localweb  \
177         radius/dictionary.lucent \
178         radius/dictionary.manzara \
179         radius/dictionary.merit  \
180         radius/dictionary.microsoft  \
181         radius/dictionary.mikrotik  \
182         radius/dictionary.motorola \
183         radius/dictionary.motorola.wimax \
184         radius/dictionary.navini  \
185         radius/dictionary.netscreen  \
186         radius/dictionary.networkphysics \
187         radius/dictionary.nexans \
188         radius/dictionary.nokia  \
189         radius/dictionary.nokia.conflict \
190         radius/dictionary.nomadix  \
191         radius/dictionary.nortel \
192         radius/dictionary.ntua \
193         radius/dictionary.openser \
194         radius/dictionary.packeteer \
195         radius/dictionary.patton \
196         radius/dictionary.propel  \
197         radius/dictionary.prosoft \
198         radius/dictionary.quiconnect \
199         radius/dictionary.quintum  \
200         radius/dictionary.redback  \
201         radius/dictionary.redcreek  \
202         radius/dictionary.rfc2865 \
203         radius/dictionary.rfc2866 \
204         radius/dictionary.rfc2867 \
205         radius/dictionary.rfc2868 \
206         radius/dictionary.rfc2869 \
207         radius/dictionary.rfc3162 \
208         radius/dictionary.rfc3576 \
209         radius/dictionary.rfc3580 \
210         radius/dictionary.rfc4072 \
211         radius/dictionary.rfc4372 \
212         radius/dictionary.rfc4603 \
213         radius/dictionary.rfc4675 \
214         radius/dictionary.rfc4679 \
215         radius/dictionary.rfc4818 \
216         radius/dictionary.rfc4849 \
217         radius/dictionary.rfc5090 \
218         radius/dictionary.rfc5176 \
219         radius/dictionary.rfc5580 \
220         radius/dictionary.rfc5607 \
221         radius/dictionary.rfc5904 \
222         radius/dictionary.riverstone \
223         radius/dictionary.roaringpenguin \
224         radius/dictionary.shasta  \
225         radius/dictionary.shiva  \
226         radius/dictionary.slipstream \
227         radius/dictionary.sofaware \
228         radius/dictionary.sonicwall  \
229         radius/dictionary.springtide  \
230         radius/dictionary.starent  \
231         radius/dictionary.t_systems_nova  \
232         radius/dictionary.telebit  \
233         radius/dictionary.telkom \
234         radius/dictionary.trapeze  \
235         radius/dictionary.tropos \
236         radius/dictionary.ukerna  \
237         radius/dictionary.unix  \
238         radius/dictionary.usr  \
239         radius/dictionary.utstarcom \
240         radius/dictionary.valemount  \
241         radius/dictionary.versanet  \
242         radius/dictionary.vqp \
243         radius/dictionary.walabi \
244         radius/dictionary.waverider \
245         radius/dictionary.wichorus \
246         radius/dictionary.wimax  \
247         radius/dictionary.wimax.wichorus \
248         radius/dictionary.wispr  \
249         radius/dictionary.xedia \
250         radius/dictionary.xylan \
251         radius/dictionary.zyxel
252
253 #
254 # Install the tpncp directory files in the "tpncp" subdirectory
255 # of that directory
256 #
257 tpncpdir = $(pkgdatadir)/tpncp
258 tpncp_DATA = \
259         tpncp/tpncp.dat
260
261 #
262 # Install the ui directory files in the "ui" subdirectory
263 # of that directory
264 #
265 uidir = $(pkgdatadir)/ui
266 ui_DATA = \
267         ui/gtk/ui/main-menubar-ui.xml
268
269 #
270 # Install the ui/gt directory files in the "ui/qt" subdirectory
271 # of that directory
272 #
273 uiqtdir = $(pkgdatadir)/ui/qt
274 uiqt_DATA = \
275         ui/qt/byte_view_tab.cpp \
276         ui/qt/byte_view_tab.h \
277         ui/qt/byte_view_text.cpp        \
278         ui/qt/byte_view_text.h  \
279         ui/qt/capture_file_dialog.cpp   \
280         ui/qt/capture_file_dialog.h     \
281         ui/qt/capture_info_dialog.cpp   \
282         ui/qt/capture_info_dialog.h     \
283         ui/qt/capture_interface_dialog.cpp      \
284         ui/qt/capture_interface_dialog.h        \
285         ui/qt/capture_start_24.png      \
286         ui/qt/capture_start_active_24.png       \
287         ui/qt/capture_stop_24.png       \
288         ui/qt/color_dialog.cpp  \
289         ui/qt/color_dialog.h    \
290         ui/qt/color_utils.cpp   \
291         ui/qt/color_utils.h     \
292         ui/qt/dfilter_apply_hover.png   \
293         ui/qt/dfilter_apply_normal.png  \
294         ui/qt/dfilter_apply_pressed.png \
295         ui/qt/dfilter_bookmark_hover.png        \
296         ui/qt/dfilter_bookmark_normal.png       \
297         ui/qt/dfilter_bookmark_pressed.png      \
298         ui/qt/dfilter_dropdown.png      \
299         ui/qt/dfilter_erase_active.png  \
300         ui/qt/dfilter_erase_normal.png  \
301         ui/qt/dfilter_erase_selected.png        \
302         ui/qt/dfilter_refresh_active.png        \
303         ui/qt/dfilter_refresh_normal.png        \
304         ui/qt/display_filter_16.svg     \
305         ui/qt/display_filter_combo.cpp  \
306         ui/qt/display_filter_combo.h    \
307         ui/qt/display_filter_edit.cpp   \
308         ui/qt/display_filter_edit.h     \
309         ui/qt/display_filter.qrc        \
310         ui/qt/fileset_dialog.cpp        \
311         ui/qt/fileset_dialog.h  \
312         ui/qt/gpl-template.txt  \
313         ui/qt/interface_tree.cpp        \
314         ui/qt/interface_tree.h  \
315         ui/qt/label_stack.cpp   \
316         ui/qt/label_stack.h     \
317         ui/qt/main.cpp  \
318         ui/qt/main_status_bar.cpp       \
319         ui/qt/main_status_bar.h \
320         ui/qt/main_welcome.cpp  \
321         ui/qt/main_welcome.h    \
322         ui/qt/main_window.cpp   \
323         ui/qt/main_window.h     \
324         ui/qt/main_window.ui    \
325         ui/qt/monospace_font.cpp        \
326         ui/qt/monospace_font.h  \
327         ui/qt/packet_list.cpp   \
328         ui/qt/packet_list.h     \
329         ui/qt/packet_list_model.cpp     \
330         ui/qt/packet_list_model.h
331
332 #
333 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
334 # of that directory
335 #
336 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
337 wimaxasncp_DATA = \
338         wimaxasncp/dictionary.xml \
339         wimaxasncp/dictionary.dtd
340
341 PLATFORM_SRC = capture-pcap-util-unix.c
342
343 if HAVE_PLUGINS
344 -include plugins/Custom.make
345 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
346         -dlopen plugins/asn1/asn1.la \
347         -dlopen plugins/docsis/docsis.la \
348         -dlopen plugins/ethercat/ethercat.la \
349         -dlopen plugins/giop/cosnaming.la \
350         -dlopen plugins/giop/coseventcomm.la \
351         -dlopen plugins/gryphon/gryphon.la \
352         -dlopen plugins/irda/irda.la \
353         -dlopen plugins/m2m/m2m.la \
354         -dlopen plugins/mate/mate.la \
355         -dlopen plugins/opcua/opcua.la \
356         -dlopen plugins/profinet/profinet.la \
357         -dlopen plugins/stats_tree/stats_tree.la \
358         -dlopen plugins/unistim/unistim.la \
359         -dlopen plugins/wimax/wimax.la
360
361 WTAP_PLUGIN_SOURCES = \
362        epan/plugins.c \
363        epan/report_err.c \
364        epan/filesystem.c
365
366 else            # HAVE_PLUGINS
367
368 plugin_ldadd =
369 WTAP_PLUGIN_SOURCES =
370
371 endif           # HAVE_PLUGINS
372
373 include Makefile.common
374
375 if ENABLE_STATIC
376 wireshark_LDFLAGS = -Wl,-static -all-static
377 else
378 wireshark_LDFLAGS = -export-dynamic
379 endif
380
381 # Libraries and plugin flags with which to link wireshark.
382 #
383 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
384 # they are included in @GTK_LIBS@, and doesn't have to be linked with
385 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
386 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
387 # applications are X applications).
388 wireshark_LDADD = \
389         ui/gtk/libgtkui.a               \
390         ui/gtk/libgtkui_dirty.a         \
391         ui/libui.a                      \
392         codecs/libcodec.a               \
393         wiretap/libwiretap.la           \
394         epan/libwireshark.la            \
395         wsutil/libwsutil.la             \
396         @SSL_LIBS@                      \
397         $(plugin_ldadd)                 \
398         @PCAP_LIBS@                     \
399         @GTK_LIBS@ -lm                  \
400         @C_ARES_LIBS@                   \
401         @ADNS_LIBS@                     \
402         @KRB5_LIBS@                     \
403         @LAUNCHSERVICES_FRAMEWORKS@     \
404         @CORESERVICES_FRAMEWORKS@       \
405         @PY_LIBS@                       \
406         @LIBGCRYPT_LIBS@                \
407         @LIBGNUTLS_LIBS@                \
408         @LIBSMI_LDFLAGS@                \
409         @PORTAUDIO_LIBS@
410 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
411
412 if ENABLE_STATIC
413 tshark_LDFLAGS = -Wl,-static -all-static
414 else
415 tshark_LDFLAGS = -export-dynamic
416 endif
417
418 # Libraries and plugin flags with which to link tshark.
419 tshark_LDADD = \
420         ui/cli/libcliui.a               \
421         ui/libui.a                      \
422         wiretap/libwiretap.la           \
423         epan/libwireshark.la            \
424         wsutil/libwsutil.la             \
425         @SSL_LIBS@                      \
426         $(plugin_ldadd)                 \
427         @GLIB_LIBS@ -lm                 \
428         @PCAP_LIBS@                     \
429         @SOCKET_LIBS@                   \
430         @NSL_LIBS@                      \
431         @C_ARES_LIBS@                   \
432         @ADNS_LIBS@                     \
433         @KRB5_LIBS@                     \
434         @CORESERVICES_FRAMEWORKS@       \
435         @PY_LIBS@                       \
436         @LIBGCRYPT_LIBS@                \
437         @LIBGNUTLS_LIBS@                \
438         @LIBSMI_LDFLAGS@
439 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
440
441 if ENABLE_STATIC
442 rawshark_LDFLAGS = -Wl,-static -all-static
443 else
444 rawshark_LDFLAGS = -export-dynamic
445 endif
446
447 # Libraries and plugin flags with which to link rawshark.
448 rawshark_LDADD = \
449         ui/libui.a                      \
450         wiretap/libwiretap.la           \
451         epan/libwireshark.la            \
452         wsutil/libwsutil.la             \
453         @SSL_LIBS@                      \
454         $(plugin_ldadd)                 \
455         @GLIB_LIBS@ -lm                 \
456         @PCAP_LIBS@                     \
457         @SOCKET_LIBS@                   \
458         @NSL_LIBS@                      \
459         @C_ARES_LIBS@                   \
460         @ADNS_LIBS@                     \
461         @KRB5_LIBS@                     \
462         @CORESERVICES_FRAMEWORKS@       \
463         @PY_LIBS@                       \
464         @LIBGCRYPT_LIBS@                \
465         @LIBGNUTLS_LIBS@                \
466         @LIBSMI_LDFLAGS@
467 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
468
469 # Libraries with which to link text2pcap.
470 text2pcap_LDADD = \
471         wiretap/libwiretap.la           \
472         wsutil/libwsutil.la             \
473         @GLIB_LIBS@ -lm
474 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
475 # which is generated (and therefore not always clean).
476 # We could generate text2pcap.o as a library with -Werror but for now it
477 # doesn't seem worth the effort.
478 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
479
480 # Libraries with which to link mergecap.
481 mergecap_LDADD = \
482         wiretap/libwiretap.la           \
483         wsutil/libwsutil.la             \
484         @GLIB_LIBS@
485 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
486
487 # Libraries with which to link capinfos.
488 capinfos_LDADD = \
489         wiretap/libwiretap.la           \
490         wsutil/libwsutil.la             \
491         @GLIB_LIBS@                     \
492         @LIBGCRYPT_LIBS@
493 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
494
495 # Libraries with which to link editcap.
496 editcap_LDADD = \
497         wiretap/libwiretap.la           \
498         wsutil/libwsutil.la             \
499         @GLIB_LIBS@
500 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
501
502 # Libraries with which to link randpkt.
503 randpkt_LDADD = \
504         wiretap/libwiretap.la           \
505         wsutil/libwsutil.la             \
506         @GLIB_LIBS@ -lm                 \
507         @PCAP_LIBS@                     \
508         @SOCKET_LIBS@                   \
509         @NSL_LIBS@                      \
510         @C_ARES_LIBS@                   \
511         @ADNS_LIBS@
512 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
513
514 # Libraries and plugin flags with which to link dftest.
515 dftest_LDADD = \
516         ui/libui.a                      \
517         wiretap/libwiretap.la           \
518         wsutil/libwsutil.la             \
519         epan/libwireshark.la            \
520         @SSL_LIBS@                      \
521         $(plugin_ldadd)                 \
522         @GLIB_LIBS@ -lm                 \
523         @PCAP_LIBS@                     \
524         @SOCKET_LIBS@                   \
525         @NSL_LIBS@                      \
526         @C_ARES_LIBS@                   \
527         @ADNS_LIBS@                     \
528         @KRB5_LIBS@                     \
529         @PY_LIBS@                       \
530         @LIBGCRYPT_LIBS@                \
531         @LIBGNUTLS_LIBS@                \
532         @LIBSMI_LDFLAGS@
533 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
534
535 # Libraries with which to link dumpcap.
536 dumpcap_LDADD = \
537         wsutil/libwsutil.la             \
538         @GLIB_LIBS@                     \
539         @PCAP_LIBS@                     \
540         @SOCKET_LIBS@                   \
541         @NSL_LIBS@                      \
542         @CORESERVICES_FRAMEWORKS@       \
543         @LIBCAP_LIBS@
544 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
545
546 # Common headers
547 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
548         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
549
550 #
551 # Build the version string
552 #
553 # FORCE is the portable version of .PHONY
554 FORCE:
555
556 svnversion.h: FORCE
557         $(PERL) $(srcdir)/make-version.pl $(srcdir)
558
559 #
560 # Build shell scripts by doing variable substitution.
561 # Taken from autoconf 2.13.
562 #
563 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
564
565 SUFFIXES = .sh
566 .sh:
567         rm -f $@ $@.tmp
568         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
569
570 ps.c: print.ps $(srcdir)/tools/rdps.py
571         $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
572
573 services: tools/make-services.pl
574         $(PERL) $(srcdir)/tools/make-services.pl
575
576 CLEANFILES =            \
577         *~              \
578         vgcore.*
579
580 #
581 # We have to remove svnversion.h with "make distclean", as, otherwise,
582 # "make distcheck" fails.  We still need to make the tarballs work
583 # even if you do "make distclean" and try to rebuild; that's a work in
584 # progress.
585 #
586 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
587 # list of files removed by "make distclean"?  (It's deliberately
588 # included in that list.)
589 #
590 DISTCLEANFILES = \
591         ps.c                    \
592         svnversion.h
593
594 MAINTAINERCLEANFILES =          \
595         $(GENERATED_FILES)      \
596         Makefile.in             \
597         aclocal.m4              \
598         compile                 \
599         config.h.in             \
600         configure               \
601         depcomp                 \
602         install-sh              \
603         ltmain.sh               \
604         missing                 \
605         ylwrap
606
607 EXTRA_DIST = \
608         INSTALL.configure       \
609         Makefile.am.inc         \
610         Makefile.common         \
611         Makefile.nmake          \
612         Makefile.nmake.inc      \
613         README.aix              \
614         README.bsd              \
615         README.DECT             \
616         README.hpux             \
617         README.irix             \
618         README.linux            \
619         README.macos            \
620         README.tru64            \
621         README.vmware           \
622         README.windows          \
623         abi-descriptor.template \
624         aclocal-fallback/glib-2.0.m4 \
625         aclocal-fallback/gtk-2.0.m4 \
626         aclocal-flags           \
627         adns_dll.dep            \
628         adns_dll.rc             \
629         autogen.sh              \
630         capinfos.c              \
631         capture-wpcap.c         \
632         capture-wpcap.h         \
633         capture_wpcap_packet.c  \
634         capture_wpcap_packet.h  \
635         cfilters                \
636         colorfilters            \
637         config.h.win32          \
638         config.nmake            \
639         debian/changelog        \
640         debian/compat           \
641         debian/control          \
642         debian/copyright        \
643         debian/dirs             \
644         debian/headers-check.c  \
645         debian/patches/00list   \
646         debian/patches/03_preferences.dpatch \
647         debian/postinst         \
648         debian/pycompat         \
649         debian/pyversions       \
650         debian/rules            \
651         debian/README.source    \
652         debian/tshark.files     \
653         debian/tshark.manpages  \
654         debian/watch            \
655         debian/wireshark-common.files \
656         debian/wireshark-common.manpages \
657         debian/wireshark-common.shlibs \
658         debian/wireshark-dev.docs \
659         debian/wireshark-dev.files \
660         debian/wireshark-dev.header-files \
661         debian/wireshark-dev.manpages \
662         debian/wireshark-dev.prerm \
663         debian/wireshark-root.desktop \
664         debian/wireshark.desktop \
665         debian/wireshark.files \
666         debian/wireshark.manpages \
667         debian/wireshark.menu   \
668         epan/dfilter/README.dfilter     \
669         dfilters                \
670         doxygen.cfg.in          \
671         dumpcap.c       \
672         editcap.c               \
673         fix/FIX.xml             \
674         fix/FIX40.xml           \
675         fix/FIX41.xml           \
676         fix/FIX42.xml           \
677         fix/FIX43.xml           \
678         fix/FIX44.xml           \
679         fix/README              \
680         fix/Values.xsl          \
681         fix/hfDecl.xsl          \
682         fix/hfField.xsl         \
683         fix/hfList.xsl          \
684         idl/coseventcomm.idl    \
685         idl/cosnaming.idl       \
686         idl/tango.idl   \
687         idl/parlay/am.idl       \
688         idl/parlay/cccs.idl     \
689         idl/parlay/cm.idl       \
690         idl/parlay/common_cc_data.idl   \
691         idl/parlay/cs.idl       \
692         idl/parlay/dsc.idl      \
693         idl/parlay/fw_data.idl  \
694         idl/parlay/fw_if.idl    \
695         idl/parlay/fw_if_access.idl     \
696         idl/parlay/fw_if_app.idl        \
697         idl/parlay/fw_if_entop.idl      \
698         idl/parlay/fw_if_service.idl    \
699         idl/parlay/gcc_data.idl \
700         idl/parlay/gcc_interfaces.idl   \
701         idl/parlay/gms.idl      \
702         idl/parlay/mm.idl       \
703         idl/parlay/mmccs.idl    \
704         idl/parlay/mmm.idl      \
705         idl/parlay/mpcc_data.idl        \
706         idl/parlay/mpcc_interfaces.idl  \
707         idl/parlay/osa.idl      \
708         idl/parlay/pam_data.idl \
709         idl/parlay/pam_interfaces.idl   \
710         idl/parlay/Parlay.idl   \
711         idl/parlay/policy_data.idl      \
712         idl/parlay/policy_interfaces.idl        \
713         idl/parlay/README.parlay        \
714         idl/parlay/termcap.idl  \
715         idl/parlay/ui_data.idl  \
716         idl/parlay/ui_interfaces.idl    \
717         image/capinfos.rc.in    \
718         image/clist_ascend.xpm  \
719         image/clist_descend.xpm \
720         image/dumpcap.rc.in     \
721         image/editcap.rc.in     \
722         image/file_dlg_win32.rc \
723         image/hi16-app-wireshark.png    \
724         image/hi32-app-wireshark.png    \
725         image/hi48-app-wireshark.png    \
726         image/icon_layout_1.xpm \
727         image/icon_layout_2.xpm \
728         image/icon_layout_3.xpm \
729         image/icon_layout_4.xpm \
730         image/icon_layout_5.xpm \
731         image/icon_layout_6.xpm \
732         image/libwireshark.rc.in        \
733         image/libwsutil.rc.in   \
734         image/lo16-app-wireshark.png    \
735         image/lo32-app-wireshark.png    \
736         image/lo48-app-wireshark.png    \
737         image/Makefile.nmake    \
738         image/mergecap.rc.in    \
739         image/nsis-checked.bmp  \
740         image/nsis-unchecked.bmp        \
741         image/rawshark.rc.in    \
742         image/README.image      \
743         image/stock_dialog_error_48.xpm \
744         image/stock_dialog_info_48.xpm  \
745         image/stock_dialog_question_48.xpm      \
746         image/stock_dialog_stop_48.xpm  \
747         image/stock_dialog_warning_48.xpm       \
748         image/text2pcap.rc.in   \
749         image/WiresharkDoc_24.xpm       \
750         image/toolbar/analyze_24.xpm \
751         image/toolbar/audio_player_24.xpm       \
752         image/toolbar/autoscroll_24.xpm \
753         image/toolbar/capture_airpcap_16.xpm \
754         image/toolbar/capture_capture_16.xpm \
755         image/toolbar/capture_details_16.xpm \
756         image/toolbar/capture_details_24.xpm \
757         image/toolbar/capture_ethernet_16.xpm  \
758         image/toolbar/capture_filter_24.xpm     \
759         image/toolbar/capture_interfaces_24.xpm \
760         image/toolbar/capture_options_24.xpm    \
761         image/toolbar/capture_prepare_16.xpm \
762         image/toolbar/capture_restart_24.xpm    \
763         image/toolbar/capture_start_24.xpm      \
764         image/toolbar/capture_stop_24.xpm       \
765         image/toolbar/checkbox_16.xpm   \
766         image/toolbar/colorize_24.xpm   \
767         image/toolbar/conversations_16.xpm      \
768         image/toolbar/decode_24.xpm     \
769         image/toolbar/decode_as_16.xpm  \
770         image/toolbar/display_filter_24.xpm     \
771         image/toolbar/endpoints_16.xpm  \
772         image/toolbar/expert_info_16.xpm        \
773         image/toolbar/file_set_list_16.xpm      \
774         image/toolbar/file_set_next_16.xpm      \
775         image/toolbar/file_set_previous_16.xpm  \
776         image/toolbar/flow_graph_16.xpm \
777         image/toolbar/graphs_16.xpm     \
778         image/toolbar/icon_color_0.xpm  \
779         image/toolbar/icon_color_1.xpm  \
780         image/toolbar/icon_color_2.xpm  \
781         image/toolbar/icon_color_3.xpm  \
782         image/toolbar/icon_color_4.xpm  \
783         image/toolbar/icon_color_5.xpm  \
784         image/toolbar/icon_color_6.xpm  \
785         image/toolbar/icon_color_7.xpm  \
786         image/toolbar/icon_color_8.xpm  \
787         image/toolbar/icon_color_9.xpm  \
788         image/toolbar/internet_24.xpm   \
789         image/toolbar/modem_16.png      \
790         image/toolbar/modem_16.xpm      \
791         image/toolbar/network_bluetooth_16.png  \
792         image/toolbar/network_usb.svg           \
793         image/toolbar/network_usb_16.png        \
794         image/toolbar/network_virtual_16.xpm    \
795         image/toolbar/network_wired_16.png      \
796         image/toolbar/network_wireless_16.png   \
797         image/toolbar/pipe_16.png       \
798         image/toolbar/remote_arrow_16.png       \
799         image/toolbar/remote_globe_16.png       \
800         image/toolbar/remote_sat_16.png \
801         image/toolbar/resize_columns_24.xpm     \
802         image/toolbar/telephone_16.xpm  \
803         image/toolbar/telephony_16.xpm  \
804         image/toolbar/time_24.xpm       \
805         image/toolbar/voip_flow_24.xpm  \
806         image/toolbar/web_support_24.xpm        \
807         image/toolbar/wep_closed_24.xpm \
808         image/toolbar/wiki_24.xpm       \
809         image/tshark.rc.in      \
810         image/voip_bg.xpm       \
811         image/voip_select.xpm   \
812         image/wireshark.exe.manifest.in \
813         image/wireshark.ico     \
814         image/wireshark.rc.in   \
815         image/WiresharkDoc-128.png      \
816         image/WiresharkDoc-16.png       \
817         image/WiresharkDoc-24.png       \
818         image/WiresharkDoc-256.png      \
819         image/WiresharkDoc-32.png       \
820         image/WiresharkDoc-48.png       \
821         image/WiresharkDoc-64.png       \
822         image/wiresharkdoc.ico  \
823         image/wiresharkinst.ico \
824         image/wiretap.rc.in     \
825         image/wsicon.svg        \
826         image/wsicon16.png      \
827         image/wsicon16.xpm      \
828         image/wsicon256.png     \
829         image/wsicon32.png      \
830         image/wsicon32.xpm      \
831         image/wsicon48.png      \
832         image/wsicon48.xpm      \
833         image/wsicon64.png      \
834         image/wsicon64.xpm      \
835         image/wsiconcap.svg     \
836         image/wsiconcap16.xpm   \
837         image/wsiconcap256.png  \
838         image/wsiconcap32.xpm   \
839         image/wsiconcap48.xpm   \
840         image/wsiconinst.svg    \
841         image/wsiconinst256.png \
842         image/wslogo.eps        \
843         image/wslogo.svg        \
844         image/wssplash-dev.xpm  \
845         image/wssplash.xpm      \
846         ipmap.html              \
847         macosx-setup.sh         \
848         macosx-support-lib-patches/glib-gconvert.patch \
849         macosx-support-lib-patches/glib-pkgconfig.patch \
850         macosx-support-lib-patches/gnutls-pkgconfig.patch \
851         make-version.pl         \
852         manuf                   \
853         manuf.tmpl              \
854         mergecap.c              \
855         pdml2html.xsl           \
856         print.ps                \
857         $(diameter_DATA)        \
858         $(dtds_DATA)            \
859         $(radius_DATA)          \
860         $(tpncp_DATA)           \
861         $(ui_DATA)              \
862         $(uiqt_DATA)            \
863         $(wimaxasncp_DATA)      \
864         randpkt.c               \
865         smi_modules             \
866         text2pcap-scanner.l     \
867         text2pcap.c             \
868         text2pcap.h             \
869         services                \
870         wireshark.desktop       \
871         wka.tmpl                \
872         CMakeLists.txt          \
873         cmakeconfig.h.in        \
874         wsutil/CMakeLists.txt   \
875         CMakeOptions.txt        \
876         wiretap/CMakeLists.txt  \
877         README.cmake            \
878         ConfigureChecks.cmake   \
879         cmake/modules/CMakeInstallDirs.cmake    \
880         cmake/modules/COPYING-CMAKE-SCRIPTS     \
881         cmake/modules/CheckCLinkerFlag.cmake    \
882         cmake/modules/FeatureSummary.cmake      \
883         cmake/modules/FindADNS.cmake            \
884         cmake/modules/FindCAP.cmake             \
885         cmake/modules/FindCARES.cmake           \
886         cmake/modules/FindFOP.cmake             \
887         cmake/modules/FindGCRYPT.cmake          \
888         cmake/modules/FindGEOIP.cmake           \
889         cmake/modules/FindGLIB2.cmake           \
890         cmake/modules/FindGMODULE2.cmake        \
891         cmake/modules/FindGNUTLS.cmake          \
892         cmake/modules/FindGTHREAD2.cmake        \
893         cmake/modules/FindGTK2.cmake            \
894         cmake/modules/FindGTK3.cmake            \
895         cmake/modules/FindHtmlViewer.cmake      \
896         cmake/modules/FindKERBEROS.cmake        \
897         cmake/modules/FindLEX.cmake             \
898         cmake/modules/FindLUA.cmake             \
899         cmake/modules/FindLYNX.cmake            \
900         cmake/modules/FindM.cmake               \
901         cmake/modules/FindPCAP.cmake            \
902         cmake/modules/FindPOD.cmake             \
903         cmake/modules/FindPORTAUDIO.cmake       \
904         cmake/modules/FindPYTHON.cmake          \
905         cmake/modules/FindSED.cmake             \
906         cmake/modules/FindSH.cmake              \
907         cmake/modules/FindSMI.cmake             \
908         cmake/modules/FindXMLLINT.cmake         \
909         cmake/modules/FindXSLTPROC.cmake        \
910         cmake/modules/FindYACC.cmake            \
911         cmake/modules/FindYAPP.cmake            \
912         cmake/modules/FindZLIB.cmake            \
913         cmake/modules/LICENSE.txt               \
914         cmake/modules/UseLemon.cmake            \
915         cmake/modules/UseMakeDissectorReg.cmake \
916         cmake/modules/UseMakeTapReg.cmake       \
917         cmake/modules/readme.txt                \
918         ui/win32/Makefile.nmake                 \
919         ui/win32/file_dlg_win32.c               \
920         ui/win32/file_dlg_win32.h               \
921         ui/win32/print_win32.c                  \
922         ui/win32/print_win32.h                  \
923         CPackConfig.txt                         \
924         all.vcproj                              \
925         dumpcap.vcproj                          \
926         packaging.vcproj                        \
927         tshark.vcproj                           \
928         wireshark.vcproj
929
930 install-exec-hook:
931 if HAVE_DUMPCAP_GROUP
932         -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
933 endif
934 if SETCAP_INSTALL
935         -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
936         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
937 else
938 if SETUID_INSTALL
939         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
940         -chmod +s $(DESTDIR)$(bindir)/dumpcap
941 endif
942 endif
943
944
945 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk help packaging plugins tools wiretap wsutil docbook
946
947 if HAVE_PLUGINS
948 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
949 else
950 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
951 endif
952
953 help/faq.txt: $(srcdir)/help/faq.py
954         (cd help ; \
955         $(MAKE) faq.txt ;)
956
957 libtool: $(LIBTOOL_DEPS)
958         $(SHELL) ./config.status --recheck
959
960 # Used by svr4-package and osx-package
961 # We load top_stagedir with an explicit path so that libtool doesn't freak.
962 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
963 stagedir=$(top_stagedir)/$(PACKAGE).inst
964
965 host_cpu=@host_cpu@
966 host_os=@host_os@
967
968 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
969         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
970                 rm -rf $(stagedir) ; \
971                 $(MAKE) DESTDIR=$(stagedir) install; \
972                 $(srcdir)/packaging/svr4/mkpkg \
973                         $(PACKAGE) \
974                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
975                         $(prefix) \
976                         $(top_stagedir) ; \
977         else \
978                 echo "Error: SVR4 packaging tools not found." ; \
979                 echo "Package build abandoned." ; \
980         fi
981
982 solaris-package: svr4-package
983
984 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
985 rpm-package: dist
986         if test x$(HAVE_RPM) = xyes ; then \
987                 cd $(rpm_topdir) ; \
988                 mkdir -p BUILD RPMS SOURCES ; \
989                 cd SOURCES ; \
990                 ln -s ../../../$(distdir).tar.bz2 ; \
991                 ln -s ../../../wireshark.desktop ; \
992                 ln -s ../../../image/wsicon64.png wireshark.png ; \
993                 cd .. ; \
994                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
995                         echo "Package successfully built in `pwd`/RPMS." ; \
996         else \
997                 echo "Error: RPM executable and/or source directory not found." ; \
998         fi
999 srpm-package: dist
1000         if test x$(HAVE_RPM) = xyes ; then \
1001                 cd $(rpm_topdir) ; \
1002                 mkdir -p BUILD SRPMS SOURCES ; \
1003                 cd SOURCES ; \
1004                 ln -s ../../../$(distdir).tar.bz2 ; \
1005                 ln -s ../../../wireshark.desktop ; \
1006                 ln -s ../../../image/wsicon64.png wireshark.png ; \
1007                 cd .. ; \
1008                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
1009                         echo "Package successfully built in `pwd`/SRPMS." ; \
1010         else \
1011                 echo "Error: RPM executable and/or source directory not found." ; \
1012         fi
1013
1014 debian-package: debian/rules
1015         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1016                 dpkg-buildpackage -rfakeroot -us -uc ; \
1017         else \
1018                 echo "Error: Debian packaging tools not found." ; \
1019                 echo "Package build abandoned." ; \
1020         fi
1021
1022 # XXX - This assumes we're building from the source directory.
1023 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1024         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1025                 rm -rf $(stagedir) ; \
1026                 $(MAKE) DESTDIR=$(stagedir) install; \
1027                 cd $(srcdir)/packaging/macosx ;  \
1028                 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1029         else \
1030                 echo "Error: OS X packaging tools not found." ; \
1031                 echo "Package build abandoned." ; \
1032         fi
1033
1034 packaging/macosx/COPYING.txt: COPYING
1035         (cd packaging/macosx ; \
1036         $(MAKE) COPYING.txt ;)
1037
1038 osx-package: osx-app packaging/macosx/COPYING.txt
1039         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1040                 cd $(srcdir)/packaging/macosx ;  \
1041                 ./osx-dmg.sh ; \
1042         fi
1043
1044 osx-install: osx-app
1045         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1046                 echo "Copying Wireshark.app to /Applications" ; \
1047                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ;  \
1048         fi
1049
1050 clean-local:
1051         rm -rf $(top_stagedir)
1052
1053 dumpabi:
1054         $(MAKE) -C wiretap dumpabi
1055         $(MAKE) -C epan dumpabi
1056         $(MAKE) -C wsutil dumpabi
1057
1058 checkapi_local:
1059         $(PERL) tools/checkAPIs.pl \
1060         $(TSHARK_TAP_SRC) \
1061         $(wireshark_SOURCES)
1062 #       $(EXTRA_wireshark_SOURCES)
1063
1064 checkapi: checkapi_local
1065         cd wiretap && $(MAKE) checkapi
1066         cd codecs && $(MAKE) checkapi
1067         cd ui && $(MAKE) checkapi
1068         cd ui/gtk && $(MAKE) checkapi
1069 ##      cd epan && $(MAKE) checkapi
1070 ##      cd epan/crypt && $(MAKE) checkapi
1071         cd epan/dfilter && $(MAKE) checkapi
1072 ##      cd epan/ftypes && $(MAKE) checkapi
1073 ##      cd epan/wslua && $(MAKE) checkapi
1074         cd epan/dissectors && $(MAKE) checkapi
1075         cd plugins && $(MAKE) checkapi
1076         cd wsutil && $(MAKE) checkapi