update to netlogon to show DsrGetDcNameEx2() Client account name, domain name and...
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Ethereal
3 #
4 # $Id: Makefile.am,v 1.727 2004/03/30 19:34:32 guy Exp $
5 #
6 # Ethereal - Network traffic analyzer
7 # By Gerald Combs <gerald@ethereal.com>
8 # Copyright 1998 Gerald Combs
9 #
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.
14 #
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.
19 #
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.
23
24 ACLOCAL_AMFLAGS = `./aclocal-flags`
25
26 #
27 # This is a hideous hack.
28 #
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).
35 #
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.
39 #
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
44 # "{section}".
45 #
46 # So, as all our man pages go in section 1, we define "man1_MANS" to
47 # contain all the man page.
48 #
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.)
58 #
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.
62 #
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@
67 man_MANS =
68
69 EXTRA_PROGRAMS = ethereal tethereal editcap mergecap dftest randpkt text2pcap
70 EXTRA_SCRIPTS = idl2eth
71
72 #
73 # Ethereal configuration files are put in $(pkgdatadir).  It currently
74 # contains the "manuf" file and a "diameter" directory.
75 #
76 pkgdata_DATA = manuf
77
78 #
79 # Install the Diameter DTD and XML files in the "diameter" subdirectory
80 # of that directory.
81 #
82 diameterdir = $(pkgdatadir)/diameter
83 diameter_DATA = dictionary.dtd dictionary.xml mobileipv4.xml \
84         nasreq.xml sunping.xml
85
86 PLATFORM_SRC = pcap-util-unix.c
87
88 include Makefile.common
89
90 if HAVE_PLUGINS
91 plugin_libs = \
92         plugins/acn/acn.la \
93         plugins/artnet/artnet.la \
94         plugins/asn1/asn1.la \
95         plugins/ciscosm/ciscosm.la \
96         plugins/docsis/docsis.la \
97         plugins/enttec/enttec.la \
98         plugins/giop/cosnaming.la \
99         plugins/giop/coseventcomm.la \
100         plugins/gryphon/gryphon.la \
101         plugins/irda/irda.la \
102         plugins/lwres/lwres.la \
103         plugins/megaco/megaco.la \
104         plugins/mgcp/mgcp.la \
105         plugins/pcli/pcli.la \
106         plugins/rdm/rdm.la \
107         plugins/rlm/rlm.la \
108         plugins/rtnet/rtnet.la \
109         plugins/rudp/rudp.la \
110         plugins/v5ua/v5ua.la
111
112 if ENABLE_STATIC
113 plugin_ldadd = \
114         plugins/acn/packet-acn.o \
115         plugins/artnet/packet-artnet.o \
116         plugins/asn1/packet-asn1.o \
117         plugins/ciscosm/packet-sm.o \
118         plugins/docsis/packet-bpkmattr.o \
119         plugins/docsis/packet-bpkmreq.o \
120         plugins/docsis/packet-bpkmrsp.o \
121         plugins/docsis/packet-docsis.o \
122         plugins/docsis/packet-dsaack.o \
123         plugins/docsis/packet-dsareq.o \
124         plugins/docsis/packet-dsarsp.o \
125         plugins/docsis/packet-dscack.o \
126         plugins/docsis/packet-dscreq.o \
127         plugins/docsis/packet-dscrsp.o \
128         plugins/docsis/packet-dsdreq.o \
129         plugins/docsis/packet-dsdrsp.o \
130         plugins/docsis/packet-macmgmt.o \
131         plugins/docsis/packet-map.o \
132         plugins/docsis/packet-regack.o \
133         plugins/docsis/packet-regreq.o \
134         plugins/docsis/packet-regrsp.o \
135         plugins/docsis/packet-rngreq.o \
136         plugins/docsis/packet-rngrsp.o \
137         plugins/docsis/packet-tlv.o \
138         plugins/docsis/packet-uccreq.o \
139         plugins/docsis/packet-uccrsp.o \
140         plugins/docsis/packet-ucd.o \
141         plugins/enttec/packet-enttec.o \
142         plugins/giop/packet-cosnaming.o \
143         plugins/giop/packet-coseventcomm.o \
144         plugins/gryphon/packet-gryphon.o \
145         plugins/irda/packet-irda.o \
146         plugins/lwres/packet-lwres.o \
147         plugins/megaco/packet-megaco.o \
148         plugins/mgcp/packet-mgcp.o \
149         plugins/pcli/packet-pcli.o \
150         plugins/rdm/packet-rdm.o \
151         plugins/rlm/packet-rlm.o \
152         plugins/rtnet/packet-rtnet.o \
153         plugins/rudp/packet-rudp.o \
154         plugins/v5ua/packet-v5ua.o
155
156 else            # ENABLE_STATIC
157 plugin_ldadd = \
158         "-dlopen" self  \
159         "-dlopen" plugins/acn/acn.la \
160         "-dlopen" plugins/artnet/artnet.la \
161         "-dlopen" plugins/asn1/asn1.la \
162         "-dlopen" plugins/ciscosm/ciscosm.la \
163         "-dlopen" plugins/docsis/docsis.la \
164         "-dlopen" plugins/enttec/enttec.la \
165         "-dlopen" plugins/giop/cosnaming.la \
166         "-dlopen" plugins/giop/coseventcomm.la \
167         "-dlopen" plugins/gryphon/gryphon.la \
168         "-dlopen" plugins/irda/irda.la \
169         "-dlopen" plugins/lwres/lwres.la \
170         "-dlopen" plugins/megaco/megaco.la \
171         "-dlopen" plugins/mgcp/mgcp.la \
172         "-dlopen" plugins/pcli/pcli.la \
173         "-dlopen" plugins/rdm/rdm.la \
174         "-dlopen" plugins/rlm/rlm.la \
175         "-dlopen" plugins/rtnet/rtnet.la \
176         "-dlopen" plugins/rudp/rudp.la \
177         "-dlopen" plugins/v5ua/v5ua.la
178
179 endif           # ENABLE_STATIC
180
181 else            # HAVE_PLUGINS
182 plugin_libs =
183
184 plugin_ldadd =
185 endif           # HAVE_PLUGINS
186
187 # Optional objects that I know how to build. These will be
188 # linked into the ethereal executable.
189 # They will also be linked into the tethereal executable; if this
190 # list ever grows to include something that can't be linked with
191 # tethereal, or if tethereal needs something that ethereal doesn't,
192 # we should probably split this into stuff needed both
193 # by ethereal and tethereal and stuff needed only by one or the
194 # other.
195 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
196         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
197
198 # Additional libs that I know how to build. These will be
199 # linked into the ethereal executable.
200 ethereal_additional_libs = \
201         gtk/libui.a             \
202         wiretap/libwiretap.la   \
203         epan/libethereal.la
204
205 # This is the automake dependency variable for the executable
206 ethereal_DEPENDENCIES = \
207         $(ethereal_optional_objects)    \
208         $(ethereal_additional_libs)     \
209         $(plugin_libs)
210
211 # This automake variable adds to the link-line for the executable.
212 #
213 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
214 # they are included in @GTK_LIBS@, and doesn't have to be linked with
215 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
216 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
217 # applications are X applications).
218
219 if ENABLE_STATIC
220 ethereal_LDFLAGS = -Wl,-static -all-static
221 else
222 ethereal_LDFLAGS = -export-dynamic
223 endif
224
225 ethereal_LDADD = \
226         $(ethereal_optional_objects)    \
227         $(ethereal_additional_libs)     \
228         @SNMP_LIBS@ @SSL_LIBS@          \
229         $(plugin_ldadd)                 \
230         @PCRE_LIBS@                     \
231         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@
232
233 # Additional libs that I know how to build. These will be
234 # linked into the tethereal executable.
235 tethereal_additional_libs =             \
236         wiretap/libwiretap.la           \
237         epan/libethereal.la
238
239 # This is the automake dependency variable for the executable
240 tethereal_DEPENDENCIES = \
241         $(ethereal_optional_objects)    \
242         $(tethereal_additional_libs)    \
243         $(plugin_libs)
244
245 # This automake variable adds to the link-line for the executable
246 tethereal_LDADD = \
247         $(ethereal_optional_objects)    \
248         $(tethereal_additional_libs)    \
249         @SNMP_LIBS@ @SSL_LIBS@          \
250         $(plugin_ldadd)                 \
251         @PCRE_LIBS@                     \
252         @GLIB_LIBS@ -lm                 \
253         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
254
255 if ENABLE_STATIC
256 tethereal_LDFLAGS = -Wl,-static -all-static
257 else
258 tethereal_LDFLAGS = -export-dynamic
259 endif
260
261 # Optional objects that I know how to build, and that are needed by
262 # text2pcap.
263 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
264
265 text2pcap_DEPENDENCIES = text2pcap.h
266
267 # This automake variable adds to the link-line for the executable
268 text2pcap_LDADD = $(text2pcap_optional_objects) \
269         @GLIB_LIBS@ -lm
270
271 mergecap_DEPENDENCIES = wiretap/libwiretap.la
272
273 # This is the automake dependency variable for the executable
274 editcap_DEPENDENCIES = wiretap/libwiretap.la
275
276 # This automake variable adds to the link-line for the executable
277 editcap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
278 mergecap_LDADD = wiretap/libwiretap.la @GLIB_LIBS@
279
280 # Common headers
281 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
282
283 #
284 # Build the version string
285 #
286 # FORCE is the portable version of .PHONY
287 FORCE:
288
289 cvsversion.h: FORCE
290         $(PERL) $(srcdir)/make-version.pl
291
292 #
293 # Build shell scripts by doing variable substitution.
294 # Taken from autoconf 2.13.
295 #
296 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
297
298 SUFFIXES = .sh
299 .sh:
300         rm -f $@ $@.tmp
301         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
302
303 #
304 # Build "tethereal-tap-register.c", which contains a function 
305 # "register_all_tap_listeners()"
306 # that calls the register routines for all tehtereal tap listeners.
307 #
308 # We do this by grepping through sources.
309 #
310 # Formatting conventions:  The name of the tap_listener_register_* 
311 # routines must start in column zero, or must be preceded only by 
312 # "void " starting in column zero, and must not be inside #if.
313 #
314 # The first argument is the directory in which the source files live.
315 # All subsequent arguments are the files to scan.
316 #
317 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
318         @echo Making tethereal-tap-register.c
319         @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
320
321 ps.c: print.ps rdps
322         ./rdps $(srcdir)/print.ps ps.c
323
324 rdps: rdps.c
325         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
326
327 randpkt_additional_libs = wiretap/libwiretap.la
328
329 randpkt_DEPENDENCIES = \
330         $(randpkt_additional_libs)
331
332 randpkt_LDADD = \
333         $(randpkt_additional_libs) \
334         @GLIB_LIBS@ -lm                 \
335         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
336
337 dftest_additional_libs =                \
338         wiretap/libwiretap.la           \
339         epan/libethereal.la
340
341 dftest_DEPENDENCIES = \
342         $(ethereal_optional_objects)    \
343         $(dftest_additional_libs)       \
344         $(plugin_libs)
345
346 # This automake variable adds to the link-line for the executable
347 dftest_LDADD = \
348         $(ethereal_optional_objects)    \
349         $(dftest_additional_libs)       \
350         @SNMP_LIBS@ @SSL_LIBS@          \
351         $(plugin_ldadd)                 \
352         @PCRE_LIBS@                     \
353         @GLIB_LIBS@ -lm                 \
354         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
355
356 dftest_LDFLAGS = -export-dynamic
357
358 CLEANFILES =    \
359         cvsversion.h \
360         @rdps_bin@ \
361         idl2eth
362
363 DISTCLEANFILES = \
364         ps.c \
365         *~
366
367 MAINTAINERCLEANFILES =          \
368         ps.c
369
370 EXTRA_DIST = \
371         Ethereal.desktop        \
372         FAQ                     \
373         INSTALL.configure       \
374         Makefile.common         \
375         Makefile.nmake          \
376         README.aix              \
377         README.bsd              \
378         README.hpux             \
379         README.irix             \
380         README.linux            \
381         README.macos            \
382         README.tru64            \
383         README.vmware           \
384         README.win32            \
385         TODO                    \
386         aclocal-fallback/glib-2.0.m4 \
387         aclocal-fallback/glib.m4 \
388         aclocal-fallback/gtk-2.0.m4 \
389         aclocal-fallback/gtk.m4 \
390         aclocal-flags           \
391         autogen.sh              \
392         capture-wpcap.c         \
393         capture-wpcap.h         \
394         cleanbld.bat            \
395         config.h.win32          \
396         config.nmake            \
397         debian/README.debian    \
398         debian/changelog        \
399         debian/control          \
400         debian/copyright        \
401         debian/dirs             \
402         debian/docs             \
403         debian/menu             \
404         debian/postinst         \
405         debian/prerm            \
406         debian/rules            \
407         dictionary.dtd          \
408         dictionary.xml          \
409         doc/Makefile.am         \
410         doc/Makefile.nmake      \
411         doc/README.capture      \
412         doc/README.design       \
413         doc/README.developer    \
414         doc/README.idl2eth      \
415         doc/README.plugins      \
416         doc/README.regression   \
417         doc/README.tapping      \
418         doc/README.tvbuff       \
419         doc/README.xml-output   \
420         doc/dfilter2pod.pl      \
421         doc/editcap.pod         \
422         doc/ethereal-filter.pod.template \
423         doc/ethereal.pod        \
424         doc/idl2eth.pod         \
425         doc/mergecap.pod        \
426         doc/randpkt.txt         \
427         doc/tethereal.pod       \
428         doc/text2pcap.pod       \
429         editcap.c               \
430         ethereal_be.py          \
431         ethereal_gen.py         \
432         getopt.c                \
433         getopt.h                \
434         idl2eth.sh              \
435         image/Ethereal.icns     \
436         image/Makefile.nmake    \
437         image/README.image      \
438         image/clist_ascend.xpm  \
439         image/clist_descend.xpm \
440         image/dn_arrow.xpm      \
441         image/editcap.rc.in     \
442         image/eexcl3d64.xpm     \
443         image/eicon3d16.xpm     \
444         image/eicon3d32.xpm     \
445         image/eicon3d48.xpm     \
446         image/eicon3d64.xpm     \
447         image/elogo3d48x48.png  \
448         image/ethereal.ico      \
449         image/ethereal.rc.in    \
450         image/ethereal48x48-trans.png  \
451         image/ethereal48x48.png \
452         image/hi16-app-ethereal.png     \
453         image/hi32-app-ethereal.png     \
454         image/hi48-app-ethereal.png     \
455         image/icon-ethereal.xpm \
456         image/icon-excl.xpm     \
457         image/lo16-app-ethereal.png     \
458         image/lo32-app-ethereal.png     \
459         image/lo48-app-ethereal.png     \
460         image/mergecap.rc.in    \
461         image/nsis-checked.bmp  \
462         image/nsis-unchecked.bmp        \
463         image/stock_dialog_error_48.xpm \
464         image/stock_dialog_warning_48.xpm       \
465         image/stock_dialog_question_48.xpm      \
466         image/stock_dialog_info_48.xpm  \
467         image/tethereal.rc.in   \
468         image/text2pcap.rc.in   \
469         image/toolbar/capture_24.xpm    \
470         image/toolbar/cfilter_24.xpm    \
471         image/toolbar/dfilter_24.xpm    \
472         image/toolbar/stock_add_24.xpm  \
473         image/toolbar/stock_bottom_24.xpm \
474         image/toolbar/stock_close_24.xpm        \
475         image/toolbar/stock_colorselector_24.xpm        \
476         image/toolbar/stock_help_24.xpm \
477         image/toolbar/stock_jump_to_24.xpm      \
478         image/toolbar/stock_left_arrow_24.xpm \
479         image/toolbar/stock_ok_20.xpm   \
480         image/toolbar/stock_open_24.xpm \
481         image/toolbar/stock_preferences_24.xpm  \
482         image/toolbar/stock_print_24.xpm        \
483         image/toolbar/stock_properties_24.xpm   \
484         image/toolbar/stock_refresh_24.xpm      \
485         image/toolbar/stock_right_arrow_24.xpm  \
486         image/toolbar/stock_save_24.xpm \
487         image/toolbar/stock_save_as_24.xpm \
488         image/toolbar/stock_search_24.xpm       \
489         image/toolbar/stock_stop_24.xpm \
490         image/toolbar/stock_top_24.xpm \
491         image/toolbar/stock_zoom_1_24.xpm \
492         image/toolbar/stock_zoom_in_24.xpm \
493         image/toolbar/stock_zoom_out_24.xpm \
494         image/up_arrow.xpm      \
495         make-manuf              \
496         make-reg-dotc           \
497         make-reg-dotc.py        \
498         make-tapreg-dotc        \
499         make-version.pl         \
500         manuf                   \
501         manuf.tmpl              \
502         mergecap.c              \
503         mobileipv4.xml          \
504         nasreq.xml              \
505         ncp2222.py              \
506         packet-ncp2222.inc      \
507         print.ps                \
508         process-x11-fields.pl   \
509         randpkt.c               \
510         rdps.c                  \
511         sunping.xml             \
512         text2pcap-scanner.l     \
513         text2pcap.c             \
514         text2pcap.h             \
515         wka.tmpl                \
516         x11-fields
517
518 if SETUID_INSTALL
519 install-exec-hook:
520         -chmod +s $(DESTDIR)$(bindir)/ethereal
521         -chmod +s $(DESTDIR)$(bindir)/tethereal
522 else
523 install-exec-hook:
524 endif
525
526 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk help
527
528 if HAVE_PLUGINS
529 SUBDIRS = tools wiretap doc epan plugins packaging help @ethereal_SUBDIRS@
530 else
531 SUBDIRS = tools wiretap doc epan packaging help @ethereal_SUBDIRS@
532 endif
533
534 ethereal.1: ethereal doc/ethereal.pod
535         (cd doc ; \
536         $(MAKE) ../ethereal.1 )
537
538 tethereal.1: tethereal doc/tethereal.pod
539         (cd doc ; \
540         $(MAKE) ../tethereal.1 )
541
542 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
543         (cd doc ; \
544         $(MAKE) ../ethereal-filter.4 )
545
546 editcap.1: doc/editcap.pod
547         (cd doc ; \
548         $(MAKE) ../editcap.1 )
549
550 idl2eth.1: doc/idl2eth.pod
551         (cd doc ; \
552         $(MAKE) ../idl2eth.1 )
553
554 mergecap.1: doc/mergecap.pod
555         (cd doc ; \
556         $(MAKE) ../mergecap.1 )
557
558 text2pcap.1: doc/text2pcap.pod
559         (cd doc ; \
560         $(MAKE) ../text2pcap.1 )
561
562 libtool: $(LIBTOOL_DEPS)
563         $(SHELL) ./config.status --recheck
564
565 # We load top_stagedir with an explicit path so that libtool doesn't freak.
566 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
567 stagedir=$(top_stagedir)/$(PACKAGE).stage
568 host_cpu=@host_cpu@
569 host_os=@host_os@
570
571 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
572         @if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
573                 rm -rf $(stagedir) ; \
574                 $(MAKE) DESTDIR=$(stagedir) install; \
575                 $(srcdir)/packaging/svr4/mkpkg \
576                         $(PACKAGE) \
577                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
578                         $(prefix) \
579                         $(top_stagedir) ; \
580         else \
581                 echo "Error: SVR4 packaging tools not found." ; \
582                 echo "Package build abandoned." ; \
583         fi
584
585 solaris-package: svr4-package
586
587 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
588 rpm-package: dist
589         if test x$(HAVE_RPM) = xyes ; then \
590                 cd $(rpm_topdir) ; \
591                 mkdir -p BUILD RPMS SOURCES ; \
592                 cd SOURCES ; \
593                 ln -s ../../../$(distdir).tar.gz ; \
594                 cd .. ; \
595                 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
596                         echo "Package successfully built in `pwd`/RPMS." ; \
597         else \
598                 echo "Error: RPM executable and/or source directory not found." ; \
599         fi
600 srpm-package: dist
601         if test x$(HAVE_RPM) = xyes ; then \
602                 cd $(rpm_topdir) ; \
603                 mkdir -p BUILD SRPMS SOURCES ; \
604                 cd SOURCES ; \
605                 ln -s ../../../$(distdir).tar.gz ; \
606                 cd .. ; \
607                 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
608                         echo "Package successfully built in `pwd`/SRPMS." ; \
609         else \
610                 echo "Error: RPM executable and/or source directory not found." ; \
611         fi
612
613 debian-package: debian/rules
614         dpkg-buildpackage -rfakeroot -us -uc
615
616 clean-local:
617         rm -rf $(top_stagedir)
618
619 test-splint: $(ethereal_SOURCES)
620         splint \
621                 -gnu-extensions -D_U_=""        \
622                 -I. `glib-config --cflags` \
623                 -I./epan \
624                 -I./tools/lemon \
625                 -I./wiretap     \
626                 $(ethereal_SOURCES)