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