From Madhusudhan M:
[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., 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 bin_SCRIPTS = @idl2wrs_bin@
51
52 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
53         randpkt text2pcap dumpcap rawshark
54 EXTRA_SCRIPTS = idl2wrs
55
56 idl2wrs: tools/idl2wrs.sh Makefile
57         cp tools/idl2wrs.sh idl2wrs
58         chmod +x idl2wrs
59
60 #
61 # Wireshark configuration files are put in $(pkgdatadir).
62 #
63 pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
64         smi_modules ipmap.html pdml2html.xsl
65
66 #
67 # Install the Diameter DTD and XML files in the "diameter" subdirectory
68 # of that directory.
69 #
70 diameterdir = $(pkgdatadir)/diameter
71 diameter_DATA = \
72         diameter/chargecontrol.xml \
73         diameter/Cisco.xml \
74         diameter/dictionary.dtd \
75         diameter/dictionary.xml \
76         diameter/eap.xml \
77         diameter/Ericsson.xml \
78         diameter/etsie2e4.xml \
79         diameter/gqpolicy.xml \
80         diameter/imscxdx.xml \
81         diameter/mobileipv4.xml \
82         diameter/mobileipv6.xml \
83         diameter/nasreq.xml \
84         diameter/sip.xml \
85         diameter/sunping.xml \
86         diameter/TGPPGmb.xml \
87         diameter/TGPPRx.xml \
88         diameter/TGPPSh.xml     \
89         diameter/Vodafone.xml
90
91 #
92 # Install the DTDs directory files in the "dtds" subdirectory
93 # of that directory
94 #
95 dtdsdir = $(pkgdatadir)/dtds
96 dtds_DATA = \
97         dtds/dc.dtd \
98         dtds/itunes.dtd \
99         dtds/mscml.dtd \
100         dtds/pocsettings.dtd \
101         dtds/presence.dtd \
102         dtds/reginfo.dtd \
103         dtds/rlmi.dtd \
104         dtds/rss.dtd \
105         dtds/smil.dtd \
106         dtds/xcap-caps.dtd \
107         dtds/xcap-error.dtd \
108         dtds/watcherinfo.dtd
109
110 #
111 # Install the RADIUS directory files in the "radius" subdirectory
112 # of that directory.
113 #
114 radiusdir = $(pkgdatadir)/radius
115 radius_DATA = \
116         radius/README.radius_dictionary  \
117         radius/dictionary  \
118         radius/dictionary.3com  \
119         radius/dictionary.3gpp  \
120         radius/dictionary.3gpp2  \
121         radius/dictionary.acc  \
122         radius/dictionary.acme \
123         radius/dictionary.airespace \
124         radius/dictionary.alcatel  \
125         radius/dictionary.alcatel.esam \
126         radius/dictionary.alcatel.sr \
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.xylan \
256         radius/dictionary.zyxel
257
258 #
259 # Install the tpncp directory files in the "tpncp" subdirectory
260 # of that directory
261 #
262 tpncpdir = $(pkgdatadir)/tpncp
263 tpncp_DATA = \
264         tpncp/tpncp.dat
265
266
267 #
268 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
269 # of that directory
270 #
271 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
272 wimaxasncp_DATA = \
273         wimaxasncp/dictionary.xml \
274         wimaxasncp/dictionary.dtd
275
276 PLATFORM_SRC = capture-pcap-util-unix.c
277
278 if HAVE_PLUGINS
279 -include plugins/Custom.make
280 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
281         -dlopen plugins/asn1/asn1.la \
282         -dlopen plugins/docsis/docsis.la \
283         -dlopen plugins/ethercat/ethercat.la \
284         -dlopen plugins/giop/cosnaming.la \
285         -dlopen plugins/giop/coseventcomm.la \
286         -dlopen plugins/gryphon/gryphon.la \
287         -dlopen plugins/irda/irda.la \
288         -dlopen plugins/m2m/m2m.la \
289         -dlopen plugins/mate/mate.la \
290         -dlopen plugins/opcua/opcua.la \
291         -dlopen plugins/profinet/profinet.la \
292         -dlopen plugins/stats_tree/stats_tree.la \
293         -dlopen plugins/unistim/unistim.la \
294         -dlopen plugins/wimax/wimax.la
295
296 WTAP_PLUGIN_SOURCES = \
297        epan/plugins.c \
298        epan/report_err.c \
299        epan/filesystem.c
300
301 else            # HAVE_PLUGINS
302
303 plugin_ldadd =
304 WTAP_PLUGIN_SOURCES =
305
306 endif           # HAVE_PLUGINS
307
308 include Makefile.common
309
310 if ENABLE_STATIC
311 wireshark_LDFLAGS = -Wl,-static -all-static
312 else
313 wireshark_LDFLAGS = -export-dynamic
314 endif
315
316 # Libraries and plugin flags with which to link wireshark.
317 #
318 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
319 # they are included in @GTK_LIBS@, and doesn't have to be linked with
320 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
321 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
322 # applications are X applications).
323 wireshark_LDADD = \
324         gtk/libui.a                     \
325         gtk/libui_dirty.a               \
326         codecs/libcodec.a               \
327         wiretap/libwiretap.la           \
328         epan/libwireshark.la            \
329         wsutil/libwsutil.la             \
330         @SSL_LIBS@                      \
331         $(plugin_ldadd)                 \
332         @PCRE_LIBS@                     \
333         @PCAP_LIBS@                     \
334         @GTK_LIBS@ -lm                  \
335         @C_ARES_LIBS@                   \
336         @ADNS_LIBS@                     \
337         @KRB5_LIBS@                     \
338         @LAUNCHSERVICES_FRAMEWORKS@     \
339         @CORESERVICES_FRAMEWORKS@       \
340         @LIBGCRYPT_LIBS@                \
341         @LIBGNUTLS_LIBS@                \
342         @LIBSMI_LDFLAGS@                \
343         @PORTAUDIO_LIBS@
344 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
345
346 if ENABLE_STATIC
347 tshark_LDFLAGS = -Wl,-static -all-static
348 else
349 tshark_LDFLAGS = -export-dynamic
350 endif
351
352 # Libraries and plugin flags with which to link tshark.
353 tshark_LDADD = \
354         wiretap/libwiretap.la           \
355         epan/libwireshark.la            \
356         wsutil/libwsutil.la             \
357         @SSL_LIBS@                      \
358         $(plugin_ldadd)                 \
359         @PCRE_LIBS@                     \
360         @GLIB_LIBS@ -lm                 \
361         @PCAP_LIBS@                     \
362         @SOCKET_LIBS@                   \
363         @NSL_LIBS@                      \
364         @C_ARES_LIBS@                   \
365         @ADNS_LIBS@                     \
366         @KRB5_LIBS@                     \
367         @CORESERVICES_FRAMEWORKS@       \
368         @LIBGCRYPT_LIBS@                \
369         @LIBGNUTLS_LIBS@                \
370         @LIBSMI_LDFLAGS@
371 tshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
372
373 if ENABLE_STATIC
374 rawshark_LDFLAGS = -Wl,-static -all-static
375 else
376 rawshark_LDFLAGS = -export-dynamic
377 endif
378
379 # Libraries and plugin flags with which to link rawshark.
380 rawshark_LDADD = \
381         wiretap/libwiretap.la           \
382         epan/libwireshark.la            \
383         wsutil/libwsutil.la             \
384         @SSL_LIBS@                      \
385         $(plugin_ldadd)                 \
386         @PCRE_LIBS@                     \
387         @GLIB_LIBS@ -lm                 \
388         @PCAP_LIBS@                     \
389         @SOCKET_LIBS@                   \
390         @NSL_LIBS@                      \
391         @C_ARES_LIBS@                   \
392         @ADNS_LIBS@                     \
393         @KRB5_LIBS@                     \
394         @CORESERVICES_FRAMEWORKS@       \
395         @LIBGCRYPT_LIBS@                \
396         @LIBGNUTLS_LIBS@                \
397         @LIBSMI_LDFLAGS@
398 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
399
400 # Libraries with which to link text2pcap.
401 text2pcap_LDADD = \
402         wiretap/libwiretap.la           \
403         wsutil/libwsutil.la             \
404         @GLIB_LIBS@ -lm
405 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
406 # which is generated (and therefore not always clean).
407 # We could generate text2pcap.o as a library with -Werror but for now it
408 # doesn't seem worth the effort.
409 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
410
411 # Libraries with which to link mergecap.
412 mergecap_LDADD = \
413         wiretap/libwiretap.la           \
414         wsutil/libwsutil.la             \
415         @GLIB_LIBS@
416 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
417
418 # Libraries with which to link capinfos.
419 capinfos_LDADD = \
420         wiretap/libwiretap.la           \
421         wsutil/libwsutil.la             \
422         @GLIB_LIBS@                     \
423         @LIBGCRYPT_LIBS@
424 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
425
426 # Libraries with which to link editcap.
427 editcap_LDADD = \
428         wiretap/libwiretap.la           \
429         wsutil/libwsutil.la             \
430         @GLIB_LIBS@
431 editcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
432
433 # Libraries with which to link randpkt.
434 randpkt_LDADD = \
435         wiretap/libwiretap.la           \
436         wsutil/libwsutil.la             \
437         @GLIB_LIBS@ -lm                 \
438         @PCAP_LIBS@                     \
439         @SOCKET_LIBS@                   \
440         @NSL_LIBS@                      \
441         @C_ARES_LIBS@                   \
442         @ADNS_LIBS@
443 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
444
445 # Libraries and plugin flags with which to link dftest.
446 dftest_LDADD = \
447         wiretap/libwiretap.la           \
448         wsutil/libwsutil.la             \
449         epan/libwireshark.la            \
450         @SSL_LIBS@                      \
451         $(plugin_ldadd)                 \
452         @PCRE_LIBS@                     \
453         @GLIB_LIBS@ -lm                 \
454         @PCAP_LIBS@                     \
455         @SOCKET_LIBS@                   \
456         @NSL_LIBS@                      \
457         @C_ARES_LIBS@                   \
458         @ADNS_LIBS@                     \
459         @KRB5_LIBS@                     \
460         @LIBGCRYPT_LIBS@                \
461         @LIBGNUTLS_LIBS@                \
462         @LIBSMI_LDFLAGS@
463 dftest_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
464
465 # Libraries with which to link dumpcap.
466 dumpcap_LDADD = \
467         wsutil/libwsutil.la             \
468         @GLIB_LIBS@                     \
469         @PCAP_LIBS@                     \
470         @SOCKET_LIBS@                   \
471         @NSL_LIBS@                      \
472         @CORESERVICES_FRAMEWORKS@       \
473         @LIBCAP_LIBS@
474 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
475
476 # Common headers
477 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
478         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) $(PY_CFLAGS)
479
480 #
481 # Build the version string
482 #
483 # FORCE is the portable version of .PHONY
484 FORCE:
485
486 svnversion.h: FORCE
487         $(PERL) $(srcdir)/make-version.pl $(srcdir)
488
489 #
490 # Build shell scripts by doing variable substitution.
491 # Taken from autoconf 2.13.
492 #
493 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
494
495 SUFFIXES = .sh
496 .sh:
497         rm -f $@ $@.tmp
498         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
499
500 #
501 # Build "tshark-tap-register.c", which contains a function
502 # "register_all_tap_listeners()"
503 # that calls the register routines for all tshark tap listeners.
504 #
505 # We do this by grepping through sources.
506 #
507 # Formatting conventions:  The name of the tap_listener_register_*
508 # routines must start in column zero, or must be preceded only by
509 # "void " starting in column zero, and must not be inside #if.
510 #
511 # The first argument is the directory in which the source files live.
512 # All subsequent arguments are the files to scan.
513 #
514 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/tools/make-tapreg-dotc
515         @echo Making tshark-tap-register.c
516         @$(srcdir)/tools/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
517
518 ps.c: print.ps $(srcdir)/tools/rdps.py
519         $(PYTHON) $(srcdir)/tools/rdps.py $(srcdir)/print.ps ps.c
520
521 services: tools/make-services.pl
522         $(PERL) $(srcdir)/tools/make-services.pl
523
524 #
525 # XXX - "svnversion.h" is distributed in the release tarball; should
526 # we be deleting it with "make clean", or should we only do that with
527 # "make maintainer-clean"?
528 #
529 CLEANFILES =            \
530         svnversion.h    \
531         idl2wrs         \
532         *~              \
533         vgcore.*
534
535 #
536 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
537 # list of files removed by "make distclean"?  (It's deliberately
538 # included in that list.)
539 #
540 DISTCLEANFILES = \
541         ps.c
542
543 MAINTAINERCLEANFILES =          \
544         $(GENERATED_FILES)      \
545         Makefile.in             \
546         aclocal.m4              \
547         config.h.in             \
548         configure               \
549         depcomp                 \
550         install-sh              \
551         ltmain.sh               \
552         missing
553
554 EXTRA_DIST = \
555         INSTALL.configure       \
556         Makefile.am.inc         \
557         Makefile.common         \
558         Makefile.nmake          \
559         Makefile.nmake.inc      \
560         README.aix              \
561         README.bsd              \
562         README.DECT             \
563         README.hpux             \
564         README.irix             \
565         README.linux            \
566         README.macos            \
567         README.tru64            \
568         README.vmware           \
569         README.windows          \
570         abi-descriptor.template \
571         aclocal-fallback/glib-2.0.m4 \
572         aclocal-fallback/gtk-2.0.m4 \
573         aclocal-flags           \
574         adns_dll.dep            \
575         adns_dll.rc             \
576         autogen.sh              \
577         capinfos.c              \
578         capture-wpcap.c         \
579         capture-wpcap.h         \
580         capture_wpcap_packet.c  \
581         capture_wpcap_packet.h  \
582         cfilters                \
583         colorfilters            \
584         config.h.win32          \
585         config.nmake            \
586         debian/changelog        \
587         debian/compat           \
588         debian/control          \
589         debian/copyright        \
590         debian/dirs             \
591         debian/headers-check.c  \
592         debian/patches/00list   \
593         debian/patches/03_preferences.dpatch \
594         debian/postinst         \
595         debian/pycompat         \
596         debian/pyversions       \
597         debian/rules            \
598         debian/README.source    \
599         debian/tshark.files     \
600         debian/tshark.manpages  \
601         debian/watch            \
602         debian/wireshark-common.files \
603         debian/wireshark-common.manpages \
604         debian/wireshark-common.shlibs \
605         debian/wireshark-dev.docs \
606         debian/wireshark-dev.files \
607         debian/wireshark-dev.header-files \
608         debian/wireshark-dev.manpages \
609         debian/wireshark-dev.prerm \
610         debian/wireshark-root.desktop \
611         debian/wireshark.desktop \
612         debian/wireshark.files \
613         debian/wireshark.manpages \
614         debian/wireshark.menu   \
615         epan/dfilter/README.dfilter     \
616         dfilters                \
617         doxygen.cfg.in          \
618         dumpcap.c       \
619         editcap.c               \
620         fix/FIX.xml             \
621         fix/FIX40.xml           \
622         fix/FIX41.xml           \
623         fix/FIX42.xml           \
624         fix/FIX43.xml           \
625         fix/FIX44.xml           \
626         fix/README              \
627         fix/Values.xsl          \
628         fix/hfDecl.xsl          \
629         fix/hfField.xsl         \
630         fix/hfList.xsl          \
631         idl/coseventcomm.idl    \
632         idl/cosnaming.idl       \
633         idl/tango.idl   \
634         idl/parlay/am.idl       \
635         idl/parlay/cccs.idl     \
636         idl/parlay/cm.idl       \
637         idl/parlay/common_cc_data.idl   \
638         idl/parlay/cs.idl       \
639         idl/parlay/dsc.idl      \
640         idl/parlay/fw_data.idl  \
641         idl/parlay/fw_if.idl    \
642         idl/parlay/fw_if_access.idl     \
643         idl/parlay/fw_if_app.idl        \
644         idl/parlay/fw_if_entop.idl      \
645         idl/parlay/fw_if_service.idl    \
646         idl/parlay/gcc_data.idl \
647         idl/parlay/gcc_interfaces.idl   \
648         idl/parlay/gms.idl      \
649         idl/parlay/mm.idl       \
650         idl/parlay/mmccs.idl    \
651         idl/parlay/mmm.idl      \
652         idl/parlay/mpcc_data.idl        \
653         idl/parlay/mpcc_interfaces.idl  \
654         idl/parlay/osa.idl      \
655         idl/parlay/pam_data.idl \
656         idl/parlay/pam_interfaces.idl   \
657         idl/parlay/Parlay.idl   \
658         idl/parlay/policy_data.idl      \
659         idl/parlay/policy_interfaces.idl        \
660         idl/parlay/README.parlay        \
661         idl/parlay/termcap.idl  \
662         idl/parlay/ui_data.idl  \
663         idl/parlay/ui_interfaces.idl    \
664         image/capinfos.rc.in    \
665         image/clist_ascend.xpm  \
666         image/clist_descend.xpm \
667         image/dumpcap.rc.in     \
668         image/editcap.rc.in     \
669         image/file_dlg_win32.rc \
670         image/hi16-app-wireshark.png    \
671         image/hi32-app-wireshark.png    \
672         image/hi48-app-wireshark.png    \
673         image/icon_layout_1.xpm \
674         image/icon_layout_2.xpm \
675         image/icon_layout_3.xpm \
676         image/icon_layout_4.xpm \
677         image/icon_layout_5.xpm \
678         image/icon_layout_6.xpm \
679         image/libwireshark.rc.in        \
680         image/libwsutil.rc.in   \
681         image/lo16-app-wireshark.png    \
682         image/lo32-app-wireshark.png    \
683         image/lo48-app-wireshark.png    \
684         image/Makefile.nmake    \
685         image/mergecap.rc.in    \
686         image/nsis-checked.bmp  \
687         image/nsis-unchecked.bmp        \
688         image/rawshark.rc.in    \
689         image/README.image      \
690         image/stock_dialog_error_48.xpm \
691         image/stock_dialog_info_48.xpm  \
692         image/stock_dialog_question_48.xpm      \
693         image/stock_dialog_stop_48.xpm  \
694         image/stock_dialog_warning_48.xpm       \
695         image/text2pcap.rc.in   \
696         image/WiresharkDoc_24.xpm       \
697         image/toolbar/analyze_24.xpm \
698         image/toolbar/audio_player_24.xpm       \
699         image/toolbar/autoscroll_24.xpm \
700         image/toolbar/capture_airpcap_16.xpm \
701         image/toolbar/capture_capture_16.xpm \
702         image/toolbar/capture_details_16.xpm \
703         image/toolbar/capture_details_24.xpm \
704         image/toolbar/capture_ethernet_16.xpm  \
705         image/toolbar/capture_filter_24.xpm     \
706         image/toolbar/capture_interfaces_24.xpm \
707         image/toolbar/capture_options_24.xpm    \
708         image/toolbar/capture_prepare_16.xpm \
709         image/toolbar/capture_restart_24.xpm    \
710         image/toolbar/capture_start_24.xpm      \
711         image/toolbar/capture_stop_24.xpm       \
712         image/toolbar/checkbox_16.xpm   \
713         image/toolbar/colorize_24.xpm   \
714         image/toolbar/conversations_16.xpm      \
715         image/toolbar/decode_24.xpm     \
716         image/toolbar/decode_as_16.xpm  \
717         image/toolbar/display_filter_24.xpm     \
718         image/toolbar/endpoints_16.xpm  \
719         image/toolbar/expert_info_16.xpm        \
720         image/toolbar/file_set_list_16.xpm      \
721         image/toolbar/file_set_next_16.xpm      \
722         image/toolbar/file_set_previous_16.xpm  \
723         image/toolbar/flow_graph_16.xpm \
724         image/toolbar/graphs_16.xpm     \
725         image/toolbar/icon_color_0.xpm  \
726         image/toolbar/icon_color_1.xpm  \
727         image/toolbar/icon_color_2.xpm  \
728         image/toolbar/icon_color_3.xpm  \
729         image/toolbar/icon_color_4.xpm  \
730         image/toolbar/icon_color_5.xpm  \
731         image/toolbar/icon_color_6.xpm  \
732         image/toolbar/icon_color_7.xpm  \
733         image/toolbar/icon_color_8.xpm  \
734         image/toolbar/icon_color_9.xpm  \
735         image/toolbar/internet_24.xpm   \
736         image/toolbar/modem_16.png      \
737         image/toolbar/modem_16.xpm      \
738         image/toolbar/network_bluetooth_16.png  \
739         image/toolbar/network_usb.svg           \
740         image/toolbar/network_usb_16.png        \
741         image/toolbar/network_virtual_16.xpm    \
742         image/toolbar/network_wired_16.png      \
743         image/toolbar/network_wireless_16.png   \
744         image/toolbar/resize_columns_24.xpm     \
745         image/toolbar/telephone_16.xpm  \
746         image/toolbar/telephony_16.xpm  \
747         image/toolbar/time_24.xpm       \
748         image/toolbar/voip_flow_24.xpm  \
749         image/toolbar/web_support_24.xpm        \
750         image/toolbar/wep_closed_24.xpm \
751         image/toolbar/wiki_24.xpm       \
752         image/tshark.rc.in      \
753         image/voip_bg.xpm       \
754         image/voip_select.xpm   \
755         image/wireshark.exe.manifest.in \
756         image/wireshark.ico     \
757         image/wireshark.rc.in   \
758         image/WiresharkDoc-128.png      \
759         image/WiresharkDoc-16.png       \
760         image/WiresharkDoc-24.png       \
761         image/WiresharkDoc-256.png      \
762         image/WiresharkDoc-32.png       \
763         image/WiresharkDoc-48.png       \
764         image/WiresharkDoc-64.png       \
765         image/wiresharkdoc.ico  \
766         image/wiresharkinst.ico \
767         image/wiretap.rc.in     \
768         image/wsicon.svg        \
769         image/wsicon16.png      \
770         image/wsicon16.xpm      \
771         image/wsicon256.png     \
772         image/wsicon32.png      \
773         image/wsicon32.xpm      \
774         image/wsicon48.png      \
775         image/wsicon48.xpm      \
776         image/wsicon64.png      \
777         image/wsicon64.xpm      \
778         image/wsiconcap.svg     \
779         image/wsiconcap16.xpm   \
780         image/wsiconcap256.png  \
781         image/wsiconcap32.xpm   \
782         image/wsiconcap48.xpm   \
783         image/wsiconinst.svg    \
784         image/wsiconinst256.png \
785         image/wslogo.eps        \
786         image/wslogo.svg        \
787         image/wssplash-dev.xpm  \
788         image/wssplash.xpm      \
789         ipmap.html              \
790         make-version.pl         \
791         manuf                   \
792         manuf.tmpl              \
793         mergecap.c              \
794         pdml2html.xsl           \
795         print.ps                \
796         $(diameter_DATA)        \
797         $(dtds_DATA)            \
798         $(radius_DATA)          \
799         $(tpncp_DATA)           \
800         $(wimaxasncp_DATA)      \
801         randpkt.c               \
802         smi_modules             \
803         text2pcap-scanner.l     \
804         text2pcap.c             \
805         text2pcap.h             \
806         services                \
807         wireshark.desktop       \
808         wka.tmpl                \
809         CMakeLists.txt          \
810         cmakeconfig.h.in        \
811         wsutil/CMakeLists.txt   \
812         CMakeOptions.txt        \
813         wiretap/CMakeLists.txt  \
814         README.cmake            \
815         ConfigureChecks.cmake   \
816         cmake/modules/readme.txt                \
817         cmake/modules/FindLYNX.cmake            \
818         cmake/modules/FindYACC.cmake            \
819         cmake/modules/FeatureSummary.cmake      \
820         cmake/modules/FindADNS.cmake            \
821         cmake/modules/FindCAP.cmake             \
822         cmake/modules/UseLemon.cmake            \
823         cmake/modules/FindPCRE.cmake            \
824         cmake/modules/FindZLIB.cmake            \
825         cmake/modules/FindPORTAUDIO.cmake       \
826         cmake/modules/FindPCAP.cmake            \
827         cmake/modules/FindSMI.cmake             \
828         cmake/modules/FindCARES.cmake           \
829         cmake/modules/FindXSLTPROC.cmake        \
830         cmake/modules/FindSH.cmake              \
831         cmake/modules/FindGNUTLS.cmake          \
832         cmake/modules/FindGCRYPT.cmake          \
833         cmake/modules/UseMakeDissectorReg.cmake \
834         cmake/modules/FindLEX.cmake             \
835         cmake/modules/FindPYTHON.cmake          \
836         cmake/modules/FindLUA.cmake             \
837         cmake/modules/FindYAPP.cmake            \
838         cmake/modules/FindGEOIP.cmake           \
839         cmake/modules/FindXMLLINT.cmake         \
840         cmake/modules/FindSED.cmake             \
841         cmake/modules/FindGLIB2.cmake           \
842         cmake/modules/FindGMODULE2.cmake                \
843         cmake/modules/FindGTHREAD2.cmake                \
844         cmake/modules/FindHtmlViewer.cmake      \
845         cmake/modules/FindGTK2.cmake            \
846         cmake/modules/FindFOP.cmake             \
847         cmake/modules/LICENSE.txt               \
848         cmake/modules/CMakeInstallDirs.cmake    \
849         cmake/modules/CheckCLinkerFlag.cmake    \
850         cmake/modules/COPYING-CMAKE-SCRIPTS     \
851         cmake/modules/UseMakeTapReg.cmake       \
852         cmake/modules/FindM.cmake               \
853         cmake/modules/FindKERBEROS.cmake        \
854         cmake/modules/FindPOD.cmake             \
855         win32/Makefile.nmake    \
856         win32/file_dlg_win32.c          \
857         win32/file_dlg_win32.h          \
858         win32/print_win32.c                     \
859         win32/print_win32.h                     \
860         CPackConfig.txt                         \
861         all.vcproj              \
862         dumpcap.vcproj          \
863         packaging.vcproj        \
864         tshark.vcproj           \
865         wireshark.vcproj
866
867 install-exec-hook:
868 if HAVE_DUMPCAP_GROUP
869         -chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
870 endif
871 if SETCAP_INSTALL
872         -$(SETCAP) cap_net_raw,cap_net_admin+eip $(DESTDIR)$(bindir)/dumpcap
873         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
874 else
875 if SETUID_INSTALL
876         -chmod o-rws $(DESTDIR)$(bindir)/dumpcap
877         -chmod +s $(DESTDIR)$(bindir)/dumpcap
878 endif
879 endif
880
881
882 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap wsutil docbook
883
884 if HAVE_PLUGINS
885 SUBDIRS = tools wsutil wiretap epan plugins packaging help @wireshark_SUBDIRS@ . doc
886 else
887 SUBDIRS = tools wsutil wiretap epan packaging help @wireshark_SUBDIRS@ . doc
888 endif
889
890 help/faq.txt: $(srcdir)/help/faq.py
891         (cd help ; \
892         $(MAKE) faq.txt ;)
893
894 libtool: $(LIBTOOL_DEPS)
895         $(SHELL) ./config.status --recheck
896
897 # Used by svr4-package and osx-package
898 # We load top_stagedir with an explicit path so that libtool doesn't freak.
899 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
900 stagedir=$(top_stagedir)/$(PACKAGE).inst
901
902 host_cpu=@host_cpu@
903 host_os=@host_os@
904
905 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
906         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
907                 rm -rf $(stagedir) ; \
908                 $(MAKE) DESTDIR=$(stagedir) install; \
909                 $(srcdir)/packaging/svr4/mkpkg \
910                         $(PACKAGE) \
911                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
912                         $(prefix) \
913                         $(top_stagedir) ; \
914         else \
915                 echo "Error: SVR4 packaging tools not found." ; \
916                 echo "Package build abandoned." ; \
917         fi
918
919 solaris-package: svr4-package
920
921 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
922 rpm-package: dist
923         if test x$(HAVE_RPM) = xyes ; then \
924                 cd $(rpm_topdir) ; \
925                 mkdir -p BUILD RPMS SOURCES ; \
926                 cd SOURCES ; \
927                 ln -s ../../../$(distdir).tar.bz2 ; \
928                 ln -s ../../../wireshark.desktop ; \
929                 ln -s ../../../image/wsicon64.png wireshark.png ; \
930                 cd .. ; \
931                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
932                         echo "Package successfully built in `pwd`/RPMS." ; \
933         else \
934                 echo "Error: RPM executable and/or source directory not found." ; \
935         fi
936 srpm-package: dist
937         if test x$(HAVE_RPM) = xyes ; then \
938                 cd $(rpm_topdir) ; \
939                 mkdir -p BUILD SRPMS SOURCES ; \
940                 cd SOURCES ; \
941                 ln -s ../../../$(distdir).tar.bz2 ; \
942                 ln -s ../../../wireshark.desktop ; \
943                 ln -s ../../../image/wsicon64.png wireshark.png ; \
944                 cd .. ; \
945                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
946                         echo "Package successfully built in `pwd`/SRPMS." ; \
947         else \
948                 echo "Error: RPM executable and/or source directory not found." ; \
949         fi
950
951 debian-package: debian/rules
952         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
953                 dpkg-buildpackage -rfakeroot -us -uc ; \
954         else \
955                 echo "Error: Debian packaging tools not found." ; \
956                 echo "Package build abandoned." ; \
957         fi
958
959 # XXX - This assumes we're building from the source directory.
960 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
961         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
962                 rm -rf $(stagedir) ; \
963                 $(MAKE) DESTDIR=$(stagedir) install; \
964                 cd $(srcdir)/packaging/macosx ;  \
965                 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
966         else \
967                 echo "Error: OS X packaging tools not found." ; \
968                 echo "Package build abandoned." ; \
969         fi
970
971 packaging/macosx/COPYING.txt: COPYING
972         (cd packaging/macosx ; \
973         $(MAKE) COPYING.txt ;)
974
975 osx-package: osx-app packaging/macosx/COPYING.txt
976         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
977                 cd $(srcdir)/packaging/macosx ;  \
978                 ./osx-dmg.sh ; \
979         fi
980
981 osx-install: osx-app
982         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
983                 echo "Copying Wireshark.app to /Applications" ; \
984                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ;  \
985         fi
986
987 clean-local:
988         rm -rf $(top_stagedir)
989
990 dumpabi:
991         $(MAKE) -C wiretap dumpabi
992         $(MAKE) -C epan dumpabi
993         $(MAKE) -C wsutil dumpabi
994
995 checkapi_local:
996         $(PERL) tools/checkAPIs.pl \
997         $(TSHARK_TAP_SRC)
998 #       $(wireshark_SOURCES)
999 #       $(EXTRA_wireshark_SOURCES)
1000
1001 checkapi: checkapi_local
1002         cd wiretap && $(MAKE) checkapi
1003         cd ../codecs && $(MAKE) checkapi
1004 ##      cd ../gtk && $(MAKE) checkapi
1005 ##      cd ../epan && $(MAKE) checkapi
1006 ##      cd ../epan/crypt && $(MAKE) checkapi
1007         cd ../dfilter && $(MAKE) checkapi
1008 ##      cd ../ftypes && $(MAKE) checkapi
1009 ##      cd ../wslua && $(MAKE) checkapi
1010         cd ../dissectors && $(MAKE) checkapi
1011         cd ../../plugins && $(MAKE) checkapi
1012         cd ../wsutil && $(MAKE) checkapi