2 # Automake file for Ethereal
6 # Ethereal - Network traffic analyzer
7 # By Gerald Combs <gerald@ethereal.com>
8 # Copyright 1998 Gerald Combs
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.
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.
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.
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
27 # This is a hideous hack.
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).
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.
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
46 # So, as all our man pages go in section 1, we define "man1_MANS" to
47 # contain all the man page.
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.)
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.
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@
69 EXTRA_PROGRAMS = ethereal tethereal capinfos editcap mergecap dftest \
71 EXTRA_SCRIPTS = idl2eth
74 # Ethereal configuration files are put in $(pkgdatadir).
76 pkgdata_DATA = AUTHORS-SHORT manuf ethereal.html tethereal.html \
77 ethereal-filter.html capinfos.html editcap.html \
78 idl2eth.html mergecap.html text2pcap.html \
79 cfilters colorfilters dfilters
82 # Install the Diameter DTD and XML files in the "diameter" subdirectory
85 diameterdir = $(pkgdatadir)/diameter
86 diameter_DATA = dictionary.dtd dictionary.xml imscxdx.xml mobileipv4.xml \
87 nasreq.xml sunping.xml
90 # Install the DTDs directory files in the "dtds" subdirectory
93 dtdsdir = $(pkgdatadir)/dtds
101 # Install the RADIUS directory files in the "radius" subdirectory
104 radiusdir = $(pkgdatadir)/radius
107 radius/dictionary.3com \
108 radius/dictionary.3gpp \
109 radius/dictionary.3gpp2 \
110 radius/dictionary.acc \
111 radius/dictionary.alcatel \
112 radius/dictionary.alteon \
113 radius/dictionary.altiga \
114 radius/dictionary.aptis \
115 radius/dictionary.ascend \
116 radius/dictionary.bay \
117 radius/dictionary.bintec \
118 radius/dictionary.bristol \
119 radius/dictionary.cablelabs \
120 radius/dictionary.cabletron \
121 radius/dictionary.cisco \
122 radius/dictionary.cisco.bbsm \
123 radius/dictionary.cisco.vpn3000 \
124 radius/dictionary.cisco.vpn5000 \
125 radius/dictionary.colubris \
126 radius/dictionary.columbia_university \
127 radius/dictionary.compat \
128 radius/dictionary.cosine \
129 radius/dictionary.ericsson \
130 radius/dictionary.erx \
131 radius/dictionary.extreme \
132 radius/dictionary.foundry \
133 radius/dictionary.freeradius \
134 radius/dictionary.gandalf \
135 radius/dictionary.garderos \
136 radius/dictionary.gemtek \
137 radius/dictionary.itk \
138 radius/dictionary.juniper \
139 radius/dictionary.karlnet \
140 radius/dictionary.livingston \
141 radius/dictionary.localweb \
142 radius/dictionary.merit \
143 radius/dictionary.microsoft \
144 radius/dictionary.mikrotik \
145 radius/dictionary.navini \
146 radius/dictionary.netscreen \
147 radius/dictionary.nokia \
148 radius/dictionary.nomadix \
149 radius/dictionary.propel \
150 radius/dictionary.quintum \
151 radius/dictionary.redback \
152 radius/dictionary.redcreek \
153 radius/dictionary.shasta \
154 radius/dictionary.shiva \
155 radius/dictionary.sonicwall \
156 radius/dictionary.springtide \
157 radius/dictionary.t_systems_nova \
158 radius/dictionary.telebit \
159 radius/dictionary.trapeze \
160 radius/dictionary.tunnel \
161 radius/dictionary.unisphere \
162 radius/dictionary.unix \
163 radius/dictionary.usr \
164 radius/dictionary.valemount \
165 radius/dictionary.versanet \
166 radius/dictionary.wispr \
167 radius/dictionary.xedia
169 PLATFORM_SRC = pcap-util-unix.c
171 include Makefile.common
176 plugins/agentx/agentx.la \
177 plugins/artnet/artnet.la \
178 plugins/asn1/asn1.la \
179 plugins/ciscosm/ciscosm.la \
180 plugins/docsis/docsis.la \
181 plugins/enttec/enttec.la \
182 plugins/giop/cosnaming.la \
183 plugins/giop/coseventcomm.la \
184 plugins/gryphon/gryphon.la \
185 plugins/irda/irda.la \
186 plugins/lwres/lwres.la \
187 plugins/megaco/megaco.la \
188 plugins/mgcp/mgcp.la \
189 plugins/opsi/opsi.la \
190 plugins/pcli/pcli.la \
191 plugins/profinet/profinet.la \
194 plugins/rtnet/rtnet.la \
195 plugins/rudp/rudp.la \
199 plugin_ldadd = $(plugin_libs)
204 "-dlopen" plugins/acn/acn.la \
205 "-dlopen" plugins/agentx/agentx.la \
206 "-dlopen" plugins/artnet/artnet.la \
207 "-dlopen" plugins/asn1/asn1.la \
208 "-dlopen" plugins/ciscosm/ciscosm.la \
209 "-dlopen" plugins/docsis/docsis.la \
210 "-dlopen" plugins/enttec/enttec.la \
211 "-dlopen" plugins/giop/cosnaming.la \
212 "-dlopen" plugins/giop/coseventcomm.la \
213 "-dlopen" plugins/gryphon/gryphon.la \
214 "-dlopen" plugins/irda/irda.la \
215 "-dlopen" plugins/lwres/lwres.la \
216 "-dlopen" plugins/megaco/megaco.la \
217 "-dlopen" plugins/mgcp/mgcp.la \
218 "-dlopen" plugins/opsi/opsi.la \
219 "-dlopen" plugins/pcli/pcli.la \
220 "-dlopen" plugins/profinet/profinet.la \
221 "-dlopen" plugins/rdm/rdm.la \
222 "-dlopen" plugins/rlm/rlm.la \
223 "-dlopen" plugins/rtnet/rtnet.la \
224 "-dlopen" plugins/rudp/rudp.la \
225 "-dlopen" plugins/v5ua/v5ua.la
227 endif # ENABLE_STATIC
235 # Optional objects that I know how to build. These will be
236 # linked into the ethereal executable.
237 # They will also be linked into the tethereal executable; if this
238 # list ever grows to include something that can't be linked with
239 # tethereal, or if tethereal needs something that ethereal doesn't,
240 # we should probably split this into stuff needed both
241 # by ethereal and tethereal and stuff needed only by one or the
243 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
244 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
246 # Additional libs that I know how to build. These will be
247 # linked into the ethereal executable.
248 ethereal_additional_libs = \
250 wiretap/libwiretap.la \
253 # This is the automake dependency variable for the executable
254 ethereal_DEPENDENCIES = \
255 $(ethereal_optional_objects) \
256 $(ethereal_additional_libs) \
259 # This automake variable adds to the link-line for the executable.
261 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
262 # they are included in @GTK_LIBS@, and doesn't have to be linked with
263 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
264 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
265 # applications are X applications).
268 ethereal_LDFLAGS = -Wl,-static -all-static
270 ethereal_LDFLAGS = -export-dynamic
274 $(ethereal_optional_objects) \
275 $(ethereal_additional_libs) \
276 @SNMP_LIBS@ @SSL_LIBS@ \
279 @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@
281 # Additional libs that I know how to build. These will be
282 # linked into the tethereal executable.
283 tethereal_additional_libs = \
284 wiretap/libwiretap.la \
287 # This is the automake dependency variable for the executable
288 tethereal_DEPENDENCIES = \
289 $(ethereal_optional_objects) \
290 $(tethereal_additional_libs) \
293 # This automake variable adds to the link-line for the executable
295 $(ethereal_optional_objects) \
296 $(tethereal_additional_libs) \
297 @SNMP_LIBS@ @SSL_LIBS@ \
301 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@
304 tethereal_LDFLAGS = -Wl,-static -all-static
306 tethereal_LDFLAGS = -export-dynamic
309 # Optional objects that I know how to build, and that are needed by
311 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
313 text2pcap_DEPENDENCIES = text2pcap.h
315 # This automake variable adds to the link-line for the executable
316 text2pcap_LDADD = $(text2pcap_optional_objects) \
319 mergecap_DEPENDENCIES = wiretap/libwiretap.la
321 # This is the automake dependency variable for the executable
322 capinfos_DEPENDENCIES = wiretap/libwiretap.la
323 editcap_DEPENDENCIES = wiretap/libwiretap.la
325 # This automake variable adds to the link-line for the executable
326 capinfos_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
327 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
328 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
331 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
334 # Build the version string
336 # FORCE is the portable version of .PHONY
340 $(PERL) $(srcdir)/make-version.pl $(srcdir)
343 # Build the short version of the authors file for the about dialog
345 AUTHORS-SHORT: AUTHORS make-authors-short.pl
346 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
349 # Build the short version of the authors file with formatting codes for the
352 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
353 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
356 # Build shell scripts by doing variable substitution.
357 # Taken from autoconf 2.13.
359 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
364 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
367 # Build "tethereal-tap-register.c", which contains a function
368 # "register_all_tap_listeners()"
369 # that calls the register routines for all tethereal tap listeners.
371 # We do this by grepping through sources.
373 # Formatting conventions: The name of the tap_listener_register_*
374 # routines must start in column zero, or must be preceded only by
375 # "void " starting in column zero, and must not be inside #if.
377 # The first argument is the directory in which the source files live.
378 # All subsequent arguments are the files to scan.
380 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
381 @echo Making tethereal-tap-register.c
382 @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
385 ./rdps $(srcdir)/print.ps ps.c
388 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
390 randpkt_additional_libs = wiretap/libwiretap.la
392 randpkt_DEPENDENCIES = \
393 $(randpkt_additional_libs)
396 $(randpkt_additional_libs) \
398 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
400 dftest_additional_libs = \
401 wiretap/libwiretap.la \
404 dftest_DEPENDENCIES = \
405 $(ethereal_optional_objects) \
406 $(dftest_additional_libs) \
409 # This automake variable adds to the link-line for the executable
411 $(ethereal_optional_objects) \
412 $(dftest_additional_libs) \
413 @SNMP_LIBS@ @SSL_LIBS@ \
417 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@
419 dftest_LDFLAGS = -export-dynamic
422 # XXX - "svnversion.h" is distributed in the release tarball; should
423 # we be deleting it with "make clean", or should we only do that with
424 # "make maintainer-clean"?
434 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
435 # list of files removed by "make distclean"? (It's deliberately
436 # included in that list.)
440 AUTHORS-SHORT-FORMAT \
443 MAINTAINERCLEANFILES = \
468 aclocal-fallback/glib-2.0.m4 \
469 aclocal-fallback/glib.m4 \
470 aclocal-fallback/gtk-2.0.m4 \
471 aclocal-fallback/gtk.m4 \
477 capture_wpcap_packet.c \
478 capture_wpcap_packet.h \
484 debian/README.debian \
501 doc/README.developer \
504 doc/README.regression \
507 doc/README.xml-output \
511 doc/ethereal-filter.pod.template \
518 docbook/Makefile.auto.am \
521 epan/libethereal.def \
528 image/Ethereal.icns \
529 image/Makefile.nmake \
531 image/capinfos.rc.in \
532 image/clist_ascend.xpm \
533 image/clist_descend.xpm \
535 image/editcap.rc.in \
536 image/eexcl3d64.xpm \
537 image/eicon3d16.xpm \
538 image/eicon3d32.xpm \
539 image/eicon3d48.xpm \
540 image/eicon3d64.xpm \
541 image/elogo3d48x48.png \
543 image/ethereal.rc.in \
544 image/ethereal48x48-trans.png \
545 image/ethereal48x48.png \
546 image/hi16-app-ethereal.png \
547 image/hi32-app-ethereal.png \
548 image/hi48-app-ethereal.png \
549 image/icon-ethereal.xpm \
550 image/icon-excl.xpm \
551 image/libethereal.rc.in \
552 image/lo16-app-ethereal.png \
553 image/lo32-app-ethereal.png \
554 image/lo48-app-ethereal.png \
555 image/mergecap.rc.in \
556 image/nsis-checked.bmp \
557 image/nsis-unchecked.bmp \
558 image/stock_dialog_error_48.xpm \
559 image/stock_dialog_warning_48.xpm \
560 image/stock_dialog_question_48.xpm \
561 image/stock_dialog_info_48.xpm \
562 image/stock_dialog_stop_48.xpm \
563 image/tethereal.rc.in \
564 image/text2pcap.rc.in \
565 image/toolbar/autoscroll_24.xpm \
566 image/toolbar/capture_filter_24.xpm \
567 image/toolbar/capture_interfaces_24.xpm \
568 image/toolbar/capture_options_24.xpm \
569 image/toolbar/capture_restart_24.xpm \
570 image/toolbar/capture_start_24.xpm \
571 image/toolbar/capture_stop_24.xpm \
572 image/toolbar/checkbox_16.xpm \
573 image/toolbar/colorize_24.xpm \
574 image/toolbar/conversations_16.xpm \
575 image/toolbar/decode_as_16.xpm \
576 image/toolbar/display_filter_24.xpm \
577 image/toolbar/endpoints_16.xpm \
578 image/toolbar/file_set_list_16.xpm \
579 image/toolbar/file_set_next_16.xpm \
580 image/toolbar/file_set_previous_16.xpm \
581 image/toolbar/graphs_16.xpm \
582 image/toolbar/internet_24.xpm \
583 image/toolbar/resize_columns_24.xpm \
584 image/toolbar/stock_add_24.xpm \
585 image/toolbar/stock_bottom_24.xpm \
586 image/toolbar/stock_clear_24.xpm \
587 image/toolbar/stock_close_24.xpm \
588 image/toolbar/stock_colorselector_24.xpm \
589 image/toolbar/stock_help_24.xpm \
590 image/toolbar/stock_jump_to_24.xpm \
591 image/toolbar/stock_left_arrow_24.xpm \
592 image/toolbar/stock_ok_20.xpm \
593 image/toolbar/stock_open_24.xpm \
594 image/toolbar/stock_preferences_24.xpm \
595 image/toolbar/stock_print_24.xpm \
596 image/toolbar/stock_properties_24.xpm \
597 image/toolbar/stock_refresh_24.xpm \
598 image/toolbar/stock_right_arrow_24.xpm \
599 image/toolbar/stock_save_24.xpm \
600 image/toolbar/stock_save_as_24.xpm \
601 image/toolbar/stock_search_24.xpm \
602 image/toolbar/stock_stop_24.xpm \
603 image/toolbar/stock_top_24.xpm \
604 image/toolbar/stock_zoom_1_24.xpm \
605 image/toolbar/stock_zoom_in_24.xpm \
606 image/toolbar/stock_zoom_out_24.xpm \
607 image/toolbar/telephony_16.xpm \
608 image/toolbar/time_24.xpm \
609 image/toolbar/web_support_24.xpm \
610 image/toolbar/wiki_24.xpm \
612 image/icon_layout_1.xpm \
613 image/icon_layout_2.xpm \
614 image/icon_layout_3.xpm \
615 image/icon_layout_4.xpm \
616 image/icon_layout_5.xpm \
617 image/icon_layout_6.xpm \
618 image/wiretap.rc.in \
620 make-authors-format.pl \
621 make-authors-short.pl \
637 radius/dictionary.3com \
638 radius/dictionary.3gpp \
639 radius/dictionary.3gpp2 \
640 radius/dictionary.acc \
641 radius/dictionary.alcatel \
642 radius/dictionary.alteon \
643 radius/dictionary.altiga \
644 radius/dictionary.aptis \
645 radius/dictionary.ascend \
646 radius/dictionary.bay \
647 radius/dictionary.bintec \
648 radius/dictionary.bristol \
649 radius/dictionary.cablelabs \
650 radius/dictionary.cabletron \
651 radius/dictionary.cisco \
652 radius/dictionary.cisco.bbsm \
653 radius/dictionary.cisco.vpn3000 \
654 radius/dictionary.cisco.vpn5000 \
655 radius/dictionary.colubris \
656 radius/dictionary.columbia_university \
657 radius/dictionary.compat \
658 radius/dictionary.cosine \
659 radius/dictionary.erx \
660 radius/dictionary.extreme \
661 radius/dictionary.foundry \
662 radius/dictionary.freeradius \
663 radius/dictionary.gandalf \
664 radius/dictionary.garderos \
665 radius/dictionary.gemtek \
666 radius/dictionary.itk \
667 radius/dictionary.juniper \
668 radius/dictionary.karlnet \
669 radius/dictionary.livingston \
670 radius/dictionary.localweb \
671 radius/dictionary.merit \
672 radius/dictionary.microsoft \
673 radius/dictionary.mikrotik \
674 radius/dictionary.navini \
675 radius/dictionary.netscreen \
676 radius/dictionary.nokia \
677 radius/dictionary.nomadix \
678 radius/dictionary.propel \
679 radius/dictionary.quintum \
680 radius/dictionary.redback \
681 radius/dictionary.redcreek \
682 radius/dictionary.shasta \
683 radius/dictionary.shiva \
684 radius/dictionary.sonicwall \
685 radius/dictionary.springtide \
686 radius/dictionary.t_systems_nova \
687 radius/dictionary.telebit \
688 radius/dictionary.trapeze \
689 radius/dictionary.tunnel \
690 radius/dictionary.unisphere \
691 radius/dictionary.unix \
692 radius/dictionary.usr \
693 radius/dictionary.valemount \
694 radius/dictionary.versanet \
695 radius/dictionary.wispr \
696 radius/dictionary.xedia \
700 text2pcap-scanner.l \
707 -chmod +s $(DESTDIR)$(bindir)/ethereal
708 -chmod +s $(DESTDIR)$(bindir)/tethereal
713 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk help
716 SUBDIRS = tools wiretap doc epan plugins packaging help @ethereal_SUBDIRS@
718 SUBDIRS = tools wiretap doc epan packaging help @ethereal_SUBDIRS@
721 ethereal.1: doc/ethereal.pod AUTHORS-SHORT-FORMAT
723 $(MAKE) ../ethereal.1 )
725 tethereal.1: doc/tethereal.pod
727 $(MAKE) ../tethereal.1 )
729 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
731 $(MAKE) ../ethereal-filter.4 )
733 capinfos.1: doc/capinfos.pod
735 $(MAKE) ../capinfos.1 )
737 editcap.1: doc/editcap.pod
739 $(MAKE) ../editcap.1 )
741 idl2eth.1: doc/idl2eth.pod
743 $(MAKE) ../idl2eth.1 )
745 mergecap.1: doc/mergecap.pod
747 $(MAKE) ../mergecap.1 )
749 text2pcap.1: doc/text2pcap.pod
751 $(MAKE) ../text2pcap.1 )
753 ethereal.html: doc/ethereal.pod AUTHORS-SHORT-FORMAT
755 $(MAKE) ../ethereal.html )
757 tethereal.html: doc/tethereal.pod
759 $(MAKE) ../tethereal.html )
761 ethereal-filter.html: tethereal doc/ethereal-filter.pod.template
763 $(MAKE) ../ethereal-filter.html )
765 capinfos.html: doc/capinfos.pod
767 $(MAKE) ../capinfos.html )
769 editcap.html: doc/editcap.pod
771 $(MAKE) ../editcap.html )
773 idl2eth.html: doc/idl2eth.pod
775 $(MAKE) ../idl2eth.html )
777 mergecap.html: doc/mergecap.pod
779 $(MAKE) ../mergecap.html )
781 text2pcap.html: doc/text2pcap.pod
783 $(MAKE) ../text2pcap.html )
785 libtool: $(LIBTOOL_DEPS)
786 $(SHELL) ./config.status --recheck
788 # We load top_stagedir with an explicit path so that libtool doesn't freak.
789 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
790 stagedir=$(top_stagedir)/$(PACKAGE).stage
794 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
795 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
796 rm -rf $(stagedir) ; \
797 $(MAKE) DESTDIR=$(stagedir) install; \
798 $(srcdir)/packaging/svr4/mkpkg \
800 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
804 echo "Error: SVR4 packaging tools not found." ; \
805 echo "Package build abandoned." ; \
808 solaris-package: svr4-package
810 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
812 if test x$(HAVE_RPM) = xyes ; then \
814 mkdir -p BUILD RPMS SOURCES ; \
816 ln -s ../../../$(distdir).tar.gz ; \
817 ln -s ../../../ethereal.desktop ; \
818 ln -s ../../../image/elogo3d64x64.png ethereal.png ; \
820 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
821 echo "Package successfully built in `pwd`/RPMS." ; \
823 echo "Error: RPM executable and/or source directory not found." ; \
826 if test x$(HAVE_RPM) = xyes ; then \
828 mkdir -p BUILD SRPMS SOURCES ; \
830 ln -s ../../../$(distdir).tar.gz ; \
831 ln -s ../../../ethereal.desktop ; \
832 ln -s ../../../image/elogo3d64x64.png ethereal.png ; \
834 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
835 echo "Package successfully built in `pwd`/SRPMS." ; \
837 echo "Error: RPM executable and/or source directory not found." ; \
840 debian-package: debian/rules
841 dpkg-buildpackage -rfakeroot -us -uc
844 rm -rf $(top_stagedir)
846 test-splint: $(ethereal_SOURCES)
848 -gnu-extensions -D_U_="" \
849 -I. `glib-config --cflags` \