fix doxygen generation
[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).  It currently
75 # contains the "AUTHORS-SHORT" and "manuf" files and a "diameter" directory.
76 #
77 pkgdata_DATA = AUTHORS-SHORT manuf ethereal.html tethereal.html \
78         ethereal-filter.html capinfos.html editcap.html \
79         idl2eth.html mergecap.html text2pcap.html
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 PLATFORM_SRC = pcap-util-unix.c
90
91 include Makefile.common
92
93 if HAVE_PLUGINS
94 plugin_libs = \
95         plugins/acn/acn.la \
96         plugins/artnet/artnet.la \
97         plugins/asn1/asn1.la \
98         plugins/ciscosm/ciscosm.la \
99         plugins/docsis/docsis.la \
100         plugins/enttec/enttec.la \
101         plugins/giop/cosnaming.la \
102         plugins/giop/coseventcomm.la \
103         plugins/gryphon/gryphon.la \
104         plugins/irda/irda.la \
105         plugins/lwres/lwres.la \
106         plugins/megaco/megaco.la \
107         plugins/mgcp/mgcp.la \
108         plugins/opsi/opsi.la \
109         plugins/pcli/pcli.la \
110         plugins/rdm/rdm.la \
111         plugins/rlm/rlm.la \
112         plugins/rtnet/rtnet.la \
113         plugins/rudp/rudp.la \
114         plugins/v5ua/v5ua.la
115
116 if ENABLE_STATIC
117 plugin_ldadd = \
118         plugins/acn/packet-acn.o \
119         plugins/artnet/packet-artnet.o \
120         plugins/asn1/packet-asn1.o \
121         plugins/ciscosm/packet-sm.o \
122         plugins/docsis/packet-bpkmattr.o \
123         plugins/docsis/packet-bpkmreq.o \
124         plugins/docsis/packet-bpkmrsp.o \
125         plugins/docsis/packet-docsis.o \
126         plugins/docsis/packet-dsaack.o \
127         plugins/docsis/packet-dsareq.o \
128         plugins/docsis/packet-dsarsp.o \
129         plugins/docsis/packet-dscack.o \
130         plugins/docsis/packet-dscreq.o \
131         plugins/docsis/packet-dscrsp.o \
132         plugins/docsis/packet-dsdreq.o \
133         plugins/docsis/packet-dsdrsp.o \
134         plugins/docsis/packet-macmgmt.o \
135         plugins/docsis/packet-map.o \
136         plugins/docsis/packet-regack.o \
137         plugins/docsis/packet-regreq.o \
138         plugins/docsis/packet-regrsp.o \
139         plugins/docsis/packet-rngreq.o \
140         plugins/docsis/packet-rngrsp.o \
141         plugins/docsis/packet-tlv.o \
142         plugins/docsis/packet-uccreq.o \
143         plugins/docsis/packet-uccrsp.o \
144         plugins/docsis/packet-ucd.o \
145         plugins/enttec/packet-enttec.o \
146         plugins/giop/packet-cosnaming.o \
147         plugins/giop/packet-coseventcomm.o \
148         plugins/gryphon/packet-gryphon.o \
149         plugins/irda/packet-irda.o \
150         plugins/lwres/packet-lwres.o \
151         plugins/megaco/packet-megaco.o \
152         plugins/mgcp/packet-mgcp.o \
153         plugins/opsi/packet-opsi.o \
154         plugins/pcli/packet-pcli.o \
155         plugins/rdm/packet-rdm.o \
156         plugins/rlm/packet-rlm.o \
157         plugins/rtnet/packet-rtnet.o \
158         plugins/rudp/packet-rudp.o \
159         plugins/v5ua/packet-v5ua.o
160
161 else            # ENABLE_STATIC
162 plugin_ldadd = \
163         "-dlopen" self  \
164         "-dlopen" plugins/acn/acn.la \
165         "-dlopen" plugins/artnet/artnet.la \
166         "-dlopen" plugins/asn1/asn1.la \
167         "-dlopen" plugins/ciscosm/ciscosm.la \
168         "-dlopen" plugins/docsis/docsis.la \
169         "-dlopen" plugins/enttec/enttec.la \
170         "-dlopen" plugins/giop/cosnaming.la \
171         "-dlopen" plugins/giop/coseventcomm.la \
172         "-dlopen" plugins/gryphon/gryphon.la \
173         "-dlopen" plugins/irda/irda.la \
174         "-dlopen" plugins/lwres/lwres.la \
175         "-dlopen" plugins/megaco/megaco.la \
176         "-dlopen" plugins/mgcp/mgcp.la \
177         "-dlopen" plugins/opsi/opsi.la \
178         "-dlopen" plugins/pcli/pcli.la \
179         "-dlopen" plugins/rdm/rdm.la \
180         "-dlopen" plugins/rlm/rlm.la \
181         "-dlopen" plugins/rtnet/rtnet.la \
182         "-dlopen" plugins/rudp/rudp.la \
183         "-dlopen" plugins/v5ua/v5ua.la
184
185 endif           # ENABLE_STATIC
186
187 else            # HAVE_PLUGINS
188 plugin_libs =
189
190 plugin_ldadd =
191 endif           # HAVE_PLUGINS
192
193 # Optional objects that I know how to build. These will be
194 # linked into the ethereal executable.
195 # They will also be linked into the tethereal executable; if this
196 # list ever grows to include something that can't be linked with
197 # tethereal, or if tethereal needs something that ethereal doesn't,
198 # we should probably split this into stuff needed both
199 # by ethereal and tethereal and stuff needed only by one or the
200 # other.
201 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
202         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
203
204 # Additional libs that I know how to build. These will be
205 # linked into the ethereal executable.
206 ethereal_additional_libs = \
207         gtk/libui.a             \
208         wiretap/libwiretap.la   \
209         epan/libethereal.la
210
211 # This is the automake dependency variable for the executable
212 ethereal_DEPENDENCIES = \
213         $(ethereal_optional_objects)    \
214         $(ethereal_additional_libs)     \
215         $(plugin_libs)
216
217 # This automake variable adds to the link-line for the executable.
218 #
219 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
220 # they are included in @GTK_LIBS@, and doesn't have to be linked with
221 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
222 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
223 # applications are X applications).
224
225 if ENABLE_STATIC
226 ethereal_LDFLAGS = -Wl,-static -all-static
227 else
228 ethereal_LDFLAGS = -export-dynamic
229 endif
230
231 ethereal_LDADD = \
232         $(ethereal_optional_objects)    \
233         $(ethereal_additional_libs)     \
234         @SNMP_LIBS@ @SSL_LIBS@          \
235         $(plugin_ldadd)                 \
236         @PCRE_LIBS@                     \
237         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@
238
239 # Additional libs that I know how to build. These will be
240 # linked into the tethereal executable.
241 tethereal_additional_libs =             \
242         wiretap/libwiretap.la           \
243         epan/libethereal.la
244
245 # This is the automake dependency variable for the executable
246 tethereal_DEPENDENCIES = \
247         $(ethereal_optional_objects)    \
248         $(tethereal_additional_libs)    \
249         $(plugin_libs)
250
251 # This automake variable adds to the link-line for the executable
252 tethereal_LDADD = \
253         $(ethereal_optional_objects)    \
254         $(tethereal_additional_libs)    \
255         @SNMP_LIBS@ @SSL_LIBS@          \
256         $(plugin_ldadd)                 \
257         @PCRE_LIBS@                     \
258         @GLIB_LIBS@ -lm                 \
259         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@
260
261 if ENABLE_STATIC
262 tethereal_LDFLAGS = -Wl,-static -all-static
263 else
264 tethereal_LDFLAGS = -export-dynamic
265 endif
266
267 # Optional objects that I know how to build, and that are needed by
268 # text2pcap.
269 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
270
271 text2pcap_DEPENDENCIES = text2pcap.h
272
273 # This automake variable adds to the link-line for the executable
274 text2pcap_LDADD = $(text2pcap_optional_objects) \
275         @GLIB_LIBS@ -lm
276
277 mergecap_DEPENDENCIES = wiretap/libwiretap.la
278
279 # This is the automake dependency variable for the executable
280 capinfos_DEPENDENCIES = wiretap/libwiretap.la
281 editcap_DEPENDENCIES = wiretap/libwiretap.la
282
283 # This automake variable adds to the link-line for the executable
284 capinfos_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
285 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
286 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
287
288 # Common headers
289 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
290
291 #
292 # Build the version string
293 #
294 # FORCE is the portable version of .PHONY
295 FORCE:
296
297 svnversion.h: FORCE
298         $(PERL) $(srcdir)/make-version.pl
299
300 #
301 # Build the short version of the authors file for the about dialog
302 #
303 AUTHORS-SHORT: AUTHORS make-authors-short.pl
304         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < AUTHORS > AUTHORS-SHORT
305
306 #
307 # Build the short version of the authors file with formatting codes for the
308 # man page
309 #
310 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
311         $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
312
313 #
314 # Build shell scripts by doing variable substitution.
315 # Taken from autoconf 2.13.
316 #
317 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
318
319 SUFFIXES = .sh
320 .sh:
321         rm -f $@ $@.tmp
322         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
323
324 #
325 # Build "tethereal-tap-register.c", which contains a function
326 # "register_all_tap_listeners()"
327 # that calls the register routines for all tehtereal tap listeners.
328 #
329 # We do this by grepping through sources.
330 #
331 # Formatting conventions:  The name of the tap_listener_register_*
332 # routines must start in column zero, or must be preceded only by
333 # "void " starting in column zero, and must not be inside #if.
334 #
335 # The first argument is the directory in which the source files live.
336 # All subsequent arguments are the files to scan.
337 #
338 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
339         @echo Making tethereal-tap-register.c
340         @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
341  
342 ps.c: print.ps rdps
343         ./rdps $(srcdir)/print.ps ps.c
344
345 rdps: rdps.c
346         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
347
348 randpkt_additional_libs = wiretap/libwiretap.la
349
350 randpkt_DEPENDENCIES = \
351         $(randpkt_additional_libs)
352
353 randpkt_LDADD = \
354         $(randpkt_additional_libs) \
355         @GLIB_LIBS@ -lm                 \
356         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
357
358 dftest_additional_libs =                \
359         wiretap/libwiretap.la           \
360         epan/libethereal.la
361
362 dftest_DEPENDENCIES = \
363         $(ethereal_optional_objects)    \
364         $(dftest_additional_libs)       \
365         $(plugin_libs)
366
367 # This automake variable adds to the link-line for the executable
368 dftest_LDADD = \
369         $(ethereal_optional_objects)    \
370         $(dftest_additional_libs)       \
371         @SNMP_LIBS@ @SSL_LIBS@          \
372         $(plugin_ldadd)                 \
373         @PCRE_LIBS@                     \
374         @GLIB_LIBS@ -lm                 \
375         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@
376
377 dftest_LDFLAGS = -export-dynamic
378
379 CLEANFILES =    \
380         svnversion.h \
381         @rdps_bin@ \
382         idl2eth
383
384 DISTCLEANFILES = \
385         ps.c \
386         *~
387
388 MAINTAINERCLEANFILES =          \
389         ps.c
390
391 EXTRA_DIST = \
392         AUTHORS-SHORT           \
393         AUTHORS-SHORT-FORMAT    \
394         FAQ                     \
395         INSTALL.configure       \
396         Makefile.common         \
397         Makefile.nmake          \
398         README.aix              \
399         README.bsd              \
400         README.hpux             \
401         README.irix             \
402         README.linux            \
403         README.macos            \
404         README.tru64            \
405         README.vmware           \
406         README.win32            \
407         TODO                    \
408         aclocal-fallback/glib-2.0.m4 \
409         aclocal-fallback/glib.m4 \
410         aclocal-fallback/gtk-2.0.m4 \
411         aclocal-fallback/gtk.m4 \
412         aclocal-flags           \
413         autogen.sh              \
414         capinfos.c              \
415         capture-wpcap.c         \
416         capture-wpcap.h         \
417         cleanbld.bat            \
418         config.h.win32          \
419         config.nmake            \
420         debian/README.debian    \
421         debian/changelog        \
422         debian/control          \
423         debian/copyright        \
424         debian/dirs             \
425         debian/docs             \
426         debian/menu             \
427         debian/postinst         \
428         debian/prerm            \
429         debian/rules            \
430         dictionary.dtd          \
431         dictionary.xml          \
432         doc/Makefile.am         \
433         doc/Makefile.nmake      \
434         doc/README.capture      \
435         doc/README.design       \
436         doc/README.developer    \
437         doc/README.idl2eth      \
438         doc/README.plugins      \
439         doc/README.regression   \
440         doc/README.tapping      \
441         doc/README.tvbuff       \
442         doc/README.xml-output   \
443         doc/capinfos.pod                \
444         doc/dfilter2pod.pl      \
445         doc/editcap.pod         \
446         doc/ethereal-filter.pod.template \
447         doc/ethereal.pod        \
448         doc/idl2eth.pod         \
449         doc/mergecap.pod        \
450         doc/randpkt.txt         \
451         doc/tethereal.pod       \
452         doc/text2pcap.pod       \
453         doxygen.cfg.in          \
454         editcap.c               \
455         epan/libethereal.def    \
456         ethereal_be.py          \
457         ethereal_gen.py         \
458         ethereal.desktop        \
459         getopt.c                \
460         getopt.h                \
461         idl2eth.sh              \
462         image/Ethereal.icns     \
463         image/Makefile.nmake    \
464         image/README.image      \
465         image/capinfos.rc.in    \
466         image/clist_ascend.xpm  \
467         image/clist_descend.xpm \
468         image/dn_arrow.xpm      \
469         image/editcap.rc.in     \
470         image/eexcl3d64.xpm     \
471         image/eicon3d16.xpm     \
472         image/eicon3d32.xpm     \
473         image/eicon3d48.xpm     \
474         image/eicon3d64.xpm     \
475         image/elogo3d48x48.png  \
476         image/ethereal.ico      \
477         image/ethereal.rc.in    \
478         image/ethereal48x48-trans.png  \
479         image/ethereal48x48.png \
480         image/hi16-app-ethereal.png     \
481         image/hi32-app-ethereal.png     \
482         image/hi48-app-ethereal.png     \
483         image/icon-ethereal.xpm \
484         image/icon-excl.xpm     \
485         image/libethereal.rc.in \
486         image/lo16-app-ethereal.png     \
487         image/lo32-app-ethereal.png     \
488         image/lo48-app-ethereal.png     \
489         image/mergecap.rc.in    \
490         image/nsis-checked.bmp  \
491         image/nsis-unchecked.bmp        \
492         image/stock_dialog_error_48.xpm \
493         image/stock_dialog_warning_48.xpm       \
494         image/stock_dialog_question_48.xpm      \
495         image/stock_dialog_info_48.xpm  \
496         image/tethereal.rc.in   \
497         image/text2pcap.rc.in   \
498         image/toolbar/capture_24.xpm    \
499         image/toolbar/cfilter_24.xpm    \
500         image/toolbar/dfilter_24.xpm    \
501         image/toolbar/stock_add_24.xpm  \
502         image/toolbar/stock_bottom_24.xpm \
503         image/toolbar/stock_close_24.xpm        \
504         image/toolbar/stock_colorselector_24.xpm        \
505         image/toolbar/stock_help_24.xpm \
506         image/toolbar/stock_jump_to_24.xpm      \
507         image/toolbar/stock_left_arrow_24.xpm \
508         image/toolbar/stock_ok_20.xpm   \
509         image/toolbar/stock_open_24.xpm \
510         image/toolbar/stock_preferences_24.xpm  \
511         image/toolbar/stock_print_24.xpm        \
512         image/toolbar/stock_properties_24.xpm   \
513         image/toolbar/stock_refresh_24.xpm      \
514         image/toolbar/stock_right_arrow_24.xpm  \
515         image/toolbar/stock_save_24.xpm \
516         image/toolbar/stock_save_as_24.xpm \
517         image/toolbar/stock_search_24.xpm       \
518         image/toolbar/stock_stop_24.xpm \
519         image/toolbar/stock_top_24.xpm \
520         image/toolbar/stock_zoom_1_24.xpm \
521         image/toolbar/stock_zoom_in_24.xpm \
522         image/toolbar/stock_zoom_out_24.xpm \
523         image/up_arrow.xpm      \
524         image/icon_layout_1.xpm \
525         image/icon_layout_2.xpm \
526         image/icon_layout_3.xpm \
527         image/icon_layout_4.xpm \
528         image/icon_layout_5.xpm \
529         image/icon_layout_6.xpm \
530         image/wiretap.rc.in     \
531         imscxdx.xml             \
532         make-authors-format.pl  \
533         make-authors-short.pl   \
534         make-manuf              \
535         make-tapreg-dotc        \
536         make-version.pl         \
537         manuf                   \
538         manuf.tmpl              \
539         mergecap.c              \
540         mobileipv4.xml          \
541         nasreq.xml              \
542         perlnoutf.pl            \
543         print.ps                \
544         randpkt.c               \
545         rdps.c                  \
546         sunping.xml             \
547         text2pcap-scanner.l     \
548         text2pcap.c             \
549         text2pcap.h             \
550         wka.tmpl
551
552 if SETUID_INSTALL
553 install-exec-hook:
554         -chmod +s $(DESTDIR)$(bindir)/ethereal
555         -chmod +s $(DESTDIR)$(bindir)/tethereal
556 else
557 install-exec-hook:
558 endif
559
560 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk help
561
562 if HAVE_PLUGINS
563 SUBDIRS = tools wiretap doc epan plugins packaging help @ethereal_SUBDIRS@
564 else
565 SUBDIRS = tools wiretap doc epan packaging help @ethereal_SUBDIRS@
566 endif
567
568 ethereal.1: doc/ethereal.pod AUTHORS-SHORT-FORMAT
569         (cd doc ; \
570         $(MAKE) ../ethereal.1 )
571
572 tethereal.1: doc/tethereal.pod
573         (cd doc ; \
574         $(MAKE) ../tethereal.1 )
575
576 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
577         (cd doc ; \
578         $(MAKE) ../ethereal-filter.4 )
579
580 capinfos.1: doc/capinfos.pod
581         (cd doc ; \
582         $(MAKE) ../capinfos.1 )
583
584 editcap.1: doc/editcap.pod
585         (cd doc ; \
586         $(MAKE) ../editcap.1 )
587
588 idl2eth.1: doc/idl2eth.pod
589         (cd doc ; \
590         $(MAKE) ../idl2eth.1 )
591
592 mergecap.1: doc/mergecap.pod
593         (cd doc ; \
594         $(MAKE) ../mergecap.1 )
595
596 text2pcap.1: doc/text2pcap.pod
597         (cd doc ; \
598         $(MAKE) ../text2pcap.1 )
599
600 ethereal.html: doc/ethereal.pod AUTHORS-SHORT-FORMAT
601         (cd doc ; \
602         $(MAKE) ../ethereal.html )
603
604 tethereal.html: doc/tethereal.pod
605         (cd doc ; \
606         $(MAKE) ../tethereal.html )
607
608 ethereal-filter.html: tethereal doc/ethereal-filter.pod.template
609         (cd doc ; \
610         $(MAKE) ../ethereal-filter.html )
611
612 capinfos.html: doc/capinfos.pod
613         (cd doc ; \
614         $(MAKE) ../capinfos.html )
615
616 editcap.html: doc/editcap.pod
617         (cd doc ; \
618         $(MAKE) ../editcap.html )
619
620 idl2eth.html: doc/idl2eth.pod
621         (cd doc ; \
622         $(MAKE) ../idl2eth.html )
623
624 mergecap.html: doc/mergecap.pod
625         (cd doc ; \
626         $(MAKE) ../mergecap.html )
627
628 text2pcap.html: doc/text2pcap.pod
629         (cd doc ; \
630         $(MAKE) ../text2pcap.html )
631
632 libtool: $(LIBTOOL_DEPS)
633         $(SHELL) ./config.status --recheck
634
635 # We load top_stagedir with an explicit path so that libtool doesn't freak.
636 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
637 stagedir=$(top_stagedir)/$(PACKAGE).stage
638 host_cpu=@host_cpu@
639 host_os=@host_os@
640
641 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
642         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
643                 rm -rf $(stagedir) ; \
644                 $(MAKE) DESTDIR=$(stagedir) install; \
645                 $(srcdir)/packaging/svr4/mkpkg \
646                         $(PACKAGE) \
647                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
648                         $(prefix) \
649                         $(top_stagedir) ; \
650         else \
651                 echo "Error: SVR4 packaging tools not found." ; \
652                 echo "Package build abandoned." ; \
653         fi
654
655 solaris-package: svr4-package
656
657 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
658 rpm-package: dist
659         if test x$(HAVE_RPM) = xyes ; then \
660                 cd $(rpm_topdir) ; \
661                 mkdir -p BUILD RPMS SOURCES ; \
662                 cd SOURCES ; \
663                 ln -s ../../../$(distdir).tar.gz ; \
664                 cd .. ; \
665                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
666                         echo "Package successfully built in `pwd`/RPMS." ; \
667         else \
668                 echo "Error: RPM executable and/or source directory not found." ; \
669         fi
670 srpm-package: dist
671         if test x$(HAVE_RPM) = xyes ; then \
672                 cd $(rpm_topdir) ; \
673                 mkdir -p BUILD SRPMS SOURCES ; \
674                 cd SOURCES ; \
675                 ln -s ../../../$(distdir).tar.gz ; \
676                 cd .. ; \
677                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
678                         echo "Package successfully built in `pwd`/SRPMS." ; \
679         else \
680                 echo "Error: RPM executable and/or source directory not found." ; \
681         fi
682
683 debian-package: debian/rules
684         dpkg-buildpackage -rfakeroot -us -uc
685
686 clean-local:
687         rm -rf $(top_stagedir)
688
689 test-splint: $(ethereal_SOURCES)
690         splint \
691                 -gnu-extensions -D_U_=""        \
692                 -I. `glib-config --cflags` \
693                 -I./epan \
694                 -I./tools/lemon \
695                 -I./wiretap     \
696                 $(ethereal_SOURCES)