2 # Automake file for Ethereal
4 # $Id: Makefile.am,v 1.639 2003/10/14 01:18:09 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
113 packet-bootparams.c \
132 packet-dcerpc-afs4int.c \
133 packet-dcerpc-atsvc.c \
134 packet-dcerpc-bossvr.c \
135 packet-dcerpc-browser.c \
136 packet-dcerpc-cds_clerkserver.c \
137 packet-dcerpc-cds_solicit.c \
138 packet-dcerpc-conv.c \
139 packet-dcerpc-cprpc_server.c \
140 packet-dcerpc-dce122.c \
141 packet-dcerpc-dfs.c \
142 packet-dcerpc-dnsserver.c \
143 packet-dcerpc-drsuapi.c \
144 packet-dcerpc-dtsprovider.c \
145 packet-dcerpc-dtsstime_req.c \
146 packet-dcerpc-epm.c \
147 packet-dcerpc-fldb.c \
148 packet-dcerpc-ftserver.c \
149 packet-dcerpc-krb5rpc.c \
150 packet-dcerpc-lsa.c \
151 packet-dcerpc-lsa-ds.c \
152 packet-dcerpc-mapi.c \
153 packet-dcerpc-messenger.c \
154 packet-dcerpc-mgmt.c \
155 packet-dcerpc-ndr.c \
156 packet-dcerpc-netlogon.c \
157 packet-dcerpc-nspi.c \
158 packet-dcerpc-oxid.c \
159 packet-dcerpc-reg.c \
160 packet-dcerpc-remact.c \
161 packet-dcerpc-rep_proc.c \
162 packet-dcerpc-roverride.c \
163 packet-dcerpc-rpriv.c \
164 packet-dcerpc-rs_acct.c \
165 packet-dcerpc-rs_attr.c \
166 packet-dcerpc-rs_misc.c \
167 packet-dcerpc-rs_pgo.c \
168 packet-dcerpc-rs_repadm.c \
169 packet-dcerpc-rs_replist.c \
170 packet-dcerpc-rs_unix.c \
171 packet-dcerpc-rsec_login.c \
172 packet-dcerpc-samr.c \
173 packet-dcerpc-secidmap.c \
174 packet-dcerpc-spoolss.c \
175 packet-dcerpc-srvsvc.c \
176 packet-dcerpc-svcctl.c \
177 packet-dcerpc-tapi.c \
178 packet-dcerpc-tkn4int.c \
179 packet-dcerpc-ubikdisk.c \
180 packet-dcerpc-ubikvote.c \
181 packet-dcerpc-update.c \
182 packet-dcerpc-wkssvc.c \
187 packet-diffserv-mpls-common.c \
265 packet-isis-hello.c \
302 packet-msn-messenger.c \
330 packet-osi-options.c \
350 packet-quakeworld.c \
369 packet-rtp-events.c \
386 packet-slowprotocols.c \
388 packet-smb-browse.c \
389 packet-smb-common.c \
391 packet-smb-mailslot.c \
393 packet-smb-sidsnooping.c \
407 packet-stat-notify.c \
438 packet-wfleet-hdlc.c \
461 plugins/artnet/artnet.la \
462 plugins/docsis/docsis.la \
463 plugins/giop/cosnaming.la \
464 plugins/giop/coseventcomm.la \
465 plugins/gryphon/gryphon.la \
466 plugins/lwres/lwres.la \
467 plugins/megaco/megaco.la \
468 plugins/mgcp/mgcp.la \
469 plugins/pcli/pcli.la \
470 plugins/rtnet/rtnet.la
474 plugins/acn/packet-acn.o \
475 plugins/artnet/packet-artnet.o \
476 plugins/docsis/packet-bpkmattr.o \
477 plugins/docsis/packet-bpkmreq.o \
478 plugins/docsis/packet-bpkmrsp.o \
479 plugins/docsis/packet-docsis.o \
480 plugins/docsis/packet-dsaack.o \
481 plugins/docsis/packet-dsareq.o \
482 plugins/docsis/packet-dsarsp.o \
483 plugins/docsis/packet-dscack.o \
484 plugins/docsis/packet-dscreq.o \
485 plugins/docsis/packet-dscrsp.o \
486 plugins/docsis/packet-dsdreq.o \
487 plugins/docsis/packet-dsdrsp.o \
488 plugins/docsis/packet-macmgmt.o \
489 plugins/docsis/packet-map.o \
490 plugins/docsis/packet-regack.o \
491 plugins/docsis/packet-regreq.o \
492 plugins/docsis/packet-regrsp.o \
493 plugins/docsis/packet-rngreq.o \
494 plugins/docsis/packet-rngrsp.o \
495 plugins/docsis/packet-tlv.o \
496 plugins/docsis/packet-uccreq.o \
497 plugins/docsis/packet-uccrsp.o \
498 plugins/docsis/packet-ucd.o \
499 plugins/giop/packet-cosnaming.o \
500 plugins/giop/packet-coseventcomm.o \
501 plugins/gryphon/packet-gryphon.o \
502 plugins/lwres/packet-lwres.o \
503 plugins/megaco/packet-megaco.o \
504 plugins/mgcp/packet-mgcp.o \
505 plugins/pcli/packet-pcli.o \
506 plugins/rtnet/packet-rtnet.o
509 plugins/acn/packet-acn.c \
510 plugins/artnet/packet-artnet.c \
511 plugins/docsis/packet-bpkmattr.c \
512 plugins/docsis/packet-bpkmreq.c \
513 plugins/docsis/packet-bpkmrsp.c \
514 plugins/docsis/packet-docsis.c \
515 plugins/docsis/packet-dsaack.c \
516 plugins/docsis/packet-dsareq.c \
517 plugins/docsis/packet-dsarsp.c \
518 plugins/docsis/packet-dscack.c \
519 plugins/docsis/packet-dscreq.c \
520 plugins/docsis/packet-dscrsp.c \
521 plugins/docsis/packet-dsdreq.c \
522 plugins/docsis/packet-dsdrsp.c \
523 plugins/docsis/packet-macmgmt.c \
524 plugins/docsis/packet-map.c \
525 plugins/docsis/packet-regack.c \
526 plugins/docsis/packet-regreq.c \
527 plugins/docsis/packet-regrsp.c \
528 plugins/docsis/packet-rngreq.c \
529 plugins/docsis/packet-rngrsp.c \
530 plugins/docsis/packet-tlv.c \
531 plugins/docsis/packet-uccreq.c \
532 plugins/docsis/packet-uccrsp.c \
533 plugins/docsis/packet-ucd.c \
534 plugins/giop/packet-cosnaming.c \
535 plugins/giop/packet-coseventcomm.c \
536 plugins/gryphon/packet-gryphon.c \
537 plugins/lwres/packet-lwres.c \
538 plugins/megaco/packet-megaco.c \
539 plugins/mgcp/packet-mgcp.c \
540 plugins/pcli/packet-pcli.c \
541 plugins/rtnet/packet-rtnet.c
546 "-dlopen" plugins/acn/acn.la \
547 "-dlopen" plugins/artnet/artnet.la \
548 "-dlopen" plugins/docsis/docsis.la \
549 "-dlopen" plugins/giop/cosnaming.la \
550 "-dlopen" plugins/giop/coseventcomm.la \
551 "-dlopen" plugins/gryphon/gryphon.la \
552 "-dlopen" plugins/lwres/lwres.la \
553 "-dlopen" plugins/megaco/megaco.la \
554 "-dlopen" plugins/mgcp/mgcp.la \
555 "-dlopen" plugins/pcli/pcli.la \
556 "-dlopen" plugins/rtnet/rtnet.la
560 endif # ENABLE_STATIC
573 packet-afs-macros.h \
574 packet-afs-register-info.h \
581 packet-bootparams.h \
587 packet-dcerpc-atsvc.h \
588 packet-dcerpc-browser.h \
589 packet-dcerpc-dce122.h \
590 packet-dcerpc-dcom.h \
591 packet-dcerpc-dfs.h \
592 packet-dcerpc-dnsserver.h \
593 packet-dcerpc-drsuapi.h \
594 packet-dcerpc-lsa.h \
595 packet-dcerpc-mapi.h \
596 packet-dcerpc-netlogon.h \
598 packet-dcerpc-reg.h \
599 packet-dcerpc-samr.h \
600 packet-dcerpc-spoolss.h \
601 packet-dcerpc-srvsvc.h \
602 packet-dcerpc-svcctl.h \
603 packet-dcerpc-tapi.h \
604 packet-dcerpc-wkssvc.h \
607 packet-diameter-defs.h \
608 packet-diffserv-mpls-common.h \
644 packet-isis-hello.h \
666 packet-osi-options.h \
684 packet-rtp-events.h \
689 packet-smb-browse.h \
690 packet-smb-common.h \
692 packet-smb-mailslot.h \
694 packet-smb-sidsnooping.h \
698 packet-stat-notify.h \
715 packet-x11-keysym.h \
721 ETHEREAL_COMMON_SRC = \
732 capture_stop_conditions.c \
733 capture_stop_conditions.h \
803 x11-register-info.h \
816 $(ETHEREAL_COMMON_SRC) \
834 EXTRA_ethereal_SOURCES = \
847 # Optional objects that I know how to build. These will be
848 # linked into the ethereal executable.
849 # They will also be linked into the tethereal executable; if this
850 # list ever grows to include something that can't be linked with
851 # tethereal, or if tethereal needs something that ethereal doesn't,
852 # we should probably split this into stuff needed both
853 # by ethereal and tethereal and stuff needed only by one or the
855 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
856 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
858 # Additional libs that I know how to build. These will be
859 # linked into the ethereal executable.
860 ethereal_additional_libs = \
861 wiretap/libwiretap.a \
864 epan/ftypes/libftypes.a \
865 epan/dfilter/libdfilter.a
867 # This is the automake dependency variable for the executable
868 ethereal_DEPENDENCIES = \
869 $(ethereal_optional_objects) \
870 $(ethereal_additional_libs) \
873 # This automake variable adds to the link-line for the executable.
875 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
876 # they are included in @GTK_LIBS@, and doesn't have to be linked with
877 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
878 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
879 # applications are X applications).
882 ethereal_LDFLAGS = -Wl,-static -all-static
884 ethereal_LDFLAGS = -export-dynamic
888 $(ethereal_optional_objects) \
889 $(ethereal_additional_libs) \
890 @SNMP_LIBS@ @SSL_LIBS@ \
892 @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@
894 TETHEREAL_TAP_SRC = \
902 tap-protohierstat.c \
909 tethereal_SOURCES = \
911 $(ETHEREAL_COMMON_SRC) \
912 $(TETHEREAL_TAP_SRC) \
913 tethereal-tap-register.c \
917 # Additional libs that I know how to build. These will be
918 # linked into the tethereal executable.
919 tethereal_additional_libs = \
920 wiretap/libwiretap.a \
922 epan/ftypes/libftypes.a \
923 epan/dfilter/libdfilter.a
925 # This is the automake dependency variable for the executable
926 tethereal_DEPENDENCIES = \
927 $(ethereal_optional_objects) \
928 $(tethereal_additional_libs) \
931 # This automake variable adds to the link-line for the executable
933 $(ethereal_optional_objects) \
934 $(tethereal_additional_libs) \
935 @SNMP_LIBS@ @SSL_LIBS@ \
938 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
941 tethereal_LDFLAGS = -Wl,-static -all-static
943 tethereal_LDFLAGS = -export-dynamic
946 # Optional objects that I know how to build, and that are needed by
948 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
950 text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
951 text2pcap_DEPENDENCIES = text2pcap.h
953 # This automake variable adds to the link-line for the executable
954 text2pcap_LDADD = $(text2pcap_optional_objects) \
957 mergecap_SOURCES = mergecap.c
958 mergecap_DEPENDENCIES = wiretap/libwiretap.a
960 editcap_SOURCES = editcap.c
962 # This is the automake dependency variable for the executable
963 editcap_DEPENDENCIES = wiretap/libwiretap.a
965 # This automake variable adds to the link-line for the executable
966 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
967 mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
970 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
973 # Build various header files for the X11 dissector.
975 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
976 $(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
979 # Build shell scripts by doing variable substitution.
980 # Taken from autoconf 2.13.
982 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
987 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
990 # Build "register.c", which contains a function "register_all_protocols()"
991 # that calls the register routines for all protocols.
993 # We do this by grepping through sources. If that turns out to be too slow,
994 # maybe we could just require every .o file to have an register routine
995 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
997 # Formatting conventions: The name of the proto_register_* routines must
998 # start in column zero, or must be preceded only by "void " starting in
999 # column zero, and must not be inside #if.
1001 # We assume that all dissector routines are in "packet-XXX.c" files.
1003 # For some unknown reason, having a big "for" loop in the Makefile
1004 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
1005 # they seem to pass only the first few names in the list to the shell,
1008 # Therefore, we have a script to generate the "register.c" file.
1010 # The first argument is the name of the file to write.
1011 # The second argument is the directory in which the source files live.
1012 # All subsequent arguments are the files to scan.
1014 register.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
1015 @if test -n $(PYTHON); then \
1016 echo Making register.c with python ; \
1017 $(PYTHON) $(srcdir)/make-reg-dotc.py $(srcdir) $(DISSECTOR_SRC) ; \
1019 echo Making register.c with shell script ; \
1020 $(srcdir)/make-reg-dotc register.c $(srcdir) \
1021 $(plugin_src) $(DISSECTOR_SRC) ; \
1025 # Build "tethereal-tap-register.c", which contains a function
1026 # "register_all_tap_listeners()"
1027 # that calls the register routines for all tehtereal tap listeners.
1029 # We do this by grepping through sources.
1031 # Formatting conventions: The name of the tap_listener_register_*
1032 # routines must start in column zero, or must be preceded only by
1033 # "void " starting in column zero, and must not be inside #if.
1035 # The first argument is the directory in which the source files live.
1036 # All subsequent arguments are the files to scan.
1038 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
1039 @echo Making tethereal-tap-register.c
1040 @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
1043 ./rdps $(srcdir)/print.ps ps.c
1046 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
1048 randpkt.o: randpkt.c
1049 $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
1051 randpkt: randpkt.o wiretap/libwiretap.a
1052 $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
1057 $(ETHEREAL_COMMON_SRC) \
1061 dftest_additional_libs = \
1062 wiretap/libwiretap.a \
1063 epan/libethereal.a \
1064 epan/ftypes/libftypes.a \
1065 epan/dfilter/libdfilter.a
1067 dftest_DEPENDENCIES = \
1068 $(ethereal_optional_objects) \
1069 $(dftest_additional_libs) \
1072 # This automake variable adds to the link-line for the executable
1074 $(ethereal_optional_objects) \
1075 $(dftest_additional_libs) \
1076 @SNMP_LIBS@ @SSL_LIBS@ \
1079 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
1081 dftest_LDFLAGS = -export-dynamic
1087 aclocal-missing/*.m4 \
1092 MAINTAINERCLEANFILES = \
1111 aclocal-fallback/glib-2.0.m4 \
1112 aclocal-fallback/glib.m4 \
1113 aclocal-fallback/gtk-2.0.m4 \
1114 aclocal-fallback/gtk.m4 \
1116 aclocal-missing/dummy \
1123 debian/README.debian \
1136 doc/Makefile.nmake \
1138 doc/README.developer \
1139 doc/README.idl2eth \
1140 doc/README.plugins \
1141 doc/README.regression \
1142 doc/README.tapping \
1144 doc/dfilter2pod.pl \
1146 doc/ethereal-filter.pod.template \
1159 image/Makefile.nmake \
1160 image/README.image \
1161 image/clist_ascend.xpm \
1162 image/clist_descend.xpm \
1163 image/dn_arrow.xpm \
1164 image/editcap.rc.in \
1165 image/eexcl3d64.xpm \
1166 image/eicon3d16.xpm \
1167 image/eicon3d32.xpm \
1168 image/eicon3d48.xpm \
1169 image/eicon3d64.xpm \
1170 image/elogo3d48x48.png \
1171 image/ethereal.ico \
1172 image/ethereal.rc.in \
1173 image/ethereal48x48-trans.png \
1174 image/ethereal48x48.png \
1175 image/hi16-app-ethereal.png \
1176 image/hi32-app-ethereal.png \
1177 image/hi48-app-ethereal.png \
1178 image/icon-ethereal.xpm \
1179 image/icon-excl.xpm \
1180 image/lo16-app-ethereal.png \
1181 image/lo32-app-ethereal.png \
1182 image/lo48-app-ethereal.png \
1183 image/mergecap.rc.in \
1184 image/nsis-checked.bmp \
1185 image/nsis-unchecked.bmp \
1186 image/tethereal.rc.in \
1187 image/text2pcap.rc.in \
1188 image/up_arrow.xpm \
1199 packet-ncp2222.inc \
1201 process-x11-fields.pl \
1205 text2pcap-scanner.l \
1213 -chmod +s $(DESTDIR)$(bindir)/ethereal
1214 -chmod +s $(DESTDIR)$(bindir)/tethereal
1220 # Currently register.c can be included in the distribution because
1221 # we always build all protocol dissectors. We used to have to check
1222 # whether or not to build the snmp dissector. If we again need to
1223 # variably build something, making register.c non-portable, uncomment
1224 # the dist-hook line below.
1226 # Oh, yuk. We don't want to include "register.c" in the distribution, as
1227 # its contents depend on the configuration, and therefore we want it
1228 # to be built when the first "make" is done; however, Automake insists
1229 # on putting *all* source into the distribution.
1231 # We work around this by having a "dist-hook" rule that deletes
1232 # "register.c", so that "dist" won't pick it up.
1235 # @rm -f $(distdir)/register.c
1237 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk
1240 SUBDIRS = tools wiretap doc epan plugins packaging @ethereal_SUBDIRS@
1242 SUBDIRS = tools wiretap doc epan packaging @ethereal_SUBDIRS@
1245 ethereal.1: ethereal doc/ethereal.pod
1247 $(MAKE) ../ethereal.1 )
1249 tethereal.1: tethereal doc/tethereal.pod
1251 $(MAKE) ../tethereal.1 )
1253 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
1255 $(MAKE) ../ethereal-filter.4 )
1257 editcap.1: doc/editcap.pod
1259 $(MAKE) ../editcap.1 )
1261 idl2eth.1: doc/idl2eth.pod
1263 $(MAKE) ../idl2eth.1 )
1265 mergecap.1: doc/mergecap.pod
1267 $(MAKE) ../mergecap.1 )
1269 text2pcap.1: doc/text2pcap.pod
1271 $(MAKE) ../text2pcap.1 )
1273 packet-ncp2222.c : ncp2222.py
1274 $(PYTHON) $(srcdir)/ncp2222.py -o $@
1276 libtool: $(LIBTOOL_DEPS)
1277 $(SHELL) ./config.status --recheck
1279 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1280 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
1281 stagedir=$(top_stagedir)/$(PACKAGE).stage
1285 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
1286 if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1287 rm -rf $(stagedir) ; \
1288 $(MAKE) DESTDIR=$(stagedir) install; \
1289 $(srcdir)/packaging/svr4/mkpkg \
1291 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1295 echo "Error: SVR4 packaging tools not found." ; \
1296 echo "Package build abandoned." ; \
1299 solaris-package: svr4-package
1301 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
1303 if test x$(HAVE_RPM) = xyes ; then \
1304 cd $(rpm_topdir) ; \
1305 mkdir -p BUILD RPMS SOURCES ; \
1307 ln -s ../../../$(distdir).tar.gz ; \
1309 rpm --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
1310 echo "Package successfully built in `pwd`/RPMS." ; \
1312 echo "Error: RPM executable and/or source directory not found." ; \
1315 if test x$(HAVE_RPM) = xyes ; then \
1316 cd $(rpm_topdir) ; \
1317 mkdir -p BUILD SRPMS SOURCES ; \
1319 ln -s ../../../$(distdir).tar.gz ; \
1321 rpm --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
1322 echo "Package successfully built in `pwd`/SRPMS." ; \
1324 echo "Error: RPM executable and/or source directory not found." ; \
1327 debian-package: debian/rules
1328 dpkg-buildpackage -rfakeroot -us -uc
1331 rm -rf $(top_stagedir)
1333 test-splint: $(ethereal_SOURCES)
1335 -gnu-extensions -D_U_="" \
1336 -I. `glib-config --cflags` \