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