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