22f73d24177b2a2a643c4bc28a800de90aee9485
[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 tpncp directory files in the "tpncp" subdirectory
214 # of that directory
215 #
216 tpncpdir = $(pkgdatadir)/tpncp
217 tpncp_DATA = \
218         tpncp/tpncp.dat
219
220
221 #
222 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
223 # of that directory
224 #
225 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
226 wimaxasncp_DATA = \
227         wimaxasncp/dictionary.xml \
228         wimaxasncp/dictionary.dtd
229
230 PLATFORM_SRC = capture-pcap-util-unix.c
231
232 if HAVE_PLUGINS
233
234 plugin_ldadd = \
235         -dlopen plugins/agentx/agentx.la \
236         -dlopen plugins/artnet/artnet.la \
237         -dlopen plugins/asn1/asn1.la \
238         -dlopen plugins/ciscosm/ciscosm.la \
239         -dlopen plugins/docsis/docsis.la \
240         -dlopen plugins/enttec/enttec.la \
241         -dlopen plugins/ethercat/ethercat.la \
242         -dlopen plugins/giop/cosnaming.la \
243         -dlopen plugins/giop/coseventcomm.la \
244         -dlopen plugins/gryphon/gryphon.la \
245         -dlopen plugins/irda/irda.la \
246         -dlopen plugins/lwres/lwres.la \
247         -dlopen plugins/m2m/m2m.la \
248         -dlopen plugins/mate/mate.la \
249         -dlopen plugins/opcua/opcua.la \
250         -dlopen plugins/opsi/opsi.la \
251         -dlopen plugins/pcli/pcli.la \
252         -dlopen plugins/profinet/profinet.la \
253         -dlopen plugins/rlm/rlm.la \
254         -dlopen plugins/rtnet/rtnet.la \
255         -dlopen plugins/rudp/rudp.la \
256         -dlopen plugins/sbus/sbus.la \
257         -dlopen plugins/stats_tree/stats_tree.la \
258         -dlopen plugins/unistim/unistim.la \
259         -dlopen plugins/v5ua/v5ua.la \
260         -dlopen plugins/wimax/wimax.la
261
262 WTAP_PLUGIN_SOURCES = \
263        epan/plugins.c \
264        epan/report_err.c \
265        epan/privileges.c \
266        epan/filesystem.c
267
268 else            # HAVE_PLUGINS
269
270 plugin_ldadd =
271 WTAP_PLUGIN_SOURCES = 
272
273 endif           # HAVE_PLUGINS
274
275 include Makefile.common
276
277 # Optional objects that I know how to build. These will be
278 # linked into the wireshark executable.
279 # They will also be linked into the tshark executable; if this
280 # list ever grows to include something that can't be linked with
281 # tshark, or if tshark needs something that wireshark doesn't,
282 # we should probably split this into stuff needed both
283 # by wireshark and tshark and stuff needed only by one or the
284 # other.
285 wireshark_optional_objects = @GETOPT_O@ @STRERROR_O@ \
286         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
287
288 if ENABLE_STATIC
289 wireshark_LDFLAGS = -Wl,-static -all-static
290 else
291 wireshark_LDFLAGS = -export-dynamic
292 endif
293
294 # Libraries and plugin flags with which to link wireshark.
295 #
296 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
297 # they are included in @GTK_LIBS@, and doesn't have to be linked with
298 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
299 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
300 # applications are X applications).
301 wireshark_LDADD = \
302         $(wireshark_optional_objects)   \
303         gtk/libui.a                     \
304         codecs/libcodec.a               \
305         wiretap/libwiretap.la           \
306         epan/libwireshark.la            \
307         @INET_PTON_LO@                  \
308         @SSL_LIBS@                      \
309         $(plugin_ldadd)                 \
310         @PCRE_LIBS@                     \
311         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@ \
312         @LIBICONV@                      \
313         @LIBGCRYPT_LIBS@                \
314         @LIBGNUTLS_LIBS@                \
315         @PORTAUDIO_LIBS@
316
317 if ENABLE_STATIC
318 tshark_LDFLAGS = -Wl,-static -all-static
319 else
320 tshark_LDFLAGS = -export-dynamic
321 endif
322
323 # Libraries and plugin flags with which to link tshark.
324 tshark_LDADD = \
325         $(wireshark_optional_objects)   \
326         wiretap/libwiretap.la           \
327         epan/libwireshark.la            \
328         @INET_PTON_LO@                  \
329         @SSL_LIBS@                      \
330         $(plugin_ldadd)                 \
331         @PCRE_LIBS@                     \
332         @GLIB_LIBS@ -lm                 \
333         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@    \
334         @FRAMEWORKS@                    \
335         @LIBICONV@                      \
336         @LIBGCRYPT_LIBS@                \
337         @LIBGNUTLS_LIBS@
338
339 # Optional objects that I know how to build, and that are needed by
340 # text2pcap.
341 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
342
343 # Libraries with which to link text2pcap.
344 text2pcap_LDADD = \
345         $(text2pcap_optional_objects)   \
346         wiretap/libwiretap.la           \
347         @GLIB_LIBS@ -lm
348
349 # Libraries with which to link mergecap.
350 mergecap_LDADD = \
351         wiretap/libwiretap.la           \
352         @GLIB_LIBS@
353
354 # Libraries with which to link capinfos.
355 capinfos_LDADD = \
356         wiretap/libwiretap.la           \
357         @GLIB_LIBS@
358
359 # Libraries with which to link editcap.
360 editcap_LDADD = \
361         wiretap/libwiretap.la           \
362         @GLIB_LIBS@
363
364 # Libraries with which to link randpkt.
365 randpkt_LDADD = \
366         wiretap/libwiretap.la           \
367         @GLIB_LIBS@ -lm                 \
368         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
369
370 # Libraries and plugin flags with which to link dftest.
371 dftest_LDADD = \
372         $(wireshark_optional_objects)   \
373         wiretap/libwiretap.la           \
374         epan/libwireshark.la            \
375         @SSL_LIBS@                      \
376         $(plugin_ldadd)                 \
377         @PCRE_LIBS@                     \
378         @GLIB_LIBS@ -lm                 \
379         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
380         @LIBICONV@                      \
381         @LIBGCRYPT_LIBS@                \
382         @LIBGNUTLS_LIBS@
383
384 # Libraries with which to link dumpcap.
385 dumpcap_LDADD = \
386         wiretap/libwiretap.la           \
387         @INET_NTOP_LO@                  \
388         @GLIB_LIBS@                     \
389         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @FRAMEWORKS@ \
390         @LIBGCRYPT_LIBS@
391
392 # Common headers
393 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
394         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS)
395
396 #
397 # Build the version string
398 #
399 # FORCE is the portable version of .PHONY
400 FORCE:
401
402 svnversion.h: FORCE
403         $(PERL) $(srcdir)/make-version.pl $(srcdir)
404
405 #
406 # Build the short version of the authors file for the about dialog
407 #
408 AUTHORS-SHORT: AUTHORS make-authors-short.pl
409         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
410
411 #
412 # Build the short version of the authors file with formatting codes for the
413 # man page
414 #
415 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
416         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
417
418 #
419 # Build shell scripts by doing variable substitution.
420 # Taken from autoconf 2.13.
421 #
422 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
423
424 SUFFIXES = .sh
425 .sh:
426         rm -f $@ $@.tmp
427         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
428
429 #
430 # Build "tshark-tap-register.c", which contains a function
431 # "register_all_tap_listeners()"
432 # that calls the register routines for all tshark tap listeners.
433 #
434 # We do this by grepping through sources.
435 #
436 # Formatting conventions:  The name of the tap_listener_register_*
437 # routines must start in column zero, or must be preceded only by
438 # "void " starting in column zero, and must not be inside #if.
439 #
440 # The first argument is the directory in which the source files live.
441 # All subsequent arguments are the files to scan.
442 #
443 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
444         @echo Making tshark-tap-register.c
445         @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
446
447 ps.c: print.ps rdps
448         ./rdps $(srcdir)/print.ps ps.c
449
450 rdps: rdps.c
451         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
452
453 #
454 # XXX - "svnversion.h" is distributed in the release tarball; should
455 # we be deleting it with "make clean", or should we only do that with
456 # "make maintainer-clean"?
457 #
458 CLEANFILES =            \
459         svnversion.h    \
460         @rdps_bin@      \
461         idl2wrs         \
462         *~              \
463         vgcore.pid*
464
465 #
466 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
467 # list of files removed by "make distclean"?  (It's deliberately
468 # included in that list.)
469 #
470 DISTCLEANFILES = \
471         AUTHORS-SHORT           \
472         AUTHORS-SHORT-FORMAT    \
473         ps.c
474
475 MAINTAINERCLEANFILES =          \
476         $(GENERATED_FILES)      \
477         Makefile.in             \
478         aclocal.m4              \
479         config.h.in             \
480         configure               \
481         depcomp                 \
482         install-sh              \
483         ltmain.sh               \
484         missing
485
486 EXTRA_DIST = \
487         FAQ                     \
488         INSTALL.configure       \
489         Makefile.am.inc         \
490         Makefile.common         \
491         Makefile.nmake          \
492         Makefile.nmake.inc      \
493         README.aix              \
494         README.bsd              \
495         README.hpux             \
496         README.irix             \
497         README.linux            \
498         README.macos            \
499         README.tru64            \
500         README.vmware           \
501         README.win32            \
502         aclocal-fallback/glib-2.0.m4 \
503         aclocal-fallback/glib.m4 \
504         aclocal-fallback/gtk-2.0.m4 \
505         aclocal-fallback/gtk.m4 \
506         aclocal-fallback/iconv.m4 \
507         aclocal-flags           \
508         autogen.sh              \
509         capinfos.c              \
510         capture-wpcap.c         \
511         capture-wpcap.h         \
512         capture_wpcap_packet.c  \
513         capture_wpcap_packet.h  \
514         cfilters                \
515         colorfilters            \
516         config.h.win32          \
517         config.nmake            \
518         debian/README.debian    \
519         debian/changelog        \
520         debian/control          \
521         debian/copyright        \
522         debian/dirs             \
523         debian/docs             \
524         debian/menu             \
525         debian/postinst         \
526         debian/prerm            \
527         debian/rules            \
528         dfilters                \
529         doc/Makefile.am         \
530         doc/Makefile.nmake      \
531         doc/README.binarytrees  \
532         doc/README.capture      \
533         doc/README.design       \
534         doc/README.developer    \
535         doc/README.display_filter       \
536         doc/README.idl2wrs      \
537         doc/README.malloc       \
538         doc/README.packaging    \
539         doc/README.plugins      \
540         doc/README.regression   \
541         doc/README.request_response_tracking    \
542         doc/README.stats_tree   \
543         doc/README.tapping      \
544         doc/README.xml-output   \
545         doc/capinfos.pod                \
546         doc/dfilter2pod.pl      \
547         doc/dumpcap.pod         \
548         doc/editcap.pod         \
549         doc/eproto2sgml         \
550         doc/idl2wrs.pod         \
551         doc/mergecap.pod        \
552         doc/randpkt.txt         \
553         doc/sgml.doc.template   \
554         doc/text2pcap.pod       \
555         doc/tshark.pod          \
556         doc/wireshark-filter.pod.template \
557         doc/wireshark.pod       \
558         docbook/Makefile.auto.am        \
559         doxygen.cfg.in          \
560         dumpcap.c       \
561         editcap.c               \
562         epan/libwireshark.def   \
563         example_snmp_users_file \
564         wireshark.desktop       \
565         image/capinfos.rc.in    \
566         image/clist_ascend.xpm  \
567         image/clist_descend.xpm \
568         image/dn_arrow.xpm      \
569         image/dumpcap.rc.in     \
570         image/editcap.rc.in     \
571         image/hi16-app-wireshark.png    \
572         image/hi32-app-wireshark.png    \
573         image/hi48-app-wireshark.png    \
574         image/icon_layout_1.xpm \
575         image/icon_layout_2.xpm \
576         image/icon_layout_3.xpm \
577         image/icon_layout_4.xpm \
578         image/icon_layout_5.xpm \
579         image/icon_layout_6.xpm \
580         image/libwireshark.rc.in        \
581         image/lo16-app-wireshark.png    \
582         image/lo32-app-wireshark.png    \
583         image/lo48-app-wireshark.png    \
584         image/Makefile.nmake    \
585         image/mergecap.rc.in    \
586         image/nsis-checked.bmp  \
587         image/nsis-unchecked.bmp        \
588         image/README.image      \
589         image/stock_dialog_error_48.xpm \
590         image/stock_dialog_info_48.xpm  \
591         image/stock_dialog_question_48.xpm      \
592         image/stock_dialog_stop_48.xpm  \
593         image/stock_dialog_warning_48.xpm       \
594         image/text2pcap.rc.in   \
595         image/toolbar/autoscroll_24.xpm \
596         image/toolbar/capture_airpcap_16.xpm \
597         image/toolbar/capture_capture_16.xpm \
598         image/toolbar/capture_details_16.xpm \
599         image/toolbar/capture_details_24.xpm \
600         image/toolbar/capture_ethernet_16.xpm  \
601         image/toolbar/capture_filter_24.xpm     \
602         image/toolbar/capture_interfaces_24.xpm \
603         image/toolbar/capture_options_24.xpm    \
604         image/toolbar/capture_prepare_16.xpm \
605         image/toolbar/capture_restart_24.xpm    \
606         image/toolbar/capture_start_24.xpm      \
607         image/toolbar/capture_stop_24.xpm       \
608         image/toolbar/checkbox_16.xpm   \
609         image/toolbar/colorize_24.xpm   \
610         image/toolbar/conversations_16.xpm      \
611         image/toolbar/decode_as_16.xpm  \
612         image/toolbar/display_filter_24.xpm     \
613         image/toolbar/endpoints_16.xpm  \
614         image/toolbar/file_set_list_16.xpm      \
615         image/toolbar/file_set_next_16.xpm      \
616         image/toolbar/file_set_previous_16.xpm  \
617         image/toolbar/graphs_16.xpm     \
618         image/toolbar/internet_24.xpm   \
619         image/toolbar/resize_columns_24.xpm     \
620         image/toolbar/stock_add_24.xpm  \
621         image/toolbar/stock_bottom_24.xpm       \
622         image/toolbar/stock_clear_24.xpm        \
623         image/toolbar/stock_close_24.xpm        \
624         image/toolbar/stock_colorselector_24.xpm        \
625         image/toolbar/stock_help_24.xpm \
626         image/toolbar/stock_jump_to_24.xpm      \
627         image/toolbar/stock_left_arrow_24.xpm   \
628         image/toolbar/stock_ok_20.xpm   \
629         image/toolbar/stock_open_24.xpm \
630         image/toolbar/stock_preferences_24.xpm  \
631         image/toolbar/stock_print_24.xpm        \
632         image/toolbar/stock_properties_24.xpm   \
633         image/toolbar/stock_refresh_24.xpm      \
634         image/toolbar/stock_right_arrow_24.xpm  \
635         image/toolbar/stock_save_24.xpm \
636         image/toolbar/stock_save_as_24.xpm      \
637         image/toolbar/stock_search_24.xpm       \
638         image/toolbar/stock_stop_24.xpm \
639         image/toolbar/stock_top_24.xpm  \
640         image/toolbar/stock_zoom_1_24.xpm       \
641         image/toolbar/stock_zoom_in_24.xpm      \
642         image/toolbar/stock_zoom_out_24.xpm     \
643         image/toolbar/telephony_16.xpm  \
644         image/toolbar/time_24.xpm       \
645         image/toolbar/web_support_24.xpm        \
646         image/toolbar/wep_closed_24.xpm \
647         image/toolbar/wiki_24.xpm       \
648         image/tshark.rc.in      \
649         image/up_arrow.xpm      \
650         image/win32-file-dlg.rc \
651         image/wiresharkdoc.ico  \
652         image/wiresharkinst.ico \
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/wsicon256.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/wsiconcap256.png  \
670         image/wsiconcap32.xpm   \
671         image/wsiconcap48.xpm   \
672         image/wsicondoc.svg     \
673         image/wsicondoc256.png  \
674         image/wsiconinst.svg    \
675         image/wsiconinst256.png \
676         image/wslogo.eps        \
677         image/wslogo.svg        \
678         image/wssplash.xpm      \
679         make-authors-format.pl  \
680         make-authors-short.pl   \
681         make-manuf              \
682         make-tapreg-dotc        \
683         make-version.pl         \
684         manuf                   \
685         manuf.tmpl              \
686         mergecap.c              \
687         perlnoutf.pl            \
688         print.ps                \
689         $(diameter_DATA)        \
690         $(dtds_DATA)            \
691         $(radius_DATA)          \
692         $(tpncp_DATA)           \
693         $(wimaxasncp_DATA)              \
694         randpkt.c               \
695         rdps.c                  \
696         smi_modules \
697         text2pcap-scanner.l     \
698         text2pcap.c             \
699         text2pcap.h             \
700         packaging/u3/win32/README.txt           \
701         packaging/u3/win32/makefile.nmake       \
702         packaging/u3/win32/manifest.tmpl        \
703         packaging/u3/win32/u3util.c             \
704         services                        \
705         tools/idl2wrs.sh.in                     \
706         tools/setuid-root.pl.in                 \
707         wka.tmpl
708
709 if SETUID_INSTALL
710 install-exec-hook:
711         -chmod +s $(DESTDIR)$(bindir)/dumpcap
712         -chmod +s $(DESTDIR)$(bindir)/tshark
713 else
714 install-exec-hook:
715 endif
716
717 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap
718
719 if HAVE_PLUGINS
720 SUBDIRS = tools wiretap doc epan plugins packaging help @wireshark_SUBDIRS@
721 else
722 SUBDIRS = tools wiretap doc epan packaging help @wireshark_SUBDIRS@
723 endif
724
725 wireshark.1: doc/wireshark.pod AUTHORS-SHORT-FORMAT
726         (cd doc ; \
727         $(MAKE) ../wireshark.1 )
728
729 tshark.1: doc/tshark.pod
730         (cd doc ; \
731         $(MAKE) ../tshark.1 )
732
733 wireshark-filter.4: tshark doc/wireshark-filter.pod.template
734         (cd doc ; \
735         $(MAKE) ../wireshark-filter.4 )
736
737 capinfos.1: doc/capinfos.pod
738         (cd doc ; \
739         $(MAKE) ../capinfos.1 )
740
741 editcap.1: doc/editcap.pod
742         (cd doc ; \
743         $(MAKE) ../editcap.1 )
744
745 idl2wrs.1: doc/idl2wrs.pod
746         (cd doc ; \
747         $(MAKE) ../idl2wrs.1 )
748
749 mergecap.1: doc/mergecap.pod
750         (cd doc ; \
751         $(MAKE) ../mergecap.1 )
752
753 text2pcap.1: doc/text2pcap.pod
754         (cd doc ; \
755         $(MAKE) ../text2pcap.1 )
756
757 dumpcap.1: doc/dumpcap.pod
758         (cd doc ; \
759         $(MAKE) ../dumpcap.1 )
760
761 wireshark.html: doc/wireshark.pod AUTHORS-SHORT-FORMAT
762         (cd doc ; \
763         $(MAKE) ../wireshark.html )
764
765 tshark.html: doc/tshark.pod
766         (cd doc ; \
767         $(MAKE) ../tshark.html )
768
769 wireshark-filter.html: tshark doc/wireshark-filter.pod.template
770         (cd doc ; \
771         $(MAKE) ../wireshark-filter.html )
772
773 capinfos.html: doc/capinfos.pod
774         (cd doc ; \
775         $(MAKE) ../capinfos.html )
776
777 editcap.html: doc/editcap.pod
778         (cd doc ; \
779         $(MAKE) ../editcap.html )
780
781 idl2wrs.html: doc/idl2wrs.pod
782         (cd doc ; \
783         $(MAKE) ../idl2wrs.html )
784
785 mergecap.html: doc/mergecap.pod
786         (cd doc ; \
787         $(MAKE) ../mergecap.html )
788
789 text2pcap.html: doc/text2pcap.pod
790         (cd doc ; \
791         $(MAKE) ../text2pcap.html )
792
793 dumpcap.html: doc/dumpcap.pod
794         (cd doc ; \
795         $(MAKE) ../dumpcap.html )
796
797 libtool: $(LIBTOOL_DEPS)
798         $(SHELL) ./config.status --recheck
799
800 # We load top_stagedir with an explicit path so that libtool doesn't freak.
801 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
802 stagedir=$(top_stagedir)/$(PACKAGE).stage
803 host_cpu=@host_cpu@
804 host_os=@host_os@
805
806 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
807         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
808                 rm -rf $(stagedir) ; \
809                 $(MAKE) DESTDIR=$(stagedir) install; \
810                 $(srcdir)/packaging/svr4/mkpkg \
811                         $(PACKAGE) \
812                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
813                         $(prefix) \
814                         $(top_stagedir) ; \
815         else \
816                 echo "Error: SVR4 packaging tools not found." ; \
817                 echo "Package build abandoned." ; \
818         fi
819
820 solaris-package: svr4-package
821
822 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
823 rpm-package: dist
824         if test x$(HAVE_RPM) = xyes ; then \
825                 cd $(rpm_topdir) ; \
826                 mkdir -p BUILD RPMS SOURCES ; \
827                 cd SOURCES ; \
828                 ln -s ../../../$(distdir).tar.gz ; \
829                 ln -s ../../../wireshark.desktop ; \
830                 ln -s ../../../image/wsicon64.png wireshark.png ; \
831                 cd .. ; \
832                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
833                         echo "Package successfully built in `pwd`/RPMS." ; \
834         else \
835                 echo "Error: RPM executable and/or source directory not found." ; \
836         fi
837 srpm-package: dist
838         if test x$(HAVE_RPM) = xyes ; then \
839                 cd $(rpm_topdir) ; \
840                 mkdir -p BUILD SRPMS SOURCES ; \
841                 cd SOURCES ; \
842                 ln -s ../../../$(distdir).tar.gz ; \
843                 ln -s ../../../wireshark.desktop ; \
844                 ln -s ../../../image/wsicon64.png wireshark.png ; \
845                 cd .. ; \
846                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
847                         echo "Package successfully built in `pwd`/SRPMS." ; \
848         else \
849                 echo "Error: RPM executable and/or source directory not found." ; \
850         fi
851
852 debian-package: debian/rules
853         dpkg-buildpackage -rfakeroot -us -uc
854
855 clean-local:
856         rm -rf $(top_stagedir)
857