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