2 # Automake file for Ethereal
4 # $Id: Makefile.am,v 1.618 2003/09/03 05:39:21 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 tethereal editcap mergecap dftest text2pcap
69 EXTRA_SCRIPTS = idl2eth
72 # Ethereal configuration files are put in $(pkgdatadir). It currently
73 # contains the "manuf" file and a "diameter" directory.
78 # Install the Diameter DTD and XML files in the "diameter" subdirectory
81 diameterdir = $(pkgdatadir)/diameter
82 diameter_DATA = dictionary.dtd dictionary.xml mobileipv4.xml \
83 nasreq.xml sunping.xml
108 packet-bootparams.c \
125 packet-dcerpc-afs4int.c \
126 packet-dcerpc-atsvc.c \
127 packet-dcerpc-bossvr.c \
128 packet-dcerpc-browser.c \
129 packet-dcerpc-cds_clerkserver.c \
130 packet-dcerpc-cds_solicit.c \
131 packet-dcerpc-conv.c \
132 packet-dcerpc-cprpc_server.c \
133 packet-dcerpc-dce122.c \
134 packet-dcerpc-dfs.c \
135 packet-dcerpc-dnsserver.c \
136 packet-dcerpc-dtsprovider.c \
137 packet-dcerpc-dtsstime_req.c \
138 packet-dcerpc-epm.c \
139 packet-dcerpc-fldb.c \
140 packet-dcerpc-ftserver.c \
141 packet-dcerpc-krb5rpc.c \
142 packet-dcerpc-lsa.c \
143 packet-dcerpc-lsa-ds.c \
144 packet-dcerpc-mapi.c \
145 packet-dcerpc-messenger.c \
146 packet-dcerpc-mgmt.c \
147 packet-dcerpc-ndr.c \
148 packet-dcerpc-netlogon.c \
149 packet-dcerpc-nspi.c \
150 packet-dcerpc-oxid.c \
151 packet-dcerpc-reg.c \
152 packet-dcerpc-remact.c \
153 packet-dcerpc-rep_proc.c \
154 packet-dcerpc-roverride.c \
155 packet-dcerpc-rpriv.c \
156 packet-dcerpc-rs_acct.c \
157 packet-dcerpc-rs_attr.c \
158 packet-dcerpc-rs_misc.c \
159 packet-dcerpc-rs_pgo.c \
160 packet-dcerpc-rs_repadm.c \
161 packet-dcerpc-rs_replist.c \
162 packet-dcerpc-rs_unix.c \
163 packet-dcerpc-rsec_login.c \
164 packet-dcerpc-samr.c \
165 packet-dcerpc-secidmap.c \
166 packet-dcerpc-spoolss.c \
167 packet-dcerpc-srvsvc.c \
168 packet-dcerpc-svcctl.c \
169 packet-dcerpc-tapi.c \
170 packet-dcerpc-tkn4int.c \
171 packet-dcerpc-ubikdisk.c \
172 packet-dcerpc-ubikvote.c \
173 packet-dcerpc-update.c \
174 packet-dcerpc-wkssvc.c \
254 packet-isis-hello.c \
291 packet-msn-messenger.c \
318 packet-osi-options.c \
338 packet-quakeworld.c \
373 packet-slowprotocols.c \
375 packet-smb-browse.c \
376 packet-smb-common.c \
378 packet-smb-mailslot.c \
380 packet-smb-sidsnooping.c \
394 packet-stat-notify.c \
423 packet-wfleet-hdlc.c \
445 plugins/artnet/artnet.la \
446 plugins/docsis/docsis.la \
447 plugins/giop/cosnaming.la \
448 plugins/giop/coseventcomm.la \
449 plugins/gryphon/gryphon.la \
450 plugins/lwres/lwres.la \
451 plugins/megaco/megaco.la \
452 plugins/mgcp/mgcp.la \
453 plugins/pcli/pcli.la \
454 plugins/rtnet/rtnet.la
458 plugins/artnet/packet-artnet-static.o \
459 plugins/docsis/packet-bpkmattr-static.o \
460 plugins/docsis/packet-bpkmreq-static.o \
461 plugins/docsis/packet-bpkmrsp-static.o \
462 plugins/docsis/packet-docsis-static.o \
463 plugins/docsis/packet-dsaack-static.o \
464 plugins/docsis/packet-dsareq-static.o \
465 plugins/docsis/packet-dsarsp-static.o \
466 plugins/docsis/packet-dscack-static.o \
467 plugins/docsis/packet-dscreq-static.o \
468 plugins/docsis/packet-dscrsp-static.o \
469 plugins/docsis/packet-dsdreq-static.o \
470 plugins/docsis/packet-dsdrsp-static.o \
471 plugins/docsis/packet-macmgmt-static.o \
472 plugins/docsis/packet-map-static.o \
473 plugins/docsis/packet-regack-static.o \
474 plugins/docsis/packet-regreq-static.o \
475 plugins/docsis/packet-regrsp-static.o \
476 plugins/docsis/packet-rngreq-static.o \
477 plugins/docsis/packet-rngrsp-static.o \
478 plugins/docsis/packet-tlv-static.o \
479 plugins/docsis/packet-uccreq-static.o \
480 plugins/docsis/packet-uccrsp-static.o \
481 plugins/docsis/packet-ucd-static.o \
482 plugins/giop/packet-cosnaming-static.o \
483 plugins/giop/packet-coseventcomm-static.o \
484 plugins/gryphon/packet-gryphon-static.o \
485 plugins/lwres/packet-lwres-static.o \
486 plugins/megaco/packet-megaco-static.o \
487 plugins/mgcp/packet-mgcp-static.o \
488 plugins/pcli/packet-pcli-static.o \
489 plugins/rtnet/packet-rtnet-static.o
492 plugins/artnet/packet-artnet.c \
493 plugins/docsis/packet-bpkmattr.c \
494 plugins/docsis/packet-bpkmreq.c \
495 plugins/docsis/packet-bpkmrsp.c \
496 plugins/docsis/packet-docsis.c \
497 plugins/docsis/packet-dsaack.c \
498 plugins/docsis/packet-dsareq.c \
499 plugins/docsis/packet-dsarsp.c \
500 plugins/docsis/packet-dscack.c \
501 plugins/docsis/packet-dscreq.c \
502 plugins/docsis/packet-dscrsp.c \
503 plugins/docsis/packet-dsdreq.c \
504 plugins/docsis/packet-dsdrsp.c \
505 plugins/docsis/packet-macmgmt.c \
506 plugins/docsis/packet-map.c \
507 plugins/docsis/packet-regack.c \
508 plugins/docsis/packet-regreq.c \
509 plugins/docsis/packet-regrsp.c \
510 plugins/docsis/packet-rngreq.c \
511 plugins/docsis/packet-rngrsp.c \
512 plugins/docsis/packet-tlv.c \
513 plugins/docsis/packet-uccreq.c \
514 plugins/docsis/packet-uccrsp.c \
515 plugins/docsis/packet-ucd.c \
516 plugins/giop/packet-cosnaming.c \
517 plugins/giop/packet-coseventcomm.c \
518 plugins/gryphon/packet-gryphon.c \
519 plugins/lwres/packet-lwres.c \
520 plugins/megaco/packet-megaco.c \
521 plugins/mgcp/packet-mgcp.c \
522 plugins/pcli/packet-pcli.c \
523 plugins/rtnet/packet-rtnet.c
528 "-dlopen" plugins/artnet/artnet.la \
529 "-dlopen" plugins/docsis/docsis.la \
530 "-dlopen" plugins/giop/cosnaming.la \
531 "-dlopen" plugins/giop/coseventcomm.la \
532 "-dlopen" plugins/gryphon/gryphon.la \
533 "-dlopen" plugins/lwres/lwres.la \
534 "-dlopen" plugins/megaco/megaco.la \
535 "-dlopen" plugins/mgcp/mgcp.la \
536 "-dlopen" plugins/pcli/pcli.la \
537 "-dlopen" plugins/rtnet/rtnet.la
541 endif # ENABLE_STATIC
554 packet-afs-macros.h \
555 packet-afs-register-info.h \
562 packet-bootparams.h \
568 packet-dcerpc-atsvc.h \
569 packet-dcerpc-browser.h \
570 packet-dcerpc-dce122.h \
571 packet-dcerpc-dfs.h \
572 packet-dcerpc-dnsserver.h \
573 packet-dcerpc-lsa.h \
574 packet-dcerpc-mapi.h \
575 packet-dcerpc-netlogon.h \
577 packet-dcerpc-reg.h \
578 packet-dcerpc-samr.h \
579 packet-dcerpc-spoolss.h \
580 packet-dcerpc-srvsvc.h \
581 packet-dcerpc-svcctl.h \
582 packet-dcerpc-tapi.h \
583 packet-dcerpc-wkssvc.h \
586 packet-diameter-defs.h \
622 packet-isis-hello.h \
644 packet-osi-options.h \
666 packet-smb-browse.h \
667 packet-smb-common.h \
669 packet-smb-mailslot.h \
671 packet-smb-sidsnooping.h \
675 packet-stat-notify.h \
690 packet-x11-keysym.h \
696 ETHEREAL_COMMON_SRC = \
707 capture_stop_conditions.c \
708 capture_stop_conditions.h \
774 x11-register-info.h \
787 $(ETHEREAL_COMMON_SRC) \
805 EXTRA_ethereal_SOURCES = \
818 # Optional objects that I know how to build. These will be
819 # linked into the ethereal executable.
820 # They will also be linked into the tethereal executable; if this
821 # list ever grows to include something that can't be linked with
822 # tethereal, or if tethereal needs something that ethereal doesn't,
823 # we should probably split this into stuff needed both
824 # by ethereal and tethereal and stuff needed only by one or the
826 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
827 @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
829 # Additional libs that I know how to build. These will be
830 # linked into the ethereal executable.
831 ethereal_additional_libs = \
832 wiretap/libwiretap.a \
835 epan/ftypes/libftypes.a \
836 epan/dfilter/libdfilter.a
838 # This is the automake dependency variable for the executable
839 ethereal_DEPENDENCIES = \
840 $(ethereal_optional_objects) \
841 $(ethereal_additional_libs) \
844 # This automake variable adds to the link-line for the executable.
846 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
847 # they are included in @GTK_LIBS@, and doesn't have to be linked with
848 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
849 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
850 # applications are X applications).
853 ethereal_LDFLAGS = -Wl,-static -all-static
855 ethereal_LDFLAGS = -export-dynamic
859 $(ethereal_optional_objects) \
860 $(ethereal_additional_libs) \
861 @SNMP_LIBS@ @SSL_LIBS@ \
863 @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@
865 TETHEREAL_TAP_SRC = \
873 tap-protohierstat.c \
880 tethereal_SOURCES = \
882 $(ETHEREAL_COMMON_SRC) \
883 $(TETHEREAL_TAP_SRC) \
884 tethereal-tap-register.c \
888 # Additional libs that I know how to build. These will be
889 # linked into the tethereal executable.
890 tethereal_additional_libs = \
891 wiretap/libwiretap.a \
893 epan/ftypes/libftypes.a \
894 epan/dfilter/libdfilter.a
896 # This is the automake dependency variable for the executable
897 tethereal_DEPENDENCIES = \
898 $(ethereal_optional_objects) \
899 $(tethereal_additional_libs) \
902 # This automake variable adds to the link-line for the executable
904 $(ethereal_optional_objects) \
905 $(tethereal_additional_libs) \
906 @SNMP_LIBS@ @SSL_LIBS@ \
909 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
912 tethereal_LDFLAGS = -Wl,-static -all-static
914 tethereal_LDFLAGS = -export-dynamic
917 # Optional objects that I know how to build, and that are needed by
919 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
921 text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
922 text2pcap_DEPENDENCIES = text2pcap.h
924 # This automake variable adds to the link-line for the executable
925 text2pcap_LDADD = $(text2pcap_optional_objects) \
928 mergecap_SOURCES = mergecap.c
929 mergecap_DEPENDENCIES = wiretap/libwiretap.a
931 editcap_SOURCES = editcap.c
933 # This is the automake dependency variable for the executable
934 editcap_DEPENDENCIES = wiretap/libwiretap.a
936 # This automake variable adds to the link-line for the executable
937 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
938 mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
941 # Build various header files for the X11 dissector.
943 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
944 $(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
947 # Build shell scripts by doing variable substitution.
948 # Taken from autoconf 2.13.
950 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
955 $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
958 # Build "register.c", which contains a function "register_all_protocols()"
959 # that calls the register routines for all protocols.
961 # We do this by grepping through sources. If that turns out to be too slow,
962 # maybe we could just require every .o file to have an register routine
963 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
965 # Formatting conventions: The name of the proto_register_* routines must
966 # start in column zero, or must be preceded only by "void " starting in
967 # column zero, and must not be inside #if.
969 # We assume that all dissector routines are in "packet-XXX.c" files.
971 # For some unknown reason, having a big "for" loop in the Makefile
972 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
973 # they seem to pass only the first few names in the list to the shell,
976 # Therefore, we have a script to generate the "register.c" file.
978 # The first argument is the name of the file to write.
979 # The second argument is the directory in which the source files live.
980 # All subsequent arguments are the files to scan.
982 register.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
983 @if test -n $(PYTHON); then \
984 echo Making register.c with python ; \
985 $(PYTHON) $(srcdir)/make-reg-dotc.py $(srcdir) $(DISSECTOR_SRC) ; \
987 echo Making register.c with shell script ; \
988 $(srcdir)/make-reg-dotc register.c $(srcdir) \
989 $(plugin_src) $(DISSECTOR_SRC) ; \
993 # Build "tethereal-tap-register.c", which contains a function
994 # "register_all_tap_listeners()"
995 # that calls the register routines for all tehtereal tap listeners.
997 # We do this by grepping through sources.
999 # Formatting conventions: The name of the tap_listener_register_*
1000 # routines must start in column zero, or must be preceded only by
1001 # "void " starting in column zero, and must not be inside #if.
1003 # The first argument is the directory in which the source files live.
1004 # All subsequent arguments are the files to scan.
1006 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
1007 @echo Making tethereal-tap-register.c
1008 @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
1011 ./rdps $(srcdir)/print.ps ps.c
1014 $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
1016 randpkt.o: randpkt.c
1017 $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
1019 randpkt: randpkt.o wiretap/libwiretap.a
1020 $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
1025 $(ETHEREAL_COMMON_SRC) \
1029 dftest_additional_libs = \
1030 wiretap/libwiretap.a \
1031 epan/libethereal.a \
1032 epan/ftypes/libftypes.a \
1033 epan/dfilter/libdfilter.a
1035 dftest_DEPENDENCIES = \
1036 $(ethereal_optional_objects) \
1037 $(dftest_additional_libs) \
1040 # This automake variable adds to the link-line for the executable
1042 $(ethereal_optional_objects) \
1043 $(dftest_additional_libs) \
1044 @SNMP_LIBS@ @SSL_LIBS@ \
1047 @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
1049 dftest_LDFLAGS = -export-dynamic
1055 aclocal-missing/*.m4 \
1060 MAINTAINERCLEANFILES = \
1079 aclocal-fallback/glib-2.0.m4 \
1080 aclocal-fallback/glib.m4 \
1081 aclocal-fallback/gtk-2.0.m4 \
1082 aclocal-fallback/gtk.m4 \
1084 aclocal-missing/dummy \
1091 debian/README.debian \
1104 doc/Makefile.nmake \
1106 doc/README.developer \
1107 doc/README.idl2eth \
1108 doc/README.plugins \
1109 doc/README.regression \
1110 doc/README.tapping \
1112 doc/dfilter2pod.pl \
1114 doc/ethereal.pod.template \
1118 doc/tethereal.pod.template \
1126 image/Makefile.nmake \
1127 image/README.image \
1128 image/clist_ascend.xpm \
1129 image/clist_descend.xpm \
1130 image/dn_arrow.xpm \
1131 image/editcap.rc.in \
1132 image/eexcl3d64.xpm \
1133 image/eicon3d16.xpm \
1134 image/eicon3d32.xpm \
1135 image/eicon3d48.xpm \
1136 image/eicon3d64.xpm \
1137 image/elogo3d48x48.png \
1138 image/ethereal.ico \
1139 image/ethereal.rc.in \
1140 image/ethereal48x48-trans.png \
1141 image/ethereal48x48.png \
1142 image/hi16-app-ethereal.png \
1143 image/hi32-app-ethereal.png \
1144 image/hi48-app-ethereal.png \
1145 image/icon-ethereal.xpm \
1146 image/icon-excl.xpm \
1147 image/lo16-app-ethereal.png \
1148 image/lo32-app-ethereal.png \
1149 image/lo48-app-ethereal.png \
1150 image/mergecap.rc.in \
1151 image/nsis-checked.bmp \
1152 image/nsis-unchecked.bmp \
1153 image/tethereal.rc.in \
1154 image/text2pcap.rc.in \
1155 image/up_arrow.xpm \
1166 packet-ncp2222.inc \
1168 process-x11-fields.pl \
1172 text2pcap-scanner.l \
1180 -chmod +s $(DESTDIR)$(bindir)/ethereal
1181 -chmod +s $(DESTDIR)$(bindir)/tethereal
1187 # Currently register.c can be included in the distribution because
1188 # we always build all protocol dissectors. We used to have to check
1189 # whether or not to build the snmp dissector. If we again need to
1190 # variably build something, making register.c non-portable, uncomment
1191 # the dist-hook line below.
1193 # Oh, yuk. We don't want to include "register.c" in the distribution, as
1194 # its contents depend on the configuration, and therefore we want it
1195 # to be built when the first "make" is done; however, Automake insists
1196 # on putting *all* source into the distribution.
1198 # We work around this by having a "dist-hook" rule that deletes
1199 # "register.c", so that "dist" won't pick it up.
1202 # @rm -f $(distdir)/register.c
1204 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk
1207 SUBDIRS = tools wiretap doc epan plugins packaging @ethereal_SUBDIRS@
1209 SUBDIRS = tools wiretap doc epan packaging @ethereal_SUBDIRS@
1212 ethereal.1: ethereal doc/ethereal.pod.template
1214 $(MAKE) ../ethereal.1 )
1216 tethereal.1: tethereal doc/tethereal.pod.template
1218 $(MAKE) ../tethereal.1 )
1220 editcap.1: doc/editcap.pod
1222 $(MAKE) ../editcap.1 )
1224 idl2eth.1: doc/idl2eth.pod
1226 $(MAKE) ../idl2eth.1 )
1228 mergecap.1: doc/mergecap.pod
1230 $(MAKE) ../mergecap.1 )
1232 text2pcap.1: doc/text2pcap.pod
1234 $(MAKE) ../text2pcap.1 )
1236 packet-ncp2222.c : ncp2222.py
1237 $(PYTHON) $(srcdir)/ncp2222.py -o $@
1239 libtool: $(LIBTOOL_DEPS)
1240 $(SHELL) ./config.status --recheck
1242 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1243 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
1244 stagedir=$(top_stagedir)/$(PACKAGE).stage
1248 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
1249 if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1250 rm -rf $(stagedir) ; \
1251 $(MAKE) DESTDIR=$(stagedir) install; \
1252 $(srcdir)/packaging/svr4/mkpkg \
1254 $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1258 echo "Error: SVR4 packaging tools not found." ; \
1259 echo "Package build abandoned." ; \
1262 solaris-package: svr4-package
1264 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
1266 if test x$(HAVE_RPM) = xyes ; then \
1267 cd $(rpm_topdir) ; \
1268 mkdir -p BUILD RPMS SOURCES ; \
1270 ln -s ../../../$(distdir).tar.gz ; \
1272 rpm --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
1273 echo "Package successfully built in `pwd`/RPMS." ; \
1275 echo "Error: RPM executable and/or source directory not found." ; \
1278 if test x$(HAVE_RPM) = xyes ; then \
1279 cd $(rpm_topdir) ; \
1280 mkdir -p BUILD SRPMS SOURCES ; \
1282 ln -s ../../../$(distdir).tar.gz ; \
1284 rpm --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
1285 echo "Package successfully built in `pwd`/SRPMS." ; \
1287 echo "Error: RPM executable and/or source directory not found." ; \
1290 debian-package: debian/rules
1291 dpkg-buildpackage -rfakeroot -us -uc
1294 rm -rf $(top_stagedir)
1296 test-splint: $(ethereal_SOURCES)
1298 -gnu-extensions -D_U_="" \
1299 -I. `glib-config --cflags` \