Update faq.py to generate a full HTML document by default. Pull in a typo
[metze/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Wireshark
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
25
26 INCLUDES= @LUA_INCLUDES@
27
28 if HAVE_WARNINGS_AS_ERRORS
29 AM_CLEAN_CFLAGS = -Werror
30 endif
31
32 #
33 # This is a hideous hack.
34 #
35 # Automake needs to know into which sections to install various man
36 # pages; if the names in "man_MANS" have suffixes, it can infer the
37 # sections from the name (e.g., "hello.1" goes in section 1), but if
38 # they don't have suffixes, it can't tell what sections to put them, and
39 # it just gives up and doesn't create any rules to install them (and it
40 # gives up silently, so you have no clue what's wrong).
41 #
42 # Therefore, we can't just set "man_MANS" to a list of variables to be
43 # filled in by the configure script, as those variables don't have man
44 # page section numbers.
45 #
46 # It turns out (although this is not documented anywhere I could find
47 # in the automake Info file) that if you define, instead, variables with
48 # names like "man{section}_MANS", automake will infer that the names in
49 # those variables are the names of man pages to be installed in section
50 # "{section}".
51 #
52 # So, as all our man pages go in section 1, we define "man1_MANS" to
53 # contain all the man page.
54 #
55 # *However*, if "man_MANS" isn't defined at all, automake concludes that
56 # there are no man pages, the fact that, say, "man1_MANS" is defined
57 # nonwithstanding!  (I suspect this is the result of a mistaken attempt
58 # to get people to fix their automake files not to use "MANS"; if "MANS"
59 # is defined, it prints a warning and sets the exit status, but doesn't
60 # exit, and then it just gives up if "man_MANS" isn't defined,
61 # presumably on the theory that the only reason it wouldn't be defined
62 # is because the automake file uses the obsolete "MANS" variable instead
63 # of the shiny new "man_MANS" variable.)
64 #
65 # So we also define "man_MANS", but don't define it as anything;
66 # automake will arrange that the Makefile define it as the union of all
67 # the "man{section}_MANS" variables.
68 #
69 bin_PROGRAMS = \
70         @wireshark_bin@ \
71         @tshark_bin@    \
72         @text2pcap_bin@ \
73         @mergecap_bin@  \
74         @capinfos_bin@  \
75         @editcap_bin@   \
76         @randpkt_bin@   \
77         @dftest_bin@    \
78         @dumpcap_bin@   \
79         @rawshark_bin@
80 bin_SCRIPTS = @idl2wrs_bin@
81
82 man1_MANS = \
83         @wireshark_man@ \
84         @tshark_man@    \
85         @text2pcap_man@ \
86         @mergecap_man@  \
87         @capinfos_man@  \
88         @editcap_man@   \
89         @dumpcap_man@   \
90         @idl2wrs_man@   \
91         @rawshark_man@
92 man4_MANS = @wiresharkfilter_man@
93 man_MANS =
94
95 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
96         randpkt text2pcap dumpcap rawshark
97 EXTRA_SCRIPTS = idl2wrs
98
99 idl2wrs: tools/idl2wrs.sh Makefile
100         cp tools/idl2wrs.sh idl2wrs
101         chmod +x idl2wrs
102
103 #
104 # Wireshark configuration files are put in $(pkgdatadir).
105 #
106 pkgdata_DATA = AUTHORS-SHORT COPYING FAQ manuf services wireshark.html \
107         tshark.html wireshark-filter.html capinfos.html editcap.html \
108         idl2wrs.html mergecap.html text2pcap.html dumpcap.html \
109         rawshark.html ws.css cfilters colorfilters dfilters smi_modules
110
111 #
112 # Install the Diameter DTD and XML files in the "diameter" subdirectory
113 # of that directory.
114 #
115 diameterdir = $(pkgdatadir)/diameter
116 diameter_DATA = \
117         diameter/chargecontrol.xml \
118         diameter/dictionary.dtd \
119         diameter/dictionary.xml \
120         diameter/Ericsson.xml \
121         diameter/etsie2e4.xml \
122         diameter/gqpolicy.xml \
123         diameter/imscxdx.xml \
124         diameter/mobileipv4.xml \
125         diameter/nasreq.xml \
126         diameter/sip.xml \
127         diameter/sunping.xml \
128         diameter/TGPPGmb.xml \
129         diameter/TGPPRx.xml \
130         diameter/TGPPSh.xml
131
132 #
133 # Install the DTDs directory files in the "dtds" subdirectory
134 # of that directory
135 #
136 dtdsdir = $(pkgdatadir)/dtds
137 dtds_DATA = \
138         dtds/dc.dtd \
139         dtds/itunes.dtd \
140         dtds/mscml.dtd \
141         dtds/pocsettings.dtd \
142         dtds/presence.dtd \
143         dtds/reginfo.dtd \
144         dtds/rlmi.dtd \
145         dtds/rss.dtd \
146         dtds/smil.dtd \
147         dtds/xcap-caps.dtd \
148         dtds/xcap-error.dtd \
149         dtds/watcherinfo.dtd
150
151 #
152 # Install the RADIUS directory files in the "radius" subdirectory
153 # of that directory.
154 #
155 radiusdir = $(pkgdatadir)/radius
156 radius_DATA = \
157         radius/dictionary  \
158         radius/dictionary.3com  \
159         radius/dictionary.3gpp  \
160         radius/dictionary.3gpp2  \
161         radius/dictionary.acc  \
162         radius/dictionary.alcatel  \
163         radius/dictionary.alteon  \
164         radius/dictionary.altiga  \
165         radius/dictionary.aptis  \
166         radius/dictionary.ascend  \
167         radius/dictionary.aruba  \
168         radius/dictionary.bay  \
169         radius/dictionary.bintec  \
170         radius/dictionary.bristol  \
171         radius/dictionary.cablelabs  \
172         radius/dictionary.cabletron  \
173         radius/dictionary.cisco  \
174         radius/dictionary.cisco.bbsm  \
175         radius/dictionary.cisco.vpn3000  \
176         radius/dictionary.cisco.vpn5000  \
177         radius/dictionary.colubris  \
178         radius/dictionary.columbia_university  \
179         radius/dictionary.compat  \
180         radius/dictionary.cosine  \
181         radius/dictionary.ericsson  \
182         radius/dictionary.erx  \
183         radius/dictionary.extreme  \
184         radius/dictionary.foundry  \
185         radius/dictionary.freeradius  \
186         radius/dictionary.gandalf  \
187         radius/dictionary.garderos  \
188         radius/dictionary.gemtek  \
189         radius/dictionary.itk  \
190         radius/dictionary.juniper  \
191         radius/dictionary.karlnet  \
192         radius/dictionary.livingston  \
193         radius/dictionary.localweb  \
194         radius/dictionary.merit  \
195         radius/dictionary.microsoft  \
196         radius/dictionary.mikrotik  \
197         radius/dictionary.navini  \
198         radius/dictionary.netscreen  \
199         radius/dictionary.nokia  \
200         radius/dictionary.nomadix  \
201         radius/dictionary.propel  \
202         radius/dictionary.quintum  \
203         radius/dictionary.redback  \
204         radius/dictionary.redcreek  \
205         radius/dictionary.shasta  \
206         radius/dictionary.shiva  \
207         radius/dictionary.sonicwall  \
208         radius/dictionary.springtide  \
209         radius/dictionary.t_systems_nova  \
210         radius/dictionary.telebit  \
211         radius/dictionary.trapeze  \
212         radius/dictionary.tunnel  \
213         radius/dictionary.unisphere  \
214         radius/dictionary.unix  \
215         radius/dictionary.usr  \
216         radius/dictionary.valemount  \
217         radius/dictionary.versanet  \
218         radius/dictionary.wispr  \
219         radius/dictionary.xedia
220
221 #
222 # Install the tpncp directory files in the "tpncp" subdirectory
223 # of that directory
224 #
225 tpncpdir = $(pkgdatadir)/tpncp
226 tpncp_DATA = \
227         tpncp/tpncp.dat
228
229
230 #
231 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
232 # of that directory
233 #
234 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
235 wimaxasncp_DATA = \
236         wimaxasncp/dictionary.xml \
237         wimaxasncp/dictionary.dtd
238
239 PLATFORM_SRC = capture-pcap-util-unix.c
240
241 if HAVE_PLUGINS
242 -include plugins/Custom.make
243 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
244         -dlopen plugins/agentx/agentx.la \
245         -dlopen plugins/artnet/artnet.la \
246         -dlopen plugins/asn1/asn1.la \
247         -dlopen plugins/ciscosm/ciscosm.la \
248         -dlopen plugins/docsis/docsis.la \
249         -dlopen plugins/enttec/enttec.la \
250         -dlopen plugins/ethercat/ethercat.la \
251         -dlopen plugins/giop/cosnaming.la \
252         -dlopen plugins/giop/coseventcomm.la \
253         -dlopen plugins/gryphon/gryphon.la \
254         -dlopen plugins/infiniband/infiniband.la \
255         -dlopen plugins/irda/irda.la \
256         -dlopen plugins/lwres/lwres.la \
257         -dlopen plugins/m2m/m2m.la \
258         -dlopen plugins/mate/mate.la \
259         -dlopen plugins/opcua/opcua.la \
260         -dlopen plugins/opsi/opsi.la \
261         -dlopen plugins/pcli/pcli.la \
262         -dlopen plugins/profinet/profinet.la \
263         -dlopen plugins/rlm/rlm.la \
264         -dlopen plugins/rtnet/rtnet.la \
265         -dlopen plugins/rudp/rudp.la \
266         -dlopen plugins/sbus/sbus.la \
267         -dlopen plugins/sercosiii/sercosiii.la \
268         -dlopen plugins/stats_tree/stats_tree.la \
269         -dlopen plugins/unistim/unistim.la \
270         -dlopen plugins/v5ua/v5ua.la \
271         -dlopen plugins/wimax/wimax.la
272
273 WTAP_PLUGIN_SOURCES = \
274        epan/plugins.c \
275        epan/report_err.c \
276        epan/filesystem.c
277
278 else            # HAVE_PLUGINS
279
280 plugin_ldadd =
281 WTAP_PLUGIN_SOURCES =
282
283 endif           # HAVE_PLUGINS
284
285 include Makefile.common
286
287 # Optional objects that I know how to build. These will be
288 # linked into the wireshark executable.
289 # They will also be linked into the tshark executable; if this
290 # list ever grows to include something that can't be linked with
291 # tshark, or if tshark needs something that wireshark doesn't,
292 # we should probably split this into stuff needed both
293 # by wireshark and tshark and stuff needed only by one or the
294 # other.
295 wireshark_optional_objects = @GETOPT_O@ @STRERROR_O@ \
296         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
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         $(wireshark_optional_objects)   \
313         gtk/libui.a                     \
314         codecs/libcodec.a               \
315         wiretap/libwiretap.la           \
316         epan/libwireshark.la            \
317         wsutil/libwsutil.la             \
318         @INET_PTON_LO@                  \
319         @INET_NTOP_LO@                  \
320         @SSL_LIBS@                      \
321         $(plugin_ldadd)                 \
322         @PCRE_LIBS@                     \
323         @PCAP_LIBS@                     \
324         @GTK_LIBS@                      \
325         @C_ARES_LIBS@                   \
326         @ADNS_LIBS@                     \
327         @KRB5_LIBS@                     \
328         @FRAMEWORKS@                    \
329         @LIBGCRYPT_LIBS@                \
330         @LIBGNUTLS_LIBS@                \
331         @LIBSMI_LDFLAGS@                \
332         @PORTAUDIO_LIBS@
333 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS)
334
335 if ENABLE_STATIC
336 tshark_LDFLAGS = -Wl,-static -all-static
337 else
338 tshark_LDFLAGS = -export-dynamic
339 endif
340
341 # Libraries and plugin flags with which to link tshark.
342 tshark_LDADD = \
343         $(wireshark_optional_objects)   \
344         wiretap/libwiretap.la           \
345         epan/libwireshark.la            \
346         wsutil/libwsutil.la             \
347         @INET_PTON_LO@                  \
348         @INET_NTOP_LO@                  \
349         @SSL_LIBS@                      \
350         $(plugin_ldadd)                 \
351         @PCRE_LIBS@                     \
352         @GLIB_LIBS@ -lm                 \
353         @PCAP_LIBS@                     \
354         @SOCKET_LIBS@                   \
355         @NSL_LIBS@                      \
356         @C_ARES_LIBS@                   \
357         @ADNS_LIBS@                     \
358         @KRB5_LIBS@                     \
359         @FRAMEWORKS@                    \
360         @LIBGCRYPT_LIBS@                \
361         @LIBGNUTLS_LIBS@                \
362         @LIBSMI_LDFLAGS@
363 tshark_CFLAGS = $(AM_CLEAN_CFLAGS)
364
365 if ENABLE_STATIC
366 rawshark_LDFLAGS = -Wl,-static -all-static
367 else
368 rawshark_LDFLAGS = -export-dynamic
369 endif
370
371 # Libraries and plugin flags with which to link tshark.
372 rawshark_LDADD = \
373         $(wireshark_optional_objects)   \
374         wiretap/libwiretap.la           \
375         epan/libwireshark.la            \
376         wsutil/libwsutil.la             \
377         @INET_PTON_LO@                  \
378         @INET_NTOP_LO@                  \
379         @SSL_LIBS@                      \
380         $(plugin_ldadd)                 \
381         @PCRE_LIBS@                     \
382         @GLIB_LIBS@ -lm                 \
383         @PCAP_LIBS@                     \
384         @SOCKET_LIBS@                   \
385         @NSL_LIBS@                      \
386         @C_ARES_LIBS@                   \
387         @ADNS_LIBS@                     \
388         @KRB5_LIBS@                     \
389         @FRAMEWORKS@                    \
390         @LIBGCRYPT_LIBS@                \
391         @LIBGNUTLS_LIBS@                \
392         @LIBSMI_LDFLAGS@
393 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS)
394
395 # Optional objects that I know how to build, and that are needed by
396 # text2pcap.
397 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
398
399 # Libraries with which to link text2pcap.
400 text2pcap_LDADD = \
401         $(text2pcap_optional_objects)   \
402         wiretap/libwiretap.la           \
403         wsutil/libwsutil.la             \
404         @GLIB_LIBS@ -lm
405 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
406 # which is generated (and therefore not always clean).
407 # We could generate text2pcap.o as a library with -Werror but for now it
408 # doesn't seem worth the effort.
409 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
410
411 # Libraries with which to link mergecap.
412 mergecap_LDADD = \
413         wiretap/libwiretap.la           \
414         wsutil/libwsutil.la             \
415         @GLIB_LIBS@
416 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
417
418 # Libraries with which to link capinfos.
419 capinfos_LDADD = \
420         wiretap/libwiretap.la           \
421         wsutil/libwsutil.la             \
422         @GLIB_LIBS@
423 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS)
424
425 # Libraries with which to link editcap.
426 editcap_LDADD = \
427         wiretap/libwiretap.la           \
428         wsutil/libwsutil.la             \
429         @GLIB_LIBS@
430 editcap_CFLAGS = $(AM_CLEAN_CFLAGS)
431
432 # Libraries with which to link randpkt.
433 randpkt_LDADD = \
434         wiretap/libwiretap.la           \
435         wsutil/libwsutil.la             \
436         @GLIB_LIBS@ -lm                 \
437         @PCAP_LIBS@                     \
438         @SOCKET_LIBS@                   \
439         @NSL_LIBS@                      \
440         @C_ARES_LIBS@                   \
441         @ADNS_LIBS@
442 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
443
444 # Libraries and plugin flags with which to link dftest.
445 dftest_LDADD = \
446         $(wireshark_optional_objects)   \
447         wiretap/libwiretap.la           \
448         wsutil/libwsutil.la             \
449         epan/libwireshark.la            \
450         @SSL_LIBS@                      \
451         $(plugin_ldadd)                 \
452         @PCRE_LIBS@                     \
453         @GLIB_LIBS@ -lm                 \
454         @PCAP_LIBS@                     \
455         @SOCKET_LIBS@                   \
456         @NSL_LIBS@                      \
457         @C_ARES_LIBS@                   \
458         @ADNS_LIBS@                     \
459         @KRB5_LIBS@                     \
460         @LIBGCRYPT_LIBS@                \
461         @LIBGNUTLS_LIBS@                \
462         @LIBSMI_LDFLAGS@
463 dftest_CFLAGS = $(AM_CLEAN_CFLAGS)
464
465 # Libraries with which to link dumpcap.
466 dumpcap_LDADD = \
467         wiretap/libwiretap.la           \
468         wsutil/libwsutil.la             \
469         @INET_NTOP_LO@                  \
470         @GLIB_LIBS@                     \
471         @PCAP_LIBS@                     \
472         @SOCKET_LIBS@                   \
473         @NSL_LIBS@                      \
474         @FRAMEWORKS@                    \
475         @LIBGCRYPT_LIBS@                \
476         @LIBCAP_LIBS@
477 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
478
479 # Common headers
480 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
481         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS)
482
483 #
484 # Build the version string
485 #
486 # FORCE is the portable version of .PHONY
487 FORCE:
488
489 svnversion.h: FORCE
490         LANG=C $(PERL) $(srcdir)/make-version.pl $(srcdir)
491
492 #
493 # Build the short version of the authors file for the about dialog
494 #
495 AUTHORS-SHORT: AUTHORS make-authors-short.pl
496         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
497
498 #
499 # Build the short version of the authors file with formatting codes for the
500 # man page
501 #
502 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
503         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
504
505 #
506 # Build shell scripts by doing variable substitution.
507 # Taken from autoconf 2.13.
508 #
509 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
510
511 SUFFIXES = .sh
512 .sh:
513         rm -f $@ $@.tmp
514         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
515
516 #
517 # Build "tshark-tap-register.c", which contains a function
518 # "register_all_tap_listeners()"
519 # that calls the register routines for all tshark tap listeners.
520 #
521 # We do this by grepping through sources.
522 #
523 # Formatting conventions:  The name of the tap_listener_register_*
524 # routines must start in column zero, or must be preceded only by
525 # "void " starting in column zero, and must not be inside #if.
526 #
527 # The first argument is the directory in which the source files live.
528 # All subsequent arguments are the files to scan.
529 #
530 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
531         @echo Making tshark-tap-register.c
532         @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
533
534 ps.c: print.ps rdps
535         ./rdps $(srcdir)/print.ps ps.c
536
537 rdps: rdps.c
538         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
539
540 #
541 # XXX - "svnversion.h" is distributed in the release tarball; should
542 # we be deleting it with "make clean", or should we only do that with
543 # "make maintainer-clean"?
544 #
545 CLEANFILES =            \
546         svnversion.h    \
547         @rdps_bin@      \
548         idl2wrs         \
549         *~              \
550         vgcore.*
551
552 #
553 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
554 # list of files removed by "make distclean"?  (It's deliberately
555 # included in that list.)
556 #
557 DISTCLEANFILES = \
558         AUTHORS-SHORT           \
559         AUTHORS-SHORT-FORMAT    \
560         ps.c                    \
561         ws.css
562
563 MAINTAINERCLEANFILES =          \
564         $(GENERATED_FILES)      \
565         Makefile.in             \
566         aclocal.m4              \
567         config.h.in             \
568         configure               \
569         depcomp                 \
570         install-sh              \
571         ltmain.sh               \
572         missing
573
574 EXTRA_DIST = \
575         FAQ                     \
576         INSTALL.configure       \
577         Makefile.am.inc         \
578         Makefile.common         \
579         Makefile.nmake          \
580         Makefile.nmake.inc      \
581         README.aix              \
582         README.bsd              \
583         README.hpux             \
584         README.irix             \
585         README.linux            \
586         README.macos            \
587         README.tru64            \
588         README.vmware           \
589         README.win32            \
590         aclocal-fallback/glib-2.0.m4 \
591         aclocal-fallback/gtk-2.0.m4 \
592         aclocal-flags           \
593         adns_dll.dep            \
594         adns_dll.rc             \
595         autogen.sh              \
596         capinfos.c              \
597         capture-wpcap.c         \
598         capture-wpcap.h         \
599         capture_wpcap_packet.c  \
600         capture_wpcap_packet.h  \
601         cfilters                \
602         colorfilters            \
603         config.h.win32          \
604         config.nmake            \
605         debian/changelog        \
606         debian/compat           \
607         debian/control          \
608         debian/copyright        \
609         debian/dirs             \
610         debian/headers-check.c  \
611         debian/patches/00list   \
612         debian/patches/03_preferences.dpatch \
613         debian/postinst         \
614         debian/pycompat         \
615         debian/pyversions       \
616         debian/rules            \
617         debian/tshark.files     \
618         debian/tshark.manpages  \
619         debian/watch            \
620         debian/wireshark-common.files \
621         debian/wireshark-common.manpages \
622         debian/wireshark-common.shlibs \
623         debian/wireshark-dev.docs \
624         debian/wireshark-dev.files \
625         debian/wireshark-dev.header-files \
626         debian/wireshark-dev.manpages \
627         debian/wireshark-dev.prerm \
628         debian/wireshark-root.desktop \
629         debian/wireshark.desktop \
630         debian/wireshark.files \
631         debian/wireshark.manpages \
632         debian/wireshark.menu   \
633         dfilters                \
634         docbook/Makefile.auto.am        \
635         docbook/ws.css          \
636         doxygen.cfg.in          \
637         dumpcap.c       \
638         editcap.c               \
639         wireshark.desktop       \
640         image/capinfos.rc.in    \
641         image/clist_ascend.xpm  \
642         image/clist_descend.xpm \
643         image/dn_arrow.xpm      \
644         image/dumpcap.rc.in     \
645         image/editcap.rc.in     \
646         image/expert_chat.xpm   \
647         image/expert_error.xpm  \
648         image/expert_none.xpm   \
649         image/expert_note.xpm   \
650         image/expert_warn.xpm   \
651         image/file_dlg_win32.rc \
652         image/hi16-app-wireshark.png    \
653         image/hi32-app-wireshark.png    \
654         image/hi48-app-wireshark.png    \
655         image/icon_layout_1.xpm \
656         image/icon_layout_2.xpm \
657         image/icon_layout_3.xpm \
658         image/icon_layout_4.xpm \
659         image/icon_layout_5.xpm \
660         image/icon_layout_6.xpm \
661         image/libwireshark.rc.in        \
662         image/libwsutil.rc.in   \
663         image/lo16-app-wireshark.png    \
664         image/lo32-app-wireshark.png    \
665         image/lo48-app-wireshark.png    \
666         image/Makefile.nmake    \
667         image/mergecap.rc.in    \
668         image/nsis-checked.bmp  \
669         image/nsis-unchecked.bmp        \
670         image/rawshark.rc.in    \
671         image/README.image      \
672         image/stock_dialog_error_48.xpm \
673         image/stock_dialog_info_48.xpm  \
674         image/stock_dialog_question_48.xpm      \
675         image/stock_dialog_stop_48.xpm  \
676         image/stock_dialog_warning_48.xpm       \
677         image/text2pcap.rc.in   \
678         image/toolbar/autoscroll_24.xpm \
679         image/toolbar/capture_airpcap_16.xpm \
680         image/toolbar/capture_capture_16.xpm \
681         image/toolbar/capture_details_16.xpm \
682         image/toolbar/capture_details_24.xpm \
683         image/toolbar/capture_ethernet_16.xpm  \
684         image/toolbar/capture_filter_24.xpm     \
685         image/toolbar/capture_interfaces_24.xpm \
686         image/toolbar/capture_options_24.xpm    \
687         image/toolbar/capture_prepare_16.xpm \
688         image/toolbar/capture_restart_24.xpm    \
689         image/toolbar/capture_start_24.xpm      \
690         image/toolbar/capture_stop_24.xpm       \
691         image/toolbar/checkbox_16.xpm   \
692         image/toolbar/colorize_24.xpm   \
693         image/toolbar/conversations_16.xpm      \
694         image/toolbar/decode_as_16.xpm  \
695         image/toolbar/display_filter_24.xpm     \
696         image/toolbar/endpoints_16.xpm  \
697         image/toolbar/expert_info_16.xpm        \
698         image/toolbar/file_set_list_16.xpm      \
699         image/toolbar/file_set_next_16.xpm      \
700         image/toolbar/file_set_previous_16.xpm  \
701         image/toolbar/flow_graph_16.xpm \
702         image/toolbar/graphs_16.xpm     \
703         image/toolbar/icon_color_0.xpm  \
704         image/toolbar/icon_color_1.xpm  \
705         image/toolbar/icon_color_2.xpm  \
706         image/toolbar/icon_color_3.xpm  \
707         image/toolbar/icon_color_4.xpm  \
708         image/toolbar/icon_color_5.xpm  \
709         image/toolbar/icon_color_6.xpm  \
710         image/toolbar/icon_color_7.xpm  \
711         image/toolbar/icon_color_8.xpm  \
712         image/toolbar/icon_color_9.xpm  \
713         image/toolbar/internet_24.xpm   \
714         image/toolbar/resize_columns_24.xpm     \
715         image/toolbar/telephony_16.xpm  \
716         image/toolbar/time_24.xpm       \
717         image/toolbar/web_support_24.xpm        \
718         image/toolbar/wep_closed_24.xpm \
719         image/toolbar/wiki_24.xpm       \
720         image/tshark.rc.in      \
721         image/up_arrow.xpm      \
722         image/wiresharkdoc.ico  \
723         image/wireshark.exe.manifest.in \
724         image/wireshark.ico     \
725         image/wiresharkinst.ico \
726         image/wireshark.rc.in   \
727         image/wiretap.rc.in     \
728         image/wsicon16.png      \
729         image/wsicon16.xpm      \
730         image/wsicon256.png     \
731         image/wsicon32.png      \
732         image/wsicon32.xpm      \
733         image/wsicon48.png      \
734         image/wsicon48.xpm      \
735         image/wsicon64.png      \
736         image/wsicon64.xpm      \
737         image/wsiconcap16.xpm   \
738         image/wsiconcap256.png  \
739         image/wsiconcap32.xpm   \
740         image/wsiconcap48.xpm   \
741         image/wsiconcap.svg     \
742         image/wsicondoc256.png  \
743         image/wsicondoc.svg     \
744         image/wsiconinst256.png \
745         image/wsiconinst.svg    \
746         image/wsicon.svg        \
747         image/wslogo.eps        \
748         image/wslogo.svg        \
749         image/wssplash.xpm      \
750         image/wssplash-dev.xpm  \
751         make-authors-format.pl  \
752         make-authors-short.pl   \
753         make-manuf              \
754         make-tapreg-dotc        \
755         make-version.pl         \
756         manuf                   \
757         manuf.tmpl              \
758         mergecap.c              \
759         perlnoutf.pl            \
760         print.ps                \
761         $(diameter_DATA)        \
762         $(dtds_DATA)            \
763         $(radius_DATA)          \
764         $(tpncp_DATA)           \
765         $(wimaxasncp_DATA)      \
766         randpkt.c               \
767         rdps.c                  \
768         smi_modules             \
769         text2pcap-scanner.l     \
770         text2pcap.c             \
771         text2pcap.h             \
772         services                \
773         wka.tmpl
774
775 if SETUID_INSTALL
776 install-exec-hook:
777         -chmod +s $(DESTDIR)$(bindir)/dumpcap
778 else
779 install-exec-hook:
780 endif
781
782 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap wsutil
783
784 if HAVE_PLUGINS
785 SUBDIRS = tools wsutil wiretap doc epan plugins packaging help @wireshark_SUBDIRS@
786 else
787 SUBDIRS = tools wsutil wiretap doc epan packaging help @wireshark_SUBDIRS@
788 endif
789
790 FAQ: help/faq.txt help/faq.py
791         (cd help ; \
792         $(MAKE) faq.txt ; \
793         cp faq.txt ../FAQ )
794
795 wireshark.1: doc/wireshark.pod AUTHORS-SHORT-FORMAT
796         (cd doc ; \
797         $(MAKE) ../wireshark.1 )
798
799 tshark.1: doc/tshark.pod
800         (cd doc ; \
801         $(MAKE) ../tshark.1 )
802
803 wireshark-filter.4: tshark doc/wireshark-filter.pod.template
804         (cd doc ; \
805         $(MAKE) ../wireshark-filter.4 )
806
807 capinfos.1: doc/capinfos.pod
808         (cd doc ; \
809         $(MAKE) ../capinfos.1 )
810
811 editcap.1: doc/editcap.pod
812         (cd doc ; \
813         $(MAKE) ../editcap.1 )
814
815 idl2wrs.1: doc/idl2wrs.pod
816         (cd doc ; \
817         $(MAKE) ../idl2wrs.1 )
818
819 mergecap.1: doc/mergecap.pod
820         (cd doc ; \
821         $(MAKE) ../mergecap.1 )
822
823 text2pcap.1: doc/text2pcap.pod
824         (cd doc ; \
825         $(MAKE) ../text2pcap.1 )
826
827 dumpcap.1: doc/dumpcap.pod
828         (cd doc ; \
829         $(MAKE) ../dumpcap.1 )
830
831 rawshark.1: doc/rawshark.pod
832         (cd doc ; \
833         $(MAKE) ../rawshark.1 )
834
835 ws.css: $(srcdir)/docbook/ws.css
836         cp $(srcdir)/docbook/ws.css .
837
838 wireshark.html: doc/wireshark.pod AUTHORS-SHORT-FORMAT ws.css
839         (cd doc ; \
840         $(MAKE) ../wireshark.html )
841
842 tshark.html: doc/tshark.pod ws.css
843         (cd doc ; \
844         $(MAKE) ../tshark.html )
845
846 wireshark-filter.html: tshark doc/wireshark-filter.pod.template ws.css
847         (cd doc ; \
848         $(MAKE) ../wireshark-filter.html )
849
850 capinfos.html: doc/capinfos.pod ws.css
851         (cd doc ; \
852         $(MAKE) ../capinfos.html )
853
854 editcap.html: doc/editcap.pod ws.css
855         (cd doc ; \
856         $(MAKE) ../editcap.html )
857
858 idl2wrs.html: doc/idl2wrs.pod ws.css
859         (cd doc ; \
860         $(MAKE) ../idl2wrs.html )
861
862 mergecap.html: doc/mergecap.pod ws.css
863         (cd doc ; \
864         $(MAKE) ../mergecap.html )
865
866 text2pcap.html: doc/text2pcap.pod ws.css
867         (cd doc ; \
868         $(MAKE) ../text2pcap.html )
869
870 dumpcap.html: doc/dumpcap.pod ws.css
871         (cd doc ; \
872         $(MAKE) ../dumpcap.html )
873
874 rawshark.html: doc/rawshark.pod ws.css
875         (cd doc ; \
876         $(MAKE) ../rawshark.html )
877
878 libtool: $(LIBTOOL_DEPS)
879         $(SHELL) ./config.status --recheck
880
881 # Used by svr4-package and osx-package
882 # We load top_stagedir with an explicit path so that libtool doesn't freak.
883 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
884 stagedir=$(top_stagedir)/$(PACKAGE).inst
885
886 host_cpu=@host_cpu@
887 host_os=@host_os@
888
889 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
890         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
891                 rm -rf $(stagedir) ; \
892                 $(MAKE) DESTDIR=$(stagedir) install; \
893                 $(srcdir)/packaging/svr4/mkpkg \
894                         $(PACKAGE) \
895                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
896                         $(prefix) \
897                         $(top_stagedir) ; \
898         else \
899                 echo "Error: SVR4 packaging tools not found." ; \
900                 echo "Package build abandoned." ; \
901         fi
902
903 solaris-package: svr4-package
904
905 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
906 rpm-package: dist
907         if test x$(HAVE_RPM) = xyes ; then \
908                 cd $(rpm_topdir) ; \
909                 mkdir -p BUILD RPMS SOURCES ; \
910                 cd SOURCES ; \
911                 ln -s ../../../$(distdir).tar.gz ; \
912                 ln -s ../../../wireshark.desktop ; \
913                 ln -s ../../../image/wsicon64.png wireshark.png ; \
914                 cd .. ; \
915                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
916                         echo "Package successfully built in `pwd`/RPMS." ; \
917         else \
918                 echo "Error: RPM executable and/or source directory not found." ; \
919         fi
920 srpm-package: dist
921         if test x$(HAVE_RPM) = xyes ; then \
922                 cd $(rpm_topdir) ; \
923                 mkdir -p BUILD SRPMS SOURCES ; \
924                 cd SOURCES ; \
925                 ln -s ../../../$(distdir).tar.gz ; \
926                 ln -s ../../../wireshark.desktop ; \
927                 ln -s ../../../image/wsicon64.png wireshark.png ; \
928                 cd .. ; \
929                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
930                         echo "Package successfully built in `pwd`/SRPMS." ; \
931         else \
932                 echo "Error: RPM executable and/or source directory not found." ; \
933         fi
934
935 debian-package: debian/rules
936         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
937                 dpkg-buildpackage -rfakeroot -us -uc ; \
938         else \
939                 echo "Error: Debian packaging tools not found." ; \
940                 echo "Package build abandoned." ; \
941         fi
942
943 # XXX - This assumes we're building from the source directory.
944 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
945         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
946                 rm -rf $(stagedir) ; \
947                 $(MAKE) DESTDIR=$(stagedir) install; \
948                 cd $(srcdir)/packaging/macosx ;  \
949                 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
950         else \
951                 echo "Error: OS X packaging tools not found." ; \
952                 echo "Package build abandoned." ; \
953         fi
954
955 osx-package: osx-app
956         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
957                 cd $(srcdir)/packaging/macosx ;  \
958                 ./osx-dmg.sh ; \
959         fi
960
961 clean-local:
962         rm -rf $(top_stagedir)
963
964 checkapi_local:
965         $(PERL) tools/checkAPIs.pl \
966         $(TSHARK_TAP_SRC)
967 #       $(wireshark_SOURCES)
968 #       $(EXTRA_wireshark_SOURCES)
969
970 checkapi: checkapi_local
971         cd wiretap && $(MAKE) checkapi
972         cd ../codecs && $(MAKE) checkapi
973 ##      cd ../gtk && $(MAKE) checkapi
974 ##      cd ../epan && $(MAKE) checkapi
975 ##      cd ../epan/crypt && $(MAKE) checkapi
976         cd ../dfilter && $(MAKE) checkapi
977 ##      cd ../ftypes && $(MAKE) checkapi
978 ##      cd ../wslua && $(MAKE) checkapi
979         cd ../dissectors && $(MAKE) checkapi
980         cd ../../plugins && $(MAKE) checkapi
981         cd ../wsutil && $(MAKE) checkapi