From Mike Garratt:
[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.rfc5580 \
225         radius/dictionary.rfc5607 \
226         radius/dictionary.rfc5904 \
227         radius/dictionary.riverstone \
228         radius/dictionary.roaringpenguin \
229         radius/dictionary.shasta  \
230         radius/dictionary.shiva  \
231         radius/dictionary.slipstream \
232         radius/dictionary.sofaware \
233         radius/dictionary.sonicwall  \
234         radius/dictionary.springtide  \
235         radius/dictionary.starent  \
236         radius/dictionary.t_systems_nova  \
237         radius/dictionary.telebit  \
238         radius/dictionary.telkom \
239         radius/dictionary.trapeze  \
240         radius/dictionary.tropos \
241         radius/dictionary.ukerna  \
242         radius/dictionary.unix  \
243         radius/dictionary.usr  \
244         radius/dictionary.utstarcom \
245         radius/dictionary.valemount  \
246         radius/dictionary.versanet  \
247         radius/dictionary.vqp \
248         radius/dictionary.walabi \
249         radius/dictionary.waverider \
250         radius/dictionary.wichorus \
251         radius/dictionary.wimax  \
252         radius/dictionary.wimax.wichorus \
253         radius/dictionary.wispr  \
254         radius/dictionary.xedia \
255         radius/dictionary.zyxel
256
257 #
258 # Install the tpncp directory files in the "tpncp" subdirectory
259 # of that directory
260 #
261 tpncpdir = $(pkgdatadir)/tpncp
262 tpncp_DATA = \
263         tpncp/tpncp.dat
264
265 #
266 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
267 # of that directory
268 #
269 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
270 wimaxasncp_DATA = \
271         wimaxasncp/dictionary.xml \
272         wimaxasncp/dictionary.dtd
273
274 PLATFORM_SRC = capture-pcap-util-unix.c
275
276 if HAVE_PLUGINS
277 -include plugins/Custom.make
278 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
279         -dlopen plugins/asn1/asn1.la \
280         -dlopen plugins/docsis/docsis.la \
281         -dlopen plugins/ethercat/ethercat.la \
282         -dlopen plugins/gryphon/gryphon.la \
283         -dlopen plugins/irda/irda.la \
284         -dlopen plugins/m2m/m2m.la \
285         -dlopen plugins/mate/mate.la \
286         -dlopen plugins/opcua/opcua.la \
287         -dlopen plugins/profinet/profinet.la \
288         -dlopen plugins/stats_tree/stats_tree.la \
289         -dlopen plugins/unistim/unistim.la \
290         -dlopen plugins/wimax/wimax.la \
291         -dlopen plugins/wimaxmacphy/wimaxmacphy.la
292
293 WTAP_PLUGIN_SOURCES = \
294        epan/plugins.c \
295        epan/report_err.c \
296        epan/filesystem.c
297
298 else            # HAVE_PLUGINS
299
300 plugin_ldadd =
301 WTAP_PLUGIN_SOURCES =
302
303 endif           # HAVE_PLUGINS
304
305 include Makefile.common
306
307 if ENABLE_STATIC
308 wireshark_LDFLAGS = -Wl,-static -all-static
309 else
310 wireshark_LDFLAGS = -export-dynamic
311 endif
312
313 # Libraries and plugin flags with which to link wireshark.
314 #
315 # Note that Wireshark, when built with a version of GTK+ that runs
316 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
317 # as those should also be included in @GTK_LIBS@ (as those are also
318 # needed for X applications, and GTK+ applications are X applications
319 # if the version of GTK+ they're built with runs atop X11).
320 #
321 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
322 # the necessary GLib libraries are included in @GTK_LIBS@.  To quote
323 # Gentoo bug 423743 at
324 #
325 #       https://bugs.gentoo.org/show_bug.cgi?id=423743
326 #
327 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
328 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
329 # It is not actually a superset: gmodule is included in GLIB_LIBS but
330 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
331 #
332 # although it's also possible that -lgmodule is in GTK_LIBS but not
333 # GLIB_LIBS (that's the case on my machine right now, for example).
334 #
335 wireshark_LDADD = \
336         ui/gtk/libgtkui.a               \
337         ui/libui.a                      \
338         ui/libui_dirty.a                \
339         codecs/libcodec.a               \
340         wiretap/libwiretap.la           \
341         epan/libwireshark.la            \
342         wsutil/libwsutil.la             \
343         @SSL_LIBS@                      \
344         $(plugin_ldadd)                 \
345         @PCAP_LIBS@                     \
346         @C_ARES_LIBS@                   \
347         @ADNS_LIBS@                     \
348         @KRB5_LIBS@                     \
349         @LAUNCHSERVICES_FRAMEWORKS@     \
350         @CORESERVICES_FRAMEWORKS@       \
351         @PY_LIBS@                       \
352         @LIBGCRYPT_LIBS@                \
353         @LIBGNUTLS_LIBS@                \
354         @LIBSMI_LDFLAGS@                \
355         @PORTAUDIO_LIBS@                \
356         @GTK_LIBS@                      \
357         @GLIB_LIBS@                     \
358         -lm
359
360 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
361
362 if ENABLE_STATIC
363 tshark_LDFLAGS = -Wl,-static -all-static
364 else
365 tshark_LDFLAGS = -export-dynamic
366 endif
367
368 # Libraries and plugin flags with which to link tshark.
369 tshark_LDADD = \
370         ui/cli/libcliui.a               \
371         ui/libui.a                      \
372         wiretap/libwiretap.la           \
373         epan/libwireshark.la            \
374         wsutil/libwsutil.la             \
375         @SSL_LIBS@                      \
376         $(plugin_ldadd)                 \
377         @GLIB_LIBS@ -lm                 \
378         @PCAP_LIBS@                     \
379         @SOCKET_LIBS@                   \
380         @NSL_LIBS@                      \
381         @C_ARES_LIBS@                   \
382         @ADNS_LIBS@                     \
383         @KRB5_LIBS@                     \
384         @CORESERVICES_FRAMEWORKS@       \
385         @PY_LIBS@                       \
386         @LIBGCRYPT_LIBS@                \
387         @LIBGNUTLS_LIBS@                \
388         @LIBSMI_LDFLAGS@
389 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
390
391 if ENABLE_STATIC
392 rawshark_LDFLAGS = -Wl,-static -all-static
393 else
394 rawshark_LDFLAGS = -export-dynamic
395 endif
396
397 # Libraries and plugin flags with which to link rawshark.
398 rawshark_LDADD = \
399         ui/libui.a                      \
400         wiretap/libwiretap.la           \
401         epan/libwireshark.la            \
402         wsutil/libwsutil.la             \
403         @SSL_LIBS@                      \
404         $(plugin_ldadd)                 \
405         @GLIB_LIBS@ -lm                 \
406         @PCAP_LIBS@                     \
407         @SOCKET_LIBS@                   \
408         @NSL_LIBS@                      \
409         @C_ARES_LIBS@                   \
410         @ADNS_LIBS@                     \
411         @KRB5_LIBS@                     \
412         @CORESERVICES_FRAMEWORKS@       \
413         @PY_LIBS@                       \
414         @LIBGCRYPT_LIBS@                \
415         @LIBGNUTLS_LIBS@                \
416         @LIBSMI_LDFLAGS@
417 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
418
419 # Libraries with which to link text2pcap.
420 text2pcap_LDADD = \
421         wiretap/libwiretap.la           \
422         wsutil/libwsutil.la             \
423         @GLIB_LIBS@ -lm
424 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
425 # which is generated (and therefore not always clean).
426 # We could generate text2pcap.o as a library with -Werror but for now it
427 # doesn't seem worth the effort.
428 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
429
430 # Libraries with which to link mergecap.
431 mergecap_LDADD = \
432         wiretap/libwiretap.la           \
433         wsutil/libwsutil.la             \
434         @GLIB_LIBS@
435 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
436
437 # Libraries with which to link capinfos.
438 capinfos_LDADD = \
439         wiretap/libwiretap.la           \
440         wsutil/libwsutil.la             \
441         @GLIB_LIBS@                     \
442         @LIBGCRYPT_LIBS@
443 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
444
445 # Libraries with which to link editcap.
446 editcap_LDADD = \
447         wiretap/libwiretap.la           \
448         wsutil/libwsutil.la             \
449         @GLIB_LIBS@
450 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
451
452 # Libraries with which to link reordercap.
453 reordercap_LDADD = \
454         wiretap/libwiretap.la           \
455         wsutil/libwsutil.la             \
456         @GLIB_LIBS@
457 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
458
459 # Libraries with which to link randpkt.
460 randpkt_LDADD = \
461         wiretap/libwiretap.la           \
462         wsutil/libwsutil.la             \
463         @GLIB_LIBS@ -lm                 \
464         @PCAP_LIBS@                     \
465         @SOCKET_LIBS@                   \
466         @NSL_LIBS@                      \
467         @C_ARES_LIBS@                   \
468         @ADNS_LIBS@
469 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
470
471 # Libraries and plugin flags with which to link dftest.
472 dftest_LDADD = \
473         ui/libui.a                      \
474         wiretap/libwiretap.la           \
475         wsutil/libwsutil.la             \
476         epan/libwireshark.la            \
477         @SSL_LIBS@                      \
478         $(plugin_ldadd)                 \
479         @GLIB_LIBS@ -lm                 \
480         @PCAP_LIBS@                     \
481         @SOCKET_LIBS@                   \
482         @NSL_LIBS@                      \
483         @C_ARES_LIBS@                   \
484         @ADNS_LIBS@                     \
485         @KRB5_LIBS@                     \
486         @PY_LIBS@                       \
487         @LIBGCRYPT_LIBS@                \
488         @LIBGNUTLS_LIBS@                \
489         @LIBSMI_LDFLAGS@
490 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
491
492 # Libraries with which to link dumpcap.
493 dumpcap_LDADD = \
494         wsutil/libwsutil.la             \
495         @GLIB_LIBS@                     \
496         @PCAP_LIBS@                     \
497         @SOCKET_LIBS@                   \
498         @NSL_LIBS@                      \
499         @CORESERVICES_FRAMEWORKS@       \
500         @LIBCAP_LIBS@
501 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
502
503 # Common headers
504 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
505         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
506
507 #
508 # Build the version string
509 #
510 # FORCE is the portable version of .PHONY
511 FORCE:
512
513 svnversion.h: FORCE
514         $(PERL) $(srcdir)/make-version.pl $(srcdir)
515
516 #
517 # Build shell scripts by doing variable substitution.
518 # Taken from autoconf 2.13.
519 #
520 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
521
522 SUFFIXES = .sh
523 .sh:
524         rm -f $@ $@.tmp
525         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
526
527 ps.c: print.ps $(srcdir)/tools/rdps.py
528         $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
529
530 services:
531         $(PERL) $(srcdir)/tools/make-services.pl
532
533 CLEANFILES =            \
534         *~              \
535         vgcore.*
536
537 #
538 # We have to remove svnversion.h with "make distclean", as, otherwise,
539 # "make distcheck" fails.  We still need to make the tarballs work
540 # even if you do "make distclean" and try to rebuild; that's a work in
541 # progress.
542 #
543 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
544 # list of files removed by "make distclean"?  (It's deliberately
545 # included in that list.)
546 #
547 DISTCLEANFILES = \
548         ps.c                    \
549         svnversion.h
550
551 MAINTAINERCLEANFILES =          \
552         $(GENERATED_FILES)      \
553         Makefile.in             \
554         aclocal.m4              \
555         compile                 \
556         config.h.in             \
557         configure               \
558         depcomp                 \
559         install-sh              \
560         ltmain.sh               \
561         missing                 \
562         ylwrap
563
564 EXTRA_DIST = \
565         INSTALL.configure       \
566         Makefile.am.inc         \
567         Makefile.common         \
568         Makefile.nmake          \
569         Makefile.nmake.inc      \
570         README.aix              \
571         README.bsd              \
572         README.DECT             \
573         README.hpux             \
574         README.irix             \
575         README.linux            \
576         README.macos            \
577         README.tru64            \
578         README.vmware           \
579         README.windows          \
580         abi-descriptor.template \
581         aclocal-fallback/glib-2.0.m4 \
582         aclocal-fallback/gtk-2.0.m4 \
583         aclocal-flags           \
584         adns_dll.dep            \
585         adns_dll.rc             \
586         autogen.sh              \
587         capinfos.c              \
588     capture_win_ifnames.c        \
589     capture_win_ifnames.h        \
590         capture-wpcap.c         \
591         capture-wpcap.h         \
592         capture_wpcap_packet.c  \
593         capture_wpcap_packet.h  \
594         cfilters                \
595         colorfilters            \
596         config.h.win32          \
597         config.nmake            \
598         debian/changelog        \
599         debian/compat           \
600         debian/control          \
601         debian/copyright        \
602         debian/dirs             \
603         debian/headers-check.c  \
604         debian/patches/00list   \
605         debian/patches/03_preferences.dpatch \
606         debian/postinst         \
607         debian/pycompat         \
608         debian/pyversions       \
609         debian/rules            \
610         debian/README.source    \
611         debian/tshark.files     \
612         debian/tshark.manpages  \
613         debian/watch            \
614         debian/wireshark-common.files \
615         debian/wireshark-common.manpages \
616         debian/wireshark-common.shlibs \
617         debian/wireshark-dev.docs \
618         debian/wireshark-dev.files \
619         debian/wireshark-dev.header-files \
620         debian/wireshark-dev.manpages \
621         debian/wireshark-dev.prerm \
622         debian/wireshark-root.desktop \
623         debian/wireshark.desktop \
624         debian/wireshark.files \
625         debian/wireshark.manpages \
626         debian/wireshark.menu   \
627         dfilters                \
628         doxygen.cfg.in          \
629         dumpcap.c       \
630         editcap.c               \
631         fix/FIX.xml             \
632         fix/FIX40.xml           \
633         fix/FIX41.xml           \
634         fix/FIX42.xml           \
635         fix/FIX43.xml           \
636         fix/FIX44.xml           \
637         fix/README              \
638         fix/Values.xsl          \
639         fix/hfDecl.xsl          \
640         fix/hfField.xsl         \
641         fix/hfList.xsl          \
642         idl/coseventcomm.idl    \
643         idl/cosnaming.idl       \
644         idl/tango.idl   \
645         idl/parlay/am.idl       \
646         idl/parlay/cccs.idl     \
647         idl/parlay/cm.idl       \
648         idl/parlay/common_cc_data.idl   \
649         idl/parlay/cs.idl       \
650         idl/parlay/dsc.idl      \
651         idl/parlay/fw_data.idl  \
652         idl/parlay/fw_if.idl    \
653         idl/parlay/fw_if_access.idl     \
654         idl/parlay/fw_if_app.idl        \
655         idl/parlay/fw_if_entop.idl      \
656         idl/parlay/fw_if_service.idl    \
657         idl/parlay/gcc_data.idl \
658         idl/parlay/gcc_interfaces.idl   \
659         idl/parlay/gms.idl      \
660         idl/parlay/mm.idl       \
661         idl/parlay/mmccs.idl    \
662         idl/parlay/mmm.idl      \
663         idl/parlay/mpcc_data.idl        \
664         idl/parlay/mpcc_interfaces.idl  \
665         idl/parlay/osa.idl      \
666         idl/parlay/pam_data.idl \
667         idl/parlay/pam_interfaces.idl   \
668         idl/parlay/Parlay.idl   \
669         idl/parlay/policy_data.idl      \
670         idl/parlay/policy_interfaces.idl        \
671         idl/parlay/README.parlay        \
672         idl/parlay/termcap.idl  \
673         idl/parlay/ui_data.idl  \
674         idl/parlay/ui_interfaces.idl    \
675         image/capinfos.rc.in    \
676         image/capture_comment.svg       \
677         image/capture_comment_add.png   \
678         image/capture_comment_disabled.png      \
679         image/capture_comment_update.png        \
680         image/capture_start_24.png              \
681         image/capture_start_active_24.png       \
682         image/capture_stop_24.png               \
683         image/clist_ascend.xpm                  \
684         image/clist_descend.xpm                 \
685         image/dfilter_apply_hover.png           \
686         image/dfilter_apply_normal.png          \
687         image/dfilter_apply_pressed.png         \
688         image/dfilter_bookmark_hover.png        \
689         image/dfilter_bookmark_normal.png       \
690         image/dfilter_bookmark_pressed.png      \
691         image/dfilter_dropdown.png              \
692         image/dfilter_erase_active.png          \
693         image/dfilter_erase_normal.png          \
694         image/dfilter_erase_selected.png        \
695         image/dfilter_refresh_active.png        \
696         image/dfilter_refresh_normal.png        \
697         image/display_filter.qrc                \
698         image/dumpcap.rc.in     \
699         image/editcap.rc.in     \
700         image/expert_chat.png   \
701         image/expert_error.png  \
702         image/expert_indicators.svg     \
703         image/expert_none.png   \
704         image/expert_note.png   \
705         image/expert_warn.png   \
706         image/file_dlg_win32.rc \
707         image/hi16-app-wireshark.png    \
708         image/hi32-app-wireshark.png    \
709         image/hi48-app-wireshark.png    \
710         image/icon_layout_1.xpm \
711         image/icon_layout_2.xpm \
712         image/icon_layout_3.xpm \
713         image/icon_layout_4.xpm \
714         image/icon_layout_5.xpm \
715         image/icon_layout_6.xpm \
716         image/libwireshark.rc.in        \
717         image/libwsutil.rc.in           \
718         image/lo16-app-wireshark.png    \
719         image/lo32-app-wireshark.png    \
720         image/lo48-app-wireshark.png    \
721         image/make-icons                        \
722         image/Makefile.nmake                    \
723         image/mergecap.rc.in                    \
724         image/nsis-checked.bmp                  \
725         image/nsis-unchecked.bmp                \
726         image/rawshark.rc.in                    \
727         image/README.image                      \
728         image/reordercap.rc.in                  \
729         image/status.qrc                        \
730         image/stock_dialog_error_48.xpm         \
731         image/stock_dialog_info_48.xpm          \
732         image/stock_dialog_question_48.xpm      \
733         image/stock_dialog_stop_48.xpm          \
734         image/stock_dialog_warning_48.xpm       \
735         image/text2pcap.rc.in                   \
736         image/toolbar.qrc                       \
737         image/toolbar/analyze_24.xpm            \
738         image/toolbar/audio_player_24.xpm       \
739         image/toolbar/autoscroll_24.xpm         \
740         image/toolbar/capture_airpcap_16.xpm    \
741         image/toolbar/capture_capture_16.xpm    \
742         image/toolbar/capture_details_16.xpm    \
743         image/toolbar/capture_details_24.xpm    \
744         image/toolbar/capture_ethernet_16.xpm   \
745         image/toolbar/capture_filter_24.xpm     \
746         image/toolbar/capture_interfaces_24.xpm \
747         image/toolbar/capture_options_24.xpm    \
748         image/toolbar/capture_prepare_16.xpm    \
749         image/toolbar/capture_restart_24.xpm    \
750         image/toolbar/capture_start_24.xpm      \
751         image/toolbar/capture_stop_24.xpm       \
752         image/toolbar/checkbox_16.xpm           \
753         image/toolbar/colorize_24.xpm           \
754         image/toolbar/conversations_16.xpm      \
755         image/toolbar/decode_24.xpm             \
756         image/toolbar/decode_as_16.xpm          \
757         image/toolbar/display_filter_24.xpm     \
758         image/toolbar/endpoints_16.xpm          \
759         image/toolbar/expert_info_16.xpm        \
760         image/toolbar/file_set_list_16.xpm      \
761         image/toolbar/file_set_next_16.xpm      \
762         image/toolbar/file_set_previous_16.xpm  \
763         image/toolbar/flow_graph_16.xpm \
764         image/toolbar/graphs_16.xpm     \
765         image/toolbar/icon_color_0.xpm  \
766         image/toolbar/icon_color_1.xpm  \
767         image/toolbar/icon_color_2.xpm  \
768         image/toolbar/icon_color_3.xpm  \
769         image/toolbar/icon_color_4.xpm  \
770         image/toolbar/icon_color_5.xpm  \
771         image/toolbar/icon_color_6.xpm  \
772         image/toolbar/icon_color_7.xpm  \
773         image/toolbar/icon_color_8.xpm  \
774         image/toolbar/icon_color_9.xpm  \
775         image/toolbar/internet_24.xpm   \
776         image/toolbar/modem_16.png      \
777         image/toolbar/modem_16.xpm      \
778         image/toolbar/network_bluetooth_16.png  \
779         image/toolbar/network_usb.svg           \
780         image/toolbar/network_usb_16.png        \
781         image/toolbar/network_virtual_16.xpm    \
782         image/toolbar/network_wired_16.png      \
783         image/toolbar/network_wireless_16.png   \
784         image/toolbar/pipe_16.png       \
785         image/toolbar/remote_arrow_16.png       \
786         image/toolbar/remote_globe_16.png       \
787         image/toolbar/remote_sat_16.png \
788         image/toolbar/resize_columns_24.xpm     \
789         image/toolbar/telephone_16.xpm  \
790         image/toolbar/telephony_16.xpm  \
791         image/toolbar/time_24.xpm       \
792         image/toolbar/voip_flow_24.xpm  \
793         image/toolbar/web_support_24.xpm        \
794         image/toolbar/wep_closed_24.xpm \
795         image/toolbar/wiki_24.xpm       \
796         image/tshark.rc.in      \
797         image/voip_bg.xpm       \
798         image/voip_select.xpm   \
799         image/wireshark.exe.manifest.in \
800         image/wireshark.ico     \
801         image/wireshark.rc.in   \
802         image/wiresharkdoc.ico  \
803         image/wiresharkinst.ico \
804         image/WiresharkDoc-128.png      \
805         image/WiresharkDoc-16.png       \
806         image/WiresharkDoc-24.png       \
807         image/WiresharkDoc-256.png      \
808         image/WiresharkDoc-32.png       \
809         image/WiresharkDoc-48.png       \
810         image/WiresharkDoc-64.png       \
811         image/WiresharkDoc_24.xpm       \
812         image/wiretap.rc.in     \
813         image/wsicon.svg        \
814         image/wsicon16.png      \
815         image/wsicon16.xpm      \
816         image/wsicon256.png     \
817         image/wsicon32.png      \
818         image/wsicon32.xpm      \
819         image/wsicon48.png      \
820         image/wsicon48.xpm      \
821         image/wsicon64.png      \
822         image/wsicon64.xpm      \
823         image/wsiconcap.svg     \
824         image/wsiconcap16.xpm   \
825         image/wsiconcap256.png  \
826         image/wsiconcap32.xpm   \
827         image/wsiconcap48.xpm   \
828         image/wsiconinst.svg    \
829         image/wsiconinst256.png \
830         image/wslogo-dev.svg    \
831         image/wslogo.eps        \
832         image/wslogo.svg        \
833         image/wssplash-dev.xpm  \
834         image/wssplash.xpm      \
835         ipmap.html              \
836         macosx-setup.sh         \
837         macosx-support-lib-patches/glib-pkgconfig.patch \
838         macosx-support-lib-patches/gnutls-pkgconfig.patch \
839         macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
840         make-version.pl         \
841         manuf                   \
842         manuf.tmpl              \
843         mergecap.c              \
844         pdml2html.xsl           \
845         print.ps                \
846         $(diameter_DATA)        \
847         $(dtds_DATA)            \
848         $(radius_DATA)          \
849         $(tpncp_DATA)           \
850         $(ui_DATA)              \
851         $(wimaxasncp_DATA)      \
852         randpkt.c               \
853         reordercap.c            \
854         smi_modules             \
855         text2pcap-scanner.l     \
856         text2pcap.c             \
857         text2pcap.h             \
858         services                \
859         wireshark.desktop       \
860         wka.tmpl                \
861         CMakeLists.txt          \
862         cmakeconfig.h.in        \
863         wsutil/CMakeLists.txt   \
864         CMakeOptions.txt        \
865         wiretap/CMakeLists.txt  \
866         README.cmake            \
867         ConfigureChecks.cmake   \
868         cmake/modules/CMakeInstallDirs.cmake    \
869         cmake/modules/COPYING-CMAKE-SCRIPTS     \
870         cmake/modules/CheckCLinkerFlag.cmake    \
871         cmake/modules/FeatureSummary.cmake      \
872         cmake/modules/FindADNS.cmake            \
873         cmake/modules/FindCAP.cmake             \
874         cmake/modules/FindCARES.cmake           \
875         cmake/modules/FindFOP.cmake             \
876         cmake/modules/FindGCRYPT.cmake          \
877         cmake/modules/FindGEOIP.cmake           \
878         cmake/modules/FindGLIB2.cmake           \
879         cmake/modules/FindGMODULE2.cmake        \
880         cmake/modules/FindGNUTLS.cmake          \
881         cmake/modules/FindGTHREAD2.cmake        \
882         cmake/modules/FindGTK2.cmake            \
883         cmake/modules/FindGTK3.cmake            \
884         cmake/modules/FindHtmlViewer.cmake      \
885         cmake/modules/FindKERBEROS.cmake        \
886         cmake/modules/FindNL.cmake              \
887         cmake/modules/FindLEX.cmake             \
888         cmake/modules/FindLUA.cmake             \
889         cmake/modules/FindLYNX.cmake            \
890         cmake/modules/FindM.cmake               \
891         cmake/modules/FindPCAP.cmake            \
892         cmake/modules/FindPOD.cmake             \
893         cmake/modules/FindPORTAUDIO.cmake       \
894         cmake/modules/FindPYTHON.cmake          \
895         cmake/modules/FindSED.cmake             \
896         cmake/modules/FindSH.cmake              \
897         cmake/modules/FindSMI.cmake             \
898         cmake/modules/FindXMLLINT.cmake         \
899         cmake/modules/FindXSLTPROC.cmake        \
900         cmake/modules/FindYACC.cmake            \
901         cmake/modules/FindYAPP.cmake            \
902         cmake/modules/FindZLIB.cmake            \
903         cmake/modules/LICENSE.txt               \
904         cmake/modules/UseLemon.cmake            \
905         cmake/modules/UseMakeDissectorReg.cmake \
906         cmake/modules/UseMakeTapReg.cmake       \
907         cmake/modules/readme.txt                \
908         ui/win32/Makefile.nmake                 \
909         ui/win32/console_win32.c                \
910         ui/win32/console_win32.h                \
911         ui/win32/file_dlg_win32.c               \
912         ui/win32/file_dlg_win32.h               \
913         ui/win32/print_win32.c                  \
914         ui/win32/print_win32.h                  \
915         ui/win32/settings.ini                   \
916         CPackConfig.txt                         \
917         all.vcproj                              \
918         dumpcap.vcproj                          \
919         packaging.vcproj                        \
920         tshark.vcproj                           \
921         wireshark.vcproj
922
923 install-exec-hook:
924 if HAVE_DUMPCAP_GROUP
925         -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
926 endif
927 if SETCAP_INSTALL
928         -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
929         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
930 else
931 if SETUID_INSTALL
932         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
933         -chmod +s $(DESTDIR)$(bindir)/dumpcap
934 endif
935 endif
936
937
938 DIST_SUBDIRS = asn1 codecs doc epan ui ui/cli ui/gtk ui/qt help packaging plugins tools wiretap wsutil docbook
939
940 if HAVE_PLUGINS
941 SUBDIRS = tools wsutil wiretap epan plugins packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
942 else
943 SUBDIRS = tools wsutil wiretap epan packaging help ui @wireshark_SUBDIRS@ ui/cli . doc
944 endif
945
946 help/faq.txt: $(srcdir)/help/faq.py
947         (cd help ; \
948         $(MAKE) faq.txt ;)
949
950 libtool: $(LIBTOOL_DEPS)
951         $(SHELL) ./config.status --recheck
952
953
954 # Used by patch-bzip2
955 # Trim off any extra version information and find the previous micro release.
956 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
957 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
958 PREV_DIR="wireshark-$(PREV_VERSION)"
959 PREV_FILE="$(PREV_DIR).tar.bz2"
960 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
961
962 patch-bzip2: distdir
963         if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
964                 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
965                 tar -xjf $(PREV_FILE) && \
966                 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
967                 echo "Created patch-bzip2" ; \
968                 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
969         else \
970                 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
971         fi
972         $(am__remove_distdir)
973
974
975 # Used by svr4-package and osx-package
976 # We load top_stagedir with an explicit path so that libtool doesn't freak.
977 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
978 stagedir=$(top_stagedir)/$(PACKAGE).inst
979
980 host_cpu=@host_cpu@
981 host_os=@host_os@
982
983 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
984         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
985                 rm -rf $(stagedir) ; \
986                 $(MAKE) DESTDIR=$(stagedir) install; \
987                 $(srcdir)/packaging/svr4/mkpkg \
988                         $(PACKAGE) \
989                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
990                         $(prefix) \
991                         $(top_stagedir) ; \
992         else \
993                 echo "Error: SVR4 packaging tools not found." ; \
994                 echo "Package build abandoned." ; \
995         fi
996
997 solaris-package: svr4-package
998
999 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1000 rpm-package: dist
1001         if test x$(HAVE_RPM) = xyes ; then \
1002                 cd $(rpm_topdir) ; \
1003                 mkdir -p BUILD RPMS SOURCES ; \
1004                 cd SOURCES ; \
1005                 ln -s ../../../$(distdir).tar.bz2 ; \
1006                 ln -s ../../../wireshark.desktop ; \
1007                 ln -s ../../../image/wsicon64.png wireshark.png ; \
1008                 cd .. ; \
1009                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
1010                         echo "Package successfully built in `pwd`/RPMS." ; \
1011         else \
1012                 echo "Error: RPM executable and/or source directory not found." ; \
1013         fi
1014 srpm-package: dist
1015         if test x$(HAVE_RPM) = xyes ; then \
1016                 cd $(rpm_topdir) ; \
1017                 mkdir -p BUILD SRPMS SOURCES ; \
1018                 cd SOURCES ; \
1019                 ln -s ../../../$(distdir).tar.bz2 ; \
1020                 ln -s ../../../wireshark.desktop ; \
1021                 ln -s ../../../image/wsicon64.png wireshark.png ; \
1022                 cd .. ; \
1023                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
1024                         echo "Package successfully built in `pwd`/SRPMS." ; \
1025         else \
1026                 echo "Error: RPM executable and/or source directory not found." ; \
1027         fi
1028
1029 debian-package: debian/rules
1030         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
1031                 dpkg-buildpackage -rfakeroot -us -uc ; \
1032         else \
1033                 echo "Error: Debian packaging tools not found." ; \
1034                 echo "Package build abandoned." ; \
1035         fi
1036
1037 # XXX - This assumes we're building from the source directory.
1038 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1039         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1040                 rm -rf $(stagedir) ; \
1041                 $(MAKE) DESTDIR=$(stagedir) install; \
1042                 cd $(srcdir)/packaging/macosx ;  \
1043                 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1044         else \
1045                 echo "Error: OS X packaging tools not found." ; \
1046                 echo "Package build abandoned." ; \
1047         fi
1048
1049 packaging/macosx/COPYING.txt: COPYING
1050         (cd packaging/macosx ; \
1051         $(MAKE) COPYING.txt ;)
1052
1053 osx-package: osx-app packaging/macosx/COPYING.txt
1054         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1055                 cd $(srcdir)/packaging/macosx ;  \
1056                 chmod +x ./osx-dmg.sh ; \
1057                 ./osx-dmg.sh ; \
1058         fi
1059
1060 osx-install: osx-app
1061         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1062                 echo "Copying Wireshark.app to /Applications" ; \
1063                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ;  \
1064         fi
1065
1066 clean-local:
1067         rm -rf $(top_stagedir)
1068
1069 dumpabi:
1070         $(MAKE) -C wiretap dumpabi
1071         $(MAKE) -C epan dumpabi
1072         $(MAKE) -C wsutil dumpabi
1073
1074 checkapi_local:
1075         $(PERL) tools/checkAPIs.pl -build \
1076         $(TSHARK_TAP_SRC) \
1077         $(wireshark_SOURCES)
1078 #       $(EXTRA_wireshark_SOURCES)
1079
1080 checkapi: checkapi_local
1081         cd wiretap && $(MAKE) checkapi
1082         cd codecs && $(MAKE) checkapi
1083         cd ui && $(MAKE) checkapi
1084         cd ui/gtk && $(MAKE) checkapi
1085 ##      cd epan && $(MAKE) checkapi
1086 ##      cd epan/crypt && $(MAKE) checkapi
1087         cd epan/dfilter && $(MAKE) checkapi
1088 ##      cd epan/ftypes && $(MAKE) checkapi
1089 ##      cd epan/wslua && $(MAKE) checkapi
1090         cd epan/dissectors && $(MAKE) checkapi
1091         cd plugins && $(MAKE) checkapi
1092         cd wsutil && $(MAKE) checkapi