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