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`
26 INCLUDES= @LUA_INCLUDES@
28 if HAVE_WARNINGS_AS_ERRORS
29 AM_CLEAN_CFLAGS = -Werror
33 # This is a hideous hack.
35 # Automake needs to know into which sections to install various man
36 # pages; if the names in "man_MANS" have suffixes, it can infer the
37 # sections from the name (e.g., "hello.1" goes in section 1), but if
38 # they don't have suffixes, it can't tell what sections to put them, and
39 # it just gives up and doesn't create any rules to install them (and it
40 # gives up silently, so you have no clue what's wrong).
42 # Therefore, we can't just set "man_MANS" to a list of variables to be
43 # filled in by the configure script, as those variables don't have man
44 # page section numbers.
46 # It turns out (although this is not documented anywhere I could find
47 # in the automake Info file) that if you define, instead, variables with
48 # names like "man{section}_MANS", automake will infer that the names in
49 # those variables are the names of man pages to be installed in section
52 # So, as all our man pages go in section 1, we define "man1_MANS" to
53 # contain all the man page.
55 # *However*, if "man_MANS" isn't defined at all, automake concludes that
56 # there are no man pages, the fact that, say, "man1_MANS" is defined
57 # nonwithstanding! (I suspect this is the result of a mistaken attempt
58 # to get people to fix their automake files not to use "MANS"; if "MANS"
59 # is defined, it prints a warning and sets the exit status, but doesn't
60 # exit, and then it just gives up if "man_MANS" isn't defined,
61 # presumably on the theory that the only reason it wouldn't be defined
62 # is because the automake file uses the obsolete "MANS" variable instead
63 # of the shiny new "man_MANS" variable.)
65 # So we also define "man_MANS", but don't define it as anything;
66 # automake will arrange that the Makefile define it as the union of all
67 # the "man{section}_MANS" variables.
80 bin_SCRIPTS = @idl2wrs_bin@
92 man4_MANS = @wiresharkfilter_man@
95 EXTRA_PROGRAMS = wireshark tshark capinfos editcap mergecap dftest \
96 randpkt text2pcap dumpcap rawshark
97 EXTRA_SCRIPTS = idl2wrs
99 idl2wrs: tools/idl2wrs.sh Makefile
100 cp tools/idl2wrs.sh idl2wrs
104 # Wireshark configuration files are put in $(pkgdatadir).
106 pkgdata_DATA = AUTHORS-SHORT COPYING manuf services wireshark.html \
107 tshark.html wireshark-filter.html capinfos.html editcap.html \
108 idl2wrs.html mergecap.html text2pcap.html dumpcap.html \
109 rawshark.html ws.css cfilters colorfilters dfilters smi_modules ipmap.html
112 # Install the Diameter DTD and XML files in the "diameter" subdirectory
115 diameterdir = $(pkgdatadir)/diameter
117 diameter/chargecontrol.xml \
118 diameter/dictionary.dtd \
119 diameter/dictionary.xml \
120 diameter/Ericsson.xml \
121 diameter/etsie2e4.xml \
122 diameter/gqpolicy.xml \
123 diameter/imscxdx.xml \
124 diameter/mobileipv4.xml \
125 diameter/nasreq.xml \
127 diameter/sunping.xml \
128 diameter/TGPPGmb.xml \
129 diameter/TGPPRx.xml \
133 # Install the DTDs directory files in the "dtds" subdirectory
136 dtdsdir = $(pkgdatadir)/dtds
141 dtds/pocsettings.dtd \
148 dtds/xcap-error.dtd \
152 # Install the RADIUS directory files in the "radius" subdirectory
155 radiusdir = $(pkgdatadir)/radius
158 radius/dictionary.3com \
159 radius/dictionary.3gpp \
160 radius/dictionary.3gpp2 \
161 radius/dictionary.acc \
162 radius/dictionary.alcatel \
163 radius/dictionary.alteon \
164 radius/dictionary.altiga \
165 radius/dictionary.aptis \
166 radius/dictionary.ascend \
167 radius/dictionary.aruba \
168 radius/dictionary.bay \
169 radius/dictionary.bintec \
170 radius/dictionary.bristol \
171 radius/dictionary.cablelabs \
172 radius/dictionary.cabletron \
173 radius/dictionary.cisco \
174 radius/dictionary.cisco.bbsm \
175 radius/dictionary.cisco.vpn3000 \
176 radius/dictionary.cisco.vpn5000 \
177 radius/dictionary.colubris \
178 radius/dictionary.columbia_university \
179 radius/dictionary.compat \
180 radius/dictionary.cosine \
181 radius/dictionary.ericsson \
182 radius/dictionary.erx \
183 radius/dictionary.extreme \
184 radius/dictionary.foundry \
185 radius/dictionary.freeradius \
186 radius/dictionary.gandalf \
187 radius/dictionary.garderos \
188 radius/dictionary.gemtek \
189 radius/dictionary.itk \
190 radius/dictionary.juniper \
191 radius/dictionary.karlnet \
192 radius/dictionary.livingston \
193 radius/dictionary.localweb \
194 radius/dictionary.merit \
195 radius/dictionary.microsoft \
196 radius/dictionary.mikrotik \
197 radius/dictionary.navini \
198 radius/dictionary.netscreen \
199 radius/dictionary.nokia \
200 radius/dictionary.nomadix \
201 radius/dictionary.propel \
202 radius/dictionary.quintum \
203 radius/dictionary.redback \
204 radius/dictionary.redcreek \
205 radius/dictionary.shasta \
206 radius/dictionary.shiva \
207 radius/dictionary.sonicwall \
208 radius/dictionary.springtide \
209 radius/dictionary.t_systems_nova \
210 radius/dictionary.telebit \
211 radius/dictionary.trapeze \
212 radius/dictionary.tunnel \
213 radius/dictionary.unisphere \
214 radius/dictionary.unix \
215 radius/dictionary.usr \
216 radius/dictionary.valemount \
217 radius/dictionary.versanet \
218 radius/dictionary.wispr \
219 radius/dictionary.xedia
222 # Install the tpncp directory files in the "tpncp" subdirectory
225 tpncpdir = $(pkgdatadir)/tpncp
231 # Install the wimaxasncp directory files in the "wimaxasncp" subdirectory
234 wimaxasncpdir = $(pkgdatadir)/wimaxasncp
236 wimaxasncp/dictionary.xml \
237 wimaxasncp/dictionary.dtd
239 PLATFORM_SRC = capture-pcap-util-unix.c
242 -include plugins/Custom.make
243 plugin_ldadd = $(_CUSTOM_plugin_ldadd_) \
244 -dlopen plugins/agentx/agentx.la \
245 -dlopen plugins/artnet/artnet.la \
246 -dlopen plugins/asn1/asn1.la \
247 -dlopen plugins/ciscosm/ciscosm.la \
248 -dlopen plugins/docsis/docsis.la \
249 -dlopen plugins/enttec/enttec.la \
250 -dlopen plugins/ethercat/ethercat.la \
251 -dlopen plugins/giop/cosnaming.la \
252 -dlopen plugins/giop/coseventcomm.la \
253 -dlopen plugins/gryphon/gryphon.la \
254 -dlopen plugins/infiniband/infiniband.la \
255 -dlopen plugins/irda/irda.la \
256 -dlopen plugins/lwres/lwres.la \
257 -dlopen plugins/m2m/m2m.la \
258 -dlopen plugins/mate/mate.la \
259 -dlopen plugins/opcua/opcua.la \
260 -dlopen plugins/opsi/opsi.la \
261 -dlopen plugins/profinet/profinet.la \
262 -dlopen plugins/sercosiii/sercosiii.la \
263 -dlopen plugins/stats_tree/stats_tree.la \
264 -dlopen plugins/unistim/unistim.la \
265 -dlopen plugins/wimax/wimax.la
267 WTAP_PLUGIN_SOURCES = \
275 WTAP_PLUGIN_SOURCES =
279 include Makefile.common
281 # Optional objects that I know how to build. These will be
282 # linked into the wireshark executable.
283 # They will also be linked into the tshark executable; if this
284 # list ever grows to include something that can't be linked with
285 # tshark, or if tshark needs something that wireshark doesn't,
286 # we should probably split this into stuff needed both
287 # by wireshark and tshark and stuff needed only by one or the
289 wireshark_optional_objects = @GETOPT_O@ @STRERROR_O@ \
290 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
293 wireshark_LDFLAGS = -Wl,-static -all-static
295 wireshark_LDFLAGS = -export-dynamic
298 # Libraries and plugin flags with which to link wireshark.
300 # Note that Wireshark doesn't have to be linked with @GLIB_LIBS@, as
301 # they are included in @GTK_LIBS@, and doesn't have to be linked with
302 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
303 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
304 # applications are X applications).
306 $(wireshark_optional_objects) \
309 wiretap/libwiretap.la \
310 epan/libwireshark.la \
311 wsutil/libwsutil.la \
327 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS)
330 tshark_LDFLAGS = -Wl,-static -all-static
332 tshark_LDFLAGS = -export-dynamic
335 # Libraries and plugin flags with which to link tshark.
337 $(wireshark_optional_objects) \
338 wiretap/libwiretap.la \
339 epan/libwireshark.la \
340 wsutil/libwsutil.la \
357 tshark_CFLAGS = $(AM_CLEAN_CFLAGS)
360 rawshark_LDFLAGS = -Wl,-static -all-static
362 rawshark_LDFLAGS = -export-dynamic
365 # Libraries and plugin flags with which to link tshark.
367 $(wireshark_optional_objects) \
368 wiretap/libwiretap.la \
369 epan/libwireshark.la \
370 wsutil/libwsutil.la \
387 rawshark_CFLAGS = $(AM_CLEAN_CFLAGS)
389 # Optional objects that I know how to build, and that are needed by
391 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
393 # Libraries with which to link text2pcap.
395 $(text2pcap_optional_objects) \
396 wiretap/libwiretap.la \
397 wsutil/libwsutil.la \
399 # Don't turn on -Werror for text2pcap: its source includes text2pcap-scanner.c
400 # which is generated (and therefore not always clean).
401 # We could generate text2pcap.o as a library with -Werror but for now it
402 # doesn't seem worth the effort.
403 #text2pcap_CFLAGS = $(AM_CLEAN_CFLAGS)
405 # Libraries with which to link mergecap.
407 wiretap/libwiretap.la \
408 wsutil/libwsutil.la \
410 mergecap_CFLAGS = $(AM_CLEAN_CFLAGS)
412 # Libraries with which to link capinfos.
414 wiretap/libwiretap.la \
415 wsutil/libwsutil.la \
417 capinfos_CFLAGS = $(AM_CLEAN_CFLAGS)
419 # Libraries with which to link editcap.
421 wiretap/libwiretap.la \
422 wsutil/libwsutil.la \
424 editcap_CFLAGS = $(AM_CLEAN_CFLAGS)
426 # Libraries with which to link randpkt.
428 wiretap/libwiretap.la \
429 wsutil/libwsutil.la \
436 randpkt_CFLAGS = $(AM_CLEAN_CFLAGS)
438 # Libraries and plugin flags with which to link dftest.
440 $(wireshark_optional_objects) \
441 wiretap/libwiretap.la \
442 wsutil/libwsutil.la \
443 epan/libwireshark.la \
457 dftest_CFLAGS = $(AM_CLEAN_CFLAGS)
459 # Libraries with which to link dumpcap.
461 wiretap/libwiretap.la \
462 wsutil/libwsutil.la \
472 dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
475 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \
476 $(LIBGNUTLS_CFLAGS) $(LIBGCRYPT_CFLAGS) $(LIBSMI_CFLAGS)
479 # Build the version string
481 # FORCE is the portable version of .PHONY
485 LANG=C $(PERL) $(srcdir)/make-version.pl $(srcdir)
488 # Build the short version of the authors file for the about dialog
490 AUTHORS-SHORT: AUTHORS make-authors-short.pl
491 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-short.pl < $(srcdir)/AUTHORS > AUTHORS-SHORT
494 # Build the short version of the authors file with formatting codes for the
497 AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
498 $(PERL) $(srcdir)/perlnoutf.pl $(srcdir)/make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
501 # Build shell scripts by doing variable substitution.
502 # Taken from autoconf 2.13.
504 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
509 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
512 # Build "tshark-tap-register.c", which contains a function
513 # "register_all_tap_listeners()"
514 # that calls the register routines for all tshark tap listeners.
516 # We do this by grepping through sources.
518 # Formatting conventions: The name of the tap_listener_register_*
519 # routines must start in column zero, or must be preceded only by
520 # "void " starting in column zero, and must not be inside #if.
522 # The first argument is the directory in which the source files live.
523 # All subsequent arguments are the files to scan.
525 tshark-tap-register.c: $(TSHARK_TAP_SRC) $(srcdir)/make-tapreg-dotc
526 @echo Making tshark-tap-register.c
527 @$(srcdir)/make-tapreg-dotc tshark-tap-register.c $(srcdir) $(TSHARK_TAP_SRC)
530 ./rdps $(srcdir)/print.ps ps.c
533 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
536 # XXX - "svnversion.h" is distributed in the release tarball; should
537 # we be deleting it with "make clean", or should we only do that with
538 # "make maintainer-clean"?
548 # XXX - "ps.c" is distributed in the source tarballs; why is it in the
549 # list of files removed by "make distclean"? (It's deliberately
550 # included in that list.)
554 AUTHORS-SHORT-FORMAT \
558 MAINTAINERCLEANFILES = \
584 aclocal-fallback/glib-2.0.m4 \
585 aclocal-fallback/gtk-2.0.m4 \
593 capture_wpcap_packet.c \
594 capture_wpcap_packet.h \
604 debian/headers-check.c \
605 debian/patches/00list \
606 debian/patches/03_preferences.dpatch \
611 debian/tshark.files \
612 debian/tshark.manpages \
614 debian/wireshark-common.files \
615 debian/wireshark-common.manpages \
616 debian/wireshark-common.shlibs \
617 debian/wireshark-dev.docs \
618 debian/wireshark-dev.files \
619 debian/wireshark-dev.header-files \
620 debian/wireshark-dev.manpages \
621 debian/wireshark-dev.prerm \
622 debian/wireshark-root.desktop \
623 debian/wireshark.desktop \
624 debian/wireshark.files \
625 debian/wireshark.manpages \
626 debian/wireshark.menu \
628 docbook/Makefile.auto.am \
637 idl/parlay/cccs.idl \
639 idl/parlay/common_cc_data.idl \
642 idl/parlay/fw_data.idl \
643 idl/parlay/fw_if.idl \
644 idl/parlay/fw_if_access.idl \
645 idl/parlay/fw_if_app.idl \
646 idl/parlay/fw_if_entop.idl \
647 idl/parlay/fw_if_service.idl \
648 idl/parlay/gcc_data.idl \
649 idl/parlay/gcc_interfaces.idl \
652 idl/parlay/mmccs.idl \
654 idl/parlay/mpcc_data.idl \
655 idl/parlay/mpcc_interfaces.idl \
657 idl/parlay/pam_data.idl \
658 idl/parlay/pam_interfaces.idl \
659 idl/parlay/Parlay.idl \
660 idl/parlay/policy_data.idl \
661 idl/parlay/policy_interfaces.idl \
662 idl/parlay/README.parlay \
663 idl/parlay/termcap.idl \
664 idl/parlay/ui_data.idl \
665 idl/parlay/ui_interfaces.idl \
666 image/capinfos.rc.in \
667 image/clist_ascend.xpm \
668 image/clist_descend.xpm \
670 image/dumpcap.rc.in \
671 image/editcap.rc.in \
672 image/expert_chat.xpm \
673 image/expert_error.xpm \
674 image/expert_none.xpm \
675 image/expert_note.xpm \
676 image/expert_warn.xpm \
677 image/file_dlg_win32.rc \
678 image/hi16-app-wireshark.png \
679 image/hi32-app-wireshark.png \
680 image/hi48-app-wireshark.png \
681 image/icon_layout_1.xpm \
682 image/icon_layout_2.xpm \
683 image/icon_layout_3.xpm \
684 image/icon_layout_4.xpm \
685 image/icon_layout_5.xpm \
686 image/icon_layout_6.xpm \
687 image/libwireshark.rc.in \
688 image/libwsutil.rc.in \
689 image/lo16-app-wireshark.png \
690 image/lo32-app-wireshark.png \
691 image/lo48-app-wireshark.png \
692 image/Makefile.nmake \
693 image/mergecap.rc.in \
694 image/nsis-checked.bmp \
695 image/nsis-unchecked.bmp \
696 image/rawshark.rc.in \
698 image/stock_dialog_error_48.xpm \
699 image/stock_dialog_info_48.xpm \
700 image/stock_dialog_question_48.xpm \
701 image/stock_dialog_stop_48.xpm \
702 image/stock_dialog_warning_48.xpm \
703 image/text2pcap.rc.in \
704 image/toolbar/autoscroll_24.xpm \
705 image/toolbar/capture_airpcap_16.xpm \
706 image/toolbar/capture_capture_16.xpm \
707 image/toolbar/capture_details_16.xpm \
708 image/toolbar/capture_details_24.xpm \
709 image/toolbar/capture_ethernet_16.xpm \
710 image/toolbar/capture_filter_24.xpm \
711 image/toolbar/capture_interfaces_24.xpm \
712 image/toolbar/capture_options_24.xpm \
713 image/toolbar/capture_prepare_16.xpm \
714 image/toolbar/capture_restart_24.xpm \
715 image/toolbar/capture_start_24.xpm \
716 image/toolbar/capture_stop_24.xpm \
717 image/toolbar/checkbox_16.xpm \
718 image/toolbar/colorize_24.xpm \
719 image/toolbar/conversations_16.xpm \
720 image/toolbar/decode_as_16.xpm \
721 image/toolbar/display_filter_24.xpm \
722 image/toolbar/endpoints_16.xpm \
723 image/toolbar/expert_info_16.xpm \
724 image/toolbar/file_set_list_16.xpm \
725 image/toolbar/file_set_next_16.xpm \
726 image/toolbar/file_set_previous_16.xpm \
727 image/toolbar/flow_graph_16.xpm \
728 image/toolbar/graphs_16.xpm \
729 image/toolbar/icon_color_0.xpm \
730 image/toolbar/icon_color_1.xpm \
731 image/toolbar/icon_color_2.xpm \
732 image/toolbar/icon_color_3.xpm \
733 image/toolbar/icon_color_4.xpm \
734 image/toolbar/icon_color_5.xpm \
735 image/toolbar/icon_color_6.xpm \
736 image/toolbar/icon_color_7.xpm \
737 image/toolbar/icon_color_8.xpm \
738 image/toolbar/icon_color_9.xpm \
739 image/toolbar/internet_24.xpm \
740 image/toolbar/modem_16.png \
741 image/toolbar/modem_16.xpm \
742 image/toolbar/network_bluetooth_16.png \
743 image/toolbar/network_bluetooth_16.xpm \
744 image/toolbar/network_virtual_16.xpm \
745 image/toolbar/network_wired_16.png \
746 image/toolbar/network_wired_16.xpm \
747 image/toolbar/network_wireless_16.png \
748 image/toolbar/network_wireless_16.xpm \
749 image/toolbar/resize_columns_24.xpm \
750 image/toolbar/telephony_16.xpm \
751 image/toolbar/time_24.xpm \
752 image/toolbar/web_support_24.xpm \
753 image/toolbar/wep_closed_24.xpm \
754 image/toolbar/wiki_24.xpm \
757 image/wiresharkdoc.ico \
758 image/wireshark.exe.manifest.in \
759 image/wireshark.ico \
760 image/wiresharkinst.ico \
761 image/wireshark.rc.in \
762 image/wiretap.rc.in \
765 image/wsicon256.png \
772 image/wsiconcap16.xpm \
773 image/wsiconcap256.png \
774 image/wsiconcap32.xpm \
775 image/wsiconcap48.xpm \
776 image/wsiconcap.svg \
777 image/wsicondoc256.png \
778 image/wsicondoc.svg \
779 image/wsiconinst256.png \
780 image/wsiconinst.svg \
785 image/wssplash-dev.xpm \
787 make-authors-format.pl \
788 make-authors-short.pl \
805 text2pcap-scanner.l \
813 -chmod +s $(DESTDIR)$(bindir)/dumpcap
818 DIST_SUBDIRS = asn1 codecs doc epan gtk help packaging plugins tools wiretap wsutil
821 SUBDIRS = tools wsutil wiretap doc epan plugins packaging help @wireshark_SUBDIRS@
823 SUBDIRS = tools wsutil wiretap doc epan packaging help @wireshark_SUBDIRS@
826 help/faq.txt: $(srcdir)/help/faq.py
830 wireshark.1: doc/wireshark.pod AUTHORS-SHORT-FORMAT
832 $(MAKE) ../wireshark.1 )
834 tshark.1: doc/tshark.pod
836 $(MAKE) ../tshark.1 )
838 wireshark-filter.4: tshark doc/wireshark-filter.pod.template
840 $(MAKE) ../wireshark-filter.4 )
842 capinfos.1: doc/capinfos.pod
844 $(MAKE) ../capinfos.1 )
846 editcap.1: doc/editcap.pod
848 $(MAKE) ../editcap.1 )
850 idl2wrs.1: doc/idl2wrs.pod
852 $(MAKE) ../idl2wrs.1 )
854 mergecap.1: doc/mergecap.pod
856 $(MAKE) ../mergecap.1 )
858 text2pcap.1: doc/text2pcap.pod
860 $(MAKE) ../text2pcap.1 )
862 dumpcap.1: doc/dumpcap.pod
864 $(MAKE) ../dumpcap.1 )
866 rawshark.1: doc/rawshark.pod
868 $(MAKE) ../rawshark.1 )
870 ws.css: $(srcdir)/docbook/ws.css
871 cp $(srcdir)/docbook/ws.css .
873 wireshark.html: doc/wireshark.pod AUTHORS-SHORT-FORMAT ws.css
875 $(MAKE) ../wireshark.html )
877 tshark.html: doc/tshark.pod ws.css
879 $(MAKE) ../tshark.html )
881 wireshark-filter.html: tshark doc/wireshark-filter.pod.template ws.css
883 $(MAKE) ../wireshark-filter.html )
885 capinfos.html: doc/capinfos.pod ws.css
887 $(MAKE) ../capinfos.html )
889 editcap.html: doc/editcap.pod ws.css
891 $(MAKE) ../editcap.html )
893 idl2wrs.html: doc/idl2wrs.pod ws.css
895 $(MAKE) ../idl2wrs.html )
897 mergecap.html: doc/mergecap.pod ws.css
899 $(MAKE) ../mergecap.html )
901 text2pcap.html: doc/text2pcap.pod ws.css
903 $(MAKE) ../text2pcap.html )
905 dumpcap.html: doc/dumpcap.pod ws.css
907 $(MAKE) ../dumpcap.html )
909 rawshark.html: doc/rawshark.pod ws.css
911 $(MAKE) ../rawshark.html )
913 libtool: $(LIBTOOL_DEPS)
914 $(SHELL) ./config.status --recheck
916 # Used by svr4-package and osx-package
917 # We load top_stagedir with an explicit path so that libtool doesn't freak.
918 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/staging
919 stagedir=$(top_stagedir)/$(PACKAGE).inst
924 svr4-package: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA)
925 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
926 rm -rf $(stagedir) ; \
927 $(MAKE) DESTDIR=$(stagedir) install; \
928 $(srcdir)/packaging/svr4/mkpkg \
930 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
934 echo "Error: SVR4 packaging tools not found." ; \
935 echo "Package build abandoned." ; \
938 solaris-package: svr4-package
940 rpm_topdir=`cd $(top_builddir) && pwd`/packaging/rpm
942 if test x$(HAVE_RPM) = xyes ; then \
944 mkdir -p BUILD RPMS SOURCES ; \
946 ln -s ../../../$(distdir).tar.gz ; \
947 ln -s ../../../wireshark.desktop ; \
948 ln -s ../../../image/wsicon64.png wireshark.png ; \
950 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/wireshark.spec && \
951 echo "Package successfully built in `pwd`/RPMS." ; \
953 echo "Error: RPM executable and/or source directory not found." ; \
956 if test x$(HAVE_RPM) = xyes ; then \
958 mkdir -p BUILD SRPMS SOURCES ; \
960 ln -s ../../../$(distdir).tar.gz ; \
961 ln -s ../../../wireshark.desktop ; \
962 ln -s ../../../image/wsicon64.png wireshark.png ; \
964 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/wireshark.spec && \
965 echo "Package successfully built in `pwd`/SRPMS." ; \
967 echo "Error: RPM executable and/or source directory not found." ; \
970 debian-package: debian/rules
971 @if test x$(HAVE_DPKG_BUILDPACKAGE) = xyes ; then \
972 dpkg-buildpackage -rfakeroot -us -uc ; \
974 echo "Error: Debian packaging tools not found." ; \
975 echo "Package build abandoned." ; \
978 # XXX - This assumes we're building from the source directory.
979 osx-app: $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) packaging/macosx/Info.plist
980 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
981 rm -rf $(stagedir) ; \
982 $(MAKE) DESTDIR=$(stagedir) install; \
983 cd $(srcdir)/packaging/macosx ; \
984 ./osx-app.sh -bp ../staging/$(PACKAGE).inst$(bindir) ; \
986 echo "Error: OS X packaging tools not found." ; \
987 echo "Package build abandoned." ; \
991 @if test x$(HAVE_OSX_PACKAGING) = xyes ; then \
992 cd $(srcdir)/packaging/macosx ; \
997 rm -rf $(top_stagedir)
1000 $(PERL) tools/checkAPIs.pl \
1002 # $(wireshark_SOURCES)
1003 # $(EXTRA_wireshark_SOURCES)
1005 checkapi: checkapi_local
1006 cd wiretap && $(MAKE) checkapi
1007 cd ../codecs && $(MAKE) checkapi
1008 ## cd ../gtk && $(MAKE) checkapi
1009 ## cd ../epan && $(MAKE) checkapi
1010 ## cd ../epan/crypt && $(MAKE) checkapi
1011 cd ../dfilter && $(MAKE) checkapi
1012 ## cd ../ftypes && $(MAKE) checkapi
1013 ## cd ../wslua && $(MAKE) checkapi
1014 cd ../dissectors && $(MAKE) checkapi
1015 cd ../../plugins && $(MAKE) checkapi
1016 cd ../wsutil && $(MAKE) checkapi