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