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