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