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