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