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