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