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