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