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