2 # Automake file for Ethereal
4 # $Id: Makefile.am,v 1.696 2004/01/18 02:47:43 guy Exp $
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@ @editcap_bin@ @mergecap_bin@ @tethereal_bin@ @dftest_bin@ @randpkt_bin@ @text2pcap_bin@
64 bin_SCRIPTS = @idl2eth_bin@
65 man1_MANS = @ethereal_man@ @editcap_man@ @mergecap_man@ @tethereal_man@ @text2pcap_man@ @idl2eth_man@
66 man4_MANS = @etherealfilter_man@
69 EXTRA_PROGRAMS = ethereal tethereal editcap mergecap dftest text2pcap
70 EXTRA_SCRIPTS = idl2eth
73 # Ethereal configuration files are put in $(pkgdatadir). It currently
74 # contains the "manuf" file and a "diameter" directory.
79 # Install the Diameter DTD and XML files in the "diameter" subdirectory
82 diameterdir = $(pkgdatadir)/diameter
83 diameter_DATA = dictionary.dtd dictionary.xml mobileipv4.xml \
84 nasreq.xml sunping.xml
115 packet-bootparams.c \
137 packet-dcerpc-afs4int.c \
138 packet-dcerpc-atsvc.c \
139 packet-dcerpc-bossvr.c \
140 packet-dcerpc-browser.c \
141 packet-dcerpc-budb.c \
142 packet-dcerpc-butc.c \
143 packet-dcerpc-cds_clerkserver.c \
144 packet-dcerpc-cds_solicit.c \
145 packet-dcerpc-conv.c \
146 packet-dcerpc-cprpc_server.c \
147 packet-dcerpc-dce122.c \
148 packet-dcerpc-dfs.c \
149 packet-dcerpc-dnsserver.c \
150 packet-dcerpc-drsuapi.c \
151 packet-dcerpc-dtsprovider.c \
152 packet-dcerpc-dtsstime_req.c \
153 packet-dcerpc-epm.c \
154 packet-dcerpc-epm4.c \
155 packet-dcerpc-fldb.c \
156 packet-dcerpc-ftserver.c \
157 packet-dcerpc-icl_rpc.c \
158 packet-dcerpc-initshutdown.c \
159 packet-dcerpc-krb5rpc.c \
160 packet-dcerpc-lsa.c \
161 packet-dcerpc-lsa-ds.c \
162 packet-dcerpc-mapi.c \
163 packet-dcerpc-messenger.c \
164 packet-dcerpc-mgmt.c \
165 packet-dcerpc-ndr.c \
166 packet-dcerpc-netlogon.c \
167 packet-dcerpc-nspi.c \
168 packet-dcerpc-oxid.c \
169 packet-dcerpc-reg.c \
170 packet-dcerpc-remact.c \
171 packet-dcerpc-rep_proc.c \
172 packet-dcerpc-roverride.c \
173 packet-dcerpc-rpriv.c \
174 packet-dcerpc-rs_acct.c \
175 packet-dcerpc-rs_attr.c \
176 packet-dcerpc-rs_bind.c \
177 packet-dcerpc-rs_misc.c \
178 packet-dcerpc-rs_plcy.c \
179 packet-dcerpc-rs_pgo.c \
180 packet-dcerpc-rs_prop_acct.c \
181 packet-dcerpc-rs_repadm.c \
182 packet-dcerpc-rs_replist.c \
183 packet-dcerpc-rs_unix.c \
184 packet-dcerpc-rsec_login.c \
185 packet-dcerpc-samr.c \
186 packet-dcerpc-secidmap.c \
187 packet-dcerpc-spoolss.c \
188 packet-dcerpc-srvsvc.c \
189 packet-dcerpc-svcctl.c \
190 packet-dcerpc-tapi.c \
191 packet-dcerpc-tkn4int.c \
192 packet-dcerpc-trksvr.c \
193 packet-dcerpc-ubikdisk.c \
194 packet-dcerpc-ubikvote.c \
195 packet-dcerpc-update.c \
196 packet-dcerpc-wkssvc.c \
201 packet-diffserv-mpls-common.c \
270 packet-image-jfif.c \
287 packet-isis-hello.c \
326 packet-msn-messenger.c \
357 packet-osi-options.c \
378 packet-quakeworld.c \
397 packet-rtp-events.c \
416 packet-slowprotocols.c \
418 packet-smb-browse.c \
419 packet-smb-common.c \
421 packet-smb-mailslot.c \
423 packet-smb-sidsnooping.c \
437 packet-stat-notify.c \
448 packet-text-media.c \
469 packet-wfleet-hdlc.c \
492 plugins/artnet/artnet.la \
493 plugins/asn1/asn1.la \
494 plugins/docsis/docsis.la \
495 plugins/enttec/enttec.la \
496 plugins/giop/cosnaming.la \
497 plugins/giop/coseventcomm.la \
498 plugins/gryphon/gryphon.la \
499 plugins/irda/irda.la \
500 plugins/lwres/lwres.la \
501 plugins/megaco/megaco.la \
502 plugins/mgcp/mgcp.la \
503 plugins/pcli/pcli.la \
505 plugins/rtnet/rtnet.la \
510 plugins/acn/packet-acn.o \
511 plugins/artnet/packet-artnet.o \
512 plugins/asn1/packet-asn1.o \
513 plugins/docsis/packet-bpkmattr.o \
514 plugins/docsis/packet-bpkmreq.o \
515 plugins/docsis/packet-bpkmrsp.o \
516 plugins/docsis/packet-docsis.o \
517 plugins/docsis/packet-dsaack.o \
518 plugins/docsis/packet-dsareq.o \
519 plugins/docsis/packet-dsarsp.o \
520 plugins/docsis/packet-dscack.o \
521 plugins/docsis/packet-dscreq.o \
522 plugins/docsis/packet-dscrsp.o \
523 plugins/docsis/packet-dsdreq.o \
524 plugins/docsis/packet-dsdrsp.o \
525 plugins/docsis/packet-macmgmt.o \
526 plugins/docsis/packet-map.o \
527 plugins/docsis/packet-regack.o \
528 plugins/docsis/packet-regreq.o \
529 plugins/docsis/packet-regrsp.o \
530 plugins/docsis/packet-rngreq.o \
531 plugins/docsis/packet-rngrsp.o \
532 plugins/docsis/packet-tlv.o \
533 plugins/docsis/packet-uccreq.o \
534 plugins/docsis/packet-uccrsp.o \
535 plugins/docsis/packet-ucd.o \
536 plugins/enttec/packet-enttec.o \
537 plugins/giop/packet-cosnaming.o \
538 plugins/giop/packet-coseventcomm.o \
539 plugins/gryphon/packet-gryphon.o \
540 plugins/irda/packet-irda.o \
541 plugins/lwres/packet-lwres.o \
542 plugins/megaco/packet-megaco.o \
543 plugins/mgcp/packet-mgcp.o \
544 plugins/pcli/packet-pcli.o \
545 plugins/rdm/packet-rdm.o \
546 plugins/rtnet/packet-rtnet.o \
547 plugins/v5ua/packet-v5ua.o
550 plugins/acn/packet-acn.c \
551 plugins/artnet/packet-artnet.c \
552 plugins/asn1/packet-asn1.c \
553 plugins/docsis/packet-bpkmattr.c \
554 plugins/docsis/packet-bpkmreq.c \
555 plugins/docsis/packet-bpkmrsp.c \
556 plugins/docsis/packet-docsis.c \
557 plugins/docsis/packet-dsaack.c \
558 plugins/docsis/packet-dsareq.c \
559 plugins/docsis/packet-dsarsp.c \
560 plugins/docsis/packet-dscack.c \
561 plugins/docsis/packet-dscreq.c \
562 plugins/docsis/packet-dscrsp.c \
563 plugins/docsis/packet-dsdreq.c \
564 plugins/docsis/packet-dsdrsp.c \
565 plugins/docsis/packet-macmgmt.c \
566 plugins/docsis/packet-map.c \
567 plugins/docsis/packet-regack.c \
568 plugins/docsis/packet-regreq.c \
569 plugins/docsis/packet-regrsp.c \
570 plugins/docsis/packet-rngreq.c \
571 plugins/docsis/packet-rngrsp.c \
572 plugins/docsis/packet-tlv.c \
573 plugins/docsis/packet-uccreq.c \
574 plugins/docsis/packet-uccrsp.c \
575 plugins/docsis/packet-ucd.c \
576 plugins/enttec/packet-enttec.c \
577 plugins/giop/packet-cosnaming.c \
578 plugins/giop/packet-coseventcomm.c \
579 plugins/gryphon/packet-gryphon.c \
580 plugins/irda/packet-irda.c \
581 plugins/lwres/packet-lwres.c \
582 plugins/megaco/packet-megaco.c \
583 plugins/mgcp/packet-mgcp.c \
584 plugins/pcli/packet-pcli.c \
585 plugins/rdm/packet-rdm.c \
586 plugins/rtnet/packet-rtnet.c \
587 plugins/v5ua/packet-v5ua.c
592 "-dlopen" plugins/acn/acn.la \
593 "-dlopen" plugins/artnet/artnet.la \
594 "-dlopen" plugins/asn1/asn1.la \
595 "-dlopen" plugins/docsis/docsis.la \
596 "-dlopen" plugins/enttec/enttec.la \
597 "-dlopen" plugins/giop/cosnaming.la \
598 "-dlopen" plugins/giop/coseventcomm.la \
599 "-dlopen" plugins/gryphon/gryphon.la \
600 "-dlopen" plugins/irda/irda.la \
601 "-dlopen" plugins/lwres/lwres.la \
602 "-dlopen" plugins/megaco/megaco.la \
603 "-dlopen" plugins/mgcp/mgcp.la \
604 "-dlopen" plugins/pcli/pcli.la \
605 "-dlopen" plugins/rdm/rdm.la \
606 "-dlopen" plugins/rtnet/rtnet.la \
607 "-dlopen" plugins/v5ua/v5ua.la
611 endif # ENABLE_STATIC
624 packet-afs-macros.h \
625 packet-afs-register-info.h \
634 packet-bootparams.h \
641 packet-dcerpc-atsvc.h \
642 packet-dcerpc-browser.h \
643 packet-dcerpc-dce122.h \
644 packet-dcerpc-dcom.h \
645 packet-dcerpc-dfs.h \
646 packet-dcerpc-dnsserver.h \
647 packet-dcerpc-drsuapi.h \
648 packet-dcerpc-initshutdown.h \
649 packet-dcerpc-lsa.h \
650 packet-dcerpc-mapi.h \
651 packet-dcerpc-netlogon.h \
653 packet-dcerpc-reg.h \
654 packet-dcerpc-samr.h \
655 packet-dcerpc-spoolss.h \
656 packet-dcerpc-srvsvc.h \
657 packet-dcerpc-svcctl.h \
658 packet-dcerpc-tapi.h \
659 packet-dcerpc-wkssvc.h \
662 packet-diameter-defs.h \
663 packet-diffserv-mpls-common.h \
703 packet-isis-hello.h \
726 packet-osi-options.h \
745 packet-rtp-events.h \
751 packet-smb-browse.h \
752 packet-smb-common.h \
753 packet-smb-mailslot.h \
755 packet-smb-sidsnooping.h \
759 packet-stat-notify.h \
776 packet-x11-keysym.h \
777 packet-x11-keysymdef.h \
783 DISSECTOR_SUPPORT_SRC = \
813 h225-persistentdata.c \
814 h225-persistentdata.h \
855 ETHEREAL_COMMON_SRC = \
856 $(DISSECTOR_SUPPORT_SRC) \
858 capture_stop_conditions.c \
859 capture_stop_conditions.h \
888 $(ETHEREAL_COMMON_SRC) \
907 EXTRA_ethereal_SOURCES = \
920 # Optional objects that I know how to build. These will be
921 # linked into the ethereal executable.
922 # They will also be linked into the tethereal executable; if this
923 # list ever grows to include something that can't be linked with
924 # tethereal, or if tethereal needs something that ethereal doesn't,
925 # we should probably split this into stuff needed both
926 # by ethereal and tethereal and stuff needed only by one or the
928 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
929 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
931 # Additional libs that I know how to build. These will be
932 # linked into the ethereal executable.
933 ethereal_additional_libs = \
934 wiretap/libwiretap.a \
937 epan/ftypes/libftypes.a \
938 epan/dfilter/libdfilter.a
940 # This is the automake dependency variable for the executable
941 ethereal_DEPENDENCIES = \
942 $(ethereal_optional_objects) \
943 $(ethereal_additional_libs) \
946 # This automake variable adds to the link-line for the executable.
948 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
949 # they are included in @GTK_LIBS@, and doesn't have to be linked with
950 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
951 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
952 # applications are X applications).
955 ethereal_LDFLAGS = -Wl,-static -all-static
957 ethereal_LDFLAGS = -export-dynamic
961 $(ethereal_optional_objects) \
962 $(ethereal_additional_libs) \
963 @SNMP_LIBS@ @SSL_LIBS@ \
966 @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@
968 TETHEREAL_TAP_SRC = \
980 tap-protohierstat.c \
987 tethereal_SOURCES = \
989 $(ETHEREAL_COMMON_SRC) \
990 $(TETHEREAL_TAP_SRC) \
991 tethereal-tap-register.c \
995 # Additional libs that I know how to build. These will be
996 # linked into the tethereal executable.
997 tethereal_additional_libs = \
998 wiretap/libwiretap.a \
1000 epan/ftypes/libftypes.a \
1001 epan/dfilter/libdfilter.a
1003 # This is the automake dependency variable for the executable
1004 tethereal_DEPENDENCIES = \
1005 $(ethereal_optional_objects) \
1006 $(tethereal_additional_libs) \
1009 # This automake variable adds to the link-line for the executable
1011 $(ethereal_optional_objects) \
1012 $(tethereal_additional_libs) \
1013 @SNMP_LIBS@ @SSL_LIBS@ \
1017 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
1020 tethereal_LDFLAGS = -Wl,-static -all-static
1022 tethereal_LDFLAGS = -export-dynamic
1025 # Optional objects that I know how to build, and that are needed by
1027 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
1029 text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
1030 text2pcap_DEPENDENCIES = text2pcap.h
1032 # This automake variable adds to the link-line for the executable
1033 text2pcap_LDADD = $(text2pcap_optional_objects) \
1036 mergecap_SOURCES = mergecap.c cvsversion.h
1037 mergecap_DEPENDENCIES = wiretap/libwiretap.a
1039 editcap_SOURCES = editcap.c
1041 # This is the automake dependency variable for the executable
1042 editcap_DEPENDENCIES = wiretap/libwiretap.a
1044 # This automake variable adds to the link-line for the executable
1045 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
1046 mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
1049 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
1052 # Build the version string
1055 $(PERL) make-version.pl
1058 # Build various header files for the X11 dissector.
1060 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
1061 $(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
1064 # Build shell scripts by doing variable substitution.
1065 # Taken from autoconf 2.13.
1067 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
1072 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
1075 # Build "register.c", which contains a function "register_all_protocols()"
1076 # that calls the register routines for all protocols.
1078 # We do this by grepping through sources. If that turns out to be too slow,
1079 # maybe we could just require every .o file to have an register routine
1080 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
1082 # Formatting conventions: The name of the proto_register_* routines must
1083 # start in column zero, or must be preceded only by "void " starting in
1084 # column zero, and must not be inside #if.
1086 # We assume that all dissector routines are in "packet-XXX.c" files.
1088 # For some unknown reason, having a big "for" loop in the Makefile
1089 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
1090 # they seem to pass only the first few names in the list to the shell,
1093 # Therefore, we have a script to generate the "register.c" file.
1095 # The first argument is the name of the file to write.
1096 # The second argument is the directory in which the source files live.
1097 # All subsequent arguments are the files to scan.
1099 register.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
1100 @if test -n $(PYTHON); then \
1101 echo Making register.c with python ; \
1102 $(PYTHON) $(srcdir)/make-reg-dotc.py $(srcdir) $(DISSECTOR_SRC) ; \
1104 echo Making register.c with shell script ; \
1105 $(srcdir)/make-reg-dotc register.c $(srcdir) \
1106 $(plugin_src) $(DISSECTOR_SRC) ; \
1110 # Build "tethereal-tap-register.c", which contains a function
1111 # "register_all_tap_listeners()"
1112 # that calls the register routines for all tehtereal tap listeners.
1114 # We do this by grepping through sources.
1116 # Formatting conventions: The name of the tap_listener_register_*
1117 # routines must start in column zero, or must be preceded only by
1118 # "void " starting in column zero, and must not be inside #if.
1120 # The first argument is the directory in which the source files live.
1121 # All subsequent arguments are the files to scan.
1123 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
1124 @echo Making tethereal-tap-register.c
1125 @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
1128 ./rdps $(srcdir)/print.ps ps.c
1131 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
1133 randpkt.o: randpkt.c
1134 $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
1136 randpkt: randpkt.o wiretap/libwiretap.a
1137 $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
1142 $(DISSECTOR_SUPPORT_SRC) \
1147 dftest_additional_libs = \
1148 wiretap/libwiretap.a \
1149 epan/libethereal.a \
1150 epan/ftypes/libftypes.a \
1151 epan/dfilter/libdfilter.a
1153 dftest_DEPENDENCIES = \
1154 $(ethereal_optional_objects) \
1155 $(dftest_additional_libs) \
1158 # This automake variable adds to the link-line for the executable
1160 $(ethereal_optional_objects) \
1161 $(dftest_additional_libs) \
1162 @SNMP_LIBS@ @SSL_LIBS@ \
1166 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
1168 dftest_LDFLAGS = -export-dynamic
1175 aclocal-missing/*.m4 \
1179 MAINTAINERCLEANFILES = \
1197 aclocal-fallback/glib-2.0.m4 \
1198 aclocal-fallback/glib.m4 \
1199 aclocal-fallback/gtk-2.0.m4 \
1200 aclocal-fallback/gtk.m4 \
1202 aclocal-missing/dummy \
1209 debian/README.debian \
1222 doc/Makefile.nmake \
1224 doc/README.developer \
1225 doc/README.idl2eth \
1226 doc/README.plugins \
1227 doc/README.regression \
1228 doc/README.tapping \
1230 doc/README.xml-output \
1231 doc/dfilter2pod.pl \
1233 doc/ethereal-filter.pod.template \
1246 image/Makefile.nmake \
1247 image/README.image \
1248 image/clist_ascend.xpm \
1249 image/clist_descend.xpm \
1250 image/dn_arrow.xpm \
1251 image/editcap.rc.in \
1252 image/eexcl3d64.xpm \
1253 image/eicon3d16.xpm \
1254 image/eicon3d32.xpm \
1255 image/eicon3d48.xpm \
1256 image/eicon3d64.xpm \
1257 image/elogo3d48x48.png \
1258 image/ethereal.icns \
1259 image/ethereal.ico \
1260 image/ethereal.rc.in \
1261 image/ethereal48x48-trans.png \
1262 image/ethereal48x48.png \
1263 image/hi16-app-ethereal.png \
1264 image/hi32-app-ethereal.png \
1265 image/hi48-app-ethereal.png \
1266 image/icon-ethereal.xpm \
1267 image/icon-excl.xpm \
1268 image/lo16-app-ethereal.png \
1269 image/lo32-app-ethereal.png \
1270 image/lo48-app-ethereal.png \
1271 image/mergecap.rc.in \
1272 image/nsis-checked.bmp \
1273 image/nsis-unchecked.bmp \
1274 image/tethereal.rc.in \
1275 image/text2pcap.rc.in \
1276 image/toolbar/capture_24.xpm \
1277 image/toolbar/cfilter_24.xpm \
1278 image/toolbar/dfilter_24.xpm \
1279 image/toolbar/stock_close_24.xpm \
1280 image/toolbar/stock_colorselector_24.xpm \
1281 image/toolbar/stock_help_24.xpm \
1282 image/toolbar/stock_jump_to_24.xpm \
1283 image/toolbar/stock_open_24.xpm \
1284 image/toolbar/stock_preferences_24.xpm \
1285 image/toolbar/stock_print_24.xpm \
1286 image/toolbar/stock_refresh_24.xpm \
1287 image/toolbar/stock_right_arrow_24.xpm \
1288 image/toolbar/stock_save_24.xpm \
1289 image/toolbar/stock_search_24.xpm \
1290 image/toolbar/stock_stop_24.xpm \
1291 image/up_arrow.xpm \
1302 packet-ncp2222.inc \
1304 process-x11-fields.pl \
1308 text2pcap-scanner.l \
1316 -chmod +s $(DESTDIR)$(bindir)/ethereal
1317 -chmod +s $(DESTDIR)$(bindir)/tethereal
1323 # Currently register.c can be included in the distribution because
1324 # we always build all protocol dissectors. We used to have to check
1325 # whether or not to build the snmp dissector. If we again need to
1326 # variably build something, making register.c non-portable, uncomment
1327 # the dist-hook line below.
1329 # Oh, yuk. We don't want to include "register.c" in the distribution, as
1330 # its contents depend on the configuration, and therefore we want it
1331 # to be built when the first "make" is done; however, Automake insists
1332 # on putting *all* source into the distribution.
1334 # We work around this by having a "dist-hook" rule that deletes
1335 # "register.c", so that "dist" won't pick it up.
1338 # @rm -f $(distdir)/register.c
1340 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk help
1343 SUBDIRS = tools wiretap doc epan plugins packaging help @ethereal_SUBDIRS@
1345 SUBDIRS = tools wiretap doc epan packaging help @ethereal_SUBDIRS@
1348 ethereal.1: ethereal doc/ethereal.pod
1350 $(MAKE) ../ethereal.1 )
1352 tethereal.1: tethereal doc/tethereal.pod
1354 $(MAKE) ../tethereal.1 )
1356 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
1358 $(MAKE) ../ethereal-filter.4 )
1360 editcap.1: doc/editcap.pod
1362 $(MAKE) ../editcap.1 )
1364 idl2eth.1: doc/idl2eth.pod
1366 $(MAKE) ../idl2eth.1 )
1368 mergecap.1: doc/mergecap.pod
1370 $(MAKE) ../mergecap.1 )
1372 text2pcap.1: doc/text2pcap.pod
1374 $(MAKE) ../text2pcap.1 )
1376 packet-ncp2222.c : ncp2222.py
1377 $(PYTHON) $(srcdir)/ncp2222.py -o $@
1379 libtool: $(LIBTOOL_DEPS)
1380 $(SHELL) ./config.status --recheck
1382 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1383 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
1384 stagedir=$(top_stagedir)/$(PACKAGE).stage
1388 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
1389 @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1390 rm -rf $(stagedir) ; \
1391 $(MAKE) DESTDIR=$(stagedir) install; \
1392 $(srcdir)/packaging/svr4/mkpkg \
1394 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1398 echo "Error: SVR4 packaging tools not found." ; \
1399 echo "Package build abandoned." ; \
1402 solaris-package: svr4-package
1404 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
1406 if test x$(HAVE_RPM) = xyes ; then \
1407 cd $(rpm_topdir) ; \
1408 mkdir -p BUILD RPMS SOURCES ; \
1410 ln -s ../../../$(distdir).tar.gz ; \
1412 rpm --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
1413 echo "Package successfully built in `pwd`/RPMS." ; \
1415 echo "Error: RPM executable and/or source directory not found." ; \
1418 if test x$(HAVE_RPM) = xyes ; then \
1419 cd $(rpm_topdir) ; \
1420 mkdir -p BUILD SRPMS SOURCES ; \
1422 ln -s ../../../$(distdir).tar.gz ; \
1424 rpm --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
1425 echo "Package successfully built in `pwd`/SRPMS." ; \
1427 echo "Error: RPM executable and/or source directory not found." ; \
1430 debian-package: debian/rules
1431 dpkg-buildpackage -rfakeroot -us -uc
1434 rm -rf $(top_stagedir)
1436 test-splint: $(ethereal_SOURCES)
1438 -gnu-extensions -D_U_="" \
1439 -I. `glib-config --cflags` \