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