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