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