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