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