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