Give the code that computes protocol statistics a progress dialog box,
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Ethereal
3 #
4 # $Id: Makefile.am,v 1.296 2001/03/24 02:07:20 guy Exp $
5 #
6 # Ethereal - Network traffic analyzer
7 # By Gerald Combs <gerald@zing.org>
8 # Copyright 1998 Gerald Combs
9 #
10
11 # This program is free software; you can redistribute it and/or
12 # modify it under the terms of the GNU General Public License
13 # as published by the Free Software Foundation; either version 2
14 # of the License, or (at your option) any later version.
15
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24
25 ACLOCAL_AMFLAGS = `./aclocal-flags`
26
27 #
28 # This is a hideous hack.
29 #
30 # Automake needs to know into which sections to install various man
31 # pages; if the names in "man_MANS" have suffixes, it can infer the
32 # sections from the name (e.g., "hello.1" goes in section 1), but if
33 # they don't have suffixes, it can't tell what sections to put them, and
34 # it just gives up and doesn't create any rules to install them (and it
35 # gives up silently, so you have no clue what's wrong).
36 #
37 # Therefore, we can't just set "man_MANS" to a list of variables to be
38 # filled in by the configure script, as those variables don't have man
39 # page section numbers.
40 #
41 # It turns out (although this is not documented anywhere I could find
42 # in the automake Info file) that if you define, instead, variables with
43 # names like "man{section}_MANS", automake will infer that the names in
44 # those variables are the names of man pages to be installed in section
45 # "{section}".
46 #
47 # So, as all our man pages go in section 1, we define "man1_MANS" to
48 # contain all the man page.
49 #
50 # *However*, if "man_MANS" isn't defined at all, automake concludes that
51 # there are no man pages, the fact that, say, "man1_MANS" is defined
52 # nonwithstanding!  (I suspect this is the result of a mistaken attempt
53 # to get people to fix their automake files not to use "MANS"; if "MANS"
54 # is defined, it prints a warning and sets the exit status, but doesn't
55 # exit, and then it just gives up if "man_MANS" isn't defined,
56 # presumably on the theory that the only reason it wouldn't be defined
57 # is because the automake file uses the obsolete "MANS" variable instead
58 # of the shiny new "man_MANS" variable.)
59 #
60 # So we also define "man_MANS", but don't define it as anything;
61 # automake will arrange that the Makefile define it as the union of all
62 # the "man{section}_MANS" variables.
63 #
64 bin_PROGRAMS = @ethereal_bin@ @editcap_bin@ @tethereal_bin@ @dftest_bin@ @randpkt_bin@
65 man1_MANS = @ethereal_man@ @editcap_man@ @tethereal_man@
66 man_MANS = 
67
68 EXTRA_PROGRAMS = ethereal ethereal_static tethereal tethereal_static editcap dftest
69
70 sysconf_DATA = manuf
71
72 DISSECTOR_SOURCES = \
73         packet-aarp.c  \
74         packet-afs.c   \
75         packet-aim.c   \
76         packet-arp.c   \
77         packet-ascend.c\
78         packet-atalk.c \
79         packet-atm.c   \
80         packet-auto_rp.c   \
81         packet-bgp.c   \
82         packet-bootp.c \
83         packet-bootparams.c \
84         packet-bpdu.c  \
85         packet-bxxp.c \
86         packet-cdp.c   \
87         packet-cgmp.c  \
88         packet-chdlc.c  \
89         packet-clip.c  \
90         packet-clnp.c  \
91         packet-cops.c  \
92         packet-cups.c  \
93         packet-data.c  \
94         packet-dcerpc.c  \
95         packet-ddtp.c  \
96         packet-dec-bpdu.c \
97         packet-diameter.c \
98         packet-dns.c   \
99         packet-eigrp.c \
100         packet-esis.c  \
101         packet-eth.c   \
102         packet-ethertype.c   \
103         packet-fddi.c  \
104         packet-fr.c    \
105         packet-frame.c  \
106         packet-ftp.c   \
107         packet-giop.c  \
108         packet-gre.c   \
109         packet-gvrp.c  \
110         packet-h1.c    \
111         packet-h261.c  \
112         packet-hclnfsd.c  \
113         packet-hsrp.c  \
114         packet-http.c  \
115         packet-icmpv6.c\
116         packet-icp.c   \
117         packet-icq.c   \
118         packet-igrp.c  \
119         packet-imap.c   \
120         packet-ip.c    \
121         packet-ipp.c   \
122         packet-ipsec.c \
123         packet-ipv6.c  \
124         packet-ipx.c   \
125         packet-irc.c   \
126         packet-ieee80211.c \
127         packet-ieee8023.c \
128         packet-isakmp.c\
129         packet-isis.c  \
130         packet-isis-clv.c \
131         packet-isis-hello.c \
132         packet-isis-lsp.c \
133         packet-isis-snp.c \
134         packet-isl.c   \
135         packet-iua.c   \
136         packet-kerberos.c \
137         packet-l2tp.c  \
138         packet-lapb.c  \
139         packet-lapbether.c \
140         packet-lapd.c  \
141         packet-ldap.c  \
142         packet-ldp.c   \
143         packet-llc.c   \
144         packet-lmi.c   \
145         packet-lpd.c   \
146         packet-m3ua.c  \
147         packet-mapi.c  \
148         packet-mip.c  \
149         packet-mount.c \
150         packet-mpls.c \
151         packet-msproxy.c \
152         packet-nbipx.c \
153         packet-nbns.c  \
154         packet-ncp.c   \
155         packet-ncp2222.c   \
156         packet-netbios.c \
157         packet-nfs.c   \
158         packet-nlm.c   \
159         packet-nntp.c  \
160         packet-ntp.c  \
161         packet-null.c  \
162         packet-osi.c   \
163         packet-osi-options.c \
164         packet-ospf.c  \
165         packet-pim.c   \
166         packet-pop.c   \
167         packet-portmap.c   \
168         packet-ppp.c   \
169         packet-pppoe.c \
170         packet-pptp.c  \
171         packet-q2931.c \
172         packet-q931.c  \
173         packet-quake.c \
174         packet-radius.c\
175         packet-raw.c   \
176         packet-rip.c   \
177         packet-ripng.c \
178         packet-rlogin.c \
179         packet-rpc.c   \
180         packet-rquota.c \
181         packet-rsh.c   \
182         packet-rsvp.c  \
183         packet-rtcp.c  \
184         packet-rtp.c   \
185         packet-rtsp.c  \
186         packet-rx.c  \
187         packet-sap.c   \
188         packet-sctp.c   \
189         packet-sdp.c   \
190         packet-sip.c   \
191         packet-sll.c   \
192         packet-smb.c   \
193         packet-smb-browse.c \
194         packet-smb-common.c \
195         packet-smb-logon.c \
196         packet-smb-mailslot.c \
197         packet-smb-pipe.c \
198         packet-smtp.c \
199         packet-sna.c   \
200         packet-snmp.c   \
201         packet-socks.c \
202         packet-srvloc.c \
203         packet-sscop.c \
204         packet-stat.c   \
205         packet-stat-notify.c \
206         packet-sual.c   \
207         packet-syslog.c \
208         packet-tacacs.c \
209         packet-tcp.c   \
210         packet-telnet.c\
211         packet-tftp.c  \
212         packet-time.c  \
213         packet-tns.c \
214         packet-tpkt.c  \
215         packet-tr.c    \
216         packet-trmac.c \
217         packet-udp.c   \
218         packet-v120.c \
219         packet-vines.c \
220         packet-vlan.c \
221         packet-vrrp.c \
222         packet-vtp.c  \
223         packet-wccp.c \
224         packet-wcp.c \
225         packet-who.c  \
226         packet-wap.c \
227         packet-wtls.c \
228         packet-wsp.c \
229         packet-wtp.c \
230         packet-x11.c   \
231         packet-x25.c   \
232         packet-xot.c   \
233         packet-yhoo.c  \
234         packet-ypbind.c \
235         packet-ypserv.c \
236         packet-ypxfr.c \
237         packet-zebra.c
238
239 noinst_HEADERS = \
240         packet-afs.h   \
241         packet-afs-macros.h \
242         packet-afs-register-info.h \
243         packet-afs-defs.h \
244         packet-arp.h   \
245         packet-atalk.h \
246         packet-bgp.h   \
247         packet-bootparams.h \
248         packet-chdlc.h \
249         packet-clip.h  \
250         packet-ddtp.h  \
251         packet-diameter-defs.h \
252         packet-dns.h   \
253         packet-esis.h  \
254         packet-eth.h   \
255         packet-fddi.h  \
256         packet-frame.h  \
257         packet-gvrp.h  \
258         packet-h261.h  \
259         packet-hclnfsd.h  \
260         packet-http.h  \
261         packet-ieee80211.h \
262         packet-ieee8023.h \
263         packet-ip.h    \
264         packet-ipsec.h \
265         packet-ipv6.h  \
266         packet-ipx.h   \
267         packet-isis.h  \
268         packet-isis-clv.h \
269         packet-isis-hello.h \
270         packet-isis-lsp.h \
271         packet-isis-snp.h \
272         packet-isl.h   \
273         packet-ldap.h  \
274         packet-llc.h   \
275         packet-mount.h \
276         packet-ncp-int.h \
277         packet-netbios.h \
278         packet-nfs.h   \
279         packet-nlm.h   \
280         packet-ntp.h  \
281         packet-null.h  \
282         packet-osi.h   \
283         packet-osi-options.h \
284         packet-portmap.h   \
285         packet-ppp.h   \
286         packet-q2931.h \
287         packet-q931.h  \
288         packet-raw.h   \
289         packet-ripng.h \
290         packet-rpc.h   \
291         packet-rquota.h \
292         packet-rtcp.h  \
293         packet-rtp.h   \
294         packet-rx.h  \
295         packet-sll.h   \
296         packet-smb.h   \
297         packet-smb-browse.h \
298         packet-smb-common.h \
299         packet-smb-logon.h \
300         packet-smb-mailslot.h \
301         packet-smb-pipe.h \
302         packet-sna.h   \
303         packet-snmp.h   \
304         packet-sscop.h \
305         packet-stat.h   \
306         packet-stat-notify.h \
307         packet-tcp.h   \
308         packet-tns.h \
309         packet-tpkt.h  \
310         packet-tr.h    \
311         packet-udp.h   \
312         packet-vines.h \
313         packet-vlan.h \
314         packet-wccp.h \
315         packet-wap.h \
316         packet-wtls.h \
317         packet-wtp.h \
318         packet-wsp.h \
319         packet-x11-declarations.h       \
320         packet-x11-register-info.h      \
321         packet-x11-keysym.h     \
322         packet-yhoo.h  \
323         packet-ypbind.h \
324         packet-ypserv.h \
325         packet-ypxfr.h 
326
327 ETHEREAL_COMMON_SOURCES = \
328         aftypes.h      \
329         alignment.h    \
330         asn1.c         \
331         asn1.h         \
332         bridged_pids.h \
333         column.c       \
334         column.h       \
335         color.h        \
336         etypes.h       \
337         follow.c       \
338         follow.h       \
339         greproto.h     \
340         in_cksum.c     \
341         in_cksum.h     \
342         ipproto.c      \
343         llcsaps.h      \
344         nlpid.h        \
345         oui.h          \
346         ppptypes.h     \
347         prefs.c        \
348         prefs.h        \
349         prefs-int.h    \
350         print.c        \
351         print.h        \
352         ps.c           \
353         ps.h           \
354         ptvcursor.c     \
355         ptvcursor.h     \
356         register.c     \
357         register.h     \
358         smb.h          \
359         timestamp.h    \
360         util.c         \
361         util.h         \
362         xdlc.c         \
363         xdlc.h
364
365 ethereal_SOURCES = \
366         $(DISSECTOR_SOURCES) \
367         $(ETHEREAL_COMMON_SOURCES) \
368         capture.c      \
369         capture.h      \
370         file.c         \
371         file.h         \
372         filters.c      \
373         filters.h      \
374         globals.h      \
375         menu.h         \
376         progress_dlg.h \
377         proto_hier_stats.h      \
378         proto_hier_stats.c      \
379         simple_dialog.h \
380         summary.c      \
381         summary.h      \
382         ui_util.h
383
384 ethereal_static_SOURCES = \
385         $(ethereal_SOURCES)
386
387 EXTRA_ethereal_SOURCES = \
388         snprintf.c      \
389         snprintf.h      \
390         snprintf-imp.h  \
391         strerror.c      \
392         strerror.h      \
393         strcasecmp.c    \
394         strncasecmp.c   \
395         mkstemp.c       \
396         mkstemp.h
397
398 # Optional objects that I know how to build. These will be
399 # linked into the ethereal executable.
400 # They will also be linked into the tethereal executable; if this
401 # list ever grows to include something that can't be linked with
402 # tethereal, or if tethereal needs something that ethereal doesn't,
403 # we should probably split this into stuff needed both
404 # by ethereal and tethereal and stuff needed only by one or the
405 # other.
406 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
407         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@
408
409 # Additional libs that I know how to build. These will be
410 # linked into the ethereal executable.
411 ethereal_additional_libs = \
412         wiretap/libwiretap.a    \
413         gtk/libui.a             \
414         epan/libethereal.a      \
415         epan/ftypes/libftypes.a \
416         epan/dfilter/libdfilter.a
417
418 # This is the automake dependency variable for the executable
419 ethereal_DEPENDENCIES = \
420         $(ethereal_optional_objects)    \
421         $(ethereal_additional_libs)     \
422         plugins/gryphon/gryphon.la \
423         plugins/mgcp/mgcp.la
424
425 ethereal_static_DEPENDENCIES = \
426         $(ethereal_optional_objects)    \
427         $(ethereal_additional_libs)
428
429 # This automake variable adds to the link-line for the executable.
430 #
431 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
432 # they are included in @GTK_LIBS@, and doesn't have to be linked with
433 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
434 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
435 # applications are X applications).
436 ethereal_LDADD = \
437         $(ethereal_optional_objects)    \
438         $(ethereal_additional_libs)     \
439         @SNMP_LIBS@ @SSL_LIBS@          \
440         "-dlopen" self  \
441         "-dlopen" plugins/gryphon/gryphon.la @PCAP_LIBS@ @GTK_LIBS@ \
442         "-dlopen" plugins/mgcp/mgcp.la @PCAP_LIBS@ @GTK_LIBS@
443
444 ethereal_static_LDADD = \
445         $(ethereal_optional_objects)    \
446         $(ethereal_additional_libs)     \
447         @SNMP_LIBS@ @SSL_LIBS@          \
448         @PCAP_LIBS@ @GTK_LIBS@
449
450 ethereal_LDFLAGS = -export-dynamic
451 ethereal_static_LDFLAGS = -Wl,-static
452
453 tethereal_SOURCES = \
454         $(DISSECTOR_SOURCES) \
455         $(ETHEREAL_COMMON_SOURCES) \
456         tethereal.c
457
458 tethereal_static_SOURCES = \
459         $(tethereal_SOURCES)
460
461 # Additional libs that I know how to build. These will be
462 # linked into the tethereal executable.
463 tethereal_additional_libs =             \
464         wiretap/libwiretap.a            \
465         epan/libethereal.a              \
466         epan/ftypes/libftypes.a         \
467         epan/dfilter/libdfilter.a
468
469 # This is the automake dependency variable for the executable
470 tethereal_DEPENDENCIES = \
471         $(ethereal_optional_objects)    \
472         $(tethereal_additional_libs)    \
473         plugins/gryphon/gryphon.la      \
474         plugins/mgcp/mgcp.la
475
476 tethereal_static_DEPENDENCIES = \
477         $(ethereal_optional_objects)    \
478         $(tethereal_additional_libs)    
479
480 # This automake variable adds to the link-line for the executable
481 tethereal_LDADD = wiretap/libwiretap.a  \
482         $(ethereal_optional_objects)    \
483         $(tethereal_additional_libs)    \
484         @SNMP_LIBS@ @SSL_LIBS@          \
485         "-dlopen" self  \
486         "-dlopen" plugins/gryphon/gryphon.la @GLIB_LIBS@ -lm \
487         "-dlopen" plugins/mgcp/mgcp.la @GLIB_LIBS@ -lm \
488         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
489
490 tethereal_static_LDADD = wiretap/libwiretap.a   \
491         $(ethereal_optional_objects)    \
492         $(tethereal_additional_libs)    \
493         @SNMP_LIBS@ @SSL_LIBS@          \
494         @GLIB_LIBS@ -lm \
495         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
496
497 tethereal_LDFLAGS = -export-dynamic
498 tethereal_static_LDFLAGS = -Wl,-static
499
500 editcap_SOURCES = editcap.c
501
502 # This is the automake dependency variable for the executable
503 editcap_DEPENDENCIES = wiretap/libwiretap.a
504
505 # This automake variable adds to the link-line for the executable
506 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
507
508 #
509 # Build "register.c", which contains a function "register_all_protocols()"
510 # that calls the register routines for all protocols.
511 #
512 # We do this by grepping through sources.  If that turns out to be too slow,
513 # maybe we could just require every .o file to have an register routine
514 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
515 #
516 # Formatting conventions:  The name of the proto_register_* routines must
517 # start in column zero, or must be preceded only by "void " starting in
518 # column zero, and must not be inside #if.
519 #
520 # We assume that all dissector routines are in "packet-XXX.c" files.
521 #
522 # For some unknown reason, having a big "for" loop in the Makefile
523 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
524 # they seem to pass only the first few names in the list to the shell,
525 # for some reason.
526 #
527 # Therefore, we have a script to generate the "register.c" file.
528 #
529 # The first argument is the directory in which the source files live.
530 # All subsequent arguments are the files to scan.
531 #
532 register.c: $(DISSECTOR_SOURCES) $(srcdir)/make-reg-dotc
533         @echo Making register.c
534         @$(srcdir)/make-reg-dotc $(srcdir) $(DISSECTOR_SOURCES)
535
536 ps.c: print.ps rdps
537         ./rdps $(srcdir)/print.ps ps.c
538
539 rdps: rdps.c
540         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
541
542 randpkt.o: randpkt.c
543         $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
544
545 randpkt: randpkt.o wiretap/libwiretap.a
546         $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
547
548
549 dftest_SOURCES = \
550         $(DISSECTOR_SOURCES) \
551         $(ETHEREAL_COMMON_SOURCES) \
552         dftest.c
553
554 dftest_additional_libs =                \
555         epan/libethereal.a              \
556         epan/ftypes/libftypes.a         \
557         epan/dfilter/libdfilter.a
558
559 dftest_DEPENDENCIES = \
560         $(ethereal_optional_objects)    \
561         $(dftest_additional_libs)       \
562         plugins/gryphon/gryphon.la \
563         plugins/mgcp/mgcp.la
564
565 # This automake variable adds to the link-line for the executable
566 dftest_LDADD = \
567         $(ethereal_optional_objects)    \
568         $(dftest_additional_libs)       \
569         @SNMP_LIBS@ @SSL_LIBS@          \
570         "-dlopen" self  \
571         "-dlopen" plugins/gryphon/gryphon.la @GLIB_LIBS@ -lm \
572         "-dlopen" plugins/mgcp/mgcp.la @GLIB_LIBS@ -lm \
573         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
574
575 dftest_LDFLAGS = -export-dynamic
576
577 DISTCLEANFILES =        \
578         register.c      \
579         rdps            \
580         ps.c            \
581         *~
582
583 EXTRA_DIST = \
584         aclocal-flags           \
585         config.h.win32          \
586         config.nmake            \
587         debian/README.debian    \
588         debian/changelog        \
589         debian/control          \
590         debian/copyright        \
591         debian/dirs             \
592         debian/docs             \
593         debian/menu             \
594         debian/postinst         \
595         debian/prerm            \
596         debian/rules            \
597         doc/README.developer    \
598         doc/Makefile.in         \
599         doc/Makefile.am         \
600         doc/README.regression   \
601         doc/README.tvbuff       \
602         doc/dfilter2pod.pl      \
603         doc/editcap.pod         \
604         doc/ethereal.pod.template \
605         doc/randpkt.txt         \
606         doc/tethereal.pod.template \
607         editcap.c               \
608         getopt.c                \
609         getopt.h                \
610         ieee-float.h            \
611         image/editcap.rc        \
612         image/ethereal48x48-trans.png  \
613         image/ethereal48x48.png \
614         image/ethereal.ico      \
615         image/ethereal.rc       \
616         image/icon-excl.xpm     \
617         image/icon-ethereal.xpm \
618         image/tethereal.rc      \
619         INSTALL.configure       \
620         libpcap-0.4.HPUX.HPUXPAC.patch \
621         libpcap-0.4.HPUX.LBL.patch \
622         libpcap-0.5.HPUX.tcpdump.org.patch \
623         Makefile.nmake          \
624         make-reg-dotc           \
625         make-reg-dotc.py        \
626         manuf                   \
627         ncp2222.py              \
628         packet-ncp2222.inc      \
629         print.ps                \
630         README.aix              \
631         README.bsd              \
632         README.hpux             \
633         README.irix             \
634         README.linux            \
635         README.tru64            \
636         README.vmware           \
637         README.win32            \
638         randpkt.c               \
639         rdps.c                  \
640         TODO
641
642 if SETUID_INSTALL
643 install-exec-hook:
644         -chmod +s $(DESTDIR)$(bindir)/ethereal
645         -chmod +s $(DESTDIR)$(bindir)/tethereal
646         -chmod +s $(DESTDIR)$(bindir)/ethereal_static
647 else
648 install-exec-hook:
649 endif
650
651 #
652 # Currently register.c can be included in the distribution because
653 # we always build all protocol dissectors. We used to have to check
654 # whether or not to build the snmp dissector. If we again need to
655 # variably build something, making register.c non-portable, uncomment
656 # the dist-hook line below.
657 #
658 # Oh, yuk.  We don't want to include "register.c" in the distribution, as
659 # its contents depend on the configuration, and therefore we want it
660 # to be built when the first "make" is done; however, Automake insists
661 # on putting *all* source into the distribution.
662 #
663 # We work around this by having a "dist-hook" rule that deletes
664 # "register.c", so that "dist" won't pick it up.
665 #
666 #dist-hook:
667 #       @rm -f $(distdir)/register.c
668
669 SUBDIRS = tools wiretap epan plugins packaging @ethereal_SUBDIRS@
670
671 ethereal.1: ethereal doc/ethereal.pod.template
672         (cd doc ; \
673         $(MAKE) ../ethereal.1 )
674
675 tethereal.1: tethereal doc/tethereal.pod.template
676         (cd doc ; \
677         $(MAKE) ../tethereal.1 )
678
679 editcap.1: doc/editcap.pod
680         (cd doc ; \
681         $(MAKE) ../editcap.1 )
682
683 packet-ncp2222.c : ncp2222.py
684         $(PYTHON) $(srcdir)/ncp2222.py > $@
685
686 libtool: $(LIBTOOL_DEPS)
687         $(SHELL) ./config.status --recheck
688
689 # We load top_stagedir with an explicit path so that libtool doesn't freak.
690 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
691 stagedir=$(top_stagedir)/$(PACKAGE).stage
692 host_cpu=@host_cpu@
693 host_os=@host_os@
694
695 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
696         if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
697                 rm -rf $(stagedir) ; \
698                 $(MAKE) DESTDIR=$(stagedir) install-strip; \
699                 $(srcdir)/packaging/svr4/mkpkg \
700                         $(PACKAGE) \
701                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
702                         $(prefix) \
703                         $(top_stagedir) ; \
704         else \
705                 echo "Error: SVR4 packaging tools not found." ; \
706                 echo "Package build abandoned." ; \
707         fi
708
709 solaris-package: svr4-package
710
711 specfile=$(top_srcdir)/packaging/rpm/ethereal.spec
712
713 rpm-package: dist
714         if test x$(HAVE_RPM_PACKAGING) = xyes ; then \
715                 cp $(top_srcdir)/$(distdir).tar.gz $(RPM_SOURCEDIR) ; \
716                 rpm -bb --clean --rmsource $(specfile) ; \
717         else \
718                 echo "Error: RPM executable and/or source directory not found." ; \
719                 echo "Package build abandoned." ; \
720         fi
721
722 srpm-package: dist
723         if test x$(HAVE_RPM_PACKAGING) = xyes ; then \
724                 cp $(top_srcdir)/$(distdir).tar.gz $(RPM_SOURCEDIR) ; \
725                 rpm -bs --clean --rmsource $(specfile) ; \
726         else \
727                 echo "Error: RPM executable and/or source directory not found." ; \
728                 echo "Package build abandoned." ; \
729         fi
730
731 debian-package: debian/rules
732         dpkg-buildpackage -rfakeroot -us -uc
733
734 clean-local:
735         rm -rf $(top_stagedir)