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