- Make sure that the registration files are created whenever there's a change
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Wireshark
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
25
26 #
27 # This is a hideous hack.
28 #
29 # Automake needs to know into which sections to install various man
30 # pages; if the names in "man_MANS" have suffixes, it can infer the
31 # sections from the name (e.g., "hello.1" goes in section 1), but if
32 # they don't have suffixes, it can't tell what sections to put them, and
33 # it just gives up and doesn't create any rules to install them (and it
34 # gives up silently, so you have no clue what's wrong).
35 #
36 # Therefore, we can't just set "man_MANS" to a list of variables to be
37 # filled in by the configure script, as those variables don't have man
38 # page section numbers.
39 #
40 # It turns out (although this is not documented anywhere I could find
41 # in the automake Info file) that if you define, instead, variables with
42 # names like "man{section}_MANS", automake will infer that the names in
43 # those variables are the names of man pages to be installed in section
44 # "{section}".
45 #
46 # So, as all our man pages go in section 1, we define "man1_MANS" to
47 # contain all the man page.
48 #
49 # *However*, if "man_MANS" isn't defined at all, automake concludes that
50 # there are no man pages, the fact that, say, "man1_MANS" is defined
51 # nonwithstanding!  (I suspect this is the result of a mistaken attempt
52 # to get people to fix their automake files not to use "MANS"; if "MANS"
53 # is defined, it prints a warning and sets the exit status, but doesn't
54 # exit, and then it just gives up if "man_MANS" isn't defined,
55 # presumably on the theory that the only reason it wouldn't be defined
56 # is because the automake file uses the obsolete "MANS" variable instead
57 # of the shiny new "man_MANS" variable.)
58 #
59 # So we also define "man_MANS", but don't define it as anything;
60 # automake will arrange that the Makefile define it as the union of all
61 # the "man{section}_MANS" variables.
62 #
63 bin_PROGRAMS = @wireshark_bin@ @capinfos_bin@ @editcap_bin@ @mergecap_bin@ @tshark_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@ @dumpcap_bin@
64 bin_SCRIPTS = @idl2wrs_bin@
65 man1_MANS = @wireshark_man@ @capinfos_man@ @editcap_man@ @mergecap_man@ @tshark_man@ @text2pcap_man@ @dumpcap_man@ @idl2wrs_man@
66 man4_MANS = @wiresharkfilter_man@
67 man_MANS =
68
69 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
70         randpkt text2pcap dumpcap
71 EXTRA_SCRIPTS = idl2wrs
72
73 idl2wrs: tools/idl2wrs.sh Makefile
74         cp $(srcdir)/tools/idl2wrs.sh idl2wrs
75         chmod +x idl2wrs
76
77 #
78 # Wireshark configuration files are put in $(pkgdatadir).
79 #
80 pkgdata_DATA = AUTHORS-SHORT manuf wireshark.html tshark.html \
81         wireshark-filter.html capinfos.html editcap.html \
82         idl2wrs.html mergecap.html text2pcap.html dumpcap.html \
83         cfilters colorfilters dfilters
84
85 #
86 # Install the Diameter DTD and XML files in the "diameter" subdirectory
87 # of that directory.
88 #
89 diameterdir = $(pkgdatadir)/diameter
90 diameter_DATA = \
91         diameter/chargecontrol.xml \
92         diameter/dictionary.dtd \
93         diameter/dictionary.xml \
94         diameter/imscxdx.xml \
95         diameter/mobileipv4.xml \
96         diameter/nasreq.xml \
97         diameter/sunping.xml \
98         diameter/TGPPSh.xml
99
100 #
101 # Install the DTDs directory files in the "dtds" subdirectory
102 # of that directory
103 #
104 dtdsdir = $(pkgdatadir)/dtds
105 dtds_DATA = \
106         dtds/dc.dtd \
107         dtds/itunes.dtd \
108         dtds/pocsettings.dtd \
109         dtds/presence.dtd \
110         dtds/reginfo.dtd \
111         dtds/rss.dtd \
112         dtds/smil.dtd \
113         dtds/xcap-caps.dtd \
114         dtds/watcherinfo.dtd
115 #
116 # Install the RADIUS directory files in the "radius" subdirectory
117 # of that directory.
118 #
119 radiusdir = $(pkgdatadir)/radius
120 radius_DATA = \
121         radius/dictionary  \
122         radius/dictionary.3com  \
123         radius/dictionary.3gpp  \
124         radius/dictionary.3gpp2  \
125         radius/dictionary.acc  \
126         radius/dictionary.alcatel  \
127         radius/dictionary.alteon  \
128         radius/dictionary.altiga  \
129         radius/dictionary.aptis  \
130         radius/dictionary.ascend  \
131         radius/dictionary.bay  \
132         radius/dictionary.bintec  \
133         radius/dictionary.bristol  \
134         radius/dictionary.cablelabs  \
135         radius/dictionary.cabletron  \
136         radius/dictionary.cisco  \
137         radius/dictionary.cisco.bbsm  \
138         radius/dictionary.cisco.vpn3000  \
139         radius/dictionary.cisco.vpn5000  \
140         radius/dictionary.colubris  \
141         radius/dictionary.columbia_university  \
142         radius/dictionary.compat  \
143         radius/dictionary.cosine  \
144         radius/dictionary.ericsson  \
145         radius/dictionary.erx  \
146         radius/dictionary.extreme  \
147         radius/dictionary.foundry  \
148         radius/dictionary.freeradius  \
149         radius/dictionary.gandalf  \
150         radius/dictionary.garderos  \
151         radius/dictionary.gemtek  \
152         radius/dictionary.itk  \
153         radius/dictionary.juniper  \
154         radius/dictionary.karlnet  \
155         radius/dictionary.livingston  \
156         radius/dictionary.localweb  \
157         radius/dictionary.merit  \
158         radius/dictionary.microsoft  \
159         radius/dictionary.mikrotik  \
160         radius/dictionary.navini  \
161         radius/dictionary.netscreen  \
162         radius/dictionary.nokia  \
163         radius/dictionary.nomadix  \
164         radius/dictionary.propel  \
165         radius/dictionary.quintum  \
166         radius/dictionary.redback  \
167         radius/dictionary.redcreek  \
168         radius/dictionary.shasta  \
169         radius/dictionary.shiva  \
170         radius/dictionary.sonicwall  \
171         radius/dictionary.springtide  \
172         radius/dictionary.t_systems_nova  \
173         radius/dictionary.telebit  \
174         radius/dictionary.trapeze  \
175         radius/dictionary.tunnel  \
176         radius/dictionary.unisphere  \
177         radius/dictionary.unix  \
178         radius/dictionary.usr  \
179         radius/dictionary.valemount  \
180         radius/dictionary.versanet  \
181         radius/dictionary.wispr  \
182         radius/dictionary.xedia
183
184 PLATFORM_SRC = capture-pcap-util-unix.c
185
186 include Makefile.common
187
188 if HAVE_PLUGINS
189
190 plugin_libs = \
191         plugins/acn/acn.la \
192         plugins/agentx/agentx.la \
193         plugins/artnet/artnet.la \
194         plugins/asn1/asn1.la \
195         plugins/ciscosm/ciscosm.la \
196         plugins/docsis/docsis.la \
197         plugins/enttec/enttec.la \
198         plugins/giop/cosnaming.la \
199         plugins/giop/coseventcomm.la \
200         plugins/gryphon/gryphon.la \
201         plugins/irda/irda.la \
202         plugins/lwres/lwres.la \
203         plugins/mate/mate.la \
204         plugins/megaco/megaco.la \
205         plugins/mgcp/mgcp.la \
206         plugins/opsi/opsi.la \
207         plugins/pcli/pcli.la \
208         plugins/profinet/profinet.la \
209         plugins/rdm/rdm.la \
210         plugins/rlm/rlm.la \
211         plugins/rtnet/rtnet.la \
212         plugins/rudp/rudp.la \
213         plugins/sbus/sbus.la \
214         plugins/stats_tree/stats_tree.la \
215         plugins/v5ua/v5ua.la
216
217 if ENABLE_STATIC
218 plugin_ldadd = $(plugin_libs)
219
220 else            # ENABLE_STATIC
221
222 plugin_ldadd = \
223         "-dlopen" self  \
224         "-dlopen" plugins/acn/acn.la \
225         "-dlopen" plugins/agentx/agentx.la \
226         "-dlopen" plugins/artnet/artnet.la \
227         "-dlopen" plugins/asn1/asn1.la \
228         "-dlopen" plugins/ciscosm/ciscosm.la \
229         "-dlopen" plugins/docsis/docsis.la \
230         "-dlopen" plugins/enttec/enttec.la \
231         "-dlopen" plugins/giop/cosnaming.la \
232         "-dlopen" plugins/giop/coseventcomm.la \
233         "-dlopen" plugins/gryphon/gryphon.la \
234         "-dlopen" plugins/h223/h223.la \
235         "-dlopen" plugins/irda/irda.la \
236         "-dlopen" plugins/lwres/lwres.la \
237         "-dlopen" plugins/mate/mate.la \
238         "-dlopen" plugins/megaco/megaco.la \
239         "-dlopen" plugins/mgcp/mgcp.la \
240         "-dlopen" plugins/opsi/opsi.la \
241         "-dlopen" plugins/pcli/pcli.la \
242         "-dlopen" plugins/profinet/profinet.la \
243         "-dlopen" plugins/rdm/rdm.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/v5ua/v5ua.la
250
251 endif           # ENABLE_STATIC
252
253 else            # HAVE_PLUGINS
254 plugin_libs =
255
256 plugin_ldadd =
257 endif           # HAVE_PLUGINS
258
259 # Optional objects that I know how to build. These will be
260 # linked into the wireshark executable.
261 # They will also be linked into the tshark executable; if this
262 # list ever grows to include something that can't be linked with
263 # tshark, or if tshark needs something that wireshark doesn't,
264 # we should probably split this into stuff needed both
265 # by wireshark and tshark and stuff needed only by one or the
266 # other.
267 wireshark_optional_objects = @GETOPT_O@ @STRERROR_O@ \
268         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
269
270 # Additional libs that I know how to build. These will be
271 # linked into the wireshark executable.
272 wireshark_additional_libs = \
273         gtk/libui.a             \
274         codecs/libcodec.a       \
275         wiretap/libwiretap.la   \
276         epan/libwireshark.la
277
278 # This is the automake dependency variable for the executable
279 wireshark_DEPENDENCIES = \
280         $(wireshark_optional_objects)   \
281         $(wireshark_additional_libs)    \
282         $(plugin_libs)
283
284 # This automake variable adds to the link-line for the executable.
285 #
286 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
287 # they are included in @GTK_LIBS@, and doesn't have to be linked with
288 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
289 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
290 # applications are X applications).
291
292 if ENABLE_STATIC
293 wireshark_LDFLAGS = -Wl,-static -all-static
294 else
295 wireshark_LDFLAGS = -export-dynamic
296 endif
297
298 wireshark_LDADD = \
299         $(wireshark_optional_objects)   \
300         $(wireshark_additional_libs)    \
301         @SNMP_LIBS@ @SSL_LIBS@          \
302         $(plugin_ldadd)                 \
303         @PCRE_LIBS@                     \
304         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@ \
305         @LIBICONV@                      \
306         @LIBGCRYPT_LIBS@                \
307         @LIBGNUTLS_LIBS@                \
308         @PORTAUDIO_LIBS@
309
310 # Additional libs that I know how to build. These will be
311 # linked into the tshark executable.
312 tshark_additional_libs =                \
313         wiretap/libwiretap.la           \
314         epan/libwireshark.la
315
316 # This is the automake dependency variable for the executable
317 tshark_DEPENDENCIES = \
318         $(wireshark_optional_objects)   \
319         $(tshark_additional_libs)       \
320         $(plugin_libs)
321
322 # This automake variable adds to the link-line for the executable
323 tshark_LDADD = \
324         $(wireshark_optional_objects)   \
325         $(tshark_additional_libs)       \
326         @SNMP_LIBS@ @SSL_LIBS@          \
327         $(plugin_ldadd)                 \
328         @PCRE_LIBS@                     \
329         @GLIB_LIBS@ -lm                 \
330         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
331         @LIBICONV@                      \
332         @LIBGCRYPT_LIBS@                \
333         @LIBGNUTLS_LIBS@
334
335 if ENABLE_STATIC
336 tshark_LDFLAGS = -Wl,-static -all-static
337 else
338 tshark_LDFLAGS = -export-dynamic
339 endif
340
341 # Optional objects that I know how to build, and that are needed by
342 # text2pcap.
343 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
344
345 text2pcap_DEPENDENCIES = text2pcap.h
346
347 # This automake variable adds to the link-line for the executable
348 text2pcap_LDADD = $(text2pcap_optional_objects) \
349         @GLIB_LIBS@ -lm
350
351 mergecap_DEPENDENCIES = wiretap/libwiretap.la
352
353 # This is the automake dependency variable for the executable
354 capinfos_DEPENDENCIES = wiretap/libwiretap.la
355 editcap_DEPENDENCIES = wiretap/libwiretap.la
356
357 # This automake variable adds to the link-line for the executable
358 capinfos_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
359 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
360 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
361
362 # Common headers
363 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
364
365 #
366 # Build the version string
367 #
368 # FORCE is the portable version of .PHONY
369 FORCE:
370
371 svnversion.h: FORCE
372         $(PERL) $(srcdir)/make-version.pl $(srcdir)
373
374 #
375 # Build the short version of the authors file for the about dialog
376 #
377 AUTHORS-SHORT: AUTHORS make-authors-short.pl
378         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
379
380 #
381 # Build the short version of the authors file with formatting codes for the
382 # man page
383 #
384 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
385         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
386
387 #
388 # Build shell scripts by doing variable substitution.
389 # Taken from autoconf 2.13.
390 #
391 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
392
393 SUFFIXES = .sh
394 .sh:
395         rm -f $@ $@.tmp
396         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
397
398 #
399 # Build "tshark-tap-register.c", which contains a function
400 # "register_all_tap_listeners()"
401 # that calls the register routines for all tshark tap listeners.
402 #
403 # We do this by grepping through sources.
404 #
405 # Formatting conventions:  The name of the tap_listener_register_*
406 # routines must start in column zero, or must be preceded only by
407 # "void " starting in column zero, and must not be inside #if.
408 #
409 # The first argument is the directory in which the source files live.
410 # All subsequent arguments are the files to scan.
411 #
412 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
413         @echo Making tshark-tap-register.c
414         @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
415
416 ps.c: print.ps rdps
417         ./rdps $(srcdir)/print.ps ps.c
418
419 rdps: rdps.c
420         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
421
422 randpkt_additional_libs = wiretap/libwiretap.la
423
424 randpkt_DEPENDENCIES = \
425         $(randpkt_additional_libs)
426
427 randpkt_LDADD = \
428         $(randpkt_additional_libs) \
429         @GLIB_LIBS@ -lm                 \
430         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
431
432 dftest_additional_libs =                \
433         wiretap/libwiretap.la           \
434         epan/libwireshark.la
435
436 dftest_DEPENDENCIES = \
437         $(wireshark_optional_objects)   \
438         $(dftest_additional_libs)       \
439         $(plugin_libs)
440
441 # This automake variable adds to the link-line for the executable
442 dftest_LDADD = \
443         $(wireshark_optional_objects)   \
444         $(dftest_additional_libs)       \
445         @SNMP_LIBS@ @SSL_LIBS@          \
446         $(plugin_ldadd)                 \
447         @PCRE_LIBS@                     \
448         @GLIB_LIBS@ -lm                 \
449         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
450         @LIBICONV@                      \
451         @LIBGCRYPT_LIBS@                \
452         @LIBGNUTLS_LIBS@
453
454 dftest_LDFLAGS = -export-dynamic
455
456 dumpcap_additional_libs = \
457         wiretap/libwiretap.la
458
459 dumpcap_DEPENDENCIES = \
460         $(dumpcap_additional_libs)
461
462 dumpcap_LDADD = \
463         $(dumpcap_additional_libs)      \
464         @GLIB_LIBS@                     \
465         @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-fallback/iconv.m4 \
519         aclocal-flags           \
520         autogen.sh              \
521         capinfos.c              \
522         capture-wpcap.c         \
523         capture-wpcap.h         \
524         capture_wpcap_packet.c  \
525         capture_wpcap_packet.h  \
526         cfilters                \
527         colorfilters            \
528         config.h.win32          \
529         config.nmake            \
530         debian/README.debian    \
531         debian/changelog        \
532         debian/control          \
533         debian/copyright        \
534         debian/dirs             \
535         debian/docs             \
536         debian/menu             \
537         debian/postinst         \
538         debian/prerm            \
539         debian/rules            \
540         dfilters                \
541         doc/Makefile.am         \
542         doc/Makefile.nmake      \
543         doc/README.capture      \
544         doc/README.design       \
545         doc/README.developer    \
546         doc/README.idl2wrs      \
547         doc/README.malloc       \
548         doc/README.plugins      \
549         doc/README.regression   \
550         doc/README.stats_tree   \
551         doc/README.tapping      \
552         doc/README.xml-output   \
553         doc/capinfos.pod                \
554         doc/dfilter2pod.pl      \
555         doc/editcap.pod         \
556         doc/wireshark-filter.pod.template \
557         doc/wireshark.pod       \
558         doc/idl2wrs.pod         \
559         doc/mergecap.pod        \
560         doc/randpkt.txt         \
561         doc/tshark.pod  \
562         doc/text2pcap.pod       \
563         doc/dumpcap.pod \
564         docbook/Makefile.auto.am        \
565         doxygen.cfg.in          \
566         dumpcap.c       \
567         editcap.c               \
568         epan/libwireshark.def   \
569         wireshark.desktop       \
570         image/capinfos.rc.in    \
571         image/clist_ascend.xpm  \
572         image/clist_descend.xpm \
573         image/dn_arrow.xpm      \
574         image/dumpcap.rc.in     \
575         image/editcap.rc.in     \
576         image/hi16-app-wireshark.png    \
577         image/hi32-app-wireshark.png    \
578         image/hi48-app-wireshark.png    \
579         image/icon_layout_1.xpm \
580         image/icon_layout_2.xpm \
581         image/icon_layout_3.xpm \
582         image/icon_layout_4.xpm \
583         image/icon_layout_5.xpm \
584         image/icon_layout_6.xpm \
585         image/libwireshark.rc.in        \
586         image/lo16-app-wireshark.png    \
587         image/lo32-app-wireshark.png    \
588         image/lo48-app-wireshark.png    \
589         image/Makefile.nmake    \
590         image/mergecap.rc.in    \
591         image/nsis-checked.bmp  \
592         image/nsis-unchecked.bmp        \
593         image/README.image      \
594         image/stock_dialog_error_48.xpm \
595         image/stock_dialog_info_48.xpm  \
596         image/stock_dialog_question_48.xpm      \
597         image/stock_dialog_stop_48.xpm  \
598         image/stock_dialog_warning_48.xpm       \
599         image/text2pcap.rc.in   \
600         image/toolbar/autoscroll_24.xpm \
601         image/toolbar/capture_airpcap_16.xpm \
602         image/toolbar/capture_capture_16.xpm \
603         image/toolbar/capture_details_16.xpm \
604         image/toolbar/capture_details_24.xpm \
605         image/toolbar/capture_ethernet_16.xpm  \
606         image/toolbar/capture_filter_24.xpm     \
607         image/toolbar/capture_interfaces_24.xpm \
608         image/toolbar/capture_options_24.xpm    \
609         image/toolbar/capture_prepare_16.xpm \
610         image/toolbar/capture_restart_24.xpm    \
611         image/toolbar/capture_start_24.xpm      \
612         image/toolbar/capture_stop_24.xpm       \
613         image/toolbar/checkbox_16.xpm   \
614         image/toolbar/colorize_24.xpm   \
615         image/toolbar/conversations_16.xpm      \
616         image/toolbar/decode_as_16.xpm  \
617         image/toolbar/display_filter_24.xpm     \
618         image/toolbar/endpoints_16.xpm  \
619         image/toolbar/file_set_list_16.xpm      \
620         image/toolbar/file_set_next_16.xpm      \
621         image/toolbar/file_set_previous_16.xpm  \
622         image/toolbar/graphs_16.xpm     \
623         image/toolbar/internet_24.xpm   \
624         image/toolbar/resize_columns_24.xpm     \
625         image/toolbar/stock_add_24.xpm  \
626         image/toolbar/stock_bottom_24.xpm       \
627         image/toolbar/stock_clear_24.xpm        \
628         image/toolbar/stock_close_24.xpm        \
629         image/toolbar/stock_colorselector_24.xpm        \
630         image/toolbar/stock_help_24.xpm \
631         image/toolbar/stock_jump_to_24.xpm      \
632         image/toolbar/stock_left_arrow_24.xpm   \
633         image/toolbar/stock_ok_20.xpm   \
634         image/toolbar/stock_open_24.xpm \
635         image/toolbar/stock_preferences_24.xpm  \
636         image/toolbar/stock_print_24.xpm        \
637         image/toolbar/stock_properties_24.xpm   \
638         image/toolbar/stock_refresh_24.xpm      \
639         image/toolbar/stock_right_arrow_24.xpm  \
640         image/toolbar/stock_save_24.xpm \
641         image/toolbar/stock_save_as_24.xpm      \
642         image/toolbar/stock_search_24.xpm       \
643         image/toolbar/stock_stop_24.xpm \
644         image/toolbar/stock_top_24.xpm  \
645         image/toolbar/stock_zoom_1_24.xpm       \
646         image/toolbar/stock_zoom_in_24.xpm      \
647         image/toolbar/stock_zoom_out_24.xpm     \
648         image/toolbar/telephony_16.xpm  \
649         image/toolbar/time_24.xpm       \
650         image/toolbar/web_support_24.xpm        \
651         image/toolbar/wep_closed_24.xpm \
652         image/toolbar/wiki_24.xpm       \
653         image/tshark.rc.in      \
654         image/up_arrow.xpm      \
655         image/win32-file-dlg.rc \
656         image/wireshark.exe.manifest.in \
657         image/wireshark.ico     \
658         image/wireshark.rc.in   \
659         image/wiretap.rc.in     \
660         image/wsicon.svg        \
661         image/wsicon16.png      \
662         image/wsicon16.xpm      \
663         image/wsicon200.png     \
664         image/wsicon32.png      \
665         image/wsicon32.xpm      \
666         image/wsicon48.png      \
667         image/wsicon48.xpm      \
668         image/wsicon64.png      \
669         image/wsicon64.xpm      \
670         image/wsiconcap.svg     \
671         image/wsiconcap16.xpm   \
672         image/wsiconcap200.png  \
673         image/wsiconcap32.xpm   \
674         image/wsiconcap48.xpm   \
675         image/wslogo.eps        \
676         image/wslogo.svg        \
677         image/wssplash.xpm      \
678         make-authors-format.pl  \
679         make-authors-short.pl   \
680         make-manuf              \
681         make-tapreg-dotc        \
682         make-version.pl         \
683         manuf                   \
684         manuf.tmpl              \
685         mergecap.c              \
686         perlnoutf.pl            \
687         print.ps                \
688         $(diameter_DATA)        \
689         $(dtds_DATA)            \
690         $(radius_DATA)          \
691         randpkt.c               \
692         rdps.c                  \
693         text2pcap-scanner.l     \
694         text2pcap.c             \
695         text2pcap.h             \
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