2 # Automake file for Wireshark
6 # Wireshark - Network traffic analyzer
7 # By Gerald Combs <gerald@wireshark.org>
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 = @wireshark_bin@ @capinfos_bin@ @editcap_bin@ @mergecap_bin@ @tshark_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@ @dumpcap_bin@
64 bin_SCRIPTS = @idl2wrs_bin@
65 man1_MANS = @wireshark_man@ @capinfos_man@ @editcap_man@ @mergecap_man@ @tshark_man@ @text2pcap_man@ @dumpcap_man@ @idl2wrs_man@
66 man4_MANS = @wiresharkfilter_man@
69 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
70 randpkt text2pcap dumpcap
71 EXTRA_SCRIPTS = idl2wrs
73 idl2wrs: tools/idl2wrs.sh Makefile
74 $(do_subst) < $(srcdir)/tools/idl2wrs.sh > idl2wrs
78 # Ethereal configuration files are put in $(pkgdatadir).
80 pkgdata_DATA = AUTHORS-SHORT manuf wireshark.html tshark.html \
81 wireshark-filter.html capinfos.html editcap.html \
82 idl2wrs.html mergecap.html text2pcap.html dumpcap.html \
83 cfilters colorfilters dfilters
86 # Install the Diameter DTD and XML files in the "diameter" subdirectory
89 diameterdir = $(pkgdatadir)/diameter
91 diameter/chargecontrol.xml \
92 diameter/dictionary.dtd \
93 diameter/dictionary.xml \
94 diameter/imscxdx.xml \
95 diameter/mobileipv4.xml \
97 diameter/sunping.xml \
101 # Install the DTDs directory files in the "dtds" subdirectory
104 dtdsdir = $(pkgdatadir)/dtds
112 # Install the RADIUS directory files in the "radius" subdirectory
115 radiusdir = $(pkgdatadir)/radius
118 radius/dictionary.3com \
119 radius/dictionary.3gpp \
120 radius/dictionary.3gpp2 \
121 radius/dictionary.acc \
122 radius/dictionary.alcatel \
123 radius/dictionary.alteon \
124 radius/dictionary.altiga \
125 radius/dictionary.aptis \
126 radius/dictionary.ascend \
127 radius/dictionary.bay \
128 radius/dictionary.bintec \
129 radius/dictionary.bristol \
130 radius/dictionary.cablelabs \
131 radius/dictionary.cabletron \
132 radius/dictionary.cisco \
133 radius/dictionary.cisco.bbsm \
134 radius/dictionary.cisco.vpn3000 \
135 radius/dictionary.cisco.vpn5000 \
136 radius/dictionary.colubris \
137 radius/dictionary.columbia_university \
138 radius/dictionary.compat \
139 radius/dictionary.cosine \
140 radius/dictionary.ericsson \
141 radius/dictionary.erx \
142 radius/dictionary.extreme \
143 radius/dictionary.foundry \
144 radius/dictionary.freeradius \
145 radius/dictionary.gandalf \
146 radius/dictionary.garderos \
147 radius/dictionary.gemtek \
148 radius/dictionary.itk \
149 radius/dictionary.juniper \
150 radius/dictionary.karlnet \
151 radius/dictionary.livingston \
152 radius/dictionary.localweb \
153 radius/dictionary.merit \
154 radius/dictionary.microsoft \
155 radius/dictionary.mikrotik \
156 radius/dictionary.navini \
157 radius/dictionary.netscreen \
158 radius/dictionary.nokia \
159 radius/dictionary.nomadix \
160 radius/dictionary.propel \
161 radius/dictionary.quintum \
162 radius/dictionary.redback \
163 radius/dictionary.redcreek \
164 radius/dictionary.shasta \
165 radius/dictionary.shiva \
166 radius/dictionary.sonicwall \
167 radius/dictionary.springtide \
168 radius/dictionary.t_systems_nova \
169 radius/dictionary.telebit \
170 radius/dictionary.trapeze \
171 radius/dictionary.tunnel \
172 radius/dictionary.unisphere \
173 radius/dictionary.unix \
174 radius/dictionary.usr \
175 radius/dictionary.valemount \
176 radius/dictionary.versanet \
177 radius/dictionary.wispr \
178 radius/dictionary.xedia
180 PLATFORM_SRC = capture-pcap-util-unix.c
182 include Makefile.common
187 lua_lib = plugins/lua/lua.la
194 plugins/agentx/agentx.la \
195 plugins/artnet/artnet.la \
196 plugins/asn1/asn1.la \
197 plugins/ciscosm/ciscosm.la \
198 plugins/docsis/docsis.la \
199 plugins/enttec/enttec.la \
200 plugins/giop/cosnaming.la \
201 plugins/giop/coseventcomm.la \
202 plugins/gryphon/gryphon.la \
203 plugins/irda/irda.la \
205 plugins/lwres/lwres.la \
206 plugins/mate/mate.la \
207 plugins/megaco/megaco.la \
208 plugins/mgcp/mgcp.la \
209 plugins/opsi/opsi.la \
210 plugins/pcli/pcli.la \
211 plugins/profinet/profinet.la \
214 plugins/rtnet/rtnet.la \
215 plugins/rudp/rudp.la \
216 plugins/stats_tree/stats_tree.la \
220 plugin_ldadd = $(plugin_libs)
225 lua_ldadd = "-dlopen" plugins/lua/lua.la
232 "-dlopen" plugins/acn/acn.la \
233 "-dlopen" plugins/agentx/agentx.la \
234 "-dlopen" plugins/artnet/artnet.la \
235 "-dlopen" plugins/asn1/asn1.la \
236 "-dlopen" plugins/ciscosm/ciscosm.la \
237 "-dlopen" plugins/docsis/docsis.la \
238 "-dlopen" plugins/enttec/enttec.la \
239 "-dlopen" plugins/giop/cosnaming.la \
240 "-dlopen" plugins/giop/coseventcomm.la \
241 "-dlopen" plugins/gryphon/gryphon.la \
242 "-dlopen" plugins/h223/h223.la \
243 "-dlopen" plugins/irda/irda.la \
245 "-dlopen" plugins/lwres/lwres.la \
246 "-dlopen" plugins/mate/mate.la \
247 "-dlopen" plugins/megaco/megaco.la \
248 "-dlopen" plugins/mgcp/mgcp.la \
249 "-dlopen" plugins/opsi/opsi.la \
250 "-dlopen" plugins/pcli/pcli.la \
251 "-dlopen" plugins/profinet/profinet.la \
252 "-dlopen" plugins/rdm/rdm.la \
253 "-dlopen" plugins/rlm/rlm.la \
254 "-dlopen" plugins/rtnet/rtnet.la \
255 "-dlopen" plugins/rudp/rudp.la \
256 "-dlopen" plugins/stats_tree/stats_tree.la \
257 "-dlopen" plugins/v5ua/v5ua.la
259 endif # ENABLE_STATIC
267 # Optional objects that I know how to build. These will be
268 # linked into the wireshark executable.
269 # They will also be linked into the tshark executable; if this
270 # list ever grows to include something that can't be linked with
271 # tshark, or if tshark needs something that wireshark doesn't,
272 # we should probably split this into stuff needed both
273 # by wireshark and tshark and stuff needed only by one or the
275 wireshark_optional_objects = @GETOPT_O@ @SNPRINTF_O@ @STRERROR_O@ \
276 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
278 # Additional libs that I know how to build. These will be
279 # linked into the wireshark executable.
280 wireshark_additional_libs = \
282 wiretap/libwiretap.la \
285 # This is the automake dependency variable for the executable
286 wireshark_DEPENDENCIES = \
287 $(wireshark_optional_objects) \
288 $(wireshark_additional_libs) \
291 # This automake variable adds to the link-line for the executable.
293 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
294 # they are included in @GTK_LIBS@, and doesn't have to be linked with
295 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
296 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
297 # applications are X applications).
300 wireshark_LDFLAGS = -Wl,-static -all-static
302 wireshark_LDFLAGS = -export-dynamic
306 $(wireshark_optional_objects) \
307 $(wireshark_additional_libs) \
308 @SNMP_LIBS@ @SSL_LIBS@ \
311 @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ @FRAMEWORKS@ \
314 # Additional libs that I know how to build. These will be
315 # linked into the tshark executable.
316 tshark_additional_libs = \
317 wiretap/libwiretap.la \
320 # This is the automake dependency variable for the executable
321 tshark_DEPENDENCIES = \
322 $(wireshark_optional_objects) \
323 $(tshark_additional_libs) \
326 # This automake variable adds to the link-line for the executable
328 $(wireshark_optional_objects) \
329 $(tshark_additional_libs) \
330 @SNMP_LIBS@ @SSL_LIBS@ \
334 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
338 tshark_LDFLAGS = -Wl,-static -all-static
340 tshark_LDFLAGS = -export-dynamic
343 # Optional objects that I know how to build, and that are needed by
345 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
347 text2pcap_DEPENDENCIES = text2pcap.h
349 # This automake variable adds to the link-line for the executable
350 text2pcap_LDADD = $(text2pcap_optional_objects) \
353 mergecap_DEPENDENCIES = wiretap/libwiretap.la
355 # This is the automake dependency variable for the executable
356 capinfos_DEPENDENCIES = wiretap/libwiretap.la
357 editcap_DEPENDENCIES = wiretap/libwiretap.la
359 # This automake variable adds to the link-line for the executable
360 capinfos_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
361 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
362 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
365 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
368 # Build the version string
370 # FORCE is the portable version of .PHONY
374 $(PERL) $(srcdir)/make-version.pl $(srcdir)
377 # Build the short version of the authors file for the about dialog
379 AUTHORS-SHORT: AUTHORS make-authors-short.pl
380 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
383 # Build the short version of the authors file with formatting codes for the
386 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
387 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
390 # Build shell scripts by doing variable substitution.
391 # Taken from autoconf 2.13.
393 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
398 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
401 # Build "tshark-tap-register.c", which contains a function
402 # "register_all_tap_listeners()"
403 # that calls the register routines for all tshark tap listeners.
405 # We do this by grepping through sources.
407 # Formatting conventions: The name of the tap_listener_register_*
408 # routines must start in column zero, or must be preceded only by
409 # "void " starting in column zero, and must not be inside #if.
411 # The first argument is the directory in which the source files live.
412 # All subsequent arguments are the files to scan.
414 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
415 @echo Making tshark-tap-register.c
416 @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
419 ./rdps $(srcdir)/print.ps ps.c
422 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
424 randpkt_additional_libs = wiretap/libwiretap.la
426 randpkt_DEPENDENCIES = \
427 $(randpkt_additional_libs)
430 $(randpkt_additional_libs) \
432 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
434 dftest_additional_libs = \
435 wiretap/libwiretap.la \
438 dftest_DEPENDENCIES = \
439 $(wireshark_optional_objects) \
440 $(dftest_additional_libs) \
443 # This automake variable adds to the link-line for the executable
445 $(wireshark_optional_objects) \
446 $(dftest_additional_libs) \
447 @SNMP_LIBS@ @SSL_LIBS@ \
451 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@ @KRB5_LIBS@ \
454 dftest_LDFLAGS = -export-dynamic
456 dumpcap_additional_libs = \
457 wiretap/libwiretap.la
459 dumpcap_DEPENDENCIES = \
460 $(dumpcap_additional_libs)
463 $(dumpcap_additional_libs) \
465 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
468 # XXX - "svnversion.h" is distributed in the release tarball; should
469 # we be deleting it with "make clean", or should we only do that with
470 # "make maintainer-clean"?
480 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
481 # list of files removed by "make distclean"? (It's deliberately
482 # included in that list.)
486 AUTHORS-SHORT-FORMAT \
489 MAINTAINERCLEANFILES = \
514 aclocal-fallback/glib-2.0.m4 \
515 aclocal-fallback/glib.m4 \
516 aclocal-fallback/gtk-2.0.m4 \
517 aclocal-fallback/gtk.m4 \
523 capture_wpcap_packet.c \
524 capture_wpcap_packet.h \
529 debian/README.debian \
544 doc/README.developer \
548 doc/README.regression \
549 doc/README.stats_tree \
551 doc/README.xml-output \
555 doc/wireshark-filter.pod.template \
563 docbook/Makefile.auto.am \
567 epan/libwireshark.def \
571 image/Ethereal.icns \
572 image/Makefile.nmake \
574 image/capinfos.rc.in \
575 image/clist_ascend.xpm \
576 image/clist_descend.xpm \
578 image/dumpcap.rc.in \
579 image/editcap.rc.in \
580 image/eexcl3d64.xpm \
581 image/eicon3d16.xpm \
582 image/eicon3d32.xpm \
583 image/eicon3d48.xpm \
584 image/eicon3d64.xpm \
585 image/eiconcap16.xpm \
586 image/eiconcap32.xpm \
587 image/eiconcap48.xpm \
588 image/elogo3d48x48.png \
589 image/ethereal.exe.manifest.in \
591 image/ethereal.rc.in \
592 image/ethereal48x48-trans.png \
593 image/ethereal48x48.png \
594 image/hi16-app-ethereal.png \
595 image/hi32-app-ethereal.png \
596 image/hi48-app-ethereal.png \
597 image/icon-ethereal.xpm \
598 image/icon-excl.xpm \
599 image/libwireshark.rc.in \
600 image/lo16-app-ethereal.png \
601 image/lo32-app-ethereal.png \
602 image/lo48-app-ethereal.png \
603 image/mergecap.rc.in \
604 image/nsis-checked.bmp \
605 image/nsis-unchecked.bmp \
606 image/stock_dialog_error_48.xpm \
607 image/stock_dialog_warning_48.xpm \
608 image/stock_dialog_question_48.xpm \
609 image/stock_dialog_info_48.xpm \
610 image/stock_dialog_stop_48.xpm \
612 image/text2pcap.rc.in \
613 image/toolbar/autoscroll_24.xpm \
614 image/toolbar/capture_filter_24.xpm \
615 image/toolbar/capture_interfaces_24.xpm \
616 image/toolbar/capture_options_24.xpm \
617 image/toolbar/capture_restart_24.xpm \
618 image/toolbar/capture_start_24.xpm \
619 image/toolbar/capture_stop_24.xpm \
620 image/toolbar/checkbox_16.xpm \
621 image/toolbar/colorize_24.xpm \
622 image/toolbar/conversations_16.xpm \
623 image/toolbar/decode_as_16.xpm \
624 image/toolbar/display_filter_24.xpm \
625 image/toolbar/endpoints_16.xpm \
626 image/toolbar/file_set_list_16.xpm \
627 image/toolbar/file_set_next_16.xpm \
628 image/toolbar/file_set_previous_16.xpm \
629 image/toolbar/graphs_16.xpm \
630 image/toolbar/internet_24.xpm \
631 image/toolbar/resize_columns_24.xpm \
632 image/toolbar/stock_add_24.xpm \
633 image/toolbar/stock_bottom_24.xpm \
634 image/toolbar/stock_clear_24.xpm \
635 image/toolbar/stock_close_24.xpm \
636 image/toolbar/stock_colorselector_24.xpm \
637 image/toolbar/stock_help_24.xpm \
638 image/toolbar/stock_jump_to_24.xpm \
639 image/toolbar/stock_left_arrow_24.xpm \
640 image/toolbar/stock_ok_20.xpm \
641 image/toolbar/stock_open_24.xpm \
642 image/toolbar/stock_preferences_24.xpm \
643 image/toolbar/stock_print_24.xpm \
644 image/toolbar/stock_properties_24.xpm \
645 image/toolbar/stock_refresh_24.xpm \
646 image/toolbar/stock_right_arrow_24.xpm \
647 image/toolbar/stock_save_24.xpm \
648 image/toolbar/stock_save_as_24.xpm \
649 image/toolbar/stock_search_24.xpm \
650 image/toolbar/stock_stop_24.xpm \
651 image/toolbar/stock_top_24.xpm \
652 image/toolbar/stock_zoom_1_24.xpm \
653 image/toolbar/stock_zoom_in_24.xpm \
654 image/toolbar/stock_zoom_out_24.xpm \
655 image/toolbar/telephony_16.xpm \
656 image/toolbar/time_24.xpm \
657 image/toolbar/web_support_24.xpm \
658 image/toolbar/wiki_24.xpm \
660 image/icon_layout_1.xpm \
661 image/icon_layout_2.xpm \
662 image/icon_layout_3.xpm \
663 image/icon_layout_4.xpm \
664 image/icon_layout_5.xpm \
665 image/icon_layout_6.xpm \
666 image/win32-file-dlg.rc \
667 image/wiretap.rc.in \
668 make-authors-format.pl \
669 make-authors-short.pl \
683 text2pcap-scanner.l \
690 -chmod +s $(DESTDIR)$(bindir)/dumpcap
691 -chmod +s $(DESTDIR)$(bindir)/tshark
696 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk help
699 SUBDIRS = tools wiretap doc epan plugins packaging help @wireshark_SUBDIRS@
701 SUBDIRS = tools wiretap doc epan packaging help @wireshark_SUBDIRS@
704 wireshark.1: doc/wireshark.pod AUTHORS-SHORT-FORMAT
706 $(MAKE) ../wireshark.1 )
708 tshark.1: doc/tshark.pod
710 $(MAKE) ../tshark.1 )
712 wireshark-filter.4: tshark doc/wireshark-filter.pod.template
714 $(MAKE) ../wireshark-filter.4 )
716 capinfos.1: doc/capinfos.pod
718 $(MAKE) ../capinfos.1 )
720 editcap.1: doc/editcap.pod
722 $(MAKE) ../editcap.1 )
724 idl2wrs.1: doc/idl2wrs.pod
726 $(MAKE) ../idl2wrs.1 )
728 mergecap.1: doc/mergecap.pod
730 $(MAKE) ../mergecap.1 )
732 text2pcap.1: doc/text2pcap.pod
734 $(MAKE) ../text2pcap.1 )
736 dumpcap.1: doc/dumpcap.pod
738 $(MAKE) ../dumpcap.1 )
740 wireshark.html: doc/wireshark.pod AUTHORS-SHORT-FORMAT
742 $(MAKE) ../wireshark.html )
744 tshark.html: doc/tshark.pod
746 $(MAKE) ../tshark.html )
748 wireshark-filter.html: tshark doc/wireshark-filter.pod.template
750 $(MAKE) ../wireshark-filter.html )
752 capinfos.html: doc/capinfos.pod
754 $(MAKE) ../capinfos.html )
756 editcap.html: doc/editcap.pod
758 $(MAKE) ../editcap.html )
760 idl2wrs.html: doc/idl2wrs.pod
762 $(MAKE) ../idl2wrs.html )
764 mergecap.html: doc/mergecap.pod
766 $(MAKE) ../mergecap.html )
768 text2pcap.html: doc/text2pcap.pod
770 $(MAKE) ../text2pcap.html )
772 dumpcap.html: doc/dumpcap.pod
774 $(MAKE) ../dumpcap.html )
776 libtool: $(LIBTOOL_DEPS)
777 $(SHELL) ./config.status --recheck
779 # We load top_stagedir with an explicit path so that libtool doesn't freak.
780 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
781 stagedir=$(top_stagedir)/$(PACKAGE).stage
785 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
786 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
787 rm -rf $(stagedir) ; \
788 $(MAKE) DESTDIR=$(stagedir) install; \
789 $(srcdir)/packaging/svr4/mkpkg \
791 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
795 echo "Error: SVR4 packaging tools not found." ; \
796 echo "Package build abandoned." ; \
799 solaris-package: svr4-package
801 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
803 if test x$(HAVE_RPM) = xyes ; then \
805 mkdir -p BUILD RPMS SOURCES ; \
807 ln -s ../../../$(distdir).tar.gz ; \
808 ln -s ../../../wireshark.desktop ; \
809 ln -s ../../../image/elogo3d64x64.png ethereal.png ; \
811 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
812 echo "Package successfully built in `pwd`/RPMS." ; \
814 echo "Error: RPM executable and/or source directory not found." ; \
817 if test x$(HAVE_RPM) = xyes ; then \
819 mkdir -p BUILD SRPMS SOURCES ; \
821 ln -s ../../../$(distdir).tar.gz ; \
822 ln -s ../../../wireshark.desktop ; \
823 ln -s ../../../image/elogo3d64x64.png wireshark.png ; \
825 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
826 echo "Package successfully built in `pwd`/SRPMS." ; \
828 echo "Error: RPM executable and/or source directory not found." ; \
831 debian-package: debian/rules
832 dpkg-buildpackage -rfakeroot -us -uc
835 rm -rf $(top_stagedir)