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