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