2 # Automake file for Ethereal
4 # $Id: Makefile.am,v 1.538 2003/01/14 23:53:32 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@
68 EXTRA_PROGRAMS = ethereal ethereal_static tethereal tethereal_static editcap mergecap dftest text2pcap
69 EXTRA_SCRIPTS = idl2eth
72 # Install "manuf" in the directory for Ethereal configuration files.
77 # Install the Diameter DTD and XML files in the "diameter" subdirectory
80 diameterdir = $(sysconfdir)/diameter
81 diameter_DATA = dictionary.dtd dictionary.xml mobileipv4.xml \
82 nasreq.xml sunping.xml
104 packet-bootparams.c \
121 packet-dcerpc-afs4int.c \
122 packet-dcerpc-bossvr.c \
123 packet-dcerpc-browser.c \
124 packet-dcerpc-cds_clerkserver.c \
125 packet-dcerpc-cds_solicit.c \
126 packet-dcerpc-conv.c \
127 packet-dcerpc-cprpc_server.c \
128 packet-dcerpc-dce122.c \
129 packet-dcerpc-dfs.c \
130 packet-dcerpc-dnsserver.c \
131 packet-dcerpc-dtsprovider.c \
132 packet-dcerpc-dtsstime_req.c \
133 packet-dcerpc-epm.c \
134 packet-dcerpc-fldb.c \
135 packet-dcerpc-ftserver.c \
136 packet-dcerpc-krb5rpc.c \
137 packet-dcerpc-lsa.c \
138 packet-dcerpc-lsa-ds.c \
139 packet-dcerpc-mapi.c \
140 packet-dcerpc-mgmt.c \
141 packet-dcerpc-ndr.c \
142 packet-dcerpc-netlogon.c \
143 packet-dcerpc-nspi.c \
145 packet-dcerpc-oxid.c \
146 packet-dcerpc-reg.c \
147 packet-dcerpc-remact.c \
148 packet-dcerpc-rep_proc.c \
149 packet-dcerpc-roverride.c \
150 packet-dcerpc-rpriv.c \
151 packet-dcerpc-rs_acct.c \
152 packet-dcerpc-rs_attr.c \
153 packet-dcerpc-rs_misc.c \
154 packet-dcerpc-rs_pgo.c \
155 packet-dcerpc-rs_repadm.c \
156 packet-dcerpc-rs_replist.c \
157 packet-dcerpc-rs_unix.c \
158 packet-dcerpc-rsec_login.c \
159 packet-dcerpc-samr.c \
160 packet-dcerpc-secidmap.c \
161 packet-dcerpc-spoolss.c \
162 packet-dcerpc-srvsvc.c \
163 packet-dcerpc-tapi.c \
164 packet-dcerpc-tkn4int.c \
165 packet-dcerpc-ubikdisk.c \
166 packet-dcerpc-ubikvote.c \
167 packet-dcerpc-update.c \
168 packet-dcerpc-wkssvc.c \
235 packet-isis-hello.c \
288 packet-osi-options.c \
306 packet-quakeworld.c \
337 packet-slowprotocols.c \
339 packet-smb-browse.c \
340 packet-smb-common.c \
342 packet-smb-mailslot.c \
356 packet-stat-notify.c \
382 packet-wfleet-hdlc.c \
403 plugins/docsis/packet-bpkmattr.c \
404 plugins/docsis/packet-bpkmreq.c \
405 plugins/docsis/packet-bpkmrsp.c \
406 plugins/docsis/packet-docsis.c \
407 plugins/docsis/packet-dsaack.c \
408 plugins/docsis/packet-dsareq.c \
409 plugins/docsis/packet-dsarsp.c \
410 plugins/docsis/packet-dscack.c \
411 plugins/docsis/packet-dscreq.c \
412 plugins/docsis/packet-dscrsp.c \
413 plugins/docsis/packet-dsdreq.c \
414 plugins/docsis/packet-dsdrsp.c \
415 plugins/docsis/packet-macmgmt.c \
416 plugins/docsis/packet-map.c \
417 plugins/docsis/packet-regack.c \
418 plugins/docsis/packet-regreq.c \
419 plugins/docsis/packet-regrsp.c \
420 plugins/docsis/packet-rngreq.c \
421 plugins/docsis/packet-rngrsp.c \
422 plugins/docsis/packet-tlv.c \
423 plugins/docsis/packet-uccreq.c \
424 plugins/docsis/packet-uccrsp.c \
425 plugins/docsis/packet-ucd.c \
426 plugins/giop/packet-cosnaming.c \
427 plugins/giop/packet-coseventcomm.c \
428 plugins/gryphon/packet-gryphon.c \
429 plugins/megaco/packet-megaco.c \
430 plugins/mgcp/packet-mgcp.c \
431 plugins/pcli/packet-pcli.c
433 plugin_static_ldadd = \
434 plugins/docsis/packet-bpkmattr-static.o \
435 plugins/docsis/packet-bpkmreq-static.o \
436 plugins/docsis/packet-bpkmrsp-static.o \
437 plugins/docsis/packet-docsis-static.o \
438 plugins/docsis/packet-dsaack-static.o \
439 plugins/docsis/packet-dsareq-static.o \
440 plugins/docsis/packet-dsarsp-static.o \
441 plugins/docsis/packet-dscack-static.o \
442 plugins/docsis/packet-dscreq-static.o \
443 plugins/docsis/packet-dscrsp-static.o \
444 plugins/docsis/packet-dsdreq-static.o \
445 plugins/docsis/packet-dsdrsp-static.o \
446 plugins/docsis/packet-macmgmt-static.o \
447 plugins/docsis/packet-map-static.o \
448 plugins/docsis/packet-regack-static.o \
449 plugins/docsis/packet-regreq-static.o \
450 plugins/docsis/packet-regrsp-static.o \
451 plugins/docsis/packet-rngreq-static.o \
452 plugins/docsis/packet-rngrsp-static.o \
453 plugins/docsis/packet-tlv-static.o \
454 plugins/docsis/packet-uccreq-static.o \
455 plugins/docsis/packet-uccrsp-static.o \
456 plugins/docsis/packet-ucd-static.o \
457 plugins/giop/packet-cosnaming-static.o \
458 plugins/giop/packet-coseventcomm-static.o \
459 plugins/gryphon/packet-gryphon-static.o \
460 plugins/megaco/packet-megaco-static.o \
461 plugins/mgcp/packet-mgcp-static.o \
462 plugins/pcli/packet-pcli-static.o
465 plugins/docsis/docsis.la \
466 plugins/giop/cosnaming.la \
467 plugins/giop/coseventcomm.la \
468 plugins/gryphon/gryphon.la \
469 plugins/megaco/megaco.la \
470 plugins/mgcp/mgcp.la \
475 "-dlopen" plugins/docsis/docsis.la \
476 "-dlopen" plugins/giop/cosnaming.la \
477 "-dlopen" plugins/giop/coseventcomm.la \
478 "-dlopen" plugins/gryphon/gryphon.la \
479 "-dlopen" plugins/megaco/megaco.la \
480 "-dlopen" plugins/mgcp/mgcp.la \
481 "-dlopen" plugins/pcli/pcli.la
485 plugin_static_ldadd =
495 packet-afs-macros.h \
496 packet-afs-register-info.h \
502 packet-bootparams.h \
508 packet-dcerpc-browser.h \
509 packet-dcerpc-dce122.h \
510 packet-dcerpc-dfs.h \
511 packet-dcerpc-dnsserver.h \
512 packet-dcerpc-lsa.h \
513 packet-dcerpc-mapi.h \
514 packet-dcerpc-netlogon.h \
516 packet-dcerpc-reg.h \
517 packet-dcerpc-samr.h \
518 packet-dcerpc-spoolss.h \
519 packet-dcerpc-srvsvc.h \
520 packet-dcerpc-tapi.h \
521 packet-dcerpc-wkssvc.h \
524 packet-diameter-defs.h \
556 packet-isis-hello.h \
577 packet-osi-options.h \
598 packet-smb-browse.h \
599 packet-smb-common.h \
601 packet-smb-mailslot.h \
606 packet-stat-notify.h \
621 packet-x11-keysym.h \
628 ETHEREAL_COMMON_SRC = \
637 capture_stop_conditions.c \
638 capture_stop_conditions.h \
693 x11-register-info.h \
706 $(ETHEREAL_COMMON_SRC) \
724 ethereal_static_SOURCES = \
726 $(ETHEREAL_COMMON_SRC) \
744 EXTRA_ethereal_SOURCES = \
757 # Optional objects that I know how to build. These will be
758 # linked into the ethereal executable.
759 # They will also be linked into the tethereal executable; if this
760 # list ever grows to include something that can't be linked with
761 # tethereal, or if tethereal needs something that ethereal doesn't,
762 # we should probably split this into stuff needed both
763 # by ethereal and tethereal and stuff needed only by one or the
765 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
766 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
768 # Additional libs that I know how to build. These will be
769 # linked into the ethereal executable.
770 ethereal_additional_libs = \
771 wiretap/libwiretap.a \
774 epan/ftypes/libftypes.a \
775 epan/dfilter/libdfilter.a
777 # This is the automake dependency variable for the executable
778 ethereal_DEPENDENCIES = \
779 $(ethereal_optional_objects) \
780 $(ethereal_additional_libs) \
783 ethereal_static_DEPENDENCIES = \
784 $(ethereal_optional_objects) \
785 $(ethereal_additional_libs)
787 # This automake variable adds to the link-line for the executable.
789 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
790 # they are included in @GTK_LIBS@, and doesn't have to be linked with
791 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
792 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
793 # applications are X applications).
795 $(ethereal_optional_objects) \
796 $(ethereal_additional_libs) \
797 @SNMP_LIBS@ @SSL_LIBS@ \
799 @PCAP_LIBS@ @GTK_LIBS@
801 ethereal_static_LDADD = \
803 $(plugin_static_ldadd) \
804 $(ethereal_optional_objects) \
805 $(ethereal_additional_libs) \
806 @SNMP_LIBS@ @SSL_LIBS@ \
807 @PCAP_LIBS@ @GTK_LIBS@
809 ethereal_LDFLAGS = -export-dynamic
810 ethereal_static_LDFLAGS = -Wl,-static
812 TETHEREAL_TAP_SRC = \
816 tap-protohierstat.c \
820 tethereal_SOURCES = \
822 $(ETHEREAL_COMMON_SRC) \
823 $(TETHEREAL_TAP_SRC) \
824 tethereal-tap-register.c \
828 tethereal_static_SOURCES = \
830 $(ETHEREAL_COMMON_SRC) \
831 $(TETHEREAL_TAP_SRC) \
832 tethereal-tap-register.c \
836 # Additional libs that I know how to build. These will be
837 # linked into the tethereal executable.
838 tethereal_additional_libs = \
839 wiretap/libwiretap.a \
841 epan/ftypes/libftypes.a \
842 epan/dfilter/libdfilter.a
844 # This is the automake dependency variable for the executable
845 tethereal_DEPENDENCIES = \
846 $(ethereal_optional_objects) \
847 $(tethereal_additional_libs) \
850 tethereal_static_DEPENDENCIES = \
851 $(ethereal_optional_objects) \
852 $(tethereal_additional_libs)
854 # This automake variable adds to the link-line for the executable
855 tethereal_LDADD = wiretap/libwiretap.a \
856 $(ethereal_optional_objects) \
857 $(tethereal_additional_libs) \
858 @SNMP_LIBS@ @SSL_LIBS@ \
861 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
863 tethereal_static_LDADD = \
865 $(plugin_static_ldadd) \
866 wiretap/libwiretap.a \
867 $(ethereal_optional_objects) \
868 $(tethereal_additional_libs) \
869 @SNMP_LIBS@ @SSL_LIBS@ \
871 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
873 tethereal_LDFLAGS = -export-dynamic
874 tethereal_static_LDFLAGS = -Wl,-static
876 # Optional objects that I know how to build, and that are needed by
878 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
880 text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
881 text2pcap_DEPENDENCIES = text2pcap.h
883 # This automake variable adds to the link-line for the executable
884 text2pcap_LDADD = $(text2pcap_optional_objects) \
887 mergecap_SOURCES = mergecap.c
888 mergecap_DEPENDENCIES = wiretap/libwiretap.a
890 editcap_SOURCES = editcap.c
892 # This is the automake dependency variable for the executable
893 editcap_DEPENDENCIES = wiretap/libwiretap.a
895 # This automake variable adds to the link-line for the executable
896 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
897 mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
900 # Build various header files for the X11 dissector.
902 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
903 $(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
906 # Build shell scripts by doing variable substitution.
907 # Taken from autoconf 2.13.
909 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
914 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
917 # Build "register.c", which contains a function "register_all_protocols()"
918 # that calls the register routines for all protocols.
920 # We do this by grepping through sources. If that turns out to be too slow,
921 # maybe we could just require every .o file to have an register routine
922 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
924 # Formatting conventions: The name of the proto_register_* routines must
925 # start in column zero, or must be preceded only by "void " starting in
926 # column zero, and must not be inside #if.
928 # We assume that all dissector routines are in "packet-XXX.c" files.
930 # For some unknown reason, having a big "for" loop in the Makefile
931 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
932 # they seem to pass only the first few names in the list to the shell,
935 # Therefore, we have a script to generate the "register.c" file.
937 # The first argument is the name of the file to write.
938 # The second argument is the directory in which the source files live.
939 # All subsequent arguments are the files to scan.
941 register.c: $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
942 @echo Making register.c
943 @$(srcdir)/make-reg-dotc register.c $(srcdir) $(DISSECTOR_SRC)
945 register-static.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
946 @echo Making register-static.c
947 @$(srcdir)/make-reg-dotc register-static.c $(srcdir) $(plugin_src) $(DISSECTOR_SRC)
950 # Build "tethereal-tap-register.c", which contains a function
951 # "register_all_tap_listeners()"
952 # that calls the register routines for all tehtereal tap listeners.
954 # We do this by grepping through sources.
956 # Formatting conventions: The name of the tap_listener_register_*
957 # routines must start in column zero, or must be preceded only by
958 # "void " starting in column zero, and must not be inside #if.
960 # The first argument is the directory in which the source files live.
961 # All subsequent arguments are the files to scan.
963 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
964 @echo Making tethereal-tap-register.c
965 @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
968 ./rdps $(srcdir)/print.ps ps.c
971 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
974 $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
976 randpkt: randpkt.o wiretap/libwiretap.a
977 $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
982 $(ETHEREAL_COMMON_SRC) \
986 dftest_additional_libs = \
987 wiretap/libwiretap.a \
989 epan/ftypes/libftypes.a \
990 epan/dfilter/libdfilter.a
992 dftest_DEPENDENCIES = \
993 $(ethereal_optional_objects) \
994 $(dftest_additional_libs) \
997 # This automake variable adds to the link-line for the executable
999 $(ethereal_optional_objects) \
1000 $(dftest_additional_libs) \
1001 @SNMP_LIBS@ @SSL_LIBS@ \
1004 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
1006 dftest_LDFLAGS = -export-dynamic
1012 aclocal-missing/*.m4 \
1033 aclocal-fallback/glib-2.0.m4 \
1034 aclocal-fallback/glib.m4 \
1035 aclocal-fallback/gtk-2.0.m4 \
1036 aclocal-fallback/gtk.m4 \
1044 debian/README.debian \
1057 doc/Makefile.nmake \
1059 doc/README.developer \
1060 doc/README.idl2eth \
1061 doc/README.plugins \
1062 doc/README.regression \
1064 doc/dfilter2pod.pl \
1066 doc/ethereal.pod.template \
1070 doc/tethereal.pod.template \
1078 image/Makefile.nmake \
1079 image/README.image \
1080 image/clist_ascend.xpm \
1081 image/clist_descend.xpm \
1082 image/dn_arrow.xpm \
1083 image/editcap.rc.in \
1084 image/eexcl3d64.xpm \
1085 image/eicon3d16.xpm \
1086 image/eicon3d32.xpm \
1087 image/eicon3d48.xpm \
1088 image/eicon3d64.xpm \
1089 image/elogo3d48x48.png \
1090 image/ethereal.ico \
1091 image/ethereal.rc.in \
1092 image/ethereal48x48-trans.png \
1093 image/ethereal48x48.png \
1094 image/hi16-app-ethereal.png \
1095 image/hi32-app-ethereal.png \
1096 image/hi48-app-ethereal.png \
1097 image/icon-ethereal.xpm \
1098 image/icon-excl.xpm \
1099 image/lo16-app-ethereal.png \
1100 image/lo32-app-ethereal.png \
1101 image/lo48-app-ethereal.png \
1102 image/mergecap.rc.in \
1103 image/nsis-checked.bmp \
1104 image/nsis-unchecked.bmp \
1105 image/tethereal.rc.in \
1106 image/text2pcap.rc.in \
1107 image/up_arrow.xpm \
1118 packet-ncp2222.inc \
1120 process-x11-fields.pl \
1124 text2pcap-scanner.l \
1132 -chmod +s $(DESTDIR)$(bindir)/ethereal
1133 -chmod +s $(DESTDIR)$(bindir)/tethereal
1134 -chmod +s $(DESTDIR)$(bindir)/ethereal_static
1140 # Currently register.c can be included in the distribution because
1141 # we always build all protocol dissectors. We used to have to check
1142 # whether or not to build the snmp dissector. If we again need to
1143 # variably build something, making register.c non-portable, uncomment
1144 # the dist-hook line below.
1146 # Oh, yuk. We don't want to include "register.c" in the distribution, as
1147 # its contents depend on the configuration, and therefore we want it
1148 # to be built when the first "make" is done; however, Automake insists
1149 # on putting *all* source into the distribution.
1151 # We work around this by having a "dist-hook" rule that deletes
1152 # "register.c", so that "dist" won't pick it up.
1155 # @rm -f $(distdir)/register.c
1157 # Hack around the problem that I haven't found a way to include an
1158 # empty directroy in the distribution tarball.
1160 mkdir -p aclocal-missing
1162 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk
1165 SUBDIRS = tools wiretap doc epan plugins packaging @ethereal_SUBDIRS@
1167 SUBDIRS = tools wiretap doc epan packaging @ethereal_SUBDIRS@
1170 ethereal.1: ethereal doc/ethereal.pod.template
1172 $(MAKE) ../ethereal.1 )
1174 tethereal.1: tethereal doc/tethereal.pod.template
1176 $(MAKE) ../tethereal.1 )
1178 editcap.1: doc/editcap.pod
1180 $(MAKE) ../editcap.1 )
1182 idl2eth.1: doc/idl2eth.pod
1184 $(MAKE) ../idl2eth.1 )
1186 mergecap.1: doc/mergecap.pod
1188 $(MAKE) ../mergecap.1 )
1190 text2pcap.1: doc/text2pcap.pod
1192 $(MAKE) ../text2pcap.1 )
1194 packet-ncp2222.c : ncp2222.py
1195 $(PYTHON) $(srcdir)/ncp2222.py -o $@
1197 libtool: $(LIBTOOL_DEPS)
1198 $(SHELL) ./config.status --recheck
1200 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1201 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
1202 stagedir=$(top_stagedir)/$(PACKAGE).stage
1206 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
1207 if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1208 rm -rf $(stagedir) ; \
1209 $(MAKE) DESTDIR=$(stagedir) install; \
1210 $(srcdir)/packaging/svr4/mkpkg \
1212 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1216 echo "Error: SVR4 packaging tools not found." ; \
1217 echo "Package build abandoned." ; \
1220 solaris-package: svr4-package
1222 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
1224 if test x$(HAVE_RPM) = xyes ; then \
1225 cd $(rpm_topdir) ; \
1226 mkdir -p BUILD RPMS SOURCES ; \
1228 ln -s ../../../$(distdir).tar.gz ; \
1230 rpm --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
1231 echo "Package successfully built in `pwd`/RPMS." ; \
1233 echo "Error: RPM executable and/or source directory not found." ; \
1236 if test x$(HAVE_RPM) = xyes ; then \
1237 cd $(rpm_topdir) ; \
1238 mkdir -p BUILD SRPMS SOURCES ; \
1240 ln -s ../../../$(distdir).tar.gz ; \
1242 rpm --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
1243 echo "Package successfully built in `pwd`/SRPMS." ; \
1245 echo "Error: RPM executable and/or source directory not found." ; \
1248 debian-package: debian/rules
1249 dpkg-buildpackage -rfakeroot -us -uc
1252 rm -rf $(top_stagedir)