Correct comments and examples on get_pdu_len().
[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 #
27 # This is a hideous hack.
28 #
29 # Automake needs to know into which sections to install various man
30 # pages; if the names in "man_MANS" have suffixes, it can infer the
31 # sections from the name (e.g., "hello.1" goes in section 1), but if
32 # they don't have suffixes, it can't tell what sections to put them, and
33 # it just gives up and doesn't create any rules to install them (and it
34 # gives up silently, so you have no clue what's wrong).
35 #
36 # Therefore, we can't just set "man_MANS" to a list of variables to be
37 # filled in by the configure script, as those variables don't have man
38 # page section numbers.
39 #
40 # It turns out (although this is not documented anywhere I could find
41 # in the automake Info file) that if you define, instead, variables with
42 # names like "man{section}_MANS", automake will infer that the names in
43 # those variables are the names of man pages to be installed in section
44 # "{section}".
45 #
46 # So, as all our man pages go in section 1, we define "man1_MANS" to
47 # contain all the man page.
48 #
49 # *However*, if "man_MANS" isn't defined at all, automake concludes that
50 # there are no man pages, the fact that, say, "man1_MANS" is defined
51 # nonwithstanding!  (I suspect this is the result of a mistaken attempt
52 # to get people to fix their automake files not to use "MANS"; if "MANS"
53 # is defined, it prints a warning and sets the exit status, but doesn't
54 # exit, and then it just gives up if "man_MANS" isn't defined,
55 # presumably on the theory that the only reason it wouldn't be defined
56 # is because the automake file uses the obsolete "MANS" variable instead
57 # of the shiny new "man_MANS" variable.)
58 #
59 # So we also define "man_MANS", but don't define it as anything;
60 # automake will arrange that the Makefile define it as the union of all
61 # the "man{section}_MANS" variables.
62 #
63 bin_PROGRAMS = @wireshark_bin@ @capinfos_bin@ @editcap_bin@ @mergecap_bin@ @tshark_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@ @dumpcap_bin@
64 bin_SCRIPTS = @idl2wrs_bin@
65 man1_MANS = @wireshark_man@ @capinfos_man@ @editcap_man@ @mergecap_man@ @tshark_man@ @text2pcap_man@ @dumpcap_man@ @idl2wrs_man@
66 man4_MANS = @wiresharkfilter_man@
67 man_MANS =
68
69 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
70         randpkt text2pcap dumpcap
71 EXTRA_SCRIPTS = idl2wrs
72
73 idl2wrs: tools/idl2wrs.sh Makefile
74         cp tools/idl2wrs.sh idl2wrs
75         chmod +x idl2wrs
76
77 #
78 # Wireshark configuration files are put in $(pkgdatadir).
79 #
80 pkgdata_DATA = AUTHORS-SHORT COPYING manuf wireshark.html tshark.html \
81         wireshark-filter.html capinfos.html editcap.html \
82         idl2wrs.html mergecap.html text2pcap.html dumpcap.html \
83         cfilters colorfilters dfilters
84
85 #
86 # Install the Diameter DTD and XML files in the "diameter" subdirectory
87 # of that directory.
88 #
89 diameterdir = $(pkgdatadir)/diameter
90 diameter_DATA = \
91         diameter/chargecontrol.xml \
92         diameter/dictionary.dtd \
93         diameter/dictionary.xml \
94         diameter/imscxdx.xml \
95         diameter/mobileipv4.xml \
96         diameter/nasreq.xml \
97         diameter/sip.xml \
98         diameter/sunping.xml \
99         diameter/TGPPSh.xml
100
101 #
102 # Install the DTDs directory files in the "dtds" subdirectory
103 # of that directory
104 #
105 dtdsdir = $(pkgdatadir)/dtds
106 dtds_DATA = \
107         dtds/dc.dtd \
108         dtds/itunes.dtd \
109         dtds/mscml.dtd \
110         dtds/pocsettings.dtd \
111         dtds/presence.dtd \
112         dtds/reginfo.dtd \
113         dtds/rlmi.dtd \
114         dtds/rss.dtd \
115         dtds/smil.dtd \
116         dtds/xcap-caps.dtd \
117         dtds/watcherinfo.dtd
118 #
119 # Install the RADIUS directory files in the "radius" subdirectory
120 # of that directory.
121 #
122 radiusdir = $(pkgdatadir)/radius
123 radius_DATA = \
124         radius/dictionary  \
125         radius/dictionary.3com  \
126         radius/dictionary.3gpp  \
127         radius/dictionary.3gpp2  \
128         radius/dictionary.acc  \
129         radius/dictionary.alcatel  \
130         radius/dictionary.alteon  \
131         radius/dictionary.altiga  \
132         radius/dictionary.aptis  \
133         radius/dictionary.ascend  \
134         radius/dictionary.bay  \
135         radius/dictionary.bintec  \
136         radius/dictionary.bristol  \
137         radius/dictionary.cablelabs  \
138         radius/dictionary.cabletron  \
139         radius/dictionary.cisco  \
140         radius/dictionary.cisco.bbsm  \
141         radius/dictionary.cisco.vpn3000  \
142         radius/dictionary.cisco.vpn5000  \
143         radius/dictionary.colubris  \
144         radius/dictionary.columbia_university  \
145         radius/dictionary.compat  \
146         radius/dictionary.cosine  \
147         radius/dictionary.ericsson  \
148         radius/dictionary.erx  \
149         radius/dictionary.extreme  \
150         radius/dictionary.foundry  \
151         radius/dictionary.freeradius  \
152         radius/dictionary.gandalf  \
153         radius/dictionary.garderos  \
154         radius/dictionary.gemtek  \
155         radius/dictionary.itk  \
156         radius/dictionary.juniper  \
157         radius/dictionary.karlnet  \
158         radius/dictionary.livingston  \
159         radius/dictionary.localweb  \
160         radius/dictionary.merit  \
161         radius/dictionary.microsoft  \
162         radius/dictionary.mikrotik  \
163         radius/dictionary.navini  \
164         radius/dictionary.netscreen  \
165         radius/dictionary.nokia  \
166         radius/dictionary.nomadix  \
167         radius/dictionary.propel  \
168         radius/dictionary.quintum  \
169         radius/dictionary.redback  \
170         radius/dictionary.redcreek  \
171         radius/dictionary.shasta  \
172         radius/dictionary.shiva  \
173         radius/dictionary.sonicwall  \
174         radius/dictionary.springtide  \
175         radius/dictionary.t_systems_nova  \
176         radius/dictionary.telebit  \
177         radius/dictionary.trapeze  \
178         radius/dictionary.tunnel  \
179         radius/dictionary.unisphere  \
180         radius/dictionary.unix  \
181         radius/dictionary.usr  \
182         radius/dictionary.valemount  \
183         radius/dictionary.versanet  \
184         radius/dictionary.wispr  \
185         radius/dictionary.xedia
186
187 PLATFORM_SRC = capture-pcap-util-unix.c
188
189 include Makefile.common
190
191 if HAVE_PLUGINS
192
193 plugin_libs = \
194         plugins/agentx/agentx.la \
195         plugins/artnet/artnet.la \
196         plugins/asn1/asn1.la \
197         plugins/ciscosm/ciscosm.la \
198         plugins/docsis/docsis.la \
199         plugins/enttec/enttec.la \
200         plugins/giop/cosnaming.la \
201         plugins/giop/coseventcomm.la \
202         plugins/gryphon/gryphon.la \
203         plugins/irda/irda.la \
204         plugins/lwres/lwres.la \
205         plugins/mate/mate.la \
206         plugins/megaco/megaco.la \
207         plugins/mgcp/mgcp.la \
208         plugins/opsi/opsi.la \
209         plugins/pcli/pcli.la \
210         plugins/profinet/profinet.la \
211         plugins/rlm/rlm.la \
212         plugins/rtnet/rtnet.la \
213         plugins/rudp/rudp.la \
214         plugins/sbus/sbus.la \
215         plugins/stats_tree/stats_tree.la \
216         plugins/v5ua/v5ua.la
217
218 if ENABLE_STATIC
219 plugin_ldadd = $(plugin_libs)
220
221 else            # ENABLE_STATIC
222
223 plugin_ldadd = \
224         "-dlopen" self  \
225         "-dlopen" plugins/agentx/agentx.la \
226         "-dlopen" plugins/artnet/artnet.la \
227         "-dlopen" plugins/asn1/asn1.la \
228         "-dlopen" plugins/ciscosm/ciscosm.la \
229         "-dlopen" plugins/docsis/docsis.la \
230         "-dlopen" plugins/enttec/enttec.la \
231         "-dlopen" plugins/giop/cosnaming.la \
232         "-dlopen" plugins/giop/coseventcomm.la \
233         "-dlopen" plugins/gryphon/gryphon.la \
234         "-dlopen" plugins/h223/h223.la \
235         "-dlopen" plugins/irda/irda.la \
236         "-dlopen" plugins/lwres/lwres.la \
237         "-dlopen" plugins/mate/mate.la \
238         "-dlopen" plugins/megaco/megaco.la \
239         "-dlopen" plugins/mgcp/mgcp.la \
240         "-dlopen" plugins/opsi/opsi.la \
241         "-dlopen" plugins/pcli/pcli.la \
242         "-dlopen" plugins/profinet/profinet.la \
243         "-dlopen" plugins/rlm/rlm.la \
244         "-dlopen" plugins/rtnet/rtnet.la \
245         "-dlopen" plugins/rudp/rudp.la \
246         "-dlopen" plugins/sbus/sbus.la \
247         "-dlopen" plugins/stats_tree/stats_tree.la \
248         "-dlopen" plugins/v5ua/v5ua.la
249
250 endif           # ENABLE_STATIC
251
252 else            # HAVE_PLUGINS
253 plugin_libs =
254
255 plugin_ldadd =
256 endif           # HAVE_PLUGINS
257
258 # Optional objects that I know how to build. These will be
259 # linked into the wireshark executable.
260 # They will also be linked into the tshark executable; if this
261 # list ever grows to include something that can't be linked with
262 # tshark, or if tshark needs something that wireshark doesn't,
263 # we should probably split this into stuff needed both
264 # by wireshark and tshark and stuff needed only by one or the
265 # other.
266 wireshark_optional_objects = @GETOPT_O@ @STRERROR_O@ \
267         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
268
269 # Additional libs that I know how to build. These will be
270 # linked into the wireshark executable.
271 wireshark_additional_libs = \
272         gtk/libui.a             \
273         codecs/libcodec.a       \
274         wiretap/libwiretap.la   \
275         epan/libwireshark.la
276
277 # This is the automake dependency variable for the executable
278 wireshark_DEPENDENCIES = \
279         $(wireshark_optional_objects)   \
280         $(wireshark_additional_libs)    \
281         $(plugin_libs)
282
283 # This automake variable adds to the link-line for the executable.
284 #
285 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
286 # they are included in @GTK_LIBS@, and doesn't have to be linked with
287 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
288 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
289 # applications are X applications).
290
291 if ENABLE_STATIC
292 wireshark_LDFLAGS = -Wl,-static -all-static
293 else
294 wireshark_LDFLAGS = -export-dynamic
295 endif
296
297 wireshark_LDADD = \
298         $(wireshark_optional_objects)   \
299         $(wireshark_additional_libs)    \
300         @SNMP_LIBS@ @SSL_LIBS@          \
301         $(plugin_ldadd)                 \
302         @PCRE_LIBS@                     \
303         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@ \
304         @LIBICONV@                      \
305         @LIBGCRYPT_LIBS@                \
306         @LIBGNUTLS_LIBS@                \
307         @PORTAUDIO_LIBS@
308
309 # Additional libs that I know how to build. These will be
310 # linked into the tshark executable.
311 tshark_additional_libs =                \
312         wiretap/libwiretap.la           \
313         epan/libwireshark.la
314
315 # This is the automake dependency variable for the executable
316 tshark_DEPENDENCIES = \
317         $(wireshark_optional_objects)   \
318         $(tshark_additional_libs)       \
319         $(plugin_libs)
320
321 # This automake variable adds to the link-line for the executable
322 tshark_LDADD = \
323         $(wireshark_optional_objects)   \
324         $(tshark_additional_libs)       \
325         @SNMP_LIBS@ @SSL_LIBS@          \
326         $(plugin_ldadd)                 \
327         @PCRE_LIBS@                     \
328         @GLIB_LIBS@ -lm                 \
329         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
330         @LIBICONV@                      \
331         @LIBGCRYPT_LIBS@                \
332         @LIBGNUTLS_LIBS@
333
334 if ENABLE_STATIC
335 tshark_LDFLAGS = -Wl,-static -all-static
336 else
337 tshark_LDFLAGS = -export-dynamic
338 endif
339
340 # Optional objects that I know how to build, and that are needed by
341 # text2pcap.
342 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
343
344 text2pcap_DEPENDENCIES = text2pcap.h
345
346 # This automake variable adds to the link-line for the executable
347 text2pcap_LDADD = $(text2pcap_optional_objects) \
348         @GLIB_LIBS@ -lm
349
350 mergecap_DEPENDENCIES = wiretap/libwiretap.la
351
352 # This is the automake dependency variable for the executable
353 capinfos_DEPENDENCIES = wiretap/libwiretap.la
354 editcap_DEPENDENCIES = wiretap/libwiretap.la
355
356 # This automake variable adds to the link-line for the executable
357 capinfos_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
358 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
359 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
360
361 # Common headers
362 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
363         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS)
364
365 #
366 # Build the version string
367 #
368 # FORCE is the portable version of .PHONY
369 FORCE:
370
371 svnversion.h: FORCE
372         $(PERL) $(srcdir)/make-version.pl $(srcdir)
373
374 #
375 # Build the short version of the authors file for the about dialog
376 #
377 AUTHORS-SHORT: AUTHORS make-authors-short.pl
378         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
379
380 #
381 # Build the short version of the authors file with formatting codes for the
382 # man page
383 #
384 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
385         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
386
387 #
388 # Build shell scripts by doing variable substitution.
389 # Taken from autoconf 2.13.
390 #
391 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
392
393 SUFFIXES = .sh
394 .sh:
395         rm -f $@ $@.tmp
396         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
397
398 #
399 # Build "tshark-tap-register.c", which contains a function
400 # "register_all_tap_listeners()"
401 # that calls the register routines for all tshark tap listeners.
402 #
403 # We do this by grepping through sources.
404 #
405 # Formatting conventions:  The name of the tap_listener_register_*
406 # routines must start in column zero, or must be preceded only by
407 # "void " starting in column zero, and must not be inside #if.
408 #
409 # The first argument is the directory in which the source files live.
410 # All subsequent arguments are the files to scan.
411 #
412 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
413         @echo Making tshark-tap-register.c
414         @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
415
416 ps.c: print.ps rdps
417         ./rdps $(srcdir)/print.ps ps.c
418
419 rdps: rdps.c
420         $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o rdps $(srcdir)/rdps.c
421
422 randpkt_additional_libs = wiretap/libwiretap.la
423
424 randpkt_DEPENDENCIES = \
425         $(randpkt_additional_libs)
426
427 randpkt_LDADD = \
428         $(randpkt_additional_libs) \
429         @GLIB_LIBS@ -lm                 \
430         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
431
432 dftest_additional_libs =                \
433         wiretap/libwiretap.la           \
434         epan/libwireshark.la
435
436 dftest_DEPENDENCIES = \
437         $(wireshark_optional_objects)   \
438         $(dftest_additional_libs)       \
439         $(plugin_libs)
440
441 # This automake variable adds to the link-line for the executable
442 dftest_LDADD = \
443         $(wireshark_optional_objects)   \
444         $(dftest_additional_libs)       \
445         @SNMP_LIBS@ @SSL_LIBS@          \
446         $(plugin_ldadd)                 \
447         @PCRE_LIBS@                     \
448         @GLIB_LIBS@ -lm                 \
449         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
450         @LIBICONV@                      \
451         @LIBGCRYPT_LIBS@                \
452         @LIBGNUTLS_LIBS@
453
454 dftest_LDFLAGS = -export-dynamic
455
456 dumpcap_additional_libs = \
457         wiretap/libwiretap.la
458
459 dumpcap_DEPENDENCIES = \
460         $(dumpcap_additional_libs)
461
462 dumpcap_LDADD = \
463         $(dumpcap_additional_libs)      \
464         @GLIB_LIBS@                     \
465         @LIBGCRYPT_LIBS@                \
466         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
467
468 #
469 # XXX - "svnversion.h" is distributed in the release tarball; should
470 # we be deleting it with "make clean", or should we only do that with
471 # "make maintainer-clean"?
472 #
473 CLEANFILES =            \
474         svnversion.h    \
475         @rdps_bin@      \
476         idl2wrs         \
477         *~              \
478         vgcore.pid*
479
480 #
481 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
482 # list of files removed by "make distclean"?  (It's deliberately
483 # included in that list.)
484 #
485 DISTCLEANFILES = \
486         AUTHORS-SHORT           \
487         AUTHORS-SHORT-FORMAT    \
488         ps.c
489
490 MAINTAINERCLEANFILES =          \
491         $(GENERATED_FILES)      \
492         Makefile.in             \
493         aclocal.m4              \
494         config.h.in             \
495         configure               \
496         depcomp                 \
497         install-sh              \
498         ltmain.sh               \
499         missing
500
501 EXTRA_DIST = \
502         FAQ                     \
503         INSTALL.configure       \
504         Makefile.common         \
505         Makefile.nmake          \
506         README.aix              \
507         README.bsd              \
508         README.hpux             \
509         README.irix             \
510         README.linux            \
511         README.macos            \
512         README.tru64            \
513         README.vmware           \
514         README.win32            \
515         aclocal-fallback/glib-2.0.m4 \
516         aclocal-fallback/glib.m4 \
517         aclocal-fallback/gtk-2.0.m4 \
518         aclocal-fallback/gtk.m4 \
519         aclocal-fallback/iconv.m4 \
520         aclocal-flags           \
521         autogen.sh              \
522         capinfos.c              \
523         capture-wpcap.c         \
524         capture-wpcap.h         \
525         capture_wpcap_packet.c  \
526         capture_wpcap_packet.h  \
527         cfilters                \
528         colorfilters            \
529         config.h.win32          \
530         config.nmake            \
531         debian/README.debian    \
532         debian/changelog        \
533         debian/control          \
534         debian/copyright        \
535         debian/dirs             \
536         debian/docs             \
537         debian/menu             \
538         debian/postinst         \
539         debian/prerm            \
540         debian/rules            \
541         dfilters                \
542         doc/Makefile.am         \
543         doc/Makefile.nmake      \
544         doc/README.capture      \
545         doc/README.design       \
546         doc/README.developer    \
547         doc/README.idl2wrs      \
548         doc/README.malloc       \
549         doc/README.plugins      \
550         doc/README.regression   \
551         doc/README.stats_tree   \
552         doc/README.tapping      \
553         doc/README.xml-output   \
554         doc/capinfos.pod                \
555         doc/dfilter2pod.pl      \
556         doc/editcap.pod         \
557         doc/wireshark-filter.pod.template \
558         doc/wireshark.pod       \
559         doc/idl2wrs.pod         \
560         doc/mergecap.pod        \
561         doc/randpkt.txt         \
562         doc/tshark.pod  \
563         doc/text2pcap.pod       \
564         doc/dumpcap.pod \
565         docbook/Makefile.auto.am        \
566         doxygen.cfg.in          \
567         dumpcap.c       \
568         editcap.c               \
569         epan/libwireshark.def   \
570         wireshark.desktop       \
571         image/capinfos.rc.in    \
572         image/clist_ascend.xpm  \
573         image/clist_descend.xpm \
574         image/dn_arrow.xpm      \
575         image/dumpcap.rc.in     \
576         image/editcap.rc.in     \
577         image/hi16-app-wireshark.png    \
578         image/hi32-app-wireshark.png    \
579         image/hi48-app-wireshark.png    \
580         image/icon_layout_1.xpm \
581         image/icon_layout_2.xpm \
582         image/icon_layout_3.xpm \
583         image/icon_layout_4.xpm \
584         image/icon_layout_5.xpm \
585         image/icon_layout_6.xpm \
586         image/libwireshark.rc.in        \
587         image/lo16-app-wireshark.png    \
588         image/lo32-app-wireshark.png    \
589         image/lo48-app-wireshark.png    \
590         image/Makefile.nmake    \
591         image/mergecap.rc.in    \
592         image/nsis-checked.bmp  \
593         image/nsis-unchecked.bmp        \
594         image/README.image      \
595         image/stock_dialog_error_48.xpm \
596         image/stock_dialog_info_48.xpm  \
597         image/stock_dialog_question_48.xpm      \
598         image/stock_dialog_stop_48.xpm  \
599         image/stock_dialog_warning_48.xpm       \
600         image/text2pcap.rc.in   \
601         image/toolbar/autoscroll_24.xpm \
602         image/toolbar/capture_airpcap_16.xpm \
603         image/toolbar/capture_capture_16.xpm \
604         image/toolbar/capture_details_16.xpm \
605         image/toolbar/capture_details_24.xpm \
606         image/toolbar/capture_ethernet_16.xpm  \
607         image/toolbar/capture_filter_24.xpm     \
608         image/toolbar/capture_interfaces_24.xpm \
609         image/toolbar/capture_options_24.xpm    \
610         image/toolbar/capture_prepare_16.xpm \
611         image/toolbar/capture_restart_24.xpm    \
612         image/toolbar/capture_start_24.xpm      \
613         image/toolbar/capture_stop_24.xpm       \
614         image/toolbar/checkbox_16.xpm   \
615         image/toolbar/colorize_24.xpm   \
616         image/toolbar/conversations_16.xpm      \
617         image/toolbar/decode_as_16.xpm  \
618         image/toolbar/display_filter_24.xpm     \
619         image/toolbar/endpoints_16.xpm  \
620         image/toolbar/file_set_list_16.xpm      \
621         image/toolbar/file_set_next_16.xpm      \
622         image/toolbar/file_set_previous_16.xpm  \
623         image/toolbar/graphs_16.xpm     \
624         image/toolbar/internet_24.xpm   \
625         image/toolbar/resize_columns_24.xpm     \
626         image/toolbar/stock_add_24.xpm  \
627         image/toolbar/stock_bottom_24.xpm       \
628         image/toolbar/stock_clear_24.xpm        \
629         image/toolbar/stock_close_24.xpm        \
630         image/toolbar/stock_colorselector_24.xpm        \
631         image/toolbar/stock_help_24.xpm \
632         image/toolbar/stock_jump_to_24.xpm      \
633         image/toolbar/stock_left_arrow_24.xpm   \
634         image/toolbar/stock_ok_20.xpm   \
635         image/toolbar/stock_open_24.xpm \
636         image/toolbar/stock_preferences_24.xpm  \
637         image/toolbar/stock_print_24.xpm        \
638         image/toolbar/stock_properties_24.xpm   \
639         image/toolbar/stock_refresh_24.xpm      \
640         image/toolbar/stock_right_arrow_24.xpm  \
641         image/toolbar/stock_save_24.xpm \
642         image/toolbar/stock_save_as_24.xpm      \
643         image/toolbar/stock_search_24.xpm       \
644         image/toolbar/stock_stop_24.xpm \
645         image/toolbar/stock_top_24.xpm  \
646         image/toolbar/stock_zoom_1_24.xpm       \
647         image/toolbar/stock_zoom_in_24.xpm      \
648         image/toolbar/stock_zoom_out_24.xpm     \
649         image/toolbar/telephony_16.xpm  \
650         image/toolbar/time_24.xpm       \
651         image/toolbar/web_support_24.xpm        \
652         image/toolbar/wep_closed_24.xpm \
653         image/toolbar/wiki_24.xpm       \
654         image/tshark.rc.in      \
655         image/up_arrow.xpm      \
656         image/win32-file-dlg.rc \
657         image/wiresharkdoc.ico  \
658         image/wireshark.exe.manifest.in \
659         image/wireshark.ico     \
660         image/wireshark.rc.in   \
661         image/wiretap.rc.in     \
662         image/wsicon.svg        \
663         image/wsicon16.png      \
664         image/wsicon16.xpm      \
665         image/wsicon256.png     \
666         image/wsicon32.png      \
667         image/wsicon32.xpm      \
668         image/wsicon48.png      \
669         image/wsicon48.xpm      \
670         image/wsicon64.png      \
671         image/wsicon64.xpm      \
672         image/wsiconcap.svg     \
673         image/wsiconcap16.xpm   \
674         image/wsiconcap256.png  \
675         image/wsiconcap32.xpm   \
676         image/wsiconcap48.xpm   \
677         image/wsicondoc.svg     \
678         image/wsicondoc256.png  \
679         image/wslogo.eps        \
680         image/wslogo.svg        \
681         image/wssplash.xpm      \
682         make-authors-format.pl  \
683         make-authors-short.pl   \
684         make-manuf              \
685         make-tapreg-dotc        \
686         make-version.pl         \
687         manuf                   \
688         manuf.tmpl              \
689         mergecap.c              \
690         perlnoutf.pl            \
691         print.ps                \
692         $(diameter_DATA)        \
693         $(dtds_DATA)            \
694         $(radius_DATA)          \
695         randpkt.c               \
696         rdps.c                  \
697         text2pcap-scanner.l     \
698         text2pcap.c             \
699         text2pcap.h             \
700         packaging/u3/win32/README.txt           \
701         packaging/u3/win32/makefile.nmake       \
702         packaging/u3/win32/manifest.tmpl        \
703         packaging/u3/win32/u3util.c             \
704         tools/idl2wrs.sh.in                     \
705         wka.tmpl
706
707 if SETUID_INSTALL
708 install-exec-hook:
709         -chmod +s $(DESTDIR)$(bindir)/dumpcap
710         -chmod +s $(DESTDIR)$(bindir)/tshark
711 else
712 install-exec-hook:
713 endif
714
715 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap
716
717 if HAVE_PLUGINS
718 SUBDIRS = tools wiretap doc epan plugins packaging help @wireshark_SUBDIRS@
719 else
720 SUBDIRS = tools wiretap doc epan packaging help @wireshark_SUBDIRS@
721 endif
722
723 wireshark.1: doc/wireshark.pod AUTHORS-SHORT-FORMAT
724         (cd doc ; \
725         $(MAKE) ../wireshark.1 )
726
727 tshark.1: doc/tshark.pod
728         (cd doc ; \
729         $(MAKE) ../tshark.1 )
730
731 wireshark-filter.4: tshark doc/wireshark-filter.pod.template
732         (cd doc ; \
733         $(MAKE) ../wireshark-filter.4 )
734
735 capinfos.1: doc/capinfos.pod
736         (cd doc ; \
737         $(MAKE) ../capinfos.1 )
738
739 editcap.1: doc/editcap.pod
740         (cd doc ; \
741         $(MAKE) ../editcap.1 )
742
743 idl2wrs.1: doc/idl2wrs.pod
744         (cd doc ; \
745         $(MAKE) ../idl2wrs.1 )
746
747 mergecap.1: doc/mergecap.pod
748         (cd doc ; \
749         $(MAKE) ../mergecap.1 )
750
751 text2pcap.1: doc/text2pcap.pod
752         (cd doc ; \
753         $(MAKE) ../text2pcap.1 )
754
755 dumpcap.1: doc/dumpcap.pod
756         (cd doc ; \
757         $(MAKE) ../dumpcap.1 )
758
759 wireshark.html: doc/wireshark.pod AUTHORS-SHORT-FORMAT
760         (cd doc ; \
761         $(MAKE) ../wireshark.html )
762
763 tshark.html: doc/tshark.pod
764         (cd doc ; \
765         $(MAKE) ../tshark.html )
766
767 wireshark-filter.html: tshark doc/wireshark-filter.pod.template
768         (cd doc ; \
769         $(MAKE) ../wireshark-filter.html )
770
771 capinfos.html: doc/capinfos.pod
772         (cd doc ; \
773         $(MAKE) ../capinfos.html )
774
775 editcap.html: doc/editcap.pod
776         (cd doc ; \
777         $(MAKE) ../editcap.html )
778
779 idl2wrs.html: doc/idl2wrs.pod
780         (cd doc ; \
781         $(MAKE) ../idl2wrs.html )
782
783 mergecap.html: doc/mergecap.pod
784         (cd doc ; \
785         $(MAKE) ../mergecap.html )
786
787 text2pcap.html: doc/text2pcap.pod
788         (cd doc ; \
789         $(MAKE) ../text2pcap.html )
790
791 dumpcap.html: doc/dumpcap.pod
792         (cd doc ; \
793         $(MAKE) ../dumpcap.html )
794
795 libtool: $(LIBTOOL_DEPS)
796         $(SHELL) ./config.status --recheck
797
798 # We load top_stagedir with an explicit path so that libtool doesn't freak.
799 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
800 stagedir=$(top_stagedir)/$(PACKAGE).stage
801 host_cpu=@host_cpu@
802 host_os=@host_os@
803
804 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
805         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
806                 rm -rf $(stagedir) ; \
807                 $(MAKE) DESTDIR=$(stagedir) install; \
808                 $(srcdir)/packaging/svr4/mkpkg \
809                         $(PACKAGE) \
810                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
811                         $(prefix) \
812                         $(top_stagedir) ; \
813         else \
814                 echo "Error: SVR4 packaging tools not found." ; \
815                 echo "Package build abandoned." ; \
816         fi
817
818 solaris-package: svr4-package
819
820 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
821 rpm-package: dist
822         if test x$(HAVE_RPM) = xyes ; then \
823                 cd $(rpm_topdir) ; \
824                 mkdir -p BUILD RPMS SOURCES ; \
825                 cd SOURCES ; \
826                 ln -s ../../../$(distdir).tar.gz ; \
827                 ln -s ../../../wireshark.desktop ; \
828                 ln -s ../../../image/wsicon64.png wireshark.png ; \
829                 cd .. ; \
830                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
831                         echo "Package successfully built in `pwd`/RPMS." ; \
832         else \
833                 echo "Error: RPM executable and/or source directory not found." ; \
834         fi
835 srpm-package: dist
836         if test x$(HAVE_RPM) = xyes ; then \
837                 cd $(rpm_topdir) ; \
838                 mkdir -p BUILD SRPMS SOURCES ; \
839                 cd SOURCES ; \
840                 ln -s ../../../$(distdir).tar.gz ; \
841                 ln -s ../../../wireshark.desktop ; \
842                 ln -s ../../../image/wsicon64.png wireshark.png ; \
843                 cd .. ; \
844                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
845                         echo "Package successfully built in `pwd`/SRPMS." ; \
846         else \
847                 echo "Error: RPM executable and/or source directory not found." ; \
848         fi
849
850 debian-package: debian/rules
851         dpkg-buildpackage -rfakeroot -us -uc
852
853 clean-local:
854         rm -rf $(top_stagedir)
855