IEEE 802.1x, a/k/a EAPOL, and PPP/EAPOL EAP support, from Pekka
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Ethereal
3 #
4 # $Id: Makefile.am,v 1.377 2001/11/06 20:30:38 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 man_MANS = 
67
68 EXTRA_PROGRAMS = ethereal ethereal_static tethereal tethereal_static editcap mergecap dftest text2pcap
69 EXTRA_SCRIPTS = idl2eth
70
71 sysconf_DATA = manuf dictionary.dtd dictionary.xml mobileipv4.xml \
72         nasreq.xml sunping.xml
73
74 DISSECTOR_SRC = \
75         packet-aarp.c  \
76         packet-afs.c   \
77         packet-aim.c   \
78         packet-arp.c   \
79         packet-ascend.c\
80         packet-atalk.c \
81         packet-atm.c   \
82         packet-auto_rp.c   \
83         packet-bacapp.c   \
84         packet-bacnet.c   \
85         packet-bgp.c   \
86         packet-bootp.c \
87         packet-bootparams.c \
88         packet-bpdu.c  \
89         packet-bvlc.c \
90         packet-bxxp.c \
91         packet-cdp.c   \
92         packet-cgmp.c  \
93         packet-chdlc.c  \
94         packet-clip.c  \
95         packet-clnp.c  \
96         packet-cops.c  \
97         packet-cups.c  \
98         packet-data.c  \
99         packet-dcerpc.c  \
100         packet-dcerpc-conv.c  \
101         packet-dcerpc-epm.c  \
102         packet-dcerpc-mgmt.c  \
103         packet-dcerpc-remact.c  \
104         packet-dcerpc-oxid.c  \
105         packet-ddtp.c  \
106         packet-dec-bpdu.c \
107         packet-diameter.c \
108         packet-dns.c   \
109         packet-dsi.c   \
110         packet-dvmrp.c \
111         packet-eap.c \
112         packet-eapol.c \
113         packet-eigrp.c \
114         packet-esis.c  \
115         packet-eth.c   \
116         packet-ethertype.c   \
117         packet-fddi.c  \
118         packet-fr.c    \
119         packet-frame.c  \
120         packet-ftp.c   \
121         packet-giop.c  \
122         packet-gmrp.c \
123         packet-gnutella.c \
124         packet-gre.c   \
125         packet-gtp.c   \
126         packet-gvrp.c  \
127         packet-h1.c    \
128         packet-h261.c  \
129         packet-hclnfsd.c  \
130         packet-hsrp.c  \
131         packet-http.c  \
132         packet-icap.c  \
133         packet-icmpv6.c\
134         packet-icp.c   \
135         packet-icq.c   \
136         packet-ieee80211.c \
137         packet-ieee8023.c \
138         packet-igmp.c  \
139         packet-igrp.c  \
140         packet-imap.c   \
141         packet-ip.c    \
142         packet-ipp.c   \
143         packet-ipsec.c \
144         packet-ipv6.c  \
145         packet-ipx.c   \
146         packet-irc.c   \
147         packet-isakmp.c\
148         packet-iscsi.c \
149         packet-isis.c  \
150         packet-isis-clv.c \
151         packet-isis-hello.c \
152         packet-isis-lsp.c \
153         packet-isis-snp.c \
154         packet-isl.c   \
155         packet-isup.c  \
156         packet-iua.c   \
157         packet-kerberos.c \
158         packet-klm.c   \
159         packet-l2tp.c  \
160         packet-lapb.c  \
161         packet-lapbether.c \
162         packet-lapd.c  \
163         packet-ldap.c  \
164         packet-ldp.c   \
165         packet-llc.c   \
166         packet-lmi.c   \
167         packet-lpd.c   \
168         packet-m2pa.c  \
169         packet-m3ua.c  \
170         packet-mapi.c  \
171         packet-mbtcp.c \
172         packet-mip.c  \
173         packet-mmse.c  \
174         packet-mount.c \
175         packet-mpeg1.c  \
176         packet-mpls.c \
177         packet-mrdisc.c \
178         packet-msdp.c  \
179         packet-msnip.c \
180         packet-msproxy.c \
181         packet-mtp3.c \
182         packet-nbipx.c \
183         packet-nbns.c  \
184         packet-ncp.c   \
185         packet-ncp2222.c   \
186         packet-netbios.c \
187         packet-nfs.c   \
188         packet-nisplus.c \
189         packet-nlm.c   \
190         packet-nntp.c  \
191         packet-ntp.c  \
192         packet-null.c  \
193         packet-osi.c   \
194         packet-osi-options.c \
195         packet-ospf.c  \
196         packet-pcnfsd.c \
197         packet-pgm.c   \
198         packet-pim.c   \
199         packet-pop.c   \
200         packet-portmap.c   \
201         packet-ppp.c   \
202         packet-pppoe.c \
203         packet-pptp.c  \
204         packet-q2931.c \
205         packet-q931.c  \
206         packet-quake.c \
207         packet-quakeworld.c \
208         packet-quake2.c \
209         packet-quake3.c \
210         packet-radius.c\
211         packet-ranap.c \
212         packet-raw.c   \
213         packet-rip.c   \
214         packet-ripng.c \
215         packet-rlogin.c \
216         packet-rpc.c   \
217         packet-rquota.c \
218         packet-rsh.c   \
219         packet-rsvp.c  \
220         packet-rtcp.c  \
221         packet-rtp.c   \
222         packet-rtsp.c  \
223         packet-rwall.c \
224         packet-rx.c  \
225         packet-sap.c   \
226         packet-sctp.c   \
227         packet-sdp.c   \
228         packet-sip.c   \
229         packet-skinny.c   \
230         packet-sll.c   \
231         packet-smb.c   \
232         packet-smb-browse.c \
233         packet-smb-common.c \
234         packet-smb-logon.c \
235         packet-smb-mailslot.c \
236         packet-smb-pipe.c \
237         packet-smtp.c \
238         packet-sna.c   \
239         packet-snmp.c   \
240         packet-socks.c \
241         packet-spray.c \
242         packet-srvloc.c \
243         packet-sscop.c \
244         packet-ssl.c   \
245         packet-stat.c   \
246         packet-stat-notify.c \
247         packet-sua.c   \
248         packet-syslog.c \
249         packet-tacacs.c \
250         packet-tcp.c   \
251         packet-telnet.c\
252         packet-tftp.c  \
253         packet-time.c  \
254         packet-tns.c \
255         packet-tpkt.c  \
256         packet-tr.c    \
257         packet-trmac.c \
258         packet-ucp.c   \
259         packet-udp.c   \
260         packet-v120.c \
261         packet-vines.c \
262         packet-vlan.c \
263         packet-vrrp.c \
264         packet-vtp.c  \
265         packet-wccp.c \
266         packet-wcp.c \
267         packet-who.c  \
268         packet-wap.c \
269         packet-wtls.c \
270         packet-wsp.c \
271         packet-wtp.c \
272         packet-x11.c   \
273         packet-x25.c   \
274         packet-xot.c   \
275         packet-yhoo.c  \
276         packet-ypbind.c \
277         packet-yppasswd.c \
278         packet-ypserv.c \
279         packet-ypxfr.c \
280         packet-zebra.c
281
282 if HAVE_PLUGINS
283 plugin_src = \
284         plugins/gryphon/packet-gryphon.c \
285         plugins/mgcp/packet-mgcp.c \
286         plugins/giop/packet-cosnaming.c \
287         plugins/giop/packet-coseventcomm.c
288
289 plugin_static_ldadd = \
290         plugins/gryphon/packet-gryphon-static.o         \
291         plugins/mgcp/packet-mgcp-static.o               \
292         plugins/giop/packet-cosnaming-static.o          \
293         plugins/giop/packet-coseventcomm-static.o
294
295 plugin_libs = \
296         plugins/gryphon/gryphon.la \
297         plugins/mgcp/mgcp.la \
298         plugins/giop/cosnaming.la \
299         plugins/giop/coseventcomm.la
300
301 plugin_ldadd = \
302         "-dlopen" self  \
303         "-dlopen" plugins/gryphon/gryphon.la \
304         "-dlopen" plugins/mgcp/mgcp.la \
305         "-dlopen" plugins/giop/cosnaming.la \
306         "-dlopen" plugins/giop/coseventcomm.la
307 else
308 plugin_src =
309
310 plugin_static_ldadd =
311
312 plugin_libs =
313
314 plugin_ldadd =
315 endif
316
317 noinst_HEADERS = \
318         packet-afs.h   \
319         packet-afs-macros.h \
320         packet-afs-register-info.h \
321         packet-afs-defs.h \
322         packet-arp.h   \
323         packet-atalk.h \
324         packet-bgp.h   \
325         packet-bootparams.h \
326         packet-chdlc.h \
327         packet-clip.h  \
328         packet-dcerpc.h \
329         packet-ddtp.h  \
330         packet-diameter-defs.h \
331         packet-dns.h   \
332         packet-dvmrp.h \
333         packet-esis.h  \
334         packet-eth.h   \
335         packet-fddi.h  \
336         packet-fr.h    \
337         packet-frame.h  \
338         packet-giop.h  \
339         packet-gnutella.h \
340         packet-hclnfsd.h  \
341         packet-http.h  \
342         packet-ieee80211.h \
343         packet-ieee8023.h \
344         packet-ip.h    \
345         packet-ipsec.h \
346         packet-ipv6.h  \
347         packet-ipx.h   \
348         packet-isis.h  \
349         packet-isis-clv.h \
350         packet-isis-hello.h \
351         packet-isis-lsp.h \
352         packet-isis-snp.h \
353         packet-isl.h   \
354         packet-klm.h   \
355         packet-ldap.h  \
356         packet-llc.h   \
357         packet-mount.h \
358         packet-mrdisc.h \
359         packet-msnip.h \
360         packet-ncp-int.h \
361         packet-netbios.h \
362         packet-nfs.h   \
363         packet-nisplus.h \
364         packet-nlm.h   \
365         packet-ntp.h  \
366         packet-null.h  \
367         packet-osi.h   \
368         packet-osi-options.h \
369         packet-pgm.h   \
370         packet-pim.h   \
371         packet-portmap.h   \
372         packet-ppp.h   \
373         packet-q931.h  \
374         packet-raw.h   \
375         packet-ripng.h \
376         packet-rpc.h   \
377         packet-rquota.h \
378         packet-rtcp.h  \
379         packet-rtp.h   \
380         packet-rwall.h  \
381         packet-rx.h  \
382         packet-sll.h   \
383         packet-smb-browse.h \
384         packet-smb-common.h \
385         packet-smb-logon.h \
386         packet-smb-mailslot.h \
387         packet-smb-pipe.h \
388         packet-sna.h   \
389         packet-snmp.h   \
390         packet-spray.h \
391         packet-stat.h   \
392         packet-stat-notify.h \
393         packet-tcp.h   \
394         packet-tns.h \
395         packet-tpkt.h  \
396         packet-tr.h    \
397         packet-udp.h   \
398         packet-vines.h \
399         packet-vlan.h \
400         packet-wccp.h \
401         packet-wap.h \
402         packet-wtls.h \
403         packet-wtp.h \
404         packet-wsp.h \
405         packet-x11-keysym.h     \
406         packet-yhoo.h  \
407         packet-ypbind.h \
408         packet-yppasswd.h \
409         packet-ypserv.h \
410         packet-ypxfr.h 
411
412 ETHEREAL_COMMON_SRC = \
413         aftypes.h      \
414         alignment.h    \
415         afn.c          \
416         afn.h          \
417         asn1.c         \
418         asn1.h         \
419         bridged_pids.h \
420         column.c       \
421         column.h       \
422         color.h        \
423         etypes.h       \
424         follow.c       \
425         follow.h       \
426         greproto.h     \
427         in_cksum.c     \
428         in_cksum.h     \
429         int-64bit.c     \
430         int-64bit.h     \
431         ipproto.c      \
432         ipproto.h      \
433         llcsaps.h      \
434         nlpid.h        \
435         oui.h          \
436         ppptypes.h     \
437         prefs.c        \
438         prefs.h        \
439         prefs-int.h    \
440         print.c        \
441         print.h        \
442         ps.c           \
443         ps.h           \
444         ptvcursor.c     \
445         ptvcursor.h     \
446         reassemble.c   \
447         reassemble.h   \
448         register.h     \
449         smb.h          \
450         util.c         \
451         util.h         \
452         x11-declarations.h \
453         x11-register-info.h \
454         xdlc.c         \
455         xdlc.h         \
456         xmlstub.c      \
457         xmlstub.h
458
459 BUILT_SOURCES = \
460         x11-declarations.h \
461         x11-register-info.h
462
463 ethereal_SOURCES = \
464         $(DISSECTOR_SRC) \
465         $(ETHEREAL_COMMON_SRC) \
466         register.c     \
467         capture.c      \
468         capture.h      \
469         file.c         \
470         file.h         \
471         filters.c      \
472         filters.h      \
473         globals.h      \
474         menu.h         \
475         progress_dlg.h \
476         proto_hier_stats.h      \
477         proto_hier_stats.c      \
478         simple_dialog.h \
479         statusbar.h    \
480         summary.c      \
481         summary.h      \
482         ui_util.h
483
484 ethereal_static_SOURCES = \
485         $(DISSECTOR_SRC) \
486         $(ETHEREAL_COMMON_SRC) \
487         register-static.c     \
488         capture.c      \
489         capture.h      \
490         file.c         \
491         file.h         \
492         filters.c      \
493         filters.h      \
494         globals.h      \
495         menu.h         \
496         progress_dlg.h \
497         proto_hier_stats.h      \
498         proto_hier_stats.c      \
499         simple_dialog.h \
500         statusbar.h    \
501         summary.c      \
502         summary.h      \
503         ui_util.h       
504
505 EXTRA_ethereal_SOURCES = \
506         snprintf.c      \
507         snprintf.h      \
508         snprintf-imp.h  \
509         strerror.c      \
510         strerror.h      \
511         strcasecmp.c    \
512         strncasecmp.c   \
513         mkstemp.c       \
514         mkstemp.h       \
515         strptime.c      \
516         strptime.h
517
518 # Optional objects that I know how to build. These will be
519 # linked into the ethereal executable.
520 # They will also be linked into the tethereal executable; if this
521 # list ever grows to include something that can't be linked with
522 # tethereal, or if tethereal needs something that ethereal doesn't,
523 # we should probably split this into stuff needed both
524 # by ethereal and tethereal and stuff needed only by one or the
525 # other.
526 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
527         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
528
529 # Additional libs that I know how to build. These will be
530 # linked into the ethereal executable.
531 ethereal_additional_libs = \
532         wiretap/libwiretap.a    \
533         gtk/libui.a             \
534         epan/libethereal.a      \
535         epan/ftypes/libftypes.a \
536         epan/dfilter/libdfilter.a
537
538 # This is the automake dependency variable for the executable
539 ethereal_DEPENDENCIES = \
540         $(ethereal_optional_objects)    \
541         $(ethereal_additional_libs)     \
542         $(plugin_libs)
543
544 ethereal_static_DEPENDENCIES = \
545         $(ethereal_optional_objects)    \
546         $(ethereal_additional_libs)
547
548 # This automake variable adds to the link-line for the executable.
549 #
550 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
551 # they are included in @GTK_LIBS@, and doesn't have to be linked with
552 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
553 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
554 # applications are X applications).
555 ethereal_LDADD = \
556         $(ethereal_optional_objects)    \
557         $(ethereal_additional_libs)     \
558         @SNMP_LIBS@ @SSL_LIBS@          \
559         $(plugin_ldadd)                 \
560         @PCAP_LIBS@ @GTK_LIBS@
561
562 ethereal_static_LDADD = \
563         "-all-static"                   \
564         $(plugin_static_ldadd)          \
565         $(ethereal_optional_objects)    \
566         $(ethereal_additional_libs)     \
567         @SNMP_LIBS@ @SSL_LIBS@          \
568         @PCAP_LIBS@ @GTK_LIBS@          
569
570 ethereal_LDFLAGS = -export-dynamic
571 ethereal_static_LDFLAGS = -Wl,-static
572
573 tethereal_SOURCES = \
574         $(DISSECTOR_SRC) \
575         $(ETHEREAL_COMMON_SRC) \
576         register.c     \
577         tethereal.c
578
579 tethereal_static_SOURCES = \
580         $(DISSECTOR_SRC) \
581         $(ETHEREAL_COMMON_SRC) \
582         register-static.c     \
583         tethereal.c
584
585 # Additional libs that I know how to build. These will be
586 # linked into the tethereal executable.
587 tethereal_additional_libs =             \
588         wiretap/libwiretap.a            \
589         epan/libethereal.a              \
590         epan/ftypes/libftypes.a         \
591         epan/dfilter/libdfilter.a
592
593 # This is the automake dependency variable for the executable
594 tethereal_DEPENDENCIES = \
595         $(ethereal_optional_objects)    \
596         $(tethereal_additional_libs)    \
597         $(plugin_libs)
598
599 tethereal_static_DEPENDENCIES = \
600         $(ethereal_optional_objects)    \
601         $(tethereal_additional_libs)    
602
603 # This automake variable adds to the link-line for the executable
604 tethereal_LDADD = wiretap/libwiretap.a  \
605         $(ethereal_optional_objects)    \
606         $(tethereal_additional_libs)    \
607         @SNMP_LIBS@ @SSL_LIBS@          \
608         $(plugin_ldadd)                 \
609         @GLIB_LIBS@ -lm \
610         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
611
612 tethereal_static_LDADD = \
613         "-all-static"           \
614         $(plugin_static_ldadd)  \
615         wiretap/libwiretap.a    \
616         $(ethereal_optional_objects)    \
617         $(tethereal_additional_libs)    \
618         @SNMP_LIBS@ @SSL_LIBS@          \
619         @GLIB_LIBS@ -lm \
620         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
621
622 tethereal_LDFLAGS = -export-dynamic
623 tethereal_static_LDFLAGS = -Wl,-static
624
625 text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
626 text2pcap_DEPENDENCIES = text2pcap.h
627
628 mergecap_SOURCES = mergecap.c
629 mergecap_DEPENDENCIES = wiretap/libwiretap.a
630
631 editcap_SOURCES = editcap.c
632
633 # This is the automake dependency variable for the executable
634 editcap_DEPENDENCIES = wiretap/libwiretap.a
635
636 # This automake variable adds to the link-line for the executable
637 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
638 mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
639
640 #
641 # Build various header files for the X11 dissector.
642 #
643 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
644         $(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
645
646 #
647 # Build shell scripts by doing variable substitution.
648 # Taken from autoconf 2.13.
649 #
650 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
651
652 SUFFIXES = .sh
653 .sh:
654         rm -f $@ $@.tmp
655         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
656
657 #
658 # Build "register.c", which contains a function "register_all_protocols()"
659 # that calls the register routines for all protocols.
660 #
661 # We do this by grepping through sources.  If that turns out to be too slow,
662 # maybe we could just require every .o file to have an register routine
663 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
664 #
665 # Formatting conventions:  The name of the proto_register_* routines must
666 # start in column zero, or must be preceded only by "void " starting in
667 # column zero, and must not be inside #if.
668 #
669 # We assume that all dissector routines are in "packet-XXX.c" files.
670 #
671 # For some unknown reason, having a big "for" loop in the Makefile
672 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
673 # they seem to pass only the first few names in the list to the shell,
674 # for some reason.
675 #
676 # Therefore, we have a script to generate the "register.c" file.
677 #
678 # The first argument is the directory in which the source files live.
679 # All subsequent arguments are the files to scan.
680 #
681 register.c: $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
682         @echo Making register.c
683         @$(srcdir)/make-reg-dotc register.c $(srcdir) $(DISSECTOR_SRC)
684
685 register-static.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
686         @echo Making register-static.c
687         @$(srcdir)/make-reg-dotc register-static.c $(srcdir) $(plugin_src) $(DISSECTOR_SRC)
688
689 ps.c: print.ps rdps
690         ./rdps $(srcdir)/print.ps ps.c
691
692 rdps: rdps.c
693         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
694
695 randpkt.o: randpkt.c
696         $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
697
698 randpkt: randpkt.o wiretap/libwiretap.a
699         $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
700
701
702 dftest_SOURCES = \
703         $(DISSECTOR_SRC) \
704         $(ETHEREAL_COMMON_SRC) \
705         register.c     \
706         dftest.c
707
708 dftest_additional_libs =                \
709         epan/libethereal.a              \
710         epan/ftypes/libftypes.a         \
711         epan/dfilter/libdfilter.a
712
713 dftest_DEPENDENCIES = \
714         $(ethereal_optional_objects)    \
715         $(dftest_additional_libs)       \
716         $(plugin_libs)
717
718 # This automake variable adds to the link-line for the executable
719 dftest_LDADD = \
720         $(ethereal_optional_objects)    \
721         $(dftest_additional_libs)       \
722         @SNMP_LIBS@ @SSL_LIBS@          \
723         $(plugin_ldadd)                 \
724         @GLIB_LIBS@ -lm \
725         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
726
727 dftest_LDFLAGS = -export-dynamic
728
729 CLEANFILES =    \
730         idl2eth
731
732 DISTCLEANFILES =        \
733         register.c      \
734         register-static.c \
735         rdps            \
736         ps.c            \
737         *~
738
739 EXTRA_DIST = \
740         aclocal-flags           \
741         capture-wpcap.c         \
742         capture-wpcap.h         \
743         cleanbld.bat            \
744         config.h.win32          \
745         config.nmake            \
746         debian/README.debian    \
747         debian/changelog        \
748         debian/control          \
749         debian/copyright        \
750         debian/dirs             \
751         debian/docs             \
752         debian/menu             \
753         debian/postinst         \
754         debian/prerm            \
755         debian/rules            \
756         doc/Makefile.am         \
757         doc/Makefile.nmake      \
758         doc/README.design       \
759         doc/README.developer    \
760         doc/README.idl2eth      \
761         doc/README.plugins      \
762         doc/README.regression   \
763         doc/README.tvbuff       \
764         doc/dfilter2pod.pl      \
765         doc/editcap.pod         \
766         doc/ethereal.pod.template \
767         doc/idl2eth.pod         \
768         doc/mergecap.pod        \
769         doc/randpkt.txt         \
770         doc/tethereal.pod.template \
771         doc/text2pcap.pod       \
772         editcap.c               \
773         ethereal_be.py          \
774         ethereal_gen.py         \
775         mergecap.c              \
776         text2pcap.c             \
777         text2pcap.h             \
778         text2pcap-scanner.l     \
779         getopt.c                \
780         getopt.h                \
781         idl2eth.sh              \
782         ieee-float.h            \
783         image/Makefile.nmake    \
784         image/editcap.rc.in     \
785         image/elogo3d48x48.png  \
786         image/ethereal48x48-trans.png  \
787         image/ethereal48x48.png \
788         image/ethereal.ico      \
789         image/ethereal.rc.in    \
790         image/icon-excl.xpm     \
791         image/icon-ethereal.xpm \
792         image/clist_ascend.xpm  \
793         image/clist_descend.xpm \
794         image/mergecap.rc.in    \
795         image/tethereal.rc.in   \
796         image/text2pcap.rc.in   \
797         INSTALL.configure       \
798         Makefile.nmake          \
799         make-manuf              \
800         make-reg-dotc           \
801         make-reg-dotc.py        \
802         manuf                   \
803         manuf.tmpl              \
804         ncp2222.py              \
805         packet-ncp2222.inc      \
806         print.ps                \
807         process-x11-fields.pl   \
808         README.aix              \
809         README.bsd              \
810         README.hpux             \
811         README.irix             \
812         README.linux            \
813         README.tru64            \
814         README.vmware           \
815         README.win32            \
816         randpkt.c               \
817         rdps.c                  \
818         TODO                    \
819         dictionary.dtd          \
820         dictionary.xml          \
821         mobileipv4.xml          \
822         nasreq.xml              \
823         sunping.xml             \
824         x11-fields
825
826 if SETUID_INSTALL
827 install-exec-hook:
828         -chmod +s $(DESTDIR)$(bindir)/ethereal
829         -chmod +s $(DESTDIR)$(bindir)/tethereal
830         -chmod +s $(DESTDIR)$(bindir)/ethereal_static
831 else
832 install-exec-hook:
833 endif
834
835 #
836 # Currently register.c can be included in the distribution because
837 # we always build all protocol dissectors. We used to have to check
838 # whether or not to build the snmp dissector. If we again need to
839 # variably build something, making register.c non-portable, uncomment
840 # the dist-hook line below.
841 #
842 # Oh, yuk.  We don't want to include "register.c" in the distribution, as
843 # its contents depend on the configuration, and therefore we want it
844 # to be built when the first "make" is done; however, Automake insists
845 # on putting *all* source into the distribution.
846 #
847 # We work around this by having a "dist-hook" rule that deletes
848 # "register.c", so that "dist" won't pick it up.
849 #
850 #dist-hook:
851 #       @rm -f $(distdir)/register.c
852
853 if HAVE_PLUGINS
854 SUBDIRS = tools wiretap doc epan plugins packaging @ethereal_SUBDIRS@
855 else
856 SUBDIRS = tools wiretap doc epan packaging @ethereal_SUBDIRS@
857 endif
858
859 ethereal.1: ethereal doc/ethereal.pod.template
860         (cd doc ; \
861         $(MAKE) ../ethereal.1 )
862
863 tethereal.1: tethereal doc/tethereal.pod.template
864         (cd doc ; \
865         $(MAKE) ../tethereal.1 )
866
867 editcap.1: doc/editcap.pod
868         (cd doc ; \
869         $(MAKE) ../editcap.1 )
870
871 idl2eth.1: doc/idl2eth.pod
872         (cd doc ; \
873         $(MAKE) ../idl2eth.1 )
874
875 mergecap.1: doc/mergecap.pod
876         (cd doc ; \
877         $(MAKE) ../mergecap.1 )
878
879 text2pcap.1: doc/text2pcap.pod
880         (cd doc ; \
881         $(MAKE) ../text2pcap.1 )
882
883 packet-ncp2222.c : ncp2222.py
884         $(PYTHON) $(srcdir)/ncp2222.py > $@
885
886 libtool: $(LIBTOOL_DEPS)
887         $(SHELL) ./config.status --recheck
888
889 # We load top_stagedir with an explicit path so that libtool doesn't freak.
890 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
891 stagedir=$(top_stagedir)/$(PACKAGE).stage
892 host_cpu=@host_cpu@
893 host_os=@host_os@
894
895 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
896         if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
897                 rm -rf $(stagedir) ; \
898                 $(MAKE) DESTDIR=$(stagedir) install-strip; \
899                 $(srcdir)/packaging/svr4/mkpkg \
900                         $(PACKAGE) \
901                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
902                         $(prefix) \
903                         $(top_stagedir) ; \
904         else \
905                 echo "Error: SVR4 packaging tools not found." ; \
906                 echo "Package build abandoned." ; \
907         fi
908
909 solaris-package: svr4-package
910
911 specfile=$(top_srcdir)/packaging/rpm/ethereal.spec
912
913 rpm-package: dist
914         if test x$(HAVE_RPM_PACKAGING) = xyes ; then \
915                 cp $(top_srcdir)/$(distdir).tar.gz $(RPM_SOURCEDIR) ; \
916                 rpm -bb --clean --rmsource $(specfile) ; \
917         else \
918                 echo "Error: RPM executable and/or source directory not found." ; \
919                 echo "Package build abandoned." ; \
920         fi
921
922 srpm-package: dist
923         if test x$(HAVE_RPM_PACKAGING) = xyes ; then \
924                 cp $(top_srcdir)/$(distdir).tar.gz $(RPM_SOURCEDIR) ; \
925                 rpm -bs --clean --rmsource $(specfile) ; \
926         else \
927                 echo "Error: RPM executable and/or source directory not found." ; \
928                 echo "Package build abandoned." ; \
929         fi
930
931 debian-package: debian/rules
932         dpkg-buildpackage -rfakeroot -us -uc
933
934 clean-local:
935         rm -rf $(top_stagedir)