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