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