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