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