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