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