Have a pseudo-header for Ethernet packets, giving the size of the FCS -
[obnox/wireshark/wip.git] / Makefile.am
1 # Makefile.am
2 # Automake file for Ethereal
3 #
4 # $Id: Makefile.am,v 1.632 2003/10/01 15:09:32 jmayer 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 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 DISSECTOR_SRC = \
87         packet-aarp.c  \
88         packet-acap.c  \
89         packet-afp.c   \
90         packet-afs.c   \
91         packet-aim.c   \
92         packet-ajp13.c          \
93         packet-ans.c   \
94         packet-aodv.c  \
95         packet-arcnet.c \
96         packet-arp.c   \
97         packet-asap.c  \
98         packet-ascend.c\
99         packet-asf.c   \
100         packet-atalk.c \
101         packet-atm.c   \
102         packet-auto_rp.c   \
103         packet-bacapp.c   \
104         packet-bacnet.c   \
105         packet-beep.c \
106         packet-bgp.c   \
107         packet-bofl.c  \
108         packet-bootp.c \
109         packet-bootparams.c \
110         packet-bpdu.c  \
111         packet-brdwlk.c \
112         packet-bssgp.c \
113         packet-bvlc.c \
114         packet-cdp.c   \
115         packet-cgmp.c  \
116         packet-chdlc.c  \
117         packet-cisco-oui.c \
118         packet-clearcase.c  \
119         packet-clip.c  \
120         packet-clnp.c  \
121         packet-cops.c  \
122         packet-cosine.c  \
123         packet-cpha.c  \
124         packet-cups.c  \
125         packet-data.c  \
126         packet-dccp.c \
127         packet-dcerpc.c  \
128         packet-dcerpc-afs4int.c  \
129         packet-dcerpc-atsvc.c \
130         packet-dcerpc-bossvr.c  \
131         packet-dcerpc-browser.c  \
132         packet-dcerpc-cds_clerkserver.c  \
133         packet-dcerpc-cds_solicit.c  \
134         packet-dcerpc-conv.c  \
135         packet-dcerpc-cprpc_server.c  \
136         packet-dcerpc-dce122.c \
137         packet-dcerpc-dfs.c \
138         packet-dcerpc-dnsserver.c \
139         packet-dcerpc-drsuapi.c \
140         packet-dcerpc-dtsprovider.c \
141         packet-dcerpc-dtsstime_req.c \
142         packet-dcerpc-epm.c  \
143         packet-dcerpc-fldb.c  \
144         packet-dcerpc-ftserver.c \
145         packet-dcerpc-krb5rpc.c \
146         packet-dcerpc-lsa.c \
147         packet-dcerpc-lsa-ds.c \
148         packet-dcerpc-mapi.c  \
149         packet-dcerpc-messenger.c  \
150         packet-dcerpc-mgmt.c  \
151         packet-dcerpc-ndr.c  \
152         packet-dcerpc-netlogon.c \
153         packet-dcerpc-nspi.c \
154         packet-dcerpc-oxid.c  \
155         packet-dcerpc-reg.c \
156         packet-dcerpc-remact.c  \
157         packet-dcerpc-rep_proc.c  \
158         packet-dcerpc-roverride.c  \
159         packet-dcerpc-rpriv.c  \
160         packet-dcerpc-rs_acct.c  \
161         packet-dcerpc-rs_attr.c  \
162         packet-dcerpc-rs_misc.c  \
163         packet-dcerpc-rs_pgo.c  \
164         packet-dcerpc-rs_repadm.c  \
165         packet-dcerpc-rs_replist.c  \
166         packet-dcerpc-rs_unix.c  \
167         packet-dcerpc-rsec_login.c  \
168         packet-dcerpc-samr.c \
169         packet-dcerpc-secidmap.c \
170         packet-dcerpc-spoolss.c \
171         packet-dcerpc-srvsvc.c \
172         packet-dcerpc-svcctl.c \
173         packet-dcerpc-tapi.c \
174         packet-dcerpc-tkn4int.c \
175         packet-dcerpc-ubikdisk.c \
176         packet-dcerpc-ubikvote.c \
177         packet-dcerpc-update.c \
178         packet-dcerpc-wkssvc.c \
179         packet-ddtp.c  \
180         packet-dec-bpdu.c \
181         packet-dhcpv6.c \
182         packet-diameter.c \
183         packet-distcc.c \
184         packet-dlsw.c  \
185         packet-dns.c   \
186         packet-dsi.c   \
187         packet-dvmrp.c \
188         packet-eap.c \
189         packet-eapol.c \
190         packet-echo.c \
191         packet-edonkey.c \
192         packet-eigrp.c \
193         packet-enc.c    \
194         packet-enip.c   \
195         packet-esis.c  \
196         packet-eth.c   \
197         packet-etherip.c        \
198         packet-ethertype.c   \
199         packet-fc.c \
200         packet-fcct.c \
201         packet-fcdns.c \
202         packet-fcels.c \
203         packet-fcfcs.c \
204         packet-fcfzs.c \
205         packet-fcip.c \
206         packet-fclctl.c \
207         packet-fcp.c \
208         packet-fcswils.c \
209         packet-fddi.c  \
210         packet-fix.c  \
211         packet-fr.c    \
212         packet-frame.c  \
213         packet-ftp.c   \
214         packet-fw1.c   \
215         packet-giop.c  \
216         packet-gmrp.c \
217         packet-gnutella.c \
218         packet-gprs-ns.c \
219         packet-gre.c   \
220         packet-gssapi.c \
221         packet-gtp.c   \
222         packet-gvrp.c  \
223         packet-h1.c    \
224         packet-h225.c  \
225         packet-h245.c  \
226         packet-h261.c  \
227         packet-h263.c  \
228         packet-h450.c  \
229         packet-hclnfsd.c  \
230         packet-hpext.c \
231         packet-hsrp.c  \
232         packet-http.c  \
233         packet-hyperscsi.c \
234         packet-iapp.c  \
235         packet-ib.c  \
236         packet-icap.c  \
237         packet-icmpv6.c\
238         packet-icp.c   \
239         packet-icq.c   \
240         packet-ieee80211.c \
241         packet-ieee8023.c \
242         packet-igmp.c  \
243         packet-igrp.c  \
244         packet-imap.c   \
245         packet-ip.c    \
246         packet-ipfc.c    \
247         packet-ipmi.c  \
248         packet-ipp.c   \
249         packet-ipsec.c \
250         packet-ipsec-udp.c \
251         packet-ipv6.c  \
252         packet-ipx.c   \
253         packet-ipxwan.c \
254         packet-irc.c   \
255         packet-isakmp.c\
256         packet-iscsi.c \
257         packet-isdn.c \
258         packet-isis.c  \
259         packet-isis-clv.c \
260         packet-isis-hello.c \
261         packet-isis-lsp.c \
262         packet-isis-snp.c \
263         packet-isl.c   \
264         packet-isns.c \
265         packet-isup.c  \
266         packet-iua.c   \
267         packet-jabber.c \
268         packet-kadm5.c \
269         packet-kerberos.c \
270         packet-klm.c   \
271         packet-l2tp.c  \
272         packet-lapb.c  \
273         packet-lapbether.c \
274         packet-lapd.c  \
275         packet-laplink.c  \
276         packet-ldap.c  \
277         packet-ldp.c   \
278         packet-llc.c   \
279         packet-lmi.c   \
280         packet-lmp.c   \
281         packet-lpd.c   \
282         packet-lwapp.c \
283         packet-m2pa.c  \
284         packet-m2tp.c  \
285         packet-m2ua.c  \
286         packet-m3ua.c  \
287         packet-mbtcp.c \
288         packet-mdshdr.c \
289         packet-mip.c  \
290         packet-mip6.c  \
291         packet-mmse.c  \
292         packet-mount.c \
293         packet-mpeg1.c  \
294         packet-mpls.c \
295         packet-mrdisc.c \
296         packet-msdp.c  \
297         packet-msn-messenger.c \
298         packet-msnip.c \
299         packet-msproxy.c \
300         packet-mtp2.c \
301         packet-mtp3.c \
302         packet-mtp3mg.c \
303         packet-mysql.c \
304         packet-nbipx.c \
305         packet-nbns.c  \
306         packet-ncp.c   \
307         packet-ncp2222.c   \
308         packet-ndmp.c  \
309         packet-ndps.c  \
310         packet-netbios.c \
311         packet-netflow.c \
312         packet-nfs.c   \
313         packet-nfsacl.c \
314         packet-nfsauth.c \
315         packet-nisplus.c \
316         packet-nlm.c   \
317         packet-nlsp.c  \
318         packet-nntp.c  \
319         packet-nt-oui.c \
320         packet-nt-sonmp.c \
321         packet-ntlmssp.c  \
322         packet-ntp.c  \
323         packet-null.c  \
324         packet-osi.c   \
325         packet-osi-options.c \
326         packet-ospf.c  \
327         packet-pcnfsd.c \
328         packet-per.c \
329         packet-pflog.c \
330         packet-pgm.c   \
331         packet-pim.c   \
332         packet-pop.c   \
333         packet-portmap.c   \
334         packet-ppp.c   \
335         packet-pppoe.c \
336         packet-pptp.c  \
337         packet-prism.c \
338         packet-q2931.c \
339         packet-q931.c  \
340         packet-q933.c  \
341         packet-qllc.c  \
342         packet-quake.c \
343         packet-quake2.c \
344         packet-quake3.c \
345         packet-quakeworld.c \
346         packet-radius.c\
347         packet-ranap.c \
348         packet-raw.c   \
349         packet-rip.c   \
350         packet-ripng.c \
351         packet-rlogin.c \
352         packet-rmcp.c  \
353         packet-rmi.c \
354         packet-rmp.c   \
355         packet-rpc.c   \
356         packet-rpl.c   \
357         packet-rquota.c \
358         packet-rsh.c   \
359         packet-rstat.c \
360         packet-rsvp.c  \
361         packet-rsync.c \
362         packet-rtcp.c  \
363         packet-rtp.c   \
364         packet-rtp-events.c \
365         packet-rtsp.c  \
366         packet-rwall.c \
367         packet-rx.c  \
368         packet-sadmind.c \
369         packet-sap.c   \
370         packet-sccp.c  \
371         packet-sccpmg.c  \
372         packet-scsi.c  \
373         packet-sctp.c  \
374         packet-sdlc.c  \
375         packet-sdp.c   \
376         packet-sflow.c \
377         packet-sip.c   \
378         packet-skinny.c   \
379         packet-slimp3.c   \
380         packet-sll.c   \
381         packet-slowprotocols.c \
382         packet-smb.c   \
383         packet-smb-browse.c \
384         packet-smb-common.c \
385         packet-smb-logon.c \
386         packet-smb-mailslot.c \
387         packet-smb-pipe.c \
388         packet-smb-sidsnooping.c \
389         packet-smpp.c \
390         packet-smtp.c \
391         packet-sna.c   \
392         packet-snaeth.c \
393         packet-snmp.c   \
394         packet-socks.c \
395         packet-spnego.c \
396         packet-spray.c \
397         packet-srvloc.c \
398         packet-sscop.c \
399         packet-ssh.c   \
400         packet-ssl.c   \
401         packet-stat.c   \
402         packet-stat-notify.c \
403         packet-stun.c  \
404         packet-sua.c   \
405         packet-syslog.c \
406         packet-t38.c    \
407         packet-tacacs.c \
408         packet-tcp.c   \
409         packet-tds.c   \
410         packet-telnet.c\
411         packet-teredo.c\
412         packet-tftp.c  \
413         packet-time.c  \
414         packet-tns.c \
415         packet-tpkt.c  \
416         packet-tr.c    \
417         packet-trmac.c \
418         packet-tsp.c \
419         packet-tzsp.c  \
420         packet-ucp.c   \
421         packet-udp.c   \
422         packet-v120.c \
423         packet-vines.c \
424         packet-vj.c   \
425         packet-vlan.c \
426         packet-vrrp.c \
427         packet-vtp.c  \
428         packet-wap.c \
429         packet-wbxml.c \
430         packet-wccp.c \
431         packet-wcp.c \
432         packet-wfleet-hdlc.c \
433         packet-who.c  \
434         packet-wlancap.c \
435         packet-wsp.c \
436         packet-wtls.c \
437         packet-wtp.c \
438         packet-x11.c   \
439         packet-x25.c   \
440         packet-x29.c   \
441         packet-xdmcp.c \
442         packet-xot.c   \
443         packet-xyplex.c   \
444         packet-yhoo.c  \
445         packet-ymsg.c  \
446         packet-ypbind.c \
447         packet-yppasswd.c \
448         packet-ypserv.c \
449         packet-ypxfr.c \
450         packet-zebra.c
451
452 if HAVE_PLUGINS
453 plugin_libs = \
454         plugins/artnet/artnet.la \
455         plugins/docsis/docsis.la \
456         plugins/giop/cosnaming.la \
457         plugins/giop/coseventcomm.la \
458         plugins/gryphon/gryphon.la \
459         plugins/lwres/lwres.la \
460         plugins/megaco/megaco.la \
461         plugins/mgcp/mgcp.la \
462         plugins/pcli/pcli.la \
463         plugins/rtnet/rtnet.la 
464
465 if ENABLE_STATIC
466 plugin_ldadd = \
467         plugins/artnet/packet-artnet.o \
468         plugins/docsis/packet-bpkmattr.o \
469         plugins/docsis/packet-bpkmreq.o \
470         plugins/docsis/packet-bpkmrsp.o \
471         plugins/docsis/packet-docsis.o \
472         plugins/docsis/packet-dsaack.o \
473         plugins/docsis/packet-dsareq.o \
474         plugins/docsis/packet-dsarsp.o \
475         plugins/docsis/packet-dscack.o \
476         plugins/docsis/packet-dscreq.o \
477         plugins/docsis/packet-dscrsp.o \
478         plugins/docsis/packet-dsdreq.o \
479         plugins/docsis/packet-dsdrsp.o \
480         plugins/docsis/packet-macmgmt.o \
481         plugins/docsis/packet-map.o \
482         plugins/docsis/packet-regack.o \
483         plugins/docsis/packet-regreq.o \
484         plugins/docsis/packet-regrsp.o \
485         plugins/docsis/packet-rngreq.o \
486         plugins/docsis/packet-rngrsp.o \
487         plugins/docsis/packet-tlv.o \
488         plugins/docsis/packet-uccreq.o \
489         plugins/docsis/packet-uccrsp.o \
490         plugins/docsis/packet-ucd.o \
491         plugins/giop/packet-cosnaming.o \
492         plugins/giop/packet-coseventcomm.o \
493         plugins/gryphon/packet-gryphon.o \
494         plugins/lwres/packet-lwres.o \
495         plugins/megaco/packet-megaco.o \
496         plugins/mgcp/packet-mgcp.o \
497         plugins/pcli/packet-pcli.o \
498         plugins/rtnet/packet-rtnet.o 
499
500 plugin_src = \
501         plugins/artnet/packet-artnet.c \
502         plugins/docsis/packet-bpkmattr.c \
503         plugins/docsis/packet-bpkmreq.c \
504         plugins/docsis/packet-bpkmrsp.c \
505         plugins/docsis/packet-docsis.c \
506         plugins/docsis/packet-dsaack.c \
507         plugins/docsis/packet-dsareq.c \
508         plugins/docsis/packet-dsarsp.c \
509         plugins/docsis/packet-dscack.c \
510         plugins/docsis/packet-dscreq.c \
511         plugins/docsis/packet-dscrsp.c \
512         plugins/docsis/packet-dsdreq.c \
513         plugins/docsis/packet-dsdrsp.c \
514         plugins/docsis/packet-macmgmt.c \
515         plugins/docsis/packet-map.c \
516         plugins/docsis/packet-regack.c \
517         plugins/docsis/packet-regreq.c \
518         plugins/docsis/packet-regrsp.c \
519         plugins/docsis/packet-rngreq.c \
520         plugins/docsis/packet-rngrsp.c \
521         plugins/docsis/packet-tlv.c \
522         plugins/docsis/packet-uccreq.c \
523         plugins/docsis/packet-uccrsp.c \
524         plugins/docsis/packet-ucd.c \
525         plugins/giop/packet-cosnaming.c \
526         plugins/giop/packet-coseventcomm.c \
527         plugins/gryphon/packet-gryphon.c \
528         plugins/lwres/packet-lwres.c \
529         plugins/megaco/packet-megaco.c \
530         plugins/mgcp/packet-mgcp.c \
531         plugins/pcli/packet-pcli.c \
532         plugins/rtnet/packet-rtnet.c 
533
534 else            # ENABLE_STATIC
535 plugin_ldadd = \
536         "-dlopen" self  \
537         "-dlopen" plugins/artnet/artnet.la \
538         "-dlopen" plugins/docsis/docsis.la \
539         "-dlopen" plugins/giop/cosnaming.la \
540         "-dlopen" plugins/giop/coseventcomm.la \
541         "-dlopen" plugins/gryphon/gryphon.la \
542         "-dlopen" plugins/lwres/lwres.la \
543         "-dlopen" plugins/megaco/megaco.la \
544         "-dlopen" plugins/mgcp/mgcp.la \
545         "-dlopen" plugins/pcli/pcli.la \
546         "-dlopen" plugins/rtnet/rtnet.la 
547
548 plugin_src =
549
550 endif           # ENABLE_STATIC
551
552 else            # HAVE_PLUGINS
553 plugin_src =
554
555 plugin_libs =
556
557 plugin_ldadd =
558 endif           # HAVE_PLUGINS
559
560 noinst_HEADERS = \
561         packet-afp.h   \
562         packet-afs-defs.h \
563         packet-afs-macros.h \
564         packet-afs-register-info.h \
565         packet-afs.h   \
566         packet-arcnet.h \
567         packet-arp.h   \
568         packet-atalk.h \
569         packet-atm.h   \
570         packet-bgp.h   \
571         packet-bootparams.h \
572         packet-chdlc.h \
573         packet-clearcase.h  \
574         packet-clip.h  \
575         packet-data.h \
576         packet-dccp.h \
577         packet-dcerpc-atsvc.h \
578         packet-dcerpc-browser.h \
579         packet-dcerpc-dce122.h \
580         packet-dcerpc-dcom.h \
581         packet-dcerpc-dfs.h \
582         packet-dcerpc-dnsserver.h \
583         packet-dcerpc-drsuapi.h \
584         packet-dcerpc-lsa.h \
585         packet-dcerpc-mapi.h \
586         packet-dcerpc-netlogon.h \
587         packet-dcerpc-nt.h \
588         packet-dcerpc-reg.h \
589         packet-dcerpc-samr.h \
590         packet-dcerpc-spoolss.h \
591         packet-dcerpc-srvsvc.h \
592         packet-dcerpc-svcctl.h \
593         packet-dcerpc-tapi.h \
594         packet-dcerpc-wkssvc.h \
595         packet-dcerpc.h \
596         packet-ddtp.h  \
597         packet-diameter-defs.h \
598         packet-dns.h   \
599         packet-dvmrp.h \
600         packet-edonkey.h \
601         packet-esis.h  \
602         packet-eth.h   \
603         packet-fc.h \
604         packet-fcbls.h \
605         packet-fcct.h \
606         packet-fcdns.h \
607         packet-fcels.h \
608         packet-fcfcs.h \
609         packet-fcfzs.h \
610         packet-fclctl.h \
611         packet-fcp.h \
612         packet-fcswils.h \
613         packet-fddi.h  \
614         packet-frame.h  \
615         packet-giop.h  \
616         packet-gnutella.h \
617         packet-gssapi.h \
618         packet-gtp.h    \
619         packet-h225.h    \
620         packet-h245.h    \
621         packet-hclnfsd.h  \
622         packet-hpext.h  \
623         packet-http.h  \
624         packet-ieee80211.h \
625         packet-ieee8023.h \
626         packet-igmp.h  \
627         packet-ip.h    \
628         packet-ipfc.h  \
629         packet-ipsec.h \
630         packet-ipv6.h  \
631         packet-ipx.h   \
632         packet-isis-clv.h \
633         packet-isis-hello.h \
634         packet-isis-lsp.h \
635         packet-isis-snp.h \
636         packet-isis.h  \
637         packet-isl.h   \
638         packet-kerberos.h \
639         packet-klm.h   \
640         packet-ldap.h  \
641         packet-llc.h   \
642         packet-mip6.h  \
643         packet-mount.h \
644         packet-mrdisc.h \
645         packet-msnip.h \
646         packet-mtp3.h  \
647         packet-ncp-int.h \
648         packet-ndps.h    \
649         packet-netbios.h \
650         packet-nfs.h   \
651         packet-nisplus.h \
652         packet-nlm.h   \
653         packet-ntp.h  \
654         packet-null.h  \
655         packet-osi-options.h \
656         packet-osi.h   \
657         packet-pcnfsd.h \
658         packet-per.h   \
659         packet-pflog.h \
660         packet-pim.h   \
661         packet-portmap.h   \
662         packet-ppp.h   \
663         packet-prism.h \
664         packet-q931.h  \
665         packet-raw.h   \
666         packet-ripng.h \
667         packet-rmi.h   \
668         packet-rpc.h   \
669         packet-rquota.h \
670         packet-rsvp.h  \
671         packet-rtcp.h  \
672         packet-rtp.h   \
673         packet-rtp-events.h \
674         packet-rwall.h  \
675         packet-rx.h  \
676         packet-scsi.h  \
677         packet-sll.h   \
678         packet-smb-browse.h \
679         packet-smb-common.h \
680         packet-smb-logon.h \
681         packet-smb-mailslot.h \
682         packet-smb-pipe.h \
683         packet-smb-sidsnooping.h \
684         packet-sna.h   \
685         packet-snmp.h   \
686         packet-spray.h \
687         packet-stat-notify.h \
688         packet-stat.h   \
689         packet-tacacs.h \
690         packet-tcp.h   \
691         packet-tns.h \
692         packet-tpkt.h  \
693         packet-tr.h    \
694         packet-udp.h   \
695         packet-vines.h \
696         packet-vlan.h \
697         packet-wap.h \
698         packet-wccp.h \
699         packet-wlancap.h \
700         packet-wsp.h \
701         packet-wtls.h \
702         packet-wtp.h \
703         packet-x11-keysym.h     \
704         packet-ypbind.h \
705         packet-yppasswd.h \
706         packet-ypserv.h \
707         packet-ypxfr.h
708
709 ETHEREAL_COMMON_SRC = \
710         adler32.c      \
711         adler32.h      \
712         afn.c          \
713         afn.h          \
714         aftypes.h      \
715         alignment.h    \
716         arcnet_pids.h  \
717         asn1.c         \
718         asn1.h         \
719         bridged_pids.h \
720         capture_stop_conditions.c   \
721         capture_stop_conditions.h   \
722         cfile.c         \
723         cfile.h         \
724         chdlctypes.h   \
725         color.h        \
726         column.c       \
727         column.h       \
728         conditions.c   \
729         conditions.h   \
730         crc32.c        \
731         crc32.h        \
732         crypt-des.c    \
733         crypt-des.h    \
734         crypt-md4.c    \
735         crypt-md4.h    \
736         crypt-md5.c    \
737         crypt-md5.h    \
738         crypt-rc4.c    \
739         crypt-rc4.h    \
740         disabled_protos.c      \
741         disabled_protos.h      \
742         etypes.h       \
743         file.h         \
744         follow.c       \
745         follow.h       \
746         format-oid.h   \
747         g711.c          \
748         g711.h          \
749         greproto.h     \
750         in_cksum.c     \
751         in_cksum.h     \
752         ip_opts.h      \
753         ipproto.c      \
754         ipproto.h      \
755         llcsaps.h      \
756         nlpid.h        \
757         oui.h          \
758         packet-dcerpc-nt.c \
759         pcap-util.c    \
760         pcap-util.h    \
761         ppptypes.h     \
762         prefs-int.h    \
763         prefs.c        \
764         prefs.h        \
765         print.c        \
766         print.h        \
767         ps.c           \
768         ps.h           \
769         ptvcursor.c     \
770         ptvcursor.h     \
771         reassemble.c   \
772         reassemble.h   \
773         register.h     \
774         ringbuffer.c   \
775         ringbuffer.h   \
776         rpc_defrag.h   \
777         rtp_pt.h       \
778         sctpppids.h    \
779         smb.h          \
780         t35.c           \
781         t35.h           \
782         tap.c           \
783         tap.h           \
784         timestats.c     \
785         timestats.h     \
786         util.c         \
787         util.h         \
788         x11-declarations.h \
789         x11-register-info.h \
790         x264_prt_id.h  \
791         xdlc.c         \
792         xdlc.h         \
793         xmlstub.c      \
794         xmlstub.h
795
796 BUILT_SOURCES = \
797         x11-declarations.h \
798         x11-register-info.h
799
800 ethereal_SOURCES = \
801         $(DISSECTOR_SRC) \
802         $(ETHEREAL_COMMON_SRC) \
803         register.c     \
804         capture.c      \
805         capture.h      \
806         file.c         \
807         filters.c      \
808         filters.h      \
809         globals.h      \
810         menu.h         \
811         progress_dlg.h \
812         proto_hier_stats.h      \
813         proto_hier_stats.c      \
814         simple_dialog.h \
815         statusbar.h    \
816         summary.c      \
817         summary.h      \
818         ui_util.h
819
820 EXTRA_ethereal_SOURCES = \
821         snprintf.c      \
822         snprintf.h      \
823         snprintf-imp.h  \
824         strerror.c      \
825         strerror.h      \
826         strcasecmp.c    \
827         strncasecmp.c   \
828         mkstemp.c       \
829         mkstemp.h       \
830         strptime.c      \
831         strptime.h
832
833 # Optional objects that I know how to build. These will be
834 # linked into the ethereal executable.
835 # They will also be linked into the tethereal executable; if this
836 # list ever grows to include something that can't be linked with
837 # tethereal, or if tethereal needs something that ethereal doesn't,
838 # we should probably split this into stuff needed both
839 # by ethereal and tethereal and stuff needed only by one or the
840 # other.
841 ethereal_optional_objects = @SNPRINTF_O@ @STRERROR_O@ \
842         @STRCASECMP_O@ @STRNCASECMP_O@ @MKSTEMP_O@ @STRPTIME_O@
843
844 # Additional libs that I know how to build. These will be
845 # linked into the ethereal executable.
846 ethereal_additional_libs = \
847         wiretap/libwiretap.a    \
848         gtk/libui.a             \
849         epan/libethereal.a      \
850         epan/ftypes/libftypes.a \
851         epan/dfilter/libdfilter.a
852
853 # This is the automake dependency variable for the executable
854 ethereal_DEPENDENCIES = \
855         $(ethereal_optional_objects)    \
856         $(ethereal_additional_libs)     \
857         $(plugin_libs)
858
859 # This automake variable adds to the link-line for the executable.
860 #
861 # Note that Ethereal doesn't have to be linked with @GLIB_LIBS@, as
862 # they are included in @GTK_LIBS@, and doesn't have to be linked with
863 # @SOCKET_LIBS@ or @NSL_LIBS@, as those should also be included in
864 # @GTK_LIBS@ (as those are also needed for X applications, and GTK+
865 # applications are X applications).
866
867 if ENABLE_STATIC
868 ethereal_LDFLAGS = -Wl,-static -all-static
869 else
870 ethereal_LDFLAGS = -export-dynamic
871 endif
872
873 ethereal_LDADD = \
874         $(ethereal_optional_objects)    \
875         $(ethereal_additional_libs)     \
876         @SNMP_LIBS@ @SSL_LIBS@          \
877         $(plugin_ldadd)                 \
878         @PCAP_LIBS@ @GTK_LIBS@ @ADNS_LIBS@
879
880 TETHEREAL_TAP_SRC = \
881         tap-bootpstat.c         \
882         tap-dcerpcstat.c        \
883         tap-httpstat.c          \
884         tap-iostat.c            \
885         tap-iousers.c           \
886         tap-mgcpstat.c          \
887         tap-protocolinfo.c      \
888         tap-protohierstat.c     \
889         tap-rpcstat.c           \
890         tap-rpcprogs.c          \
891         tap-smbsids.c           \
892         tap-smbstat.c           \
893         tap-wspstat.c
894
895 tethereal_SOURCES = \
896         $(DISSECTOR_SRC) \
897         $(ETHEREAL_COMMON_SRC) \
898         $(TETHEREAL_TAP_SRC) \
899         tethereal-tap-register.c \
900         register.c     \
901         tethereal.c
902
903 # Additional libs that I know how to build. These will be
904 # linked into the tethereal executable.
905 tethereal_additional_libs =             \
906         wiretap/libwiretap.a            \
907         epan/libethereal.a              \
908         epan/ftypes/libftypes.a         \
909         epan/dfilter/libdfilter.a
910
911 # This is the automake dependency variable for the executable
912 tethereal_DEPENDENCIES = \
913         $(ethereal_optional_objects)    \
914         $(tethereal_additional_libs)    \
915         $(plugin_libs)
916
917 # This automake variable adds to the link-line for the executable
918 tethereal_LDADD = \
919         $(ethereal_optional_objects)    \
920         $(tethereal_additional_libs)    \
921         @SNMP_LIBS@ @SSL_LIBS@          \
922         $(plugin_ldadd)                 \
923         @GLIB_LIBS@ -lm                 \
924         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
925
926 if ENABLE_STATIC
927 tethereal_LDFLAGS = -Wl,-static -all-static
928 else
929 tethereal_LDFLAGS = -export-dynamic
930 endif
931
932 # Optional objects that I know how to build, and that are needed by
933 # text2pcap.
934 text2pcap_optional_objects = @STRERROR_O@ @STRPTIME_O@
935
936 text2pcap_SOURCES = text2pcap.c text2pcap-scanner.l
937 text2pcap_DEPENDENCIES = text2pcap.h
938
939 # This automake variable adds to the link-line for the executable
940 text2pcap_LDADD = $(text2pcap_optional_objects) \
941         @GLIB_LIBS@ -lm
942
943 mergecap_SOURCES = mergecap.c
944 mergecap_DEPENDENCIES = wiretap/libwiretap.a
945
946 editcap_SOURCES = editcap.c
947
948 # This is the automake dependency variable for the executable
949 editcap_DEPENDENCIES = wiretap/libwiretap.a
950
951 # This automake variable adds to the link-line for the executable
952 editcap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
953 mergecap_LDADD = wiretap/libwiretap.a @GLIB_LIBS@
954
955 # Common headers
956 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap
957
958 #
959 # Build various header files for the X11 dissector.
960 #
961 x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
962         $(PERL) $(srcdir)/process-x11-fields.pl <$(srcdir)/x11-fields
963
964 #
965 # Build shell scripts by doing variable substitution.
966 # Taken from autoconf 2.13.
967 #
968 editsh = sed -e 's,@''SHELL''@,$(SHELL),g'
969
970 SUFFIXES = .sh
971 .sh:
972         rm -f $@ $@.tmp
973         $(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
974
975 #
976 # Build "register.c", which contains a function "register_all_protocols()"
977 # that calls the register routines for all protocols.
978 #
979 # We do this by grepping through sources.  If that turns out to be too slow,
980 # maybe we could just require every .o file to have an register routine
981 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
982 #
983 # Formatting conventions:  The name of the proto_register_* routines must
984 # start in column zero, or must be preceded only by "void " starting in
985 # column zero, and must not be inside #if.
986 #
987 # We assume that all dissector routines are in "packet-XXX.c" files.
988 #
989 # For some unknown reason, having a big "for" loop in the Makefile
990 # to scan all the "packet-XXX.c" files doesn't work with some "make"s;
991 # they seem to pass only the first few names in the list to the shell,
992 # for some reason.
993 #
994 # Therefore, we have a script to generate the "register.c" file.
995 #
996 # The first argument is the name of the file to write.
997 # The second argument is the directory in which the source files live.
998 # All subsequent arguments are the files to scan.
999 #
1000 register.c: $(plugin_src) $(DISSECTOR_SRC) $(srcdir)/make-reg-dotc
1001         @if test -n $(PYTHON); then \
1002                 echo Making register.c with python ; \
1003                 $(PYTHON) $(srcdir)/make-reg-dotc.py $(srcdir) $(DISSECTOR_SRC) ; \
1004         else \
1005                 echo Making register.c with shell script ; \
1006                 $(srcdir)/make-reg-dotc register.c $(srcdir) \
1007                         $(plugin_src) $(DISSECTOR_SRC) ; \
1008         fi
1009
1010 #
1011 # Build "tethereal-tap-register.c", which contains a function 
1012 # "register_all_tap_listeners()"
1013 # that calls the register routines for all tehtereal tap listeners.
1014 #
1015 # We do this by grepping through sources.
1016 #
1017 # Formatting conventions:  The name of the tap_listener_register_* 
1018 # routines must start in column zero, or must be preceded only by 
1019 # "void " starting in column zero, and must not be inside #if.
1020 #
1021 # The first argument is the directory in which the source files live.
1022 # All subsequent arguments are the files to scan.
1023 #
1024 tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) $(srcdir)/make-tapreg-dotc
1025         @echo Making tethereal-tap-register.c
1026         @$(srcdir)/make-tapreg-dotc tethereal-tap-register.c $(srcdir) $(TETHEREAL_TAP_SRC)
1027
1028 ps.c: print.ps rdps
1029         ./rdps $(srcdir)/print.ps ps.c
1030
1031 rdps: rdps.c
1032         $(CC) $(CFLAGS) -o rdps $(srcdir)/rdps.c
1033
1034 randpkt.o: randpkt.c
1035         $(CC) -DHAVE_CONFIG_H -I. `glib-config --cflags` -c $(srcdir)/randpkt.c
1036
1037 randpkt: randpkt.o wiretap/libwiretap.a
1038         $(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
1039
1040
1041 dftest_SOURCES = \
1042         $(DISSECTOR_SRC) \
1043         $(ETHEREAL_COMMON_SRC) \
1044         register.c     \
1045         dftest.c
1046
1047 dftest_additional_libs =                \
1048         wiretap/libwiretap.a            \
1049         epan/libethereal.a              \
1050         epan/ftypes/libftypes.a         \
1051         epan/dfilter/libdfilter.a
1052
1053 dftest_DEPENDENCIES = \
1054         $(ethereal_optional_objects)    \
1055         $(dftest_additional_libs)       \
1056         $(plugin_libs)
1057
1058 # This automake variable adds to the link-line for the executable
1059 dftest_LDADD = \
1060         $(ethereal_optional_objects)    \
1061         $(dftest_additional_libs)       \
1062         @SNMP_LIBS@ @SSL_LIBS@          \
1063         $(plugin_ldadd)                 \
1064         @GLIB_LIBS@ -lm \
1065         @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@ @ADNS_LIBS@
1066
1067 dftest_LDFLAGS = -export-dynamic
1068
1069 CLEANFILES =    \
1070         idl2eth
1071
1072 DISTCLEANFILES =        \
1073         aclocal-missing/*.m4 \
1074         ps.c            \
1075         rdps            \
1076         *~
1077
1078 MAINTAINERCLEANFILES =          \
1079         register.c              \
1080         ps.c
1081
1082 EXTRA_DIST = \
1083         Ethereal.desktop        \
1084         FAQ                     \
1085         FAQ.include             \
1086         INSTALL.configure       \
1087         Makefile.nmake          \
1088         README.aix              \
1089         README.bsd              \
1090         README.hpux             \
1091         README.irix             \
1092         README.linux            \
1093         README.tru64            \
1094         README.vmware           \
1095         README.win32            \
1096         TODO                    \
1097         aclocal-fallback/glib-2.0.m4 \
1098         aclocal-fallback/glib.m4 \
1099         aclocal-fallback/gtk-2.0.m4 \
1100         aclocal-fallback/gtk.m4 \
1101         aclocal-flags           \
1102         aclocal-missing/dummy   \
1103         autogen.sh              \
1104         capture-wpcap.c         \
1105         capture-wpcap.h         \
1106         cleanbld.bat            \
1107         config.h.win32          \
1108         config.nmake            \
1109         debian/README.debian    \
1110         debian/changelog        \
1111         debian/control          \
1112         debian/copyright        \
1113         debian/dirs             \
1114         debian/docs             \
1115         debian/menu             \
1116         debian/postinst         \
1117         debian/prerm            \
1118         debian/rules            \
1119         dictionary.dtd          \
1120         dictionary.xml          \
1121         doc/Makefile.am         \
1122         doc/Makefile.nmake      \
1123         doc/README.design       \
1124         doc/README.developer    \
1125         doc/README.idl2eth      \
1126         doc/README.plugins      \
1127         doc/README.regression   \
1128         doc/README.tapping      \
1129         doc/README.tvbuff       \
1130         doc/dfilter2pod.pl      \
1131         doc/editcap.pod         \
1132         doc/ethereal-filter.pod.template \
1133         doc/ethereal.pod        \
1134         doc/idl2eth.pod         \
1135         doc/mergecap.pod        \
1136         doc/randpkt.txt         \
1137         doc/tethereal.pod       \
1138         doc/text2pcap.pod       \
1139         editcap.c               \
1140         ethereal_be.py          \
1141         ethereal_gen.py         \
1142         getopt.c                \
1143         getopt.h                \
1144         idl2eth.sh              \
1145         image/Makefile.nmake    \
1146         image/README.image      \
1147         image/clist_ascend.xpm  \
1148         image/clist_descend.xpm \
1149         image/dn_arrow.xpm      \
1150         image/editcap.rc.in     \
1151         image/eexcl3d64.xpm     \
1152         image/eicon3d16.xpm     \
1153         image/eicon3d32.xpm     \
1154         image/eicon3d48.xpm     \
1155         image/eicon3d64.xpm     \
1156         image/elogo3d48x48.png  \
1157         image/ethereal.ico      \
1158         image/ethereal.rc.in    \
1159         image/ethereal48x48-trans.png  \
1160         image/ethereal48x48.png \
1161         image/hi16-app-ethereal.png     \
1162         image/hi32-app-ethereal.png     \
1163         image/hi48-app-ethereal.png     \
1164         image/icon-ethereal.xpm \
1165         image/icon-excl.xpm     \
1166         image/lo16-app-ethereal.png     \
1167         image/lo32-app-ethereal.png     \
1168         image/lo48-app-ethereal.png     \
1169         image/mergecap.rc.in    \
1170         image/nsis-checked.bmp  \
1171         image/nsis-unchecked.bmp        \
1172         image/tethereal.rc.in   \
1173         image/text2pcap.rc.in   \
1174         image/up_arrow.xpm      \
1175         make-manuf              \
1176         make-reg-dotc           \
1177         make-reg-dotc.py        \
1178         make-tapreg-dotc                \
1179         manuf                   \
1180         manuf.tmpl              \
1181         mergecap.c              \
1182         mobileipv4.xml          \
1183         nasreq.xml              \
1184         ncp2222.py              \
1185         packet-ncp2222.inc      \
1186         print.ps                \
1187         process-x11-fields.pl   \
1188         randpkt.c               \
1189         rdps.c                  \
1190         sunping.xml             \
1191         text2pcap-scanner.l     \
1192         text2pcap.c             \
1193         text2pcap.h             \
1194         wka.tmpl                \
1195         x11-fields
1196
1197 if SETUID_INSTALL
1198 install-exec-hook:
1199         -chmod +s $(DESTDIR)$(bindir)/ethereal
1200         -chmod +s $(DESTDIR)$(bindir)/tethereal
1201 else
1202 install-exec-hook:
1203 endif
1204
1205 #
1206 # Currently register.c can be included in the distribution because
1207 # we always build all protocol dissectors. We used to have to check
1208 # whether or not to build the snmp dissector. If we again need to
1209 # variably build something, making register.c non-portable, uncomment
1210 # the dist-hook line below.
1211 #
1212 # Oh, yuk.  We don't want to include "register.c" in the distribution, as
1213 # its contents depend on the configuration, and therefore we want it
1214 # to be built when the first "make" is done; however, Automake insists
1215 # on putting *all* source into the distribution.
1216 #
1217 # We work around this by having a "dist-hook" rule that deletes
1218 # "register.c", so that "dist" won't pick it up.
1219 #
1220 #dist-hook:
1221 #       @rm -f $(distdir)/register.c
1222
1223 DIST_SUBDIRS = tools wiretap doc epan plugins packaging gtk
1224
1225 if HAVE_PLUGINS
1226 SUBDIRS = tools wiretap doc epan plugins packaging @ethereal_SUBDIRS@
1227 else
1228 SUBDIRS = tools wiretap doc epan packaging @ethereal_SUBDIRS@
1229 endif
1230
1231 ethereal.1: ethereal doc/ethereal.pod
1232         (cd doc ; \
1233         $(MAKE) ../ethereal.1 )
1234
1235 tethereal.1: tethereal doc/tethereal.pod
1236         (cd doc ; \
1237         $(MAKE) ../tethereal.1 )
1238
1239 ethereal-filter.4: tethereal doc/ethereal-filter.pod.template
1240         (cd doc ; \
1241         $(MAKE) ../ethereal-filter.4 )
1242
1243 editcap.1: doc/editcap.pod
1244         (cd doc ; \
1245         $(MAKE) ../editcap.1 )
1246
1247 idl2eth.1: doc/idl2eth.pod
1248         (cd doc ; \
1249         $(MAKE) ../idl2eth.1 )
1250
1251 mergecap.1: doc/mergecap.pod
1252         (cd doc ; \
1253         $(MAKE) ../mergecap.1 )
1254
1255 text2pcap.1: doc/text2pcap.pod
1256         (cd doc ; \
1257         $(MAKE) ../text2pcap.1 )
1258
1259 packet-ncp2222.c : ncp2222.py
1260         $(PYTHON) $(srcdir)/ncp2222.py -o $@
1261
1262 libtool: $(LIBTOOL_DEPS)
1263         $(SHELL) ./config.status --recheck
1264
1265 # We load top_stagedir with an explicit path so that libtool doesn't freak.
1266 top_stagedir=`cd $(top_srcdir) && pwd`/packaging/svr4.stage
1267 stagedir=$(top_stagedir)/$(PACKAGE).stage
1268 host_cpu=@host_cpu@
1269 host_os=@host_os@
1270
1271 svr4-package: $(bin_SCRIPTS) $(lib_LTLIBRARIES)
1272         if test x$(HAVE_SVR4_PACKAGING) = xyes ; then \
1273                 rm -rf $(stagedir) ; \
1274                 $(MAKE) DESTDIR=$(stagedir) install; \
1275                 $(srcdir)/packaging/svr4/mkpkg \
1276                         $(PACKAGE) \
1277                         $(PACKAGE)-$(VERSION)-$(host_os)-$(host_cpu)-local \
1278                         $(prefix) \
1279                         $(top_stagedir) ; \
1280         else \
1281                 echo "Error: SVR4 packaging tools not found." ; \
1282                 echo "Package build abandoned." ; \
1283         fi
1284
1285 solaris-package: svr4-package
1286
1287 rpm_topdir=`cd $(top_srcdir) && pwd`/packaging/rpm
1288 rpm-package: dist
1289         if test x$(HAVE_RPM) = xyes ; then \
1290                 cd $(rpm_topdir) ; \
1291                 mkdir -p BUILD RPMS SOURCES ; \
1292                 cd SOURCES ; \
1293                 ln -s ../../../$(distdir).tar.gz ; \
1294                 cd .. ; \
1295                 rpm --define "_topdir `cd . && pwd`" -bb SPECS/ethereal.spec && \
1296                         echo "Package successfully built in `pwd`/RPMS." ; \
1297         else \
1298                 echo "Error: RPM executable and/or source directory not found." ; \
1299         fi
1300 srpm-package: dist
1301         if test x$(HAVE_RPM) = xyes ; then \
1302                 cd $(rpm_topdir) ; \
1303                 mkdir -p BUILD SRPMS SOURCES ; \
1304                 cd SOURCES ; \
1305                 ln -s ../../../$(distdir).tar.gz ; \
1306                 cd .. ; \
1307                 rpm --define "_topdir `cd . && pwd`" -bs SPECS/ethereal.spec && \
1308                         echo "Package successfully built in `pwd`/SRPMS." ; \
1309         else \
1310                 echo "Error: RPM executable and/or source directory not found." ; \
1311         fi
1312
1313 debian-package: debian/rules
1314         dpkg-buildpackage -rfakeroot -us -uc
1315
1316 clean-local:
1317         rm -rf $(top_stagedir)
1318
1319 test-splint: $(ethereal_SOURCES)
1320         splint \
1321                 -gnu-extensions -D_U_=""        \
1322                 -I. `glib-config --cflags` \
1323                 -I./epan \
1324                 -I./tools/lemon \
1325                 -I./wiretap     \
1326                 $(ethereal_SOURCES)