gtk_label_set -> gtk_label_set_text
[metze/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Wireshark
3 #
4 # $Id$
5 #
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
8 # Copyright 1998 Gerald Combs
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License
12 # as published by the Free Software Foundation; either version 2
13 # of the License, or (at your option) any later version.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
25
26 INCLUDES= @LUA_INCLUDES@
27
28 if HAVE_WARNINGS_AS_ERRORS
29 AM_CLEAN_CFLAGS = -Werror
30 endif
31
32 #
33 # This is a hideous hack.
34 #
35 # Automake needs to know into which sections to install various man
36 # pages; if the names in "man_MANS" have suffixes, it can infer the
37 # sections from the name (e.g., "hello.1" goes in section 1), but if
38 # they don't have suffixes, it can't tell what sections to put them, and
39 # it just gives up and doesn't create any rules to install them (and it
40 # gives up silently, so you have no clue what's wrong).
41 #
42 # Therefore, we can't just set "man_MANS" to a list of variables to be
43 # filled in by the configure script, as those variables don't have man
44 # page section numbers.
45 #
46 # It turns out (although this is not documented anywhere I could find
47 # in the automake Info file) that if you define, instead, variables with
48 # names like "man{section}_MANS", automake will infer that the names in
49 # those variables are the names of man pages to be installed in section
50 # "{section}".
51 #
52 # So, as all our man pages go in section 1, we define "man1_MANS" to
53 # contain all the man page.
54 #
55 # *However*, if "man_MANS" isn't defined at all, automake concludes that
56 # there are no man pages, the fact that, say, "man1_MANS" is defined
57 # nonwithstanding!  (I suspect this is the result of a mistaken attempt
58 # to get people to fix their automake files not to use "MANS"; if "MANS"
59 # is defined, it prints a warning and sets the exit status, but doesn't
60 # exit, and then it just gives up if "man_MANS" isn't defined,
61 # presumably on the theory that the only reason it wouldn't be defined
62 # is because the automake file uses the obsolete "MANS" variable instead
63 # of the shiny new "man_MANS" variable.)
64 #
65 # So we also define "man_MANS", but don't define it as anything;
66 # automake will arrange that the Makefile define it as the union of all
67 # the "man{section}_MANS" variables.
68 #
69 bin_PROGRAMS = \
70         @wireshark_bin@ \
71         @tshark_bin@    \
72         @text2pcap_bin@ \
73         @mergecap_bin@  \
74         @capinfos_bin@  \
75         @editcap_bin@   \
76         @randpkt_bin@   \
77         @dftest_bin@    \
78         @dumpcap_bin@   \
79         @rawshark_bin@
80 bin_SCRIPTS = @idl2wrs_bin@
81
82 man1_MANS = \
83         @wireshark_man@ \
84         @tshark_man@    \
85         @text2pcap_man@ \
86         @mergecap_man@  \
87         @capinfos_man@  \
88         @editcap_man@   \
89         @dumpcap_man@   \
90         @idl2wrs_man@   \
91         @rawshark_man@
92 man4_MANS = @wiresharkfilter_man@
93 man_MANS =
94
95 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
96         randpkt text2pcap dumpcap rawshark
97 EXTRA_SCRIPTS = idl2wrs
98
99 idl2wrs: tools/idl2wrs.sh Makefile
100         cp tools/idl2wrs.sh idl2wrs
101         chmod +x idl2wrs
102
103 #
104 # Wireshark configuration files are put in $(pkgdatadir).
105 #
106 pkgdata_DATA = AUTHORS-SHORT COPYING manuf services wireshark.html \
107         tshark.html wireshark-filter.html capinfos.html editcap.html \
108         idl2wrs.html mergecap.html text2pcap.html dumpcap.html \
109         rawshark.html ws.css cfilters colorfilters dfilters smi_modules ipmap.html
110
111 #
112 # Install the Diameter DTD and XML files in the "diameter" subdirectory
113 # of that directory.
114 #
115 diameterdir = $(pkgdatadir)/diameter
116 diameter_DATA = \
117         diameter/chargecontrol.xml \
118         diameter/dictionary.dtd \
119         diameter/dictionary.xml \
120         diameter/Ericsson.xml \
121         diameter/etsie2e4.xml \
122         diameter/gqpolicy.xml \
123         diameter/imscxdx.xml \
124         diameter/mobileipv4.xml \
125         diameter/nasreq.xml \
126         diameter/sip.xml \
127         diameter/sunping.xml \
128         diameter/TGPPGmb.xml \
129         diameter/TGPPRx.xml \
130         diameter/TGPPSh.xml
131
132 #
133 # Install the DTDs directory files in the "dtds" subdirectory
134 # of that directory
135 #
136 dtdsdir = $(pkgdatadir)/dtds
137 dtds_DATA = \
138         dtds/dc.dtd \
139         dtds/itunes.dtd \
140         dtds/mscml.dtd \
141         dtds/pocsettings.dtd \
142         dtds/presence.dtd \
143         dtds/reginfo.dtd \
144         dtds/rlmi.dtd \
145         dtds/rss.dtd \
146         dtds/smil.dtd \
147         dtds/xcap-caps.dtd \
148         dtds/xcap-error.dtd \
149         dtds/watcherinfo.dtd
150
151 #
152 # Install the RADIUS directory files in the "radius" subdirectory
153 # of that directory.
154 #
155 radiusdir = $(pkgdatadir)/radius
156 radius_DATA = \
157         radius/dictionary  \
158         radius/dictionary.3com  \
159         radius/dictionary.3gpp  \
160         radius/dictionary.3gpp2  \
161         radius/dictionary.acc  \
162         radius/dictionary.alcatel  \
163         radius/dictionary.alteon  \
164         radius/dictionary.altiga  \
165         radius/dictionary.aptis  \
166         radius/dictionary.ascend  \
167         radius/dictionary.aruba  \
168         radius/dictionary.bay  \
169         radius/dictionary.bintec  \
170         radius/dictionary.bristol  \
171         radius/dictionary.cablelabs  \
172         radius/dictionary.cabletron  \
173         radius/dictionary.cisco  \
174         radius/dictionary.cisco.bbsm  \
175         radius/dictionary.cisco.vpn3000  \
176         radius/dictionary.cisco.vpn5000  \
177         radius/dictionary.colubris  \
178         radius/dictionary.columbia_university  \
179         radius/dictionary.compat  \
180         radius/dictionary.cosine  \
181         radius/dictionary.ericsson  \
182         radius/dictionary.erx  \
183         radius/dictionary.extreme  \
184         radius/dictionary.foundry  \
185         radius/dictionary.freeradius  \
186         radius/dictionary.gandalf  \
187         radius/dictionary.garderos  \
188         radius/dictionary.gemtek  \
189         radius/dictionary.itk  \
190         radius/dictionary.juniper  \
191         radius/dictionary.karlnet  \
192         radius/dictionary.livingston  \
193         radius/dictionary.localweb  \
194         radius/dictionary.merit  \
195         radius/dictionary.microsoft  \
196         radius/dictionary.mikrotik  \
197         radius/dictionary.navini  \
198         radius/dictionary.netscreen  \
199         radius/dictionary.nokia  \
200         radius/dictionary.nomadix  \
201         radius/dictionary.propel  \
202         radius/dictionary.quintum  \
203         radius/dictionary.redback  \
204         radius/dictionary.redcreek  \
205         radius/dictionary.shasta  \
206         radius/dictionary.shiva  \
207         radius/dictionary.sonicwall  \
208         radius/dictionary.springtide  \
209         radius/dictionary.t_systems_nova  \
210         radius/dictionary.telebit  \
211         radius/dictionary.trapeze  \
212         radius/dictionary.tunnel  \
213         radius/dictionary.unisphere  \
214         radius/dictionary.unix  \
215         radius/dictionary.usr  \
216         radius/dictionary.valemount  \
217         radius/dictionary.versanet  \
218         radius/dictionary.wispr  \
219         radius/dictionary.xedia
220
221 #
222 # Install the tpncp directory files in the "tpncp" subdirectory
223 # of that directory
224 #
225 tpncpdir = $(pkgdatadir)/tpncp
226 tpncp_DATA = \
227         tpncp/tpncp.dat
228
229
230 #
231 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
232 # of that directory
233 #
234 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
235 wimaxasncp_DATA = \
236         wimaxasncp/dictionary.xml \
237         wimaxasncp/dictionary.dtd
238
239 PLATFORM_SRC = capture-pcap-util-unix.c
240
241 if HAVE_PLUGINS
242 -include plugins/Custom.make
243 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
244         -dlopen plugins/asn1/asn1.la \
245         -dlopen plugins/docsis/docsis.la \
246         -dlopen plugins/ethercat/ethercat.la \
247         -dlopen plugins/giop/cosnaming.la \
248         -dlopen plugins/giop/coseventcomm.la \
249         -dlopen plugins/gryphon/gryphon.la \
250         -dlopen plugins/irda/irda.la \
251         -dlopen plugins/m2m/m2m.la \
252         -dlopen plugins/mate/mate.la \
253         -dlopen plugins/opcua/opcua.la \
254         -dlopen plugins/profinet/profinet.la \
255         -dlopen plugins/sercosiii/sercosiii.la \
256         -dlopen plugins/stats_tree/stats_tree.la \
257         -dlopen plugins/unistim/unistim.la \
258         -dlopen plugins/wimax/wimax.la
259
260 WTAP_PLUGIN_SOURCES = \
261        epan/plugins.c \
262        epan/report_err.c \
263        epan/filesystem.c
264
265 else            # HAVE_PLUGINS
266
267 plugin_ldadd =
268 WTAP_PLUGIN_SOURCES =
269
270 endif           # HAVE_PLUGINS
271
272 include Makefile.common
273
274 # Optional objects that I know how to build. These will be
275 # linked into the wireshark executable.
276 # They will also be linked into the tshark executable; if this
277 # list ever grows to include something that can't be linked with
278 # tshark, or if tshark needs something that wireshark doesn't,
279 # we should probably split this into stuff needed both
280 # by wireshark and tshark and stuff needed only by one or the
281 # other.
282 wireshark_optional_objects = @GETOPT_O@ @STRERROR_O@ \
283         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
284
285 if ENABLE_STATIC
286 wireshark_LDFLAGS = -Wl,-static -all-static
287 else
288 wireshark_LDFLAGS = -export-dynamic
289 endif
290
291 # Libraries and plugin flags with which to link wireshark.
292 #
293 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
294 # they are included in @GTK_LIBS@, and doesn't have to be linked with
295 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
296 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
297 # applications are X applications).
298 wireshark_LDADD = \
299         $(wireshark_optional_objects)   \
300         gtk/libui.a                     \
301         codecs/libcodec.a               \
302         wiretap/libwiretap.la           \
303         epan/libwireshark.la            \
304         wsutil/libwsutil.la             \
305         @INET_PTON_LO@                  \
306         @INET_NTOP_LO@                  \
307         @SSL_LIBS@                      \
308         $(plugin_ldadd)                 \
309         @PCRE_LIBS@                     \
310         @PCAP_LIBS@                     \
311         @GTK_LIBS@                      \
312         @C_ARES_LIBS@                   \
313         @ADNS_LIBS@                     \
314         @KRB5_LIBS@                     \
315         @FRAMEWORKS@                    \
316         @LIBGCRYPT_LIBS@                \
317         @LIBGNUTLS_LIBS@                \
318         @LIBSMI_LDFLAGS@                \
319         @PORTAUDIO_LIBS@
320 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS)
321
322 if ENABLE_STATIC
323 tshark_LDFLAGS = -Wl,-static -all-static
324 else
325 tshark_LDFLAGS = -export-dynamic
326 endif
327
328 # Libraries and plugin flags with which to link tshark.
329 tshark_LDADD = \
330         $(wireshark_optional_objects)   \
331         wiretap/libwiretap.la           \
332         epan/libwireshark.la            \
333         wsutil/libwsutil.la             \
334         @INET_PTON_LO@                  \
335         @INET_NTOP_LO@                  \
336         @SSL_LIBS@                      \
337         $(plugin_ldadd)                 \
338         @PCRE_LIBS@                     \
339         @GLIB_LIBS@ -lm                 \
340         @PCAP_LIBS@                     \
341         @SOCKET_LIBS@                   \
342         @NSL_LIBS@                      \
343         @C_ARES_LIBS@                   \
344         @ADNS_LIBS@                     \
345         @KRB5_LIBS@                     \
346         @FRAMEWORKS@                    \
347         @LIBGCRYPT_LIBS@                \
348         @LIBGNUTLS_LIBS@                \
349         @LIBSMI_LDFLAGS@
350 tshark_CFLAGS = $(AM_CLEAN_CFLAGS)
351
352 if ENABLE_STATIC
353 rawshark_LDFLAGS = -Wl,-static -all-static
354 else
355 rawshark_LDFLAGS = -export-dynamic
356 endif
357
358 # Libraries and plugin flags with which to link tshark.
359 rawshark_LDADD = \
360         $(wireshark_optional_objects)   \
361         wiretap/libwiretap.la           \
362         epan/libwireshark.la            \
363         wsutil/libwsutil.la             \
364         @INET_PTON_LO@                  \
365         @INET_NTOP_LO@                  \
366         @SSL_LIBS@                      \
367         $(plugin_ldadd)                 \
368         @PCRE_LIBS@                     \
369         @GLIB_LIBS@ -lm                 \
370         @PCAP_LIBS@                     \
371         @SOCKET_LIBS@                   \
372         @NSL_LIBS@                      \
373         @C_ARES_LIBS@                   \
374         @ADNS_LIBS@                     \
375         @KRB5_LIBS@                     \
376         @FRAMEWORKS@                    \
377         @LIBGCRYPT_LIBS@                \
378         @LIBGNUTLS_LIBS@                \
379         @LIBSMI_LDFLAGS@
380 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS)
381
382 # Optional objects that I know how to build, and that are needed by
383 # text2pcap.
384 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
385
386 # Libraries with which to link text2pcap.
387 text2pcap_LDADD = \
388         $(text2pcap_optional_objects)   \
389         wiretap/libwiretap.la           \
390         wsutil/libwsutil.la             \
391         @GLIB_LIBS@ -lm
392 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
393 # which is generated (and therefore not always clean).
394 # We could generate text2pcap.o as a library with -Werror but for now it
395 # doesn't seem worth the effort.
396 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
397
398 # Libraries with which to link mergecap.
399 mergecap_LDADD = \
400         wiretap/libwiretap.la           \
401         wsutil/libwsutil.la             \
402         @GLIB_LIBS@
403 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
404
405 # Libraries with which to link capinfos.
406 capinfos_LDADD = \
407         wiretap/libwiretap.la           \
408         wsutil/libwsutil.la             \
409         @GLIB_LIBS@
410 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS)
411
412 # Libraries with which to link editcap.
413 editcap_LDADD = \
414         wiretap/libwiretap.la           \
415         wsutil/libwsutil.la             \
416         @GLIB_LIBS@
417 editcap_CFLAGS = $(AM_CLEAN_CFLAGS)
418
419 # Libraries with which to link randpkt.
420 randpkt_LDADD = \
421         wiretap/libwiretap.la           \
422         wsutil/libwsutil.la             \
423         @GLIB_LIBS@ -lm                 \
424         @PCAP_LIBS@                     \
425         @SOCKET_LIBS@                   \
426         @NSL_LIBS@                      \
427         @C_ARES_LIBS@                   \
428         @ADNS_LIBS@
429 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
430
431 # Libraries and plugin flags with which to link dftest.
432 dftest_LDADD = \
433         $(wireshark_optional_objects)   \
434         wiretap/libwiretap.la           \
435         wsutil/libwsutil.la             \
436         epan/libwireshark.la            \
437         @SSL_LIBS@                      \
438         $(plugin_ldadd)                 \
439         @PCRE_LIBS@                     \
440         @GLIB_LIBS@ -lm                 \
441         @PCAP_LIBS@                     \
442         @SOCKET_LIBS@                   \
443         @NSL_LIBS@                      \
444         @C_ARES_LIBS@                   \
445         @ADNS_LIBS@                     \
446         @KRB5_LIBS@                     \
447         @LIBGCRYPT_LIBS@                \
448         @LIBGNUTLS_LIBS@                \
449         @LIBSMI_LDFLAGS@
450 dftest_CFLAGS = $(AM_CLEAN_CFLAGS)
451
452 # Libraries with which to link dumpcap.
453 dumpcap_LDADD = \
454         wiretap/libwiretap.la           \
455         wsutil/libwsutil.la             \
456         @INET_NTOP_LO@                  \
457         @GLIB_LIBS@                     \
458         @PCAP_LIBS@                     \
459         @SOCKET_LIBS@                   \
460         @NSL_LIBS@                      \
461         @FRAMEWORKS@                    \
462         @LIBGCRYPT_LIBS@                \
463         @LIBGNUTLS_LIBS@                \
464         @LIBCAP_LIBS@
465 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
466
467 # Common headers
468 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
469         $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS)
470
471 #
472 # Build the version string
473 #
474 # FORCE is the portable version of .PHONY
475 FORCE:
476
477 svnversion.h: FORCE
478         LANG=C $(PERL) $(srcdir)/make-version.pl $(srcdir)
479
480 #
481 # Build the short version of the authors file for the about dialog
482 #
483 AUTHORS-SHORT: AUTHORS make-authors-short.pl
484         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
485
486 #
487 # Build the short version of the authors file with formatting codes for the
488 # man page
489 #
490 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
491         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
492
493 #
494 # Build shell scripts by doing variable substitution.
495 # Taken from autoconf 2.13.
496 #
497 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
498
499 SUFFIXES = .sh
500 .sh:
501         rm -f $@ $@.tmp
502         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
503
504 #
505 # Build "tshark-tap-register.c", which contains a function
506 # "register_all_tap_listeners()"
507 # that calls the register routines for all tshark tap listeners.
508 #
509 # We do this by grepping through sources.
510 #
511 # Formatting conventions:  The name of the tap_listener_register_*
512 # routines must start in column zero, or must be preceded only by
513 # "void " starting in column zero, and must not be inside #if.
514 #
515 # The first argument is the directory in which the source files live.
516 # All subsequent arguments are the files to scan.
517 #
518 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
519         @echo Making tshark-tap-register.c
520         @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
521
522 ps.c: print.ps rdps
523         ./rdps $(srcdir)/print.ps ps.c
524
525 rdps: rdps.c
526         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
527
528 #
529 # XXX - "svnversion.h" is distributed in the release tarball; should
530 # we be deleting it with "make clean", or should we only do that with
531 # "make maintainer-clean"?
532 #
533 CLEANFILES =            \
534         svnversion.h    \
535         @rdps_bin@      \
536         idl2wrs         \
537         *~              \
538         vgcore.*
539
540 #
541 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
542 # list of files removed by "make distclean"?  (It's deliberately
543 # included in that list.)
544 #
545 DISTCLEANFILES = \
546         AUTHORS-SHORT           \
547         AUTHORS-SHORT-FORMAT    \
548         ps.c                    \
549         ws.css
550
551 MAINTAINERCLEANFILES =          \
552         $(GENERATED_FILES)      \
553         Makefile.in             \
554         aclocal.m4              \
555         config.h.in             \
556         configure               \
557         depcomp                 \
558         install-sh              \
559         ltmain.sh               \
560         missing
561
562 EXTRA_DIST = \
563         INSTALL.configure       \
564         Makefile.am.inc         \
565         Makefile.common         \
566         Makefile.nmake          \
567         Makefile.nmake.inc      \
568         README.aix              \
569         README.bsd              \
570         README.hpux             \
571         README.irix             \
572         README.linux            \
573         README.macos            \
574         README.tru64            \
575         README.vmware           \
576         README.win32            \
577         aclocal-fallback/glib-2.0.m4 \
578         aclocal-fallback/gtk-2.0.m4 \
579         aclocal-flags           \
580         adns_dll.dep            \
581         adns_dll.rc             \
582         autogen.sh              \
583         capinfos.c              \
584         capture-wpcap.c         \
585         capture-wpcap.h         \
586         capture_wpcap_packet.c  \
587         capture_wpcap_packet.h  \
588         cfilters                \
589         colorfilters            \
590         config.h.win32          \
591         config.nmake            \
592         debian/changelog        \
593         debian/compat           \
594         debian/control          \
595         debian/copyright        \
596         debian/dirs             \
597         debian/headers-check.c  \
598         debian/patches/00list   \
599         debian/patches/03_preferences.dpatch \
600         debian/postinst         \
601         debian/pycompat         \
602         debian/pyversions       \
603         debian/rules            \
604         debian/tshark.files     \
605         debian/tshark.manpages  \
606         debian/watch            \
607         debian/wireshark-common.files \
608         debian/wireshark-common.manpages \
609         debian/wireshark-common.shlibs \
610         debian/wireshark-dev.docs \
611         debian/wireshark-dev.files \
612         debian/wireshark-dev.header-files \
613         debian/wireshark-dev.manpages \
614         debian/wireshark-dev.prerm \
615         debian/wireshark-root.desktop \
616         debian/wireshark.desktop \
617         debian/wireshark.files \
618         debian/wireshark.manpages \
619         debian/wireshark.menu   \
620         dfilters                \
621         docbook/Makefile.auto.am        \
622         docbook/ws.css          \
623         doxygen.cfg.in          \
624         dumpcap.c       \
625         editcap.c               \
626         wireshark.desktop       \
627         idl/cosnaming.idl       \
628         idl/tango.idl   \
629         idl/parlay/am.idl       \
630         idl/parlay/cccs.idl     \
631         idl/parlay/cm.idl       \
632         idl/parlay/common_cc_data.idl   \
633         idl/parlay/cs.idl       \
634         idl/parlay/dsc.idl      \
635         idl/parlay/fw_data.idl  \
636         idl/parlay/fw_if.idl    \
637         idl/parlay/fw_if_access.idl     \
638         idl/parlay/fw_if_app.idl        \
639         idl/parlay/fw_if_entop.idl      \
640         idl/parlay/fw_if_service.idl    \
641         idl/parlay/gcc_data.idl \
642         idl/parlay/gcc_interfaces.idl   \
643         idl/parlay/gms.idl      \
644         idl/parlay/mm.idl       \
645         idl/parlay/mmccs.idl    \
646         idl/parlay/mmm.idl      \
647         idl/parlay/mpcc_data.idl        \
648         idl/parlay/mpcc_interfaces.idl  \
649         idl/parlay/osa.idl      \
650         idl/parlay/pam_data.idl \
651         idl/parlay/pam_interfaces.idl   \
652         idl/parlay/Parlay.idl   \
653         idl/parlay/policy_data.idl      \
654         idl/parlay/policy_interfaces.idl        \
655         idl/parlay/README.parlay        \
656         idl/parlay/termcap.idl  \
657         idl/parlay/ui_data.idl  \
658         idl/parlay/ui_interfaces.idl    \
659         image/capinfos.rc.in    \
660         image/clist_ascend.xpm  \
661         image/clist_descend.xpm \
662         image/dn_arrow.xpm      \
663         image/dumpcap.rc.in     \
664         image/editcap.rc.in     \
665         image/expert_chat.xpm   \
666         image/expert_error.xpm  \
667         image/expert_none.xpm   \
668         image/expert_note.xpm   \
669         image/expert_warn.xpm   \
670         image/file_dlg_win32.rc \
671         image/hi16-app-wireshark.png    \
672         image/hi32-app-wireshark.png    \
673         image/hi48-app-wireshark.png    \
674         image/icon_layout_1.xpm \
675         image/icon_layout_2.xpm \
676         image/icon_layout_3.xpm \
677         image/icon_layout_4.xpm \
678         image/icon_layout_5.xpm \
679         image/icon_layout_6.xpm \
680         image/libwireshark.rc.in        \
681         image/libwsutil.rc.in   \
682         image/lo16-app-wireshark.png    \
683         image/lo32-app-wireshark.png    \
684         image/lo48-app-wireshark.png    \
685         image/Makefile.nmake    \
686         image/mergecap.rc.in    \
687         image/nsis-checked.bmp  \
688         image/nsis-unchecked.bmp        \
689         image/rawshark.rc.in    \
690         image/README.image      \
691         image/stock_dialog_error_48.xpm \
692         image/stock_dialog_info_48.xpm  \
693         image/stock_dialog_question_48.xpm      \
694         image/stock_dialog_stop_48.xpm  \
695         image/stock_dialog_warning_48.xpm       \
696         image/text2pcap.rc.in   \
697         image/toolbar/autoscroll_24.xpm \
698         image/toolbar/capture_airpcap_16.xpm \
699         image/toolbar/capture_capture_16.xpm \
700         image/toolbar/capture_details_16.xpm \
701         image/toolbar/capture_details_24.xpm \
702         image/toolbar/capture_ethernet_16.xpm  \
703         image/toolbar/capture_filter_24.xpm     \
704         image/toolbar/capture_interfaces_24.xpm \
705         image/toolbar/capture_options_24.xpm    \
706         image/toolbar/capture_prepare_16.xpm \
707         image/toolbar/capture_restart_24.xpm    \
708         image/toolbar/capture_start_24.xpm      \
709         image/toolbar/capture_stop_24.xpm       \
710         image/toolbar/checkbox_16.xpm   \
711         image/toolbar/colorize_24.xpm   \
712         image/toolbar/conversations_16.xpm      \
713         image/toolbar/decode_as_16.xpm  \
714         image/toolbar/display_filter_24.xpm     \
715         image/toolbar/endpoints_16.xpm  \
716         image/toolbar/expert_info_16.xpm        \
717         image/toolbar/file_set_list_16.xpm      \
718         image/toolbar/file_set_next_16.xpm      \
719         image/toolbar/file_set_previous_16.xpm  \
720         image/toolbar/flow_graph_16.xpm \
721         image/toolbar/graphs_16.xpm     \
722         image/toolbar/icon_color_0.xpm  \
723         image/toolbar/icon_color_1.xpm  \
724         image/toolbar/icon_color_2.xpm  \
725         image/toolbar/icon_color_3.xpm  \
726         image/toolbar/icon_color_4.xpm  \
727         image/toolbar/icon_color_5.xpm  \
728         image/toolbar/icon_color_6.xpm  \
729         image/toolbar/icon_color_7.xpm  \
730         image/toolbar/icon_color_8.xpm  \
731         image/toolbar/icon_color_9.xpm  \
732         image/toolbar/internet_24.xpm   \
733         image/toolbar/modem_16.png      \
734         image/toolbar/modem_16.xpm      \
735         image/toolbar/network_bluetooth_16.png  \
736         image/toolbar/network_bluetooth_16.xpm  \
737         image/toolbar/network_virtual_16.xpm    \
738         image/toolbar/network_wired_16.png      \
739         image/toolbar/network_wired_16.xpm      \
740         image/toolbar/network_wireless_16.png   \
741         image/toolbar/network_wireless_16.xpm   \
742         image/toolbar/resize_columns_24.xpm     \
743         image/toolbar/telephony_16.xpm  \
744         image/toolbar/time_24.xpm       \
745         image/toolbar/web_support_24.xpm        \
746         image/toolbar/wep_closed_24.xpm \
747         image/toolbar/wiki_24.xpm       \
748         image/tshark.rc.in      \
749         image/up_arrow.xpm      \
750         image/wiresharkdoc.ico  \
751         image/wireshark.exe.manifest.in \
752         image/wireshark.ico     \
753         image/wiresharkinst.ico \
754         image/wireshark.rc.in   \
755         image/wiretap.rc.in     \
756         image/wsicon16.png      \
757         image/wsicon16.xpm      \
758         image/wsicon256.png     \
759         image/wsicon32.png      \
760         image/wsicon32.xpm      \
761         image/wsicon48.png      \
762         image/wsicon48.xpm      \
763         image/wsicon64.png      \
764         image/wsicon64.xpm      \
765         image/wsiconcap16.xpm   \
766         image/wsiconcap256.png  \
767         image/wsiconcap32.xpm   \
768         image/wsiconcap48.xpm   \
769         image/wsiconcap.svg     \
770         image/wsicondoc256.png  \
771         image/wsicondoc.svg     \
772         image/wsiconinst256.png \
773         image/wsiconinst.svg    \
774         image/wsicon.svg        \
775         image/wslogo.eps        \
776         image/wslogo.svg        \
777         image/wssplash.xpm      \
778         image/wssplash-dev.xpm  \
779         ipmap.html      \
780         make-authors-format.pl  \
781         make-authors-short.pl   \
782         make-manuf              \
783         make-tapreg-dotc        \
784         make-version.pl         \
785         manuf                   \
786         manuf.tmpl              \
787         mergecap.c              \
788         perlnoutf.pl            \
789         print.ps                \
790         $(diameter_DATA)        \
791         $(dtds_DATA)            \
792         $(radius_DATA)          \
793         $(tpncp_DATA)           \
794         $(wimaxasncp_DATA)      \
795         randpkt.c               \
796         rdps.c                  \
797         smi_modules             \
798         text2pcap-scanner.l     \
799         text2pcap.c             \
800         text2pcap.h             \
801         services                \
802         wka.tmpl
803
804 if SETUID_INSTALL
805 install-exec-hook:
806         -chmod +s $(DESTDIR)$(bindir)/dumpcap
807 else
808 install-exec-hook:
809 endif
810
811 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap wsutil
812
813 if HAVE_PLUGINS
814 SUBDIRS = tools wsutil wiretap doc epan plugins packaging help @wireshark_SUBDIRS@
815 else
816 SUBDIRS = tools wsutil wiretap doc epan packaging help @wireshark_SUBDIRS@
817 endif
818
819 help/faq.txt: $(srcdir)/help/faq.py
820         (cd help ; \
821         $(MAKE) faq.txt ;)
822
823 wireshark.1: doc/wireshark.pod AUTHORS-SHORT-FORMAT
824         (cd doc ; \
825         $(MAKE) ../wireshark.1 )
826
827 tshark.1: doc/tshark.pod
828         (cd doc ; \
829         $(MAKE) ../tshark.1 )
830
831 wireshark-filter.4: tshark doc/wireshark-filter.pod.template
832         (cd doc ; \
833         $(MAKE) ../wireshark-filter.4 )
834
835 capinfos.1: doc/capinfos.pod
836         (cd doc ; \
837         $(MAKE) ../capinfos.1 )
838
839 editcap.1: doc/editcap.pod
840         (cd doc ; \
841         $(MAKE) ../editcap.1 )
842
843 idl2wrs.1: doc/idl2wrs.pod
844         (cd doc ; \
845         $(MAKE) ../idl2wrs.1 )
846
847 mergecap.1: doc/mergecap.pod
848         (cd doc ; \
849         $(MAKE) ../mergecap.1 )
850
851 text2pcap.1: doc/text2pcap.pod
852         (cd doc ; \
853         $(MAKE) ../text2pcap.1 )
854
855 dumpcap.1: doc/dumpcap.pod
856         (cd doc ; \
857         $(MAKE) ../dumpcap.1 )
858
859 rawshark.1: doc/rawshark.pod
860         (cd doc ; \
861         $(MAKE) ../rawshark.1 )
862
863 ws.css: $(srcdir)/docbook/ws.css
864         cp $(srcdir)/docbook/ws.css .
865
866 wireshark.html: doc/wireshark.pod AUTHORS-SHORT-FORMAT ws.css
867         (cd doc ; \
868         $(MAKE) ../wireshark.html )
869
870 tshark.html: doc/tshark.pod ws.css
871         (cd doc ; \
872         $(MAKE) ../tshark.html )
873
874 wireshark-filter.html: tshark doc/wireshark-filter.pod.template ws.css
875         (cd doc ; \
876         $(MAKE) ../wireshark-filter.html )
877
878 capinfos.html: doc/capinfos.pod ws.css
879         (cd doc ; \
880         $(MAKE) ../capinfos.html )
881
882 editcap.html: doc/editcap.pod ws.css
883         (cd doc ; \
884         $(MAKE) ../editcap.html )
885
886 idl2wrs.html: doc/idl2wrs.pod ws.css
887         (cd doc ; \
888         $(MAKE) ../idl2wrs.html )
889
890 mergecap.html: doc/mergecap.pod ws.css
891         (cd doc ; \
892         $(MAKE) ../mergecap.html )
893
894 text2pcap.html: doc/text2pcap.pod ws.css
895         (cd doc ; \
896         $(MAKE) ../text2pcap.html )
897
898 dumpcap.html: doc/dumpcap.pod ws.css
899         (cd doc ; \
900         $(MAKE) ../dumpcap.html )
901
902 rawshark.html: doc/rawshark.pod ws.css
903         (cd doc ; \
904         $(MAKE) ../rawshark.html )
905
906 libtool: $(LIBTOOL_DEPS)
907         $(SHELL) ./config.status --recheck
908
909 # Used by svr4-package and osx-package
910 # We load top_stagedir with an explicit path so that libtool doesn't freak.
911 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
912 stagedir=$(top_stagedir)/$(PACKAGE).inst
913
914 host_cpu=@host_cpu@
915 host_os=@host_os@
916
917 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
918         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
919                 rm -rf $(stagedir) ; \
920                 $(MAKE) DESTDIR=$(stagedir) install; \
921                 $(srcdir)/packaging/svr4/mkpkg \
922                         $(PACKAGE) \
923                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
924                         $(prefix) \
925                         $(top_stagedir) ; \
926         else \
927                 echo "Error: SVR4 packaging tools not found." ; \
928                 echo "Package build abandoned." ; \
929         fi
930
931 solaris-package: svr4-package
932
933 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
934 rpm-package: dist
935         if test x$(HAVE_RPM) = xyes ; then \
936                 cd $(rpm_topdir) ; \
937                 mkdir -p BUILD RPMS SOURCES ; \
938                 cd SOURCES ; \
939                 ln -s ../../../$(distdir).tar.gz ; \
940                 ln -s ../../../wireshark.desktop ; \
941                 ln -s ../../../image/wsicon64.png wireshark.png ; \
942                 cd .. ; \
943                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
944                         echo "Package successfully built in `pwd`/RPMS." ; \
945         else \
946                 echo "Error: RPM executable and/or source directory not found." ; \
947         fi
948 srpm-package: dist
949         if test x$(HAVE_RPM) = xyes ; then \
950                 cd $(rpm_topdir) ; \
951                 mkdir -p BUILD SRPMS SOURCES ; \
952                 cd SOURCES ; \
953                 ln -s ../../../$(distdir).tar.gz ; \
954                 ln -s ../../../wireshark.desktop ; \
955                 ln -s ../../../image/wsicon64.png wireshark.png ; \
956                 cd .. ; \
957                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
958                         echo "Package successfully built in `pwd`/SRPMS." ; \
959         else \
960                 echo "Error: RPM executable and/or source directory not found." ; \
961         fi
962
963 debian-package: debian/rules
964         @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
965                 dpkg-buildpackage -rfakeroot -us -uc ; \
966         else \
967                 echo "Error: Debian packaging tools not found." ; \
968                 echo "Package build abandoned." ; \
969         fi
970
971 # XXX - This assumes we're building from the source directory.
972 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
973         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
974                 rm -rf $(stagedir) ; \
975                 $(MAKE) DESTDIR=$(stagedir) install; \
976                 cd $(srcdir)/packaging/macosx ;  \
977                 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
978         else \
979                 echo "Error: OS X packaging tools not found." ; \
980                 echo "Package build abandoned." ; \
981         fi
982
983 osx-package: osx-app
984         @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
985                 cd $(srcdir)/packaging/macosx ;  \
986                 ./osx-dmg.sh ; \
987         fi
988
989 clean-local:
990         rm -rf $(top_stagedir)
991
992 checkapi_local:
993         $(PERL) tools/checkAPIs.pl \
994         $(TSHARK_TAP_SRC)
995 #       $(wireshark_SOURCES)
996 #       $(EXTRA_wireshark_SOURCES)
997
998 checkapi: checkapi_local
999         cd wiretap && $(MAKE) checkapi
1000         cd ../codecs && $(MAKE) checkapi
1001 ##      cd ../gtk && $(MAKE) checkapi
1002 ##      cd ../epan && $(MAKE) checkapi
1003 ##      cd ../epan/crypt && $(MAKE) checkapi
1004         cd ../dfilter && $(MAKE) checkapi
1005 ##      cd ../ftypes && $(MAKE) checkapi
1006 ##      cd ../wslua && $(MAKE) checkapi
1007         cd ../dissectors && $(MAKE) checkapi
1008         cd ../../plugins && $(MAKE) checkapi
1009         cd ../wsutil && $(MAKE) checkapi