c95acfdb2dbe4e70de39cceb452d4b0faba2eb82
[metze/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Wireshark
3 #
4 # Wireshark - Network traffic analyzer
5 # By Gerald Combs <gerald@wireshark.org>
6 # Copyright 1998 Gerald Combs
7 #
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License
10 # as published by the Free Software Foundation; either version 2
11 # of the License, or (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22 AM_DISTCHECK_CONFIGURE_FLAGS=@GUI_CONFIGURE_FLAGS@
23 ACLOCAL_AMFLAGS = `./aclocal-flags`
24
25 if HAVE_WARNINGS_AS_ERRORS
26 AM_CLEAN_CFLAGS = -Werror
27 endif
28
29 bin_PROGRAMS = \
30         @wireshark_bin@         \
31         @tshark_bin@            \
32         @tfshark_bin@           \
33         @text2pcap_bin@         \
34         @mergecap_bin@          \
35         @capinfos_bin@          \
36         @captype_bin@           \
37         @editcap_bin@           \
38         @randpkt_bin@           \
39         @dftest_bin@            \
40         @dumpcap_bin@           \
41         @reordercap_bin@        \
42         @rawshark_bin@          \
43         @echld_test_bin@
44
45 EXTRA_PROGRAMS = wireshark-gtk wireshark tshark tfshark capinfos captype editcap \
46         mergecap dftest randpkt text2pcap dumpcap reordercap rawshark \
47         wireshark_cxx echld_test
48
49 #
50 # Wireshark configuration files are put in $(pkgdatadir).
51 #
52 dist_pkgdata_DATA = COPYING manuf services cfilters colorfilters dfilters \
53         smi_modules ipmap.html pdml2html.xsl
54
55 #
56 # Install global profiles in the "profiles" subdirectory
57 #
58 profilesdir = $(pkgdatadir)
59 nobase_dist_profiles_DATA = \
60         profiles/Bluetooth/colorfilters \
61         profiles/Classic/colorfilters
62
63 #
64 # Install the Diameter DTD and XML files in the "diameter" subdirectory
65 # of that directory.
66 #
67 diameterdir = $(pkgdatadir)/diameter
68 include diameter/Custom.make
69 dist_diameter_DATA = $(_CUSTOM_diameter_xml_files_) \
70         diameter/chargecontrol.xml \
71         diameter/ChinaTelecom.xml \
72         diameter/Cisco.xml \
73         diameter/Custom.xml \
74         diameter/dictionary.dtd \
75         diameter/dictionary.xml \
76         diameter/eap.xml \
77         diameter/Ericsson.xml \
78         diameter/etsie2e4.xml \
79         diameter/mobileipv4.xml \
80         diameter/mobileipv6.xml \
81         diameter/nasreq.xml \
82         diameter/sip.xml \
83         diameter/Starent.xml \
84         diameter/sunping.xml \
85         diameter/TGPP.xml \
86         diameter/TGPP2.xml \
87         diameter/Vodafone.xml \
88         diameter/AlcatelLucent.xml \
89         diameter/Nokia.xml \
90         diameter/NokiaSiemensNetworks.xml \
91         diameter/SKT.xml \
92         diameter/HP.xml \
93         diameter/VerizonWireless.xml
94
95 #
96 # Install the DTDs directory files in the "dtds" subdirectory
97 # of that directory
98 #
99 dtdsdir = $(pkgdatadir)/dtds
100 dist_dtds_DATA = \
101         dtds/dc.dtd \
102         dtds/itunes.dtd \
103         dtds/mscml.dtd \
104         dtds/pocsettings.dtd \
105         dtds/presence.dtd \
106         dtds/reginfo.dtd \
107         dtds/rlmi.dtd \
108         dtds/rss.dtd \
109         dtds/smil.dtd \
110         dtds/xcap-caps.dtd \
111         dtds/xcap-error.dtd \
112         dtds/watcherinfo.dtd
113
114 #
115 # Install the RADIUS directory files in the "radius" subdirectory
116 # of that directory.
117 #
118 radiusdir = $(pkgdatadir)/radius
119 include radius/Custom.make
120 dist_radius_DATA = $(_CUSTOM_radius_dict_) \
121         radius/README.radius_dictionary  \
122         radius/custom.includes  \
123         radius/dictionary  \
124         radius/dictionary.3com  \
125         radius/dictionary.3gpp  \
126         radius/dictionary.3gpp2  \
127         radius/dictionary.acc  \
128         radius/dictionary.acme \
129         radius/dictionary.airespace \
130         radius/dictionary.alcatel  \
131         radius/dictionary.alcatel.esam \
132         radius/dictionary.alcatel.sr \
133         radius/dictionary.alcatel-lucent.aaa \
134         radius/dictionary.alcatel-lucent.xylan \
135         radius/dictionary.alteon  \
136         radius/dictionary.altiga  \
137         radius/dictionary.alvarion \
138         radius/dictionary.apc \
139         radius/dictionary.aptis  \
140         radius/dictionary.aruba  \
141         radius/dictionary.ascend  \
142         radius/dictionary.asn \
143         radius/dictionary.audiocodes \
144         radius/dictionary.avaya \
145         radius/dictionary.azaire \
146         radius/dictionary.bay  \
147         radius/dictionary.bintec  \
148         radius/dictionary.bristol  \
149         radius/dictionary.cablelabs  \
150         radius/dictionary.cabletron  \
151         radius/dictionary.chillispot \
152         radius/dictionary.cisco  \
153         radius/dictionary.cisco.bbsm  \
154         radius/dictionary.cisco.vpn3000  \
155         radius/dictionary.cisco.vpn5000  \
156         radius/dictionary.clavister \
157         radius/dictionary.colubris  \
158         radius/dictionary.columbia_university  \
159         radius/dictionary.compat  \
160         radius/dictionary.cosine  \
161         radius/dictionary.dhcp \
162         radius/dictionary.digium \
163         radius/dictionary.eltex \
164         radius/dictionary.epygi \
165         radius/dictionary.ericsson  \
166         radius/dictionary.erx  \
167         radius/dictionary.extreme  \
168         radius/dictionary.fortinet \
169         radius/dictionary.foundry  \
170         radius/dictionary.freeradius  \
171         radius/dictionary.freeradius.internal  \
172         radius/dictionary.freeswitch \
173         radius/dictionary.gandalf  \
174         radius/dictionary.garderos  \
175         radius/dictionary.gemtek  \
176         radius/dictionary.h3c \
177         radius/dictionary.hp \
178         radius/dictionary.huawei \
179         radius/dictionary.iea \
180         radius/dictionary.infonet \
181         radius/dictionary.ipunplugged \
182         radius/dictionary.issanni \
183         radius/dictionary.itk  \
184         radius/dictionary.jradius \
185         radius/dictionary.juniper  \
186         radius/dictionary.karlnet  \
187         radius/dictionary.lancom \
188         radius/dictionary.livingston  \
189         radius/dictionary.localweb  \
190         radius/dictionary.lucent \
191         radius/dictionary.manzara \
192         radius/dictionary.merit  \
193         radius/dictionary.microsoft  \
194         radius/dictionary.mikrotik  \
195         radius/dictionary.motorola \
196         radius/dictionary.motorola.wimax \
197         radius/dictionary.navini  \
198         radius/dictionary.netscreen  \
199         radius/dictionary.networkphysics \
200         radius/dictionary.nexans \
201         radius/dictionary.nokia  \
202         radius/dictionary.nokia.conflict \
203         radius/dictionary.nomadix  \
204         radius/dictionary.nortel \
205         radius/dictionary.ntua \
206         radius/dictionary.openser \
207         radius/dictionary.packeteer \
208         radius/dictionary.patton \
209         radius/dictionary.propel  \
210         radius/dictionary.prosoft \
211         radius/dictionary.quiconnect \
212         radius/dictionary.quintum  \
213         radius/dictionary.redback  \
214         radius/dictionary.redcreek  \
215         radius/dictionary.rfc2865 \
216         radius/dictionary.rfc2866 \
217         radius/dictionary.rfc2867 \
218         radius/dictionary.rfc2868 \
219         radius/dictionary.rfc2869 \
220         radius/dictionary.rfc3162 \
221         radius/dictionary.rfc3576 \
222         radius/dictionary.rfc3580 \
223         radius/dictionary.rfc4072 \
224         radius/dictionary.rfc4372 \
225         radius/dictionary.rfc4603 \
226         radius/dictionary.rfc4675 \
227         radius/dictionary.rfc4679 \
228         radius/dictionary.rfc4818 \
229         radius/dictionary.rfc4849 \
230         radius/dictionary.rfc5090 \
231         radius/dictionary.rfc5176 \
232         radius/dictionary.rfc5447 \
233         radius/dictionary.rfc5580 \
234         radius/dictionary.rfc5607 \
235         radius/dictionary.rfc5904 \
236         radius/dictionary.rfc6519 \
237         radius/dictionary.rfc6572 \
238         radius/dictionary.riverstone \
239         radius/dictionary.roaringpenguin \
240         radius/dictionary.shasta  \
241         radius/dictionary.shiva  \
242         radius/dictionary.slipstream \
243         radius/dictionary.sofaware \
244         radius/dictionary.sonicwall  \
245         radius/dictionary.springtide  \
246         radius/dictionary.starent  \
247         radius/dictionary.t_systems_nova  \
248         radius/dictionary.telebit  \
249         radius/dictionary.telkom \
250         radius/dictionary.trapeze  \
251         radius/dictionary.tropos \
252         radius/dictionary.ukerna  \
253         radius/dictionary.unix  \
254         radius/dictionary.usr  \
255         radius/dictionary.utstarcom \
256         radius/dictionary.valemount  \
257         radius/dictionary.versanet  \
258         radius/dictionary.vqp \
259         radius/dictionary.walabi \
260         radius/dictionary.waverider \
261         radius/dictionary.wichorus \
262         radius/dictionary.wimax  \
263         radius/dictionary.wimax.wichorus \
264         radius/dictionary.wispr  \
265         radius/dictionary.xedia \
266         radius/dictionary.zyxel
267
268 #
269 # Install the tpncp directory files in the "tpncp" subdirectory
270 # of that directory
271 #
272 tpncpdir = $(pkgdatadir)/tpncp
273 dist_tpncp_DATA = \
274         tpncp/tpncp.dat
275
276 #
277 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
278 # of that directory
279 #
280 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
281 dist_wimaxasncp_DATA = \
282         wimaxasncp/dictionary.xml \
283         wimaxasncp/dictionary.dtd
284
285 if HAVE_PLUGINS
286 -include plugins/Custom.make
287 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
288         -dlopen plugins/docsis/docsis.la \
289         -dlopen plugins/ethercat/ethercat.la \
290         -dlopen plugins/gryphon/gryphon.la \
291         -dlopen plugins/irda/irda.la \
292         -dlopen plugins/m2m/m2m.la \
293         -dlopen plugins/mate/mate.la \
294         -dlopen plugins/opcua/opcua.la \
295         -dlopen plugins/profinet/profinet.la \
296         -dlopen plugins/stats_tree/stats_tree.la \
297         -dlopen plugins/unistim/unistim.la \
298         -dlopen plugins/wimax/wimax.la \
299         -dlopen plugins/wimaxmacphy/wimaxmacphy.la
300
301 else            # HAVE_PLUGINS
302
303 plugin_ldadd =
304
305 endif           # HAVE_PLUGINS
306
307 include Makefile.common
308
309 if ENABLE_STATIC
310 if HAVE_GTK
311 wireshark_gtk_LDFLAGS = -Wl,-static -all-static
312 endif
313 if HAVE_Qt
314 wireshark_LDFLAGS = -Wl,-static -all-static
315 endif
316 else
317 if HAVE_GTK
318 wireshark_gtk_LDFLAGS = -export-dynamic
319 endif
320 if HAVE_Qt
321 wireshark_LDFLAGS = -export-dynamic
322 endif
323 endif
324
325 # Libraries and plugin flags with which to link wireshark.
326 #
327 # Note that Wireshark, when built with a version of GTK+ that runs
328 # atop X11, doesn't have to be linked with @SOCKET_LIBS@ or @NSL_LIBS@,
329 # as those should also be included in @GTK_LIBS@ (as those are also
330 # needed for X applications, and GTK+ applications are X applications
331 # if the version of GTK+ they're built with runs atop X11).
332 #
333 # However, it *does* have to be linked with @GLIB_LIBS@; not all of
334 # the necessary GLib libraries are included in @GTK_LIBS@.  To quote
335 # Gentoo bug 423743 at
336 #
337 #       https://bugs.gentoo.org/show_bug.cgi?id=423743
338 #
339 # "The Makefile.am claims including GLIB_LIBS when linking wireshark is
340 # unnecessary, because wireshark links to GTK_LIBS which is a superset.
341 # It is not actually a superset: gmodule is included in GLIB_LIBS but
342 # not in GTK_LIBS (unless accidentally on older glibs/gtks)."
343 #
344 # although it's also possible that -lgmodule is in GTK_LIBS but not
345 # GLIB_LIBS (that's the case on my machine right now, for example).
346 #
347 wireshark_common_ldadd = \
348         capchild/libcapchild.a          \
349         caputils/libcaputils.a          \
350         ui/libui.a                      \
351         ui/libui_dirty.a                \
352         codecs/libcodec.a               \
353         wiretap/libwiretap.la           \
354         epan/libwireshark.la            \
355         wsutil/libwsutil.la             \
356         @SSL_LIBS@                      \
357         $(plugin_ldadd)                 \
358         @PCAP_LIBS@                     \
359         @C_ARES_LIBS@                   \
360         @ADNS_LIBS@                     \
361         @KRB5_LIBS@                     \
362         @APPLICATIONSERVICES_FRAMEWORKS@        \
363         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
364         @COREFOUNDATION_FRAMEWORKS@     \
365         @LIBGCRYPT_LIBS@                \
366         @LIBGNUTLS_LIBS@                \
367         @LIBSMI_LDFLAGS@                \
368         @GLIB_LIBS@                     \
369         -lm
370
371 if HAVE_Qt
372 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC)
373 wireshark_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
374 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS)
375 wireshark_LDADD = \
376         ui/qt/libqtui.a \
377         $(wireshark_common_ldadd) \
378         @Qt_LIBS@
379
380 #
381 # XXX - this makes wireshark_LDFLAGS not work; we should figure out
382 # another way to get wireshark linked as a C++ program, perhaps by
383 # having a top-level wireshark-qt.cpp file that contains main() and
384 # that calls the UI code from ui/qt.
385 #
386 wireshark_LINK = $(CXXLINK)
387 endif
388
389 if HAVE_GTK
390 wireshark_gtk_SOURCES = $(WIRESHARK_COMMON_SRC)
391 wireshark_gtk_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
392 wireshark_gtk_CFLAGS = $(AM_CLEAN_CFLAGS)
393 wireshark_gtk_LDADD = \
394         ui/gtk/libgtkui.a \
395         $(wireshark_common_ldadd) \
396         @PORTAUDIO_LIBS@                \
397         @GTK_LIBS@
398 endif
399
400 # Ideally we could trigger automatic c++ linking here with
401 #   nodist_EXTRA_wireshark_SOURCES = dummy.cpp
402 # Unfortunately that check is done by automake and not configure.
403 # We do the following to try to avoid using c++ to link Wireshark at
404 # all times.
405 nodist_EXTRA_wireshark_cxx_SOURCES = dummy.cpp
406 wireshark_cxx_SOURCES =
407
408 if ENABLE_STATIC
409 tshark_LDFLAGS = -Wl,-static -all-static
410 else
411 tshark_LDFLAGS = -export-dynamic
412 endif
413
414 # Libraries and plugin flags with which to link tshark.
415 tshark_LDADD = \
416         capchild/libcapchild.a          \
417         caputils/libcaputils.a          \
418         ui/cli/libcliui.a               \
419         ui/libui.a                      \
420         wiretap/libwiretap.la           \
421         epan/libwireshark.la            \
422         wsutil/libwsutil.la             \
423         @SSL_LIBS@                      \
424         $(plugin_ldadd)                 \
425         @GLIB_LIBS@                     \
426         @PCAP_LIBS@                     \
427         @SOCKET_LIBS@                   \
428         @NSL_LIBS@                      \
429         @C_ARES_LIBS@                   \
430         @ADNS_LIBS@                     \
431         @KRB5_LIBS@                     \
432         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
433         @COREFOUNDATION_FRAMEWORKS@     \
434         @LIBGCRYPT_LIBS@                \
435         @LIBGNUTLS_LIBS@                \
436         @LIBSMI_LDFLAGS@                \
437         -lm
438 tshark_CFLAGS = $(AM_CLEAN_CFLAGS)
439
440 if ENABLE_STATIC
441 tfshark_LDFLAGS = -Wl,-static -all-static
442 else
443 tfshark_LDFLAGS = -export-dynamic
444 endif
445
446 # Libraries and plugin flags with which to link tfshark.
447 tfshark_LDADD = \
448         ui/cli/libcliui.a               \
449         ui/libui.a                      \
450         wiretap/libwiretap.la           \
451         epan/libwireshark.la            \
452         wsutil/libwsutil.la             \
453         @SSL_LIBS@                      \
454         $(plugin_ldadd)                 \
455         @GLIB_LIBS@                     \
456         @PCAP_LIBS@                     \
457         @SOCKET_LIBS@                   \
458         @NSL_LIBS@                      \
459         @KRB5_LIBS@                     \
460         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
461         @COREFOUNDATION_FRAMEWORKS@     \
462         @LIBGNUTLS_LIBS@                \
463         @LIBSMI_LDFLAGS@                \
464         -lm
465 tfshark_CFLAGS = $(AM_CLEAN_CFLAGS)
466
467 if ENABLE_STATIC
468 rawshark_LDFLAGS = -Wl,-static -all-static
469 else
470 rawshark_LDFLAGS = -export-dynamic
471 endif
472
473 # Libraries and plugin flags with which to link rawshark.
474 rawshark_LDADD = \
475         caputils/libcaputils.a          \
476         ui/libui.a                      \
477         wiretap/libwiretap.la           \
478         epan/libwireshark.la            \
479         wsutil/libwsutil.la             \
480         @SSL_LIBS@                      \
481         $(plugin_ldadd)                 \
482         @GLIB_LIBS@                     \
483         @PCAP_LIBS@                     \
484         @SOCKET_LIBS@                   \
485         @NSL_LIBS@                      \
486         @C_ARES_LIBS@                   \
487         @ADNS_LIBS@                     \
488         @KRB5_LIBS@                     \
489         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
490         @COREFOUNDATION_FRAMEWORKS@     \
491         @LIBGCRYPT_LIBS@                \
492         @LIBGNUTLS_LIBS@                \
493         @LIBSMI_LDFLAGS@                \
494         -lm
495 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS)
496
497 # Libraries with which to link text2pcap.
498 text2pcap_LDADD = \
499         wsutil/libwsutil.la             \
500         @GLIB_LIBS@                     \
501         -lm
502 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
503 # which is generated (and therefore not always clean).
504 # We could generate text2pcap.o as a library with -Werror but for now it
505 # doesn't seem worth the effort.
506 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
507
508 # Libraries with which to link mergecap.
509 mergecap_LDADD = \
510         wiretap/libwiretap.la           \
511         wsutil/libwsutil.la             \
512         @GLIB_LIBS@
513 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
514
515 # Libraries with which to link capinfos.
516 capinfos_LDADD = \
517         wiretap/libwiretap.la           \
518         wsutil/libwsutil.la             \
519         @GLIB_LIBS@                     \
520         @LIBGCRYPT_LIBS@
521 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS)
522
523 # Libraries with which to link captype.
524 captype_LDADD = \
525         wiretap/libwiretap.la           \
526         wsutil/libwsutil.la             \
527         @GLIB_LIBS@
528 captype_CFLAGS = $(AM_CLEAN_CFLAGS)
529
530 # Libraries with which to link editcap.
531 editcap_LDADD = \
532         wiretap/libwiretap.la           \
533         wsutil/libwsutil.la             \
534         @GLIB_LIBS@
535 editcap_CFLAGS = $(AM_CLEAN_CFLAGS)
536
537 # Libraries with which to link reordercap.
538 reordercap_LDADD = \
539         wiretap/libwiretap.la           \
540         wsutil/libwsutil.la             \
541         @GLIB_LIBS@
542 reordercap_CFLAGS = $(AM_CLEAN_CFLAGS)
543
544 # Libraries with which to link randpkt.
545 randpkt_LDADD = \
546         wiretap/libwiretap.la           \
547         wsutil/libwsutil.la             \
548         @GLIB_LIBS@                     \
549         @PCAP_LIBS@                     \
550         @SOCKET_LIBS@                   \
551         @NSL_LIBS@                      \
552         @C_ARES_LIBS@                   \
553         @ADNS_LIBS@                     \
554         -lm
555 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
556
557 # Libraries and plugin flags with which to link dftest.
558 dftest_LDADD = \
559         ui/libui.a                      \
560         wiretap/libwiretap.la           \
561         wsutil/libwsutil.la             \
562         epan/libwireshark.la            \
563         @SSL_LIBS@                      \
564         $(plugin_ldadd)                 \
565         @GLIB_LIBS@                     \
566         @PCAP_LIBS@                     \
567         @SOCKET_LIBS@                   \
568         @NSL_LIBS@                      \
569         @C_ARES_LIBS@                   \
570         @ADNS_LIBS@                     \
571         @KRB5_LIBS@                     \
572         @LIBGCRYPT_LIBS@                \
573         @LIBGNUTLS_LIBS@                \
574         @LIBSMI_LDFLAGS@                \
575         -lm
576 dftest_CFLAGS = $(AM_CLEAN_CFLAGS)
577
578 echld_test_LDADD = \
579         epan/libwireshark.la            \
580         echld/libechld.la               \
581         wsutil/libwsutil.la             \
582         @GLIB_LIBS@                     \
583         @PCAP_LIBS@                     \
584         @SOCKET_LIBS@                   \
585         @NSL_LIBS@                      \
586         @C_ARES_LIBS@                   \
587         @ADNS_LIBS@                     \
588         -lm
589
590 echld_test_DEPENDENCIES = \
591         echld/libechld.la \
592         epan/libwireshark.la
593
594 echld_test_CFLAGS = $(AM_CLEAN_CFLAGS)
595
596
597 # Libraries with which to link dumpcap.
598 dumpcap_LDADD = \
599         caputils/libcaputils.a          \
600         wsutil/libwsutil.la             \
601         @GLIB_LIBS@                     \
602         @PCAP_LIBS@                     \
603         @SOCKET_LIBS@                   \
604         @NSL_LIBS@                      \
605         @SYSTEMCONFIGURATION_FRAMEWORKS@        \
606         @COREFOUNDATION_FRAMEWORKS@     \
607         @LIBCAP_LIBS@
608 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
609 dumpcap_LDFLAGS = $(PIE_LDFLAGS)
610
611 # Common headers
612 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
613         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS) \
614         @LUA_INCLUDES@ -DTOP_SRCDIR=\"$(abs_top_srcdir)\"
615
616 #
617 # Build the version string
618 #
619 # FORCE is the portable version of .PHONY
620 FORCE:
621
622 AM_V_PERL = $(am__v_PERL_@AM_V@)
623 am__v_PERL_ = $(am__v_PERL_@AM_DEFAULT_V@)
624 am__v_PERL_0 = @echo "  PERL    " $@;
625 am__v_PERL_1 =
626
627 version.h: FORCE
628         $(AM_V_PERL)$(PERL) $(srcdir)/make-version.pl $(srcdir)
629
630 #
631 # Build shell scripts by doing variable substitution.
632 # Taken from autoconf 2.13.
633 #
634 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
635
636 SUFFIXES = .sh
637 .sh:
638         rm -f $@ $@.tmp
639         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
640
641 services:
642         $(PYTHON) $(srcdir)/tools/make-services.py
643
644 CLEANFILES =            \
645         *~              \
646         doxygen-core.tag        \
647         vgcore.*
648
649 #
650 # We have to remove version.h with "make distclean", as, otherwise,
651 # "make distcheck" fails.  We still need to make the tarballs work
652 # even if you do "make distclean" and try to rebuild; that's a work in
653 # progress.
654 #
655 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
656 # list of files removed by "make distclean"?  (It's deliberately
657 # included in that list.)
658 #
659 DISTCLEANFILES = \
660         ps.c                    \
661         version.h
662
663 MAINTAINERCLEANFILES =          \
664         $(GENERATED_FILES)      \
665         Makefile.in             \
666         aclocal.m4              \
667         compile                 \
668         config.h.in             \
669         configure               \
670         depcomp                 \
671         install-sh              \
672         ltmain.sh               \
673         missing                 \
674         ylwrap
675
676 EXTRA_DIST = \
677         INSTALL.configure       \
678         Makefile.am.inc         \
679         Makefile.common         \
680         Makefile.nmake          \
681         Makefile.nmake.inc      \
682         README.aix              \
683         README.bsd              \
684         README.DECT             \
685         README.hpux             \
686         README.linux            \
687         README.macos            \
688         README.tru64            \
689         README.vmware           \
690         README.windows          \
691         abi-descriptor.template \
692         aclocal-fallback/libsmi.m4 \
693         aclocal-fallback/libgcrypt.m4 \
694         aclocal-fallback/glib-2.0.m4 \
695         aclocal-fallback/gtk-2.0.m4 \
696         aclocal-fallback/gtk-3.0.m4 \
697         aclocal-fallback/ax_check_compile_flag.m4       \
698         aclocal-fallback/ax_gcc_x86_cpuid.m4    \
699         aclocal-fallback/ax_ext.m4      \
700         aclocal-fallback/ax_gcc_x86_avx_xgetbv.m4       \
701         aclocal-flags           \
702         adns_dll.dep            \
703         adns_dll.rc             \
704         autogen.sh              \
705         capinfos.c              \
706         captype.c               \
707         cfilters                \
708         colorfilters            \
709         config.h.win32          \
710         config.nmake            \
711         debian/README.Debian    \
712         debian/README.Debian.security   \
713         debian/changelog        \
714         debian/compat           \
715         debian/control          \
716         debian/copyright        \
717         debian/dirs             \
718         debian/ethereal-common.NEWS     \
719         debian/headers-check.c  \
720         debian/libwireshark-data.install        \
721         debian/libwireshark-dev.install \
722         debian/libwireshark0.install    \
723         debian/libwireshark0.symbols    \
724         debian/libwiretap-dev.install   \
725         debian/libwiretap0.docs \
726         debian/libwiretap0.install      \
727         debian/libwiretap0.symbols      \
728         debian/libwsutil-dev.install    \
729         debian/libwsutil0.install       \
730         debian/libwsutil0.symbols       \
731         debian/license-text-about-dialog        \
732         debian/patches/01_Disable-building-documentation-in-PDF-and-release-no.patch    \
733         debian/patches/04_asn2wrs_ply.patch     \
734         debian/patches/05_note-README-when-running-as-root.patch        \
735         debian/patches/06_release-version.patch \
736         debian/patches/08_wireshark-desktop-menu.patch  \
737         debian/patches/09_idl2wrs.patch \
738         debian/patches/16_licence_about_location.patch  \
739         debian/patches/series   \
740         debian/po/POTFILES.in   \
741         debian/po/cs.po \
742         debian/po/da.po \
743         debian/po/de.po \
744         debian/po/es.po \
745         debian/po/eu.po \
746         debian/po/fi.po \
747         debian/po/fr.po \
748         debian/po/hu.po \
749         debian/po/id.po \
750         debian/po/it.po \
751         debian/po/ja.po \
752         debian/po/ko.po \
753         debian/po/nl.po \
754         debian/po/pt.po \
755         debian/po/pt_BR.po      \
756         debian/po/ru.po \
757         debian/po/sk.po \
758         debian/po/sv.po \
759         debian/po/templates.pot \
760         debian/po/vi.po \
761         debian/postinst         \
762         debian/rules            \
763         debian/source/format    \
764         debian/templates        \
765         debian/tshark.docs      \
766         debian/tshark.install   \
767         debian/tshark.manpages  \
768         debian/wireshark-common.config  \
769         debian/wireshark-common.install \
770         debian/wireshark-common.manpages \
771         debian/wireshark-common.postinst        \
772         debian/wireshark-common.postrm  \
773         debian/wireshark-dev.docs \
774         debian/wireshark-dev.install    \
775         debian/wireshark-dev.manpages \
776         debian/wireshark-dev.prerm \
777         debian/wireshark-doc.docs       \
778         debian/wireshark-gtk.docs       \
779         debian/wireshark-gtk.install    \
780         debian/wireshark.manpages \
781         debian/wireshark.menu   \
782         debian/wireshark-qt.docs        \
783         debian/wireshark-qt.install     \
784         dfilters                \
785         doxygen_global.cfg      \
786         doxygen.cfg.in          \
787         dumpcap.c               \
788         editcap.c               \
789         epan/print.ps           \
790         fix/FIX.xml             \
791         fix/FIX40.xml           \
792         fix/FIX41.xml           \
793         fix/FIX42.xml           \
794         fix/FIX43.xml           \
795         fix/FIX44.xml           \
796         fix/FIX50.xml           \
797         fix/FIX50SP1.xml        \
798         fix/FIX50SP2.xml        \
799         fix/README              \
800         fix/Values.xsl          \
801         fix/hfDecl.xsl          \
802         fix/hfField.xsl         \
803         fix/hfList.xsl          \
804         idl/coseventcomm.idl    \
805         idl/cosnaming.idl       \
806         idl/tango.idl   \
807         idl/parlay/am.idl       \
808         idl/parlay/cccs.idl     \
809         idl/parlay/cm.idl       \
810         idl/parlay/common_cc_data.idl   \
811         idl/parlay/cs.idl       \
812         idl/parlay/dsc.idl      \
813         idl/parlay/fw_data.idl  \
814         idl/parlay/fw_if.idl    \
815         idl/parlay/fw_if_access.idl     \
816         idl/parlay/fw_if_app.idl        \
817         idl/parlay/fw_if_entop.idl      \
818         idl/parlay/fw_if_service.idl    \
819         idl/parlay/gcc_data.idl \
820         idl/parlay/gcc_interfaces.idl   \
821         idl/parlay/gms.idl      \
822         idl/parlay/mm.idl       \
823         idl/parlay/mmccs.idl    \
824         idl/parlay/mmm.idl      \
825         idl/parlay/mpcc_data.idl        \
826         idl/parlay/mpcc_interfaces.idl  \
827         idl/parlay/osa.idl      \
828         idl/parlay/pam_data.idl \
829         idl/parlay/pam_interfaces.idl   \
830         idl/parlay/Parlay.idl   \
831         idl/parlay/policy_data.idl      \
832         idl/parlay/policy_interfaces.idl        \
833         idl/parlay/README.parlay        \
834         idl/parlay/termcap.idl  \
835         idl/parlay/ui_data.idl  \
836         idl/parlay/ui_interfaces.idl    \
837         image/capinfos.rc.in    \
838         image/captype.rc.in     \
839         image/capture_comment.svg       \
840         image/capture_comment_add.png   \
841         image/capture_comment_disabled.png      \
842         image/capture_comment_update.png        \
843         image/capture_start_24.png              \
844         image/capture_start_active_24.png       \
845         image/capture_stop_24.png               \
846         image/clist_ascend.xpm                  \
847         image/clist_descend.xpm                 \
848         image/copy-8.png                        \
849         image/dfilter_apply_disabled.png        \
850         image/dfilter_apply_hover.png           \
851         image/dfilter_apply_normal.png          \
852         image/dfilter_apply_pressed.png         \
853         image/dfilter_bookmark_disabled.png     \
854         image/dfilter_bookmark_hover.png        \
855         image/dfilter_bookmark_normal.png       \
856         image/dfilter_bookmark_pressed.png      \
857         image/dfilter_dropdown.png              \
858         image/dfilter_erase_active.png          \
859         image/dfilter_erase_normal.png          \
860         image/dfilter_erase_selected.png        \
861         image/dfilter_refresh_active.png        \
862         image/dfilter_refresh_normal.png        \
863         image/display_filter.qrc                \
864         image/dumpcap.rc.in     \
865         image/editcap.rc.in     \
866         image/expert_chat.png   \
867         image/expert_error.png  \
868         image/expert_indicators.svg     \
869         image/expert_none.png   \
870         image/expert_note.png   \
871         image/expert_ok.png     \
872         image/expert_warn.png   \
873         image/file_dlg_win32.rc \
874         image/hi16-app-wireshark.png    \
875         image/hi32-app-wireshark.png    \
876         image/hi48-app-wireshark.png    \
877         image/layout_1.png              \
878         image/layout_2.png              \
879         image/layout_3.png              \
880         image/layout_4.png              \
881         image/layout_5.png              \
882         image/layout_6.png              \
883         image/libwireshark.rc.in        \
884         image/libwsutil.rc.in           \
885         image/lo16-app-wireshark.png    \
886         image/lo32-app-wireshark.png    \
887         image/lo48-app-wireshark.png    \
888         image/Makefile.nmake                    \
889         image/mergecap.rc.in                    \
890         image/minus-8.png                       \
891         image/nsis-checked.bmp                  \
892         image/nsis-unchecked.bmp                \
893         image/openhand-16.png                   \
894         image/plus-8.png                        \
895         image/rawshark.rc.in                    \
896         image/README.image                      \
897         image/reordercap.rc.in                  \
898         image/rubberband-16.png                 \
899         image/status.qrc                        \
900         image/stock_dialog_error_48.xpm         \
901         image/stock_dialog_info_48.xpm          \
902         image/stock_dialog_question_48.xpm      \
903         image/stock_dialog_stop_48.xpm          \
904         image/stock_dialog_warning_48.xpm       \
905         image/text2pcap.rc.in                   \
906         image/tfshark.rc.in                     \
907         image/toolbar.qrc                       \
908         image/toolbar/analyze_24.xpm            \
909         image/toolbar/audio_player_24.xpm       \
910         image/toolbar/autoscroll_24.xpm         \
911         image/toolbar/capture_airpcap_16.xpm    \
912         image/toolbar/capture_capture_16.xpm    \
913         image/toolbar/capture_details_16.xpm    \
914         image/toolbar/capture_details_24.xpm    \
915         image/toolbar/capture_ethernet_16.xpm   \
916         image/toolbar/capture_filter_24.xpm     \
917         image/toolbar/capture_interfaces_16.png \
918         image/toolbar/capture_interfaces_24.png \
919         image/toolbar/capture_options_16.png    \
920         image/toolbar/capture_options_24.png    \
921         image/toolbar/capture_prepare_16.xpm    \
922         image/toolbar/capture_restart_16.png    \
923         image/toolbar/capture_restart_24.png    \
924         image/toolbar/capture_start_16.png      \
925         image/toolbar/capture_start_24.png      \
926         image/toolbar/capture_stop_16.png       \
927         image/toolbar/capture_stop_24.png       \
928         image/toolbar/checkbox_16.xpm           \
929         image/toolbar/colorize_24.xpm           \
930         image/toolbar/conversations_16.xpm      \
931         image/toolbar/decode_24.xpm             \
932         image/toolbar/decode_as_16.xpm          \
933         image/toolbar/display_filter_24.xpm     \
934         image/toolbar/endpoints_16.xpm          \
935         image/toolbar/expert_info_16.xpm        \
936         image/toolbar/file_set_list_16.xpm      \
937         image/toolbar/file_set_next_16.xpm      \
938         image/toolbar/file_set_previous_16.xpm  \
939         image/toolbar/flow_graph_16.xpm \
940         image/toolbar/gnome_emblem_web_16.png   \
941         image/toolbar/gnome_emblem_web_24.png   \
942         image/toolbar/graphs_16.xpm     \
943         image/toolbar/icon_color_0.xpm  \
944         image/toolbar/icon_color_1.xpm  \
945         image/toolbar/icon_color_2.xpm  \
946         image/toolbar/icon_color_3.xpm  \
947         image/toolbar/icon_color_4.xpm  \
948         image/toolbar/icon_color_5.xpm  \
949         image/toolbar/icon_color_6.xpm  \
950         image/toolbar/icon_color_7.xpm  \
951         image/toolbar/icon_color_8.xpm  \
952         image/toolbar/icon_color_9.xpm  \
953         image/toolbar/internet_24.xpm   \
954         image/toolbar/modem_16.png      \
955         image/toolbar/modem_16.xpm      \
956         image/toolbar/network_bluetooth_16.png  \
957         image/toolbar/network_usb.svg           \
958         image/toolbar/network_usb_16.png        \
959         image/toolbar/network_virtual_16.xpm    \
960         image/toolbar/network_wired_16.png      \
961         image/toolbar/network_wireless_16.png   \
962         image/toolbar/pipe_16.png       \
963         image/toolbar/remote_arrow_16.png       \
964         image/toolbar/remote_globe_16.png       \
965         image/toolbar/remote_sat_16.png \
966         image/toolbar/resize_columns_24.xpm     \
967         image/toolbar/telephone_16.xpm  \
968         image/toolbar/telephony_16.xpm  \
969         image/toolbar/time_24.xpm       \
970         image/toolbar/toolbar_wireshark_file_16.png     \
971         image/toolbar/toolbar_wireshark_file_24.png     \
972         image/toolbar/voip_flow_24.xpm  \
973         image/toolbar/web_support_24.xpm        \
974         image/toolbar/wep_closed_24.xpm \
975         image/tshark.rc.in      \
976         image/voip_select.xpm   \
977         image/wireshark.exe.manifest.in \
978         image/wireshark.ico     \
979         image/wireshark.rc.in   \
980         image/wiresharkdoc.ico  \
981         image/wiresharkinst.ico \
982         image/WiresharkDoc-16.png       \
983         image/WiresharkDoc-24.png       \
984         image/WiresharkDoc-32.png       \
985         image/WiresharkDoc-48.png       \
986         image/WiresharkDoc-64.png       \
987         image/WiresharkDoc-128.png      \
988         image/WiresharkDoc-256.png      \
989         image/wiretap.rc.in     \
990         image/wsicon.svg        \
991         image/wsicon16.png      \
992         image/wsicon24.png      \
993         image/wsicon32.png      \
994         image/wsicon48.png      \
995         image/wsicon64.png      \
996         image/wsicon128.png     \
997         image/wsicon256.png     \
998         image/wsicon512.png     \
999         image/wsicon1024.png    \
1000         image/wsicon-ask.png    \
1001         image/wsicon-ask.svg    \
1002         image/wsiconcap.svg     \
1003         image/wsiconcap256.png  \
1004         image/wsiconcap512.png  \
1005         image/wsiconcap1024.png \
1006         image/wsiconinst.svg    \
1007         image/wsiconinst256.png \
1008         image/wslogo-dev.svg    \
1009         image/wslogo.eps        \
1010         image/wslogo.svg        \
1011         image/wssplash_dev.png  \
1012         image/wssplash.png      \
1013         ipmap.html              \
1014         macosx-setup.sh         \
1015         macosx-support-lib-patches/glib-gconvert.c.patch \
1016         macosx-support-lib-patches/glib-pkgconfig.patch \
1017         macosx-support-lib-patches/gnutls-pkgconfig.patch \
1018         macosx-support-lib-patches/portaudio-pa_mac_core.h.patch \
1019         macosx-support-lib-patches/portaudio-pa_mac_core.c.patch \
1020         macosx-support-lib-patches/qt-fix-pc-file \
1021         macosx-support-lib-patches/qt-fix-pc-files \
1022         make-version.pl         \
1023         manuf                   \
1024         manuf.tmpl              \
1025         mergecap.c              \
1026         pdml2html.xsl           \
1027         reordercap.c            \
1028         smi_modules             \
1029         text2pcap-scanner.l     \
1030         text2pcap.h             \
1031         services                \
1032         wireshark.desktop       \
1033         wireshark-mime-package.xml \
1034         wireshark.pc.in         \
1035         wka.tmpl                \
1036         CMakeLists.txt          \
1037         cmakeconfig.h.in        \
1038         wsutil/CMakeLists.txt   \
1039         CMakeOptions.txt        \
1040         wiretap/CMakeLists.txt  \
1041         README.cmake            \
1042         ConfigureChecks.cmake   \
1043         cmake/TestFileOffsetBits.c      \
1044         cmake/TestLargeFiles.c.cmakein  \
1045         cmake/TestWindowsFSeek.c        \
1046         cmake/modules/CMakeInstallDirs.cmake    \
1047         cmake/modules/COPYING-CMAKE-SCRIPTS     \
1048         cmake/modules/CheckCCompilerFlag.cmake  \
1049         cmake/modules/CheckCLinkerFlag.cmake    \
1050         cmake/modules/FindADNS.cmake            \
1051         cmake/modules/FindAIRPCAP.cmake         \
1052         cmake/modules/FindASCIIDOC.cmake        \
1053         cmake/modules/FindCAP.cmake             \
1054         cmake/modules/FindCARES.cmake           \
1055         cmake/modules/FindFOP.cmake             \
1056         cmake/modules/FindGCRYPT.cmake          \
1057         cmake/modules/FindGEOIP.cmake           \
1058         cmake/modules/FindChocolatey.cmake      \
1059         cmake/modules/FindDOXYGEN.cmake         \
1060         cmake/modules/FindFreetype.cmake        \
1061         cmake/modules/FindGLIB2.cmake           \
1062         cmake/modules/FindGMODULE2.cmake        \
1063         cmake/modules/FindGNUTLS.cmake          \
1064         cmake/modules/FindGTHREAD2.cmake        \
1065         cmake/modules/FindGTK2.cmake            \
1066         cmake/modules/FindGTK3.cmake            \
1067         cmake/modules/FindHtmlViewer.cmake      \
1068         cmake/modules/FindKERBEROS.cmake        \
1069         cmake/modules/FindNL.cmake              \
1070         cmake/modules/FindLEX.cmake             \
1071         cmake/modules/FindLUA.cmake             \
1072         cmake/modules/FindLYNX.cmake            \
1073         cmake/modules/FindM.cmake               \
1074         cmake/modules/FindOS_X_FRAMEWORKS.cmake \
1075         cmake/modules/FindPCAP.cmake            \
1076         cmake/modules/FindPOD.cmake             \
1077         cmake/modules/FindPORTAUDIO.cmake       \
1078         cmake/modules/FindSBC.cmake             \
1079         cmake/modules/FindSED.cmake             \
1080         cmake/modules/FindSETCAP.cmake          \
1081         cmake/modules/FindSH.cmake              \
1082         cmake/modules/FindSMI.cmake             \
1083         cmake/modules/FindWSWinLibs.cmake       \
1084         cmake/modules/FindXMLLINT.cmake         \
1085         cmake/modules/FindXSLTPROC.cmake        \
1086         cmake/modules/FindYACC.cmake            \
1087         cmake/modules/FindYAPP.cmake            \
1088         cmake/modules/FindZLIB.cmake            \
1089         cmake/modules/LICENSE.txt               \
1090         cmake/modules/UseABICheck.cmake         \
1091         cmake/modules/UseAsn2Wrs.cmake          \
1092         cmake/modules/UseCheckAPI.cmake         \
1093         cmake/modules/UseLemon.cmake            \
1094         cmake/modules/UseMakeDissectorReg.cmake \
1095         cmake/modules/UseMakeTapReg.cmake       \
1096         cmake/modules/UseWinLibs.cmake          \
1097         cmake/modules/gmxTestLargeFiles.cmake   \
1098         cmake/modules/readme.txt                \
1099         ui/win32/Makefile.nmake                 \
1100         ui/win32/console_win32.c                \
1101         ui/win32/console_win32.h                \
1102         ui/win32/file_dlg_win32.c               \
1103         ui/win32/file_dlg_win32.h               \
1104         ui/win32/print_win32.c                  \
1105         ui/win32/print_win32.h                  \
1106         ui/win32/settings.ini                   \
1107         CPackConfig.txt
1108
1109 install-exec-hook:
1110 if HAVE_DUMPCAP_GROUP
1111         chgrp $(DUMPCAP_GROUP) $(DESTDIR)$(bindir)/dumpcap
1112 endif
1113 if SETCAP_INSTALL
1114         $(SETCAP) cap_net_raw,cap_net_admin+ep $(DESTDIR)$(bindir)/dumpcap
1115         chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1116 else
1117 if SETUID_INSTALL
1118         chmod o-rws $(DESTDIR)$(bindir)/dumpcap
1119         chmod +s $(DESTDIR)$(bindir)/dumpcap
1120 endif
1121 endif
1122
1123
1124 DIST_SUBDIRS = \
1125         capchild        \
1126         caputils        \
1127         codecs          \
1128         doc             \
1129         epan            \
1130         echld           \
1131         ui              \
1132         ui/cli          \
1133         ui/gtk          \
1134         ui/qt           \
1135         help            \
1136         packaging       \
1137         plugins         \
1138         tools           \
1139         wiretap         \
1140         wsutil          \
1141         docbook
1142
1143 SUBDIRS = \
1144         tools                   \
1145         wsutil                  \
1146         wiretap                 \
1147         epan                    \
1148         capchild                \
1149         caputils                \
1150         @echld_dir@             \
1151         @plugins_dir@           \
1152         packaging               \
1153         help                    \
1154         ui                      \
1155         @wireshark_SUBDIRS@     \
1156         ui/cli                  \
1157         .                       \
1158         doc
1159
1160 help/faq.txt: $(srcdir)/help/faq.py
1161         $(AM_V_GEN)(cd help ; \
1162         $(MAKE) faq.txt ;)
1163
1164 libtool: $(LIBTOOL_DEPS)
1165         $(SHELL) ./config.status --recheck
1166
1167
1168 # Used by patch-bzip2
1169 # Trim off any extra version information and find the previous micro release.
1170 BASE_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1171 PREV_VERSION=`echo "$(VERSION)" | awk -F. '{$$3 = $$3 + 0 ; if ($$3 > 0) $$3-- ; printf("%d.%d.%d"), $$1, $$2, $$3}'`
1172 PREV_DIR="wireshark-$(PREV_VERSION)"
1173 PREV_FILE="$(PREV_DIR).tar.bz2"
1174 PREV_URL="http://www.wireshark.org/download/src/all-versions/$(PREV_FILE)"
1175
1176 patch-bzip2: distdir
1177         if test x$(BASE_VERSION) != x$(PREV_VERSION) ; then \
1178                 curl -z $(PREV_FILE) -o $(PREV_FILE) $(PREV_URL) && \
1179                 tar -xjf $(PREV_FILE) && \
1180                 diff -urN $(PREV_DIR) $(distdir) | bzip2 > patch-wireshark-$(PREV_VERSION)-to-$(VERSION).bz2 && \
1181                 echo "Created patch-bzip2" ; \
1182                 rm -rf "$(PREV_FILE)" "$(PREV_DIR)" ; \
1183         else \
1184                 echo "This appears to be the first micro version ($(PREV_VERSION)). Skipping." ; \
1185         fi
1186         $(am__remove_distdir)
1187
1188 # Install some desktop files (for use with GNOME, KDE, or any other freedesktop.org-compliant desktops)
1189 # No, these do not go into $(datarootdir): the desktop won't look for them there.
1190 # Yes, that violate's autofoo's principle of relocatability.
1191 # What we (probably) should do is check `pkg-config --variable=prefix gtk+-2.0` to know where
1192 # to install this stuff...
1193 #
1194 # Do not use the -T flag to the install command, as it's not portable.
1195 # Some versions of install don't support a -T flag at all, and the
1196 # FreeBSD install command has a -T flag that takes an argument and
1197 # that has completely different semantics.
1198 install_desktop_files:
1199         mkdir -p $(DESTDIR)/usr/share/{mime/packages,applications}
1200         install -m 644 $(srcdir)/wireshark-mime-package.xml $(DESTDIR)/usr/share/mime/packages/wireshark.xml
1201         if test x$(DESKTOP_FILE_INSTALL) != x ; then \
1202                 $(DESKTOP_FILE_INSTALL) --dir $(DESTDIR)/usr/share/applications $(srcdir)/wireshark.desktop; \
1203         else \
1204                 install -m 644 $(srcdir)/wireshark.desktop $(DESTDIR)/usr/share/applications/wireshark.desktop; \
1205         fi
1206         for size in 16 24 32 48 64 128 256; \
1207         do \
1208                 mkdir -p $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/{apps,mimetypes} ; \
1209                 install -m 644 $(srcdir)/image/wsicon$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/wireshark.png ; \
1210                 install -m 644 $(srcdir)/image/WiresharkDoc-$${size}.png $(DESTDIR)/usr/share/icons/hicolor/$${size}x$${size}/mimetypes/application-wireshark-doc.png ; \
1211         done
1212         mkdir -p $(DESTDIR)/usr/share/icons/hicolor/scalable/apps
1213         install -m 644 image/wsicon.svg $(DESTDIR)/usr/share/icons/hicolor/scalable/apps/wireshark.svg
1214         @echo "Don't forget to run \"update-desktop-database\" and \"update-mime-database /usr/share/mime\""
1215
1216 # Used by svr4-package and osx-package
1217 # We load top_stagedir with an absolute path so that libtool doesn't freak.
1218 top_stagedir=$(abs_top_builddir)/packaging/staging
1219 stagedir=$(top_stagedir)/$(PACKAGE).inst
1220
1221 host_cpu=@host_cpu@
1222 host_os=@host_os@
1223
1224 solaris-package: svr4-package
1225
1226 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
1227         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1228                 rm -rf $(stagedir) ; \
1229                 $(MAKE) DESTDIR=$(stagedir) install; \
1230                 $(srcdir)/packaging/svr4/mkpkg \
1231                         $(PACKAGE) \
1232                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1233                         $(prefix) \
1234                         $(top_stagedir) ; \
1235         else \
1236                 echo "Error: SVR4 packaging tools not found." ; \
1237                 echo "Package build abandoned." ; \
1238         fi
1239
1240
1241 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
1242 rpm-package: dist
1243         @if test x$(HAVE_RPM) = xyes ; then \
1244                 cd $(rpm_topdir) ; \
1245                 mkdir -p BUILD RPMS SOURCES SRPMS; \
1246                 cd SOURCES ; \
1247                 ln -sf ../../../$(distdir).tar.bz2 ; \
1248                 cd .. ; \
1249                 rpmbuild --define "_topdir `cd . && pwd`" --define "_prefix $(prefix)" \
1250                         @RPMBUILD_WITH_ARGS@ --clean -ba SPECS/wireshark.spec && \
1251                         echo "Package successfully built in `pwd`/RPMS." && \
1252                         rm -f SOURCES/$(distdir).tar.bz2 $(distdir).tar.bz2 ; \
1253         else \
1254                 echo "Error: RPM executable and/or source directory not found." ; \
1255                 false; \
1256         fi
1257
1258 # XXX - This assumes we're building from the source directory.
1259 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
1260         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1261                 rm -rf $(stagedir) ; \
1262                 $(MAKE) DESTDIR=$(stagedir) install; \
1263                 cd $(srcdir)/packaging/macosx ;  \
1264                 ./osx-app.sh @OSX_APP_FLAGS@ -bp ../staging/$(PACKAGE).inst$(bindir) ; \
1265         else \
1266                 echo "Error: OS X packaging tools not found." ; \
1267                 echo "Package build abandoned." ; \
1268         fi
1269
1270 packaging/macosx/COPYING.txt: COPYING
1271         (cd packaging/macosx ; \
1272         $(MAKE) COPYING.txt ;)
1273
1274 osx-package: osx-app packaging/macosx/COPYING.txt
1275         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1276                 cd $(srcdir)/packaging/macosx ;  \
1277                 chmod +x ./osx-dmg.sh ; \
1278                 ./osx-dmg.sh @OSX_DMG_FLAGS@ ; \
1279         fi
1280
1281 osx-install: osx-app
1282         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
1283                 echo "Copying Wireshark.app to /Applications" ; \
1284                 cp -pr $(srcdir)/packaging/macosx/Wireshark.app /Applications ;  \
1285         fi
1286
1287 clean-local:
1288         rm -rf $(top_stagedir)
1289
1290 dumpabi:
1291         $(MAKE) -C wiretap dumpabi-libwiretap
1292         $(MAKE) -C epan dumpabi-libwireshark
1293         $(MAKE) -C wsutil dumpabi-libwsutil
1294
1295 checkapi_local:
1296         $(PERL) $(top_srcdir)/tools/checkAPIs.pl -build \
1297         -sourcedir=$(srcdir) \
1298         $(TSHARK_TAP_SRC) \
1299         $(wireshark_gtk_SOURCES)
1300 #       $(EXTRA_wireshark_gtk_SOURCES)
1301
1302 checkapi: checkapi_local
1303         cd wiretap && $(MAKE) checkapi
1304         cd codecs && $(MAKE) checkapi
1305         cd capchild && $(MAKE) checkapi
1306         cd caputils && $(MAKE) checkapi
1307         cd ui && $(MAKE) checkapi
1308         cd ui/gtk && $(MAKE) checkapi
1309 ##      cd epan && $(MAKE) checkapi
1310 ##      cd epan/crypt && $(MAKE) checkapi
1311         cd epan/dfilter && $(MAKE) checkapi
1312 ##      cd epan/ftypes && $(MAKE) checkapi
1313 ##      cd epan/wslua && $(MAKE) checkapi
1314         cd epan/dissectors && $(MAKE) checkapi
1315         cd plugins && $(MAKE) checkapi
1316         cd wsutil && $(MAKE) checkapi
1317
1318 wsar_html: doxygen.cfg doxygen_global.cfg FORCE
1319 if HAVE_DOXYGEN
1320         rm -rf wsar_html
1321         cd epan && $(MAKE) $@
1322         cd capchild && $(MAKE) $@
1323         cd caputils && $(MAKE) $@
1324         cd ui && $(MAKE) $@
1325         (umask 022 ; $(DOXYGEN) doxygen.cfg)
1326 endif
1327
1328 wsar-zip: wsar_html
1329 if HAVE_DOXYGEN
1330         rm -f wsar_html.zip
1331         zip -rq wsar_html.zip wsar_html
1332 endif