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