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