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