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