Add dictionarry.ericsson
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Ethereal
3 #
4 # $Id$
5 #
6 # Ethereal - Network traffic analyzer
7 # By Gerald Combs <gerald@ethereal.com>
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 #
27 # This is a hideous hack.
28 #
29 # Automake needs to know into which sections to install various man
30 # pages; if the names in "man_MANS" have suffixes, it can infer the
31 # sections from the name (e.g., "hello.1" goes in section 1), but if
32 # they don't have suffixes, it can't tell what sections to put them, and
33 # it just gives up and doesn't create any rules to install them (and it
34 # gives up silently, so you have no clue what's wrong).
35 #
36 # Therefore, we can't just set "man_MANS" to a list of variables to be
37 # filled in by the configure script, as those variables don't have man
38 # page section numbers.
39 #
40 # It turns out (although this is not documented anywhere I could find
41 # in the automake Info file) that if you define, instead, variables with
42 # names like "man{section}_MANS", automake will infer that the names in
43 # those variables are the names of man pages to be installed in section
44 # "{section}".
45 #
46 # So, as all our man pages go in section 1, we define "man1_MANS" to
47 # contain all the man page.
48 #
49 # *However*, if "man_MANS" isn't defined at all, automake concludes that
50 # there are no man pages, the fact that, say, "man1_MANS" is defined
51 # nonwithstanding!  (I suspect this is the result of a mistaken attempt
52 # to get people to fix their automake files not to use "MANS"; if "MANS"
53 # is defined, it prints a warning and sets the exit status, but doesn't
54 # exit, and then it just gives up if "man_MANS" isn't defined,
55 # presumably on the theory that the only reason it wouldn't be defined
56 # is because the automake file uses the obsolete "MANS" variable instead
57 # of the shiny new "man_MANS" variable.)
58 #
59 # So we also define "man_MANS", but don't define it as anything;
60 # automake will arrange that the Makefile define it as the union of all
61 # the "man{section}_MANS" variables.
62 #
63 bin_PROGRAMS = @ethereal_bin@ @capinfos_bin@ @editcap_bin@ @mergecap_bin@ @tethereal_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@
64 bin_SCRIPTS = @idl2eth_bin@
65 man1_MANS = @ethereal_man@ @capinfos_man@ @editcap_man@ @mergecap_man@ @tethereal_man@ @text2pcap_man@ @idl2eth_man@
66 man4_MANS = @etherealfilter_man@
67 man_MANS =
68
69 EXTRA_PROGRAMS = ethereal tethereal capinfos editcap mergecap dftest \
70         randpkt text2pcap
71 EXTRA_SCRIPTS = idl2eth
72
73 #
74 # Ethereal configuration files are put in $(pkgdatadir).
75 #
76 pkgdata_DATA = AUTHORS-SHORT manuf ethereal.html tethereal.html \
77         ethereal-filter.html capinfos.html editcap.html \
78         idl2eth.html mergecap.html text2pcap.html \
79         cfilters colorfilters dfilters
80
81 #
82 # Install the Diameter DTD and XML files in the "diameter" subdirectory
83 # of that directory.
84 #
85 diameterdir = $(pkgdatadir)/diameter
86 diameter_DATA = dictionary.dtd dictionary.xml imscxdx.xml mobileipv4.xml \
87         nasreq.xml sunping.xml
88
89 #
90 # Install the DTDs directory files in the "dtds" subdirectory
91 # of that directory
92 #
93 dtdsdir = $(pkgdatadir)/dtds
94 dtds_DATA = \
95     dtds/dc.dtd \
96     dtds/itunes.dtd \
97     dtds/rss.dtd \
98     dtds/smil.dtd
99
100 #
101 # Install the RADIUS directory files in the "radius" subdirectory
102 # of that directory.
103 #
104 radiusdir = $(pkgdatadir)/radius
105 radius_DATA = \
106         radius/dictionary  \
107         radius/dictionary.3com  \
108         radius/dictionary.3gpp  \
109         radius/dictionary.3gpp2  \
110         radius/dictionary.acc  \
111         radius/dictionary.alcatel  \
112         radius/dictionary.alteon  \
113         radius/dictionary.altiga  \
114         radius/dictionary.aptis  \
115         radius/dictionary.ascend  \
116         radius/dictionary.bay  \
117         radius/dictionary.bintec  \
118         radius/dictionary.bristol  \
119         radius/dictionary.cablelabs  \
120         radius/dictionary.cabletron  \
121         radius/dictionary.cisco  \
122         radius/dictionary.cisco.bbsm  \
123         radius/dictionary.cisco.vpn3000  \
124         radius/dictionary.cisco.vpn5000  \
125         radius/dictionary.colubris  \
126         radius/dictionary.columbia_university  \
127         radius/dictionary.compat  \
128         radius/dictionary.cosine  \
129         radius/dictionary.ericsson  \
130         radius/dictionary.erx  \
131         radius/dictionary.extreme  \
132         radius/dictionary.foundry  \
133         radius/dictionary.freeradius  \
134         radius/dictionary.gandalf  \
135         radius/dictionary.garderos  \
136         radius/dictionary.gemtek  \
137         radius/dictionary.itk  \
138         radius/dictionary.juniper  \
139         radius/dictionary.karlnet  \
140         radius/dictionary.livingston  \
141         radius/dictionary.localweb  \
142         radius/dictionary.merit  \
143         radius/dictionary.microsoft  \
144         radius/dictionary.mikrotik  \
145         radius/dictionary.navini  \
146         radius/dictionary.netscreen  \
147         radius/dictionary.nokia  \
148         radius/dictionary.nomadix  \
149         radius/dictionary.propel  \
150         radius/dictionary.quintum  \
151         radius/dictionary.redback  \
152         radius/dictionary.redcreek  \
153         radius/dictionary.shasta  \
154         radius/dictionary.shiva  \
155         radius/dictionary.sonicwall  \
156         radius/dictionary.springtide  \
157         radius/dictionary.t_systems_nova  \
158         radius/dictionary.telebit  \
159         radius/dictionary.trapeze  \
160         radius/dictionary.tunnel  \
161         radius/dictionary.unisphere  \
162         radius/dictionary.unix  \
163         radius/dictionary.usr  \
164         radius/dictionary.valemount  \
165         radius/dictionary.versanet  \
166         radius/dictionary.wispr  \
167         radius/dictionary.xedia
168
169 PLATFORM_SRC = pcap-util-unix.c
170
171 include Makefile.common
172
173 if HAVE_PLUGINS
174 plugin_libs = \
175         plugins/acn/acn.la \
176         plugins/agentx/agentx.la \
177         plugins/artnet/artnet.la \
178         plugins/asn1/asn1.la \
179         plugins/ciscosm/ciscosm.la \
180         plugins/docsis/docsis.la \
181         plugins/enttec/enttec.la \
182         plugins/giop/cosnaming.la \
183         plugins/giop/coseventcomm.la \
184         plugins/gryphon/gryphon.la \
185         plugins/irda/irda.la \
186         plugins/lwres/lwres.la \
187         plugins/megaco/megaco.la \
188         plugins/mgcp/mgcp.la \
189         plugins/opsi/opsi.la \
190         plugins/pcli/pcli.la \
191         plugins/profinet/profinet.la \
192         plugins/rdm/rdm.la \
193         plugins/rlm/rlm.la \
194         plugins/rtnet/rtnet.la \
195         plugins/rudp/rudp.la \
196         plugins/v5ua/v5ua.la
197
198 if ENABLE_STATIC
199 plugin_ldadd = $(plugin_libs)
200
201 else            # ENABLE_STATIC
202 plugin_ldadd = \
203         "-dlopen" self  \
204         "-dlopen" plugins/acn/acn.la \
205         "-dlopen" plugins/agentx/agentx.la \
206         "-dlopen" plugins/artnet/artnet.la \
207         "-dlopen" plugins/asn1/asn1.la \
208         "-dlopen" plugins/ciscosm/ciscosm.la \
209         "-dlopen" plugins/docsis/docsis.la \
210         "-dlopen" plugins/enttec/enttec.la \
211         "-dlopen" plugins/giop/cosnaming.la \
212         "-dlopen" plugins/giop/coseventcomm.la \
213         "-dlopen" plugins/gryphon/gryphon.la \
214         "-dlopen" plugins/irda/irda.la \
215         "-dlopen" plugins/lwres/lwres.la \
216         "-dlopen" plugins/megaco/megaco.la \
217         "-dlopen" plugins/mgcp/mgcp.la \
218         "-dlopen" plugins/opsi/opsi.la \
219         "-dlopen" plugins/pcli/pcli.la \
220         "-dlopen" plugins/profinet/profinet.la \
221         "-dlopen" plugins/rdm/rdm.la \
222         "-dlopen" plugins/rlm/rlm.la \
223         "-dlopen" plugins/rtnet/rtnet.la \
224         "-dlopen" plugins/rudp/rudp.la \
225         "-dlopen" plugins/v5ua/v5ua.la
226
227 endif           # ENABLE_STATIC
228
229 else            # HAVE_PLUGINS
230 plugin_libs =
231
232 plugin_ldadd =
233 endif           # HAVE_PLUGINS
234
235 # Optional objects that I know how to build. These will be
236 # linked into the ethereal executable.
237 # They will also be linked into the tethereal executable; if this
238 # list ever grows to include something that can't be linked with
239 # tethereal, or if tethereal needs something that ethereal doesn't,
240 # we should probably split this into stuff needed both
241 # by ethereal and tethereal and stuff needed only by one or the
242 # other.
243 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
244         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
245
246 # Additional libs that I know how to build. These will be
247 # linked into the ethereal executable.
248 ethereal_additional_libs = \
249         gtk/libui.a             \
250         wiretap/libwiretap.la   \
251         epan/libethereal.la
252
253 # This is the automake dependency variable for the executable
254 ethereal_DEPENDENCIES = \
255         $(ethereal_optional_objects)    \
256         $(ethereal_additional_libs)     \
257         $(plugin_libs)
258
259 # This automake variable adds to the link-line for the executable.
260 #
261 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
262 # they are included in @GTK_LIBS@, and doesn't have to be linked with
263 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
264 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
265 # applications are X applications).
266
267 if ENABLE_STATIC
268 ethereal_LDFLAGS = -Wl,-static -all-static
269 else
270 ethereal_LDFLAGS = -export-dynamic
271 endif
272
273 ethereal_LDADD = \
274         $(ethereal_optional_objects)    \
275         $(ethereal_additional_libs)     \
276         @SNMP_LIBS@ @SSL_LIBS@          \
277         $(plugin_ldadd)                 \
278         @PCRE_LIBS@                     \
279         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@
280
281 # Additional libs that I know how to build. These will be
282 # linked into the tethereal executable.
283 tethereal_additional_libs =             \
284         wiretap/libwiretap.la           \
285         epan/libethereal.la
286
287 # This is the automake dependency variable for the executable
288 tethereal_DEPENDENCIES = \
289         $(ethereal_optional_objects)    \
290         $(tethereal_additional_libs)    \
291         $(plugin_libs)
292
293 # This automake variable adds to the link-line for the executable
294 tethereal_LDADD = \
295         $(ethereal_optional_objects)    \
296         $(tethereal_additional_libs)    \
297         @SNMP_LIBS@ @SSL_LIBS@          \
298         $(plugin_ldadd)                 \
299         @PCRE_LIBS@                     \
300         @GLIB_LIBS@ -lm                 \
301         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@
302
303 if ENABLE_STATIC
304 tethereal_LDFLAGS = -Wl,-static -all-static
305 else
306 tethereal_LDFLAGS = -export-dynamic
307 endif
308
309 # Optional objects that I know how to build, and that are needed by
310 # text2pcap.
311 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
312
313 text2pcap_DEPENDENCIES = text2pcap.h
314
315 # This automake variable adds to the link-line for the executable
316 text2pcap_LDADD = $(text2pcap_optional_objects) \
317         @GLIB_LIBS@ -lm
318
319 mergecap_DEPENDENCIES = wiretap/libwiretap.la
320
321 # This is the automake dependency variable for the executable
322 capinfos_DEPENDENCIES = wiretap/libwiretap.la
323 editcap_DEPENDENCIES = wiretap/libwiretap.la
324
325 # This automake variable adds to the link-line for the executable
326 capinfos_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
327 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
328 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
329
330 # Common headers
331 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
332
333 #
334 # Build the version string
335 #
336 # FORCE is the portable version of .PHONY
337 FORCE:
338
339 svnversion.h: FORCE
340         $(PERL) $(srcdir)/make-version.pl $(srcdir)
341
342 #
343 # Build the short version of the authors file for the about dialog
344 #
345 AUTHORS-SHORT: AUTHORS make-authors-short.pl
346         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
347
348 #
349 # Build the short version of the authors file with formatting codes for the
350 # man page
351 #
352 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
353         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
354
355 #
356 # Build shell scripts by doing variable substitution.
357 # Taken from autoconf 2.13.
358 #
359 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
360
361 SUFFIXES = .sh
362 .sh:
363         rm -f $@ $@.tmp
364         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
365
366 #
367 # Build "tethereal-tap-register.c", which contains a function
368 # "register_all_tap_listeners()"
369 # that calls the register routines for all tethereal tap listeners.
370 #
371 # We do this by grepping through sources.
372 #
373 # Formatting conventions:  The name of the tap_listener_register_*
374 # routines must start in column zero, or must be preceded only by
375 # "void " starting in column zero, and must not be inside #if.
376 #
377 # The first argument is the directory in which the source files live.
378 # All subsequent arguments are the files to scan.
379 #
380 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
381         @echo Making tethereal-tap-register.c
382         @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
383
384 ps.c: print.ps rdps
385         ./rdps $(srcdir)/print.ps ps.c
386
387 rdps: rdps.c
388         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
389
390 randpkt_additional_libs = wiretap/libwiretap.la
391
392 randpkt_DEPENDENCIES = \
393         $(randpkt_additional_libs)
394
395 randpkt_LDADD = \
396         $(randpkt_additional_libs) \
397         @GLIB_LIBS@ -lm                 \
398         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
399
400 dftest_additional_libs =                \
401         wiretap/libwiretap.la           \
402         epan/libethereal.la
403
404 dftest_DEPENDENCIES = \
405         $(ethereal_optional_objects)    \
406         $(dftest_additional_libs)       \
407         $(plugin_libs)
408
409 # This automake variable adds to the link-line for the executable
410 dftest_LDADD = \
411         $(ethereal_optional_objects)    \
412         $(dftest_additional_libs)       \
413         @SNMP_LIBS@ @SSL_LIBS@          \
414         $(plugin_ldadd)                 \
415         @PCRE_LIBS@                     \
416         @GLIB_LIBS@ -lm                 \
417         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@
418
419 dftest_LDFLAGS = -export-dynamic
420
421 #
422 # XXX - "svnversion.h" is distributed in the release tarball; should
423 # we be deleting it with "make clean", or should we only do that with
424 # "make maintainer-clean"?
425 #
426 CLEANFILES =            \
427         svnversion.h    \
428         @rdps_bin@      \
429         idl2eth         \
430         *~              \
431         vgcore.pid*
432
433 #
434 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
435 # list of files removed by "make distclean"?  (It's deliberately
436 # included in that list.)
437 #
438 DISTCLEANFILES = \
439         AUTHORS-SHORT           \
440         AUTHORS-SHORT-FORMAT    \
441         ps.c
442
443 MAINTAINERCLEANFILES =          \
444         $(GENERATED_FILES)      \
445         Makefile.in             \
446         aclocal.m4              \
447         config.h.in             \
448         configure               \
449         depcomp                 \
450         install-sh              \
451         ltmain.sh               \
452         missing
453
454 EXTRA_DIST = \
455         FAQ                     \
456         INSTALL.configure       \
457         Makefile.common         \
458         Makefile.nmake          \
459         README.aix              \
460         README.bsd              \
461         README.hpux             \
462         README.irix             \
463         README.linux            \
464         README.macos            \
465         README.tru64            \
466         README.vmware           \
467         README.win32            \
468         aclocal-fallback/glib-2.0.m4 \
469         aclocal-fallback/glib.m4 \
470         aclocal-fallback/gtk-2.0.m4 \
471         aclocal-fallback/gtk.m4 \
472         aclocal-flags           \
473         autogen.sh              \
474         capinfos.c              \
475         capture-wpcap.c         \
476         capture-wpcap.h         \
477         capture_wpcap_packet.c  \
478         capture_wpcap_packet.h  \
479         cfilters                \
480         cleanbld.bat            \
481         colorfilters            \
482         config.h.win32          \
483         config.nmake            \
484         debian/README.debian    \
485         debian/changelog        \
486         debian/control          \
487         debian/copyright        \
488         debian/dirs             \
489         debian/docs             \
490         debian/menu             \
491         debian/postinst         \
492         debian/prerm            \
493         debian/rules            \
494         dfilters                \
495         dictionary.dtd          \
496         dictionary.xml          \
497         doc/Makefile.am         \
498         doc/Makefile.nmake      \
499         doc/README.capture      \
500         doc/README.design       \
501         doc/README.developer    \
502         doc/README.idl2eth      \
503         doc/README.plugins      \
504         doc/README.regression   \
505         doc/README.tapping      \
506         doc/README.tvbuff       \
507         doc/README.xml-output   \
508         doc/capinfos.pod                \
509         doc/dfilter2pod.pl      \
510         doc/editcap.pod         \
511         doc/ethereal-filter.pod.template \
512         doc/ethereal.pod        \
513         doc/idl2eth.pod         \
514         doc/mergecap.pod        \
515         doc/randpkt.txt         \
516         doc/tethereal.pod       \
517         doc/text2pcap.pod       \
518         docbook/Makefile.auto.am        \
519         doxygen.cfg.in          \
520         editcap.c               \
521         epan/libethereal.def    \
522         ethereal_be.py          \
523         ethereal_gen.py         \
524         ethereal.desktop        \
525         getopt.c                \
526         getopt.h                \
527         idl2eth.sh              \
528         image/Ethereal.icns     \
529         image/Makefile.nmake    \
530         image/README.image      \
531         image/capinfos.rc.in    \
532         image/clist_ascend.xpm  \
533         image/clist_descend.xpm \
534         image/dn_arrow.xpm      \
535         image/editcap.rc.in     \
536         image/eexcl3d64.xpm     \
537         image/eicon3d16.xpm     \
538         image/eicon3d32.xpm     \
539         image/eicon3d48.xpm     \
540         image/eicon3d64.xpm     \
541         image/elogo3d48x48.png  \
542         image/ethereal.ico      \
543         image/ethereal.rc.in    \
544         image/ethereal48x48-trans.png  \
545         image/ethereal48x48.png \
546         image/hi16-app-ethereal.png     \
547         image/hi32-app-ethereal.png     \
548         image/hi48-app-ethereal.png     \
549         image/icon-ethereal.xpm \
550         image/icon-excl.xpm     \
551         image/libethereal.rc.in \
552         image/lo16-app-ethereal.png     \
553         image/lo32-app-ethereal.png     \
554         image/lo48-app-ethereal.png     \
555         image/mergecap.rc.in    \
556         image/nsis-checked.bmp  \
557         image/nsis-unchecked.bmp        \
558         image/stock_dialog_error_48.xpm \
559         image/stock_dialog_warning_48.xpm       \
560         image/stock_dialog_question_48.xpm      \
561         image/stock_dialog_info_48.xpm  \
562         image/stock_dialog_stop_48.xpm  \
563         image/tethereal.rc.in   \
564         image/text2pcap.rc.in   \
565         image/toolbar/autoscroll_24.xpm \
566         image/toolbar/capture_filter_24.xpm     \
567         image/toolbar/capture_interfaces_24.xpm \
568         image/toolbar/capture_options_24.xpm    \
569         image/toolbar/capture_restart_24.xpm    \
570         image/toolbar/capture_start_24.xpm      \
571         image/toolbar/capture_stop_24.xpm       \
572         image/toolbar/checkbox_16.xpm   \
573         image/toolbar/colorize_24.xpm   \
574         image/toolbar/conversations_16.xpm      \
575         image/toolbar/decode_as_16.xpm  \
576         image/toolbar/display_filter_24.xpm     \
577         image/toolbar/endpoints_16.xpm  \
578         image/toolbar/file_set_list_16.xpm      \
579         image/toolbar/file_set_next_16.xpm      \
580         image/toolbar/file_set_previous_16.xpm  \
581         image/toolbar/graphs_16.xpm     \
582         image/toolbar/internet_24.xpm   \
583         image/toolbar/resize_columns_24.xpm     \
584         image/toolbar/stock_add_24.xpm  \
585         image/toolbar/stock_bottom_24.xpm       \
586         image/toolbar/stock_clear_24.xpm        \
587         image/toolbar/stock_close_24.xpm        \
588         image/toolbar/stock_colorselector_24.xpm        \
589         image/toolbar/stock_help_24.xpm \
590         image/toolbar/stock_jump_to_24.xpm      \
591         image/toolbar/stock_left_arrow_24.xpm   \
592         image/toolbar/stock_ok_20.xpm   \
593         image/toolbar/stock_open_24.xpm \
594         image/toolbar/stock_preferences_24.xpm  \
595         image/toolbar/stock_print_24.xpm        \
596         image/toolbar/stock_properties_24.xpm   \
597         image/toolbar/stock_refresh_24.xpm      \
598         image/toolbar/stock_right_arrow_24.xpm  \
599         image/toolbar/stock_save_24.xpm \
600         image/toolbar/stock_save_as_24.xpm      \
601         image/toolbar/stock_search_24.xpm       \
602         image/toolbar/stock_stop_24.xpm \
603         image/toolbar/stock_top_24.xpm  \
604         image/toolbar/stock_zoom_1_24.xpm       \
605         image/toolbar/stock_zoom_in_24.xpm      \
606         image/toolbar/stock_zoom_out_24.xpm     \
607         image/toolbar/telephony_16.xpm  \
608         image/toolbar/time_24.xpm       \
609         image/toolbar/web_support_24.xpm        \
610         image/toolbar/wiki_24.xpm       \
611         image/up_arrow.xpm      \
612         image/icon_layout_1.xpm \
613         image/icon_layout_2.xpm \
614         image/icon_layout_3.xpm \
615         image/icon_layout_4.xpm \
616         image/icon_layout_5.xpm \
617         image/icon_layout_6.xpm \
618         image/wiretap.rc.in     \
619         imscxdx.xml             \
620         make-authors-format.pl  \
621         make-authors-short.pl   \
622         make-manuf              \
623         make-tapreg-dotc        \
624         make-version.pl         \
625         manuf                   \
626         manuf.tmpl              \
627         mergecap.c              \
628         mobileipv4.xml          \
629         nasreq.xml              \
630         perlnoutf.pl            \
631         print.ps                \
632     dtds/dc.dtd \
633     dtds/itunes.dtd \
634     dtds/rss.dtd \
635     dtds/smil.dtd \
636         radius/dictionary  \
637         radius/dictionary.3com  \
638         radius/dictionary.3gpp  \
639         radius/dictionary.3gpp2  \
640         radius/dictionary.acc  \
641         radius/dictionary.alcatel  \
642         radius/dictionary.alteon  \
643         radius/dictionary.altiga  \
644         radius/dictionary.aptis  \
645         radius/dictionary.ascend  \
646         radius/dictionary.bay  \
647         radius/dictionary.bintec  \
648         radius/dictionary.bristol  \
649         radius/dictionary.cablelabs  \
650         radius/dictionary.cabletron  \
651         radius/dictionary.cisco  \
652         radius/dictionary.cisco.bbsm  \
653         radius/dictionary.cisco.vpn3000  \
654         radius/dictionary.cisco.vpn5000  \
655         radius/dictionary.colubris  \
656         radius/dictionary.columbia_university  \
657         radius/dictionary.compat  \
658         radius/dictionary.cosine  \
659         radius/dictionary.erx  \
660         radius/dictionary.extreme  \
661         radius/dictionary.foundry  \
662         radius/dictionary.freeradius  \
663         radius/dictionary.gandalf  \
664         radius/dictionary.garderos  \
665         radius/dictionary.gemtek  \
666         radius/dictionary.itk  \
667         radius/dictionary.juniper  \
668         radius/dictionary.karlnet  \
669         radius/dictionary.livingston  \
670         radius/dictionary.localweb  \
671         radius/dictionary.merit  \
672         radius/dictionary.microsoft  \
673         radius/dictionary.mikrotik  \
674         radius/dictionary.navini  \
675         radius/dictionary.netscreen  \
676         radius/dictionary.nokia  \
677         radius/dictionary.nomadix  \
678         radius/dictionary.propel  \
679         radius/dictionary.quintum  \
680         radius/dictionary.redback  \
681         radius/dictionary.redcreek  \
682         radius/dictionary.shasta  \
683         radius/dictionary.shiva  \
684         radius/dictionary.sonicwall  \
685         radius/dictionary.springtide  \
686         radius/dictionary.t_systems_nova  \
687         radius/dictionary.telebit  \
688         radius/dictionary.trapeze  \
689         radius/dictionary.tunnel  \
690         radius/dictionary.unisphere  \
691         radius/dictionary.unix  \
692         radius/dictionary.usr  \
693         radius/dictionary.valemount  \
694         radius/dictionary.versanet  \
695         radius/dictionary.wispr  \
696         radius/dictionary.xedia \
697         randpkt.c               \
698         rdps.c                  \
699         sunping.xml             \
700         text2pcap-scanner.l     \
701         text2pcap.c             \
702         text2pcap.h             \
703         wka.tmpl
704
705 if SETUID_INSTALL
706 install-exec-hook:
707         -chmod +s $(DESTDIR)$(bindir)/ethereal
708         -chmod +s $(DESTDIR)$(bindir)/tethereal
709 else
710 install-exec-hook:
711 endif
712
713 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk help
714
715 if HAVE_PLUGINS
716 SUBDIRS = tools wiretap doc epan plugins packaging help @ethereal_SUBDIRS@
717 else
718 SUBDIRS = tools wiretap doc epan packaging help @ethereal_SUBDIRS@
719 endif
720
721 ethereal.1: doc/ethereal.pod AUTHORS-SHORT-FORMAT
722         (cd doc ; \
723         $(MAKE) ../ethereal.1 )
724
725 tethereal.1: doc/tethereal.pod
726         (cd doc ; \
727         $(MAKE) ../tethereal.1 )
728
729 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
730         (cd doc ; \
731         $(MAKE) ../ethereal-filter.4 )
732
733 capinfos.1: doc/capinfos.pod
734         (cd doc ; \
735         $(MAKE) ../capinfos.1 )
736
737 editcap.1: doc/editcap.pod
738         (cd doc ; \
739         $(MAKE) ../editcap.1 )
740
741 idl2eth.1: doc/idl2eth.pod
742         (cd doc ; \
743         $(MAKE) ../idl2eth.1 )
744
745 mergecap.1: doc/mergecap.pod
746         (cd doc ; \
747         $(MAKE) ../mergecap.1 )
748
749 text2pcap.1: doc/text2pcap.pod
750         (cd doc ; \
751         $(MAKE) ../text2pcap.1 )
752
753 ethereal.html: doc/ethereal.pod AUTHORS-SHORT-FORMAT
754         (cd doc ; \
755         $(MAKE) ../ethereal.html )
756
757 tethereal.html: doc/tethereal.pod
758         (cd doc ; \
759         $(MAKE) ../tethereal.html )
760
761 ethereal-filter.html: tethereal doc/ethereal-filter.pod.template
762         (cd doc ; \
763         $(MAKE) ../ethereal-filter.html )
764
765 capinfos.html: doc/capinfos.pod
766         (cd doc ; \
767         $(MAKE) ../capinfos.html )
768
769 editcap.html: doc/editcap.pod
770         (cd doc ; \
771         $(MAKE) ../editcap.html )
772
773 idl2eth.html: doc/idl2eth.pod
774         (cd doc ; \
775         $(MAKE) ../idl2eth.html )
776
777 mergecap.html: doc/mergecap.pod
778         (cd doc ; \
779         $(MAKE) ../mergecap.html )
780
781 text2pcap.html: doc/text2pcap.pod
782         (cd doc ; \
783         $(MAKE) ../text2pcap.html )
784
785 libtool: $(LIBTOOL_DEPS)
786         $(SHELL) ./config.status --recheck
787
788 # We load top_stagedir with an explicit path so that libtool doesn't freak.
789 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
790 stagedir=$(top_stagedir)/$(PACKAGE).stage
791 host_cpu=@host_cpu@
792 host_os=@host_os@
793
794 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
795         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
796                 rm -rf $(stagedir) ; \
797                 $(MAKE) DESTDIR=$(stagedir) install; \
798                 $(srcdir)/packaging/svr4/mkpkg \
799                         $(PACKAGE) \
800                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
801                         $(prefix) \
802                         $(top_stagedir) ; \
803         else \
804                 echo "Error: SVR4 packaging tools not found." ; \
805                 echo "Package build abandoned." ; \
806         fi
807
808 solaris-package: svr4-package
809
810 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
811 rpm-package: dist
812         if test x$(HAVE_RPM) = xyes ; then \
813                 cd $(rpm_topdir) ; \
814                 mkdir -p BUILD RPMS SOURCES ; \
815                 cd SOURCES ; \
816                 ln -s ../../../$(distdir).tar.gz ; \
817                 ln -s ../../../ethereal.desktop ; \
818                 ln -s ../../../image/elogo3d64x64.png ethereal.png ; \
819                 cd .. ; \
820                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
821                         echo "Package successfully built in `pwd`/RPMS." ; \
822         else \
823                 echo "Error: RPM executable and/or source directory not found." ; \
824         fi
825 srpm-package: dist
826         if test x$(HAVE_RPM) = xyes ; then \
827                 cd $(rpm_topdir) ; \
828                 mkdir -p BUILD SRPMS SOURCES ; \
829                 cd SOURCES ; \
830                 ln -s ../../../$(distdir).tar.gz ; \
831                 ln -s ../../../ethereal.desktop ; \
832                 ln -s ../../../image/elogo3d64x64.png ethereal.png ; \
833                 cd .. ; \
834                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
835                         echo "Package successfully built in `pwd`/SRPMS." ; \
836         else \
837                 echo "Error: RPM executable and/or source directory not found." ; \
838         fi
839
840 debian-package: debian/rules
841         dpkg-buildpackage -rfakeroot -us -uc
842
843 clean-local:
844         rm -rf $(top_stagedir)
845
846 test-splint: $(ethereal_SOURCES)
847         splint \
848                 -gnu-extensions -D_U_=""        \
849                 -I. `glib-config --cflags` \
850                 -I./epan \
851                 -I./tools/lemon \
852                 -I./wiretap     \
853                 $(ethereal_SOURCES)