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