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