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