# Makefile.am
# Automake file for Ethereal
#
-# $Id: Makefile.am,v 1.248 2000/11/16 07:35:37 guy Exp $
+# $Id: Makefile.am,v 1.296 2001/03/24 02:07:20 guy Exp $
#
# Ethereal - Network traffic analyzer
# By Gerald Combs <gerald@zing.org>
ACLOCAL_AMFLAGS = `./aclocal-flags`
-EXTRA_PROGRAMS = ethereal_static
-bin_PROGRAMS = ethereal editcap tethereal
+#
+# This is a hideous hack.
+#
+# Automake needs to know into which sections to install various man
+# pages; if the names in "man_MANS" have suffixes, it can infer the
+# sections from the name (e.g., "hello.1" goes in section 1), but if
+# they don't have suffixes, it can't tell what sections to put them, and
+# it just gives up and doesn't create any rules to install them (and it
+# gives up silently, so you have no clue what's wrong).
+#
+# Therefore, we can't just set "man_MANS" to a list of variables to be
+# filled in by the configure script, as those variables don't have man
+# page section numbers.
+#
+# It turns out (although this is not documented anywhere I could find
+# in the automake Info file) that if you define, instead, variables with
+# names like "man{section}_MANS", automake will infer that the names in
+# those variables are the names of man pages to be installed in section
+# "{section}".
+#
+# So, as all our man pages go in section 1, we define "man1_MANS" to
+# contain all the man page.
+#
+# *However*, if "man_MANS" isn't defined at all, automake concludes that
+# there are no man pages, the fact that, say, "man1_MANS" is defined
+# nonwithstanding! (I suspect this is the result of a mistaken attempt
+# to get people to fix their automake files not to use "MANS"; if "MANS"
+# is defined, it prints a warning and sets the exit status, but doesn't
+# exit, and then it just gives up if "man_MANS" isn't defined,
+# presumably on the theory that the only reason it wouldn't be defined
+# is because the automake file uses the obsolete "MANS" variable instead
+# of the shiny new "man_MANS" variable.)
+#
+# So we also define "man_MANS", but don't define it as anything;
+# automake will arrange that the Makefile define it as the union of all
+# the "man{section}_MANS" variables.
+#
+bin_PROGRAMS = @ethereal_bin@ @editcap_bin@ @tethereal_bin@ @dftest_bin@ @randpkt_bin@
+man1_MANS = @ethereal_man@ @editcap_man@ @tethereal_man@
+man_MANS =
-man_MANS = ethereal.1 editcap.1 tethereal.1
+EXTRA_PROGRAMS = ethereal ethereal_static tethereal tethereal_static editcap dftest
sysconf_DATA = manuf
packet-bxxp.c \
packet-cdp.c \
packet-cgmp.c \
+ packet-chdlc.c \
packet-clip.c \
packet-clnp.c \
packet-cops.c \
+ packet-cups.c \
packet-data.c \
+ packet-dcerpc.c \
packet-ddtp.c \
+ packet-dec-bpdu.c \
packet-diameter.c \
packet-dns.c \
packet-eigrp.c \
packet-eth.c \
packet-ethertype.c \
packet-fddi.c \
+ packet-fr.c \
packet-frame.c \
packet-ftp.c \
packet-giop.c \
packet-gre.c \
+ packet-gvrp.c \
packet-h1.c \
packet-h261.c \
+ packet-hclnfsd.c \
packet-hsrp.c \
packet-http.c \
packet-icmpv6.c\
packet-ipx.c \
packet-irc.c \
packet-ieee80211.c \
+ packet-ieee8023.c \
packet-isakmp.c\
packet-isis.c \
packet-isis-clv.c \
packet-isis-lsp.c \
packet-isis-snp.c \
packet-isl.c \
+ packet-iua.c \
packet-kerberos.c \
packet-l2tp.c \
packet-lapb.c \
+ packet-lapbether.c \
packet-lapd.c \
packet-ldap.c \
+ packet-ldp.c \
packet-llc.c \
+ packet-lmi.c \
packet-lpd.c \
+ packet-m3ua.c \
packet-mapi.c \
packet-mip.c \
packet-mount.c \
packet-ripng.c \
packet-rlogin.c \
packet-rpc.c \
+ packet-rquota.c \
packet-rsh.c \
packet-rsvp.c \
packet-rtcp.c \
packet-sctp.c \
packet-sdp.c \
packet-sip.c \
+ packet-sll.c \
packet-smb.c \
packet-smb-browse.c \
packet-smb-common.c \
packet-srvloc.c \
packet-sscop.c \
packet-stat.c \
+ packet-stat-notify.c \
+ packet-sual.c \
packet-syslog.c \
packet-tacacs.c \
packet-tcp.c \
packet-vrrp.c \
packet-vtp.c \
packet-wccp.c \
+ packet-wcp.c \
packet-who.c \
+ packet-wap.c \
+ packet-wtls.c \
packet-wsp.c \
packet-wtp.c \
packet-x11.c \
packet-x25.c \
+ packet-xot.c \
packet-yhoo.c \
packet-ypbind.c \
packet-ypserv.c \
packet-afs-register-info.h \
packet-afs-defs.h \
packet-arp.h \
- packet-ascend.h\
packet-atalk.h \
- packet-atm.h \
packet-bgp.h \
packet-bootparams.h \
- packet-cdp.h \
- packet-cgmp.h \
+ packet-chdlc.h \
packet-clip.h \
- packet-clnp.h \
packet-ddtp.h \
- packet-diameter.h \
packet-diameter-defs.h \
packet-dns.h \
packet-esis.h \
packet-eth.h \
packet-fddi.h \
packet-frame.h \
+ packet-gvrp.h \
packet-h261.h \
+ packet-hclnfsd.h \
packet-http.h \
packet-ieee80211.h \
+ packet-ieee8023.h \
packet-ip.h \
packet-ipsec.h \
packet-ipv6.h \
packet-isis-lsp.h \
packet-isis-snp.h \
packet-isl.h \
- packet-kerberos.h \
- packet-lapb.h \
- packet-lapd.h \
packet-ldap.h \
packet-llc.h \
packet-mount.h \
- packet-nbipx.h \
packet-ncp-int.h \
packet-netbios.h \
packet-nfs.h \
packet-null.h \
packet-osi.h \
packet-osi-options.h \
- packet-ospf.h \
packet-portmap.h \
packet-ppp.h \
packet-q2931.h \
packet-q931.h \
packet-raw.h \
- packet-rip.h \
packet-ripng.h \
packet-rpc.h \
+ packet-rquota.h \
packet-rtcp.h \
packet-rtp.h \
packet-rx.h \
+ packet-sll.h \
packet-smb.h \
+ packet-smb-browse.h \
packet-smb-common.h \
+ packet-smb-logon.h \
+ packet-smb-mailslot.h \
+ packet-smb-pipe.h \
packet-sna.h \
packet-snmp.h \
packet-sscop.h \
packet-stat.h \
+ packet-stat-notify.h \
packet-tcp.h \
packet-tns.h \
packet-tpkt.h \
packet-tr.h \
- packet-trmac.h \
packet-udp.h \
- packet-v120.h \
packet-vines.h \
packet-vlan.h \
- packet-vtp.h \
+ packet-wccp.h \
packet-wap.h \
- packet-wsp.h \
+ packet-wtls.h \
packet-wtp.h \
+ packet-wsp.h \
packet-x11-declarations.h \
packet-x11-register-info.h \
packet-x11-keysym.h \
- packet-x25.h \
packet-yhoo.h \
packet-ypbind.h \
packet-ypserv.h \
packet-ypxfr.h
ETHEREAL_COMMON_SOURCES = \
+ aftypes.h \
alignment.h \
asn1.c \
asn1.h \
+ bridged_pids.h \
column.c \
column.h \
+ color.h \
etypes.h \
follow.c \
follow.h \
+ greproto.h \
+ in_cksum.c \
+ in_cksum.h \
ipproto.c \
llcsaps.h \
nlpid.h \
capture.h \
file.c \
file.h \
+ filters.c \
+ filters.h \
globals.h \
menu.h \
+ progress_dlg.h \
+ proto_hier_stats.h \
+ proto_hier_stats.c \
simple_dialog.h \
summary.c \
summary.h \
# Additional libs that I know how to build. These will be
# linked into the ethereal executable.
-ethereal_additional_libs = wiretap/libwiretap.a gtk/libui.a epan/libethereal.a
+ethereal_additional_libs = \
+ wiretap/libwiretap.a \
+ gtk/libui.a \
+ epan/libethereal.a \
+ epan/ftypes/libftypes.a \
+ epan/dfilter/libdfilter.a
# This is the automake dependency variable for the executable
ethereal_DEPENDENCIES = \
ethereal_LDADD = \
$(ethereal_optional_objects) \
$(ethereal_additional_libs) \
- @SNMP_LIBS@ \
+ @SNMP_LIBS@ @SSL_LIBS@ \
"-dlopen" self \
"-dlopen" plugins/gryphon/gryphon.la @PCAP_LIBS@ @GTK_LIBS@ \
"-dlopen" plugins/mgcp/mgcp.la @PCAP_LIBS@ @GTK_LIBS@
ethereal_static_LDADD = \
$(ethereal_optional_objects) \
- $(ethereal_additional_libs) \
- @SNMP_LIBS@ \
+ $(ethereal_additional_libs) \
+ @SNMP_LIBS@ @SSL_LIBS@ \
@PCAP_LIBS@ @GTK_LIBS@
ethereal_LDFLAGS = -export-dynamic
$(ETHEREAL_COMMON_SOURCES) \
tethereal.c
+tethereal_static_SOURCES = \
+ $(tethereal_SOURCES)
+
# Additional libs that I know how to build. These will be
# linked into the tethereal executable.
-tethereal_additional_libs = wiretap/libwiretap.a epan/libethereal.a
+tethereal_additional_libs = \
+ wiretap/libwiretap.a \
+ epan/libethereal.a \
+ epan/ftypes/libftypes.a \
+ epan/dfilter/libdfilter.a
# This is the automake dependency variable for the executable
tethereal_DEPENDENCIES = \
plugins/gryphon/gryphon.la \
plugins/mgcp/mgcp.la
+tethereal_static_DEPENDENCIES = \
+ $(ethereal_optional_objects) \
+ $(tethereal_additional_libs)
+
# This automake variable adds to the link-line for the executable
tethereal_LDADD = wiretap/libwiretap.a \
$(ethereal_optional_objects) \
$(tethereal_additional_libs) \
- @SNMP_LIBS@ \
+ @SNMP_LIBS@ @SSL_LIBS@ \
"-dlopen" self \
"-dlopen" plugins/gryphon/gryphon.la @GLIB_LIBS@ -lm \
"-dlopen" plugins/mgcp/mgcp.la @GLIB_LIBS@ -lm \
@PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
+tethereal_static_LDADD = wiretap/libwiretap.a \
+ $(ethereal_optional_objects) \
+ $(tethereal_additional_libs) \
+ @SNMP_LIBS@ @SSL_LIBS@ \
+ @GLIB_LIBS@ -lm \
+ @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
+
tethereal_LDFLAGS = -export-dynamic
+tethereal_static_LDFLAGS = -Wl,-static
editcap_SOURCES = editcap.c
randpkt: randpkt.o wiretap/libwiretap.a
$(LINK) -o randpkt randpkt.o wiretap/libwiretap.a `glib-config --libs` -lz
+
+dftest_SOURCES = \
+ $(DISSECTOR_SOURCES) \
+ $(ETHEREAL_COMMON_SOURCES) \
+ dftest.c
+
+dftest_additional_libs = \
+ epan/libethereal.a \
+ epan/ftypes/libftypes.a \
+ epan/dfilter/libdfilter.a
+
+dftest_DEPENDENCIES = \
+ $(ethereal_optional_objects) \
+ $(dftest_additional_libs) \
+ plugins/gryphon/gryphon.la \
+ plugins/mgcp/mgcp.la
+
+# This automake variable adds to the link-line for the executable
+dftest_LDADD = \
+ $(ethereal_optional_objects) \
+ $(dftest_additional_libs) \
+ @SNMP_LIBS@ @SSL_LIBS@ \
+ "-dlopen" self \
+ "-dlopen" plugins/gryphon/gryphon.la @GLIB_LIBS@ -lm \
+ "-dlopen" plugins/mgcp/mgcp.la @GLIB_LIBS@ -lm \
+ @PCAP_LIBS@ @SOCKET_LIBS@ @NSL_LIBS@
+
+dftest_LDFLAGS = -export-dynamic
+
DISTCLEANFILES = \
register.c \
rdps \
libpcap-0.5.HPUX.tcpdump.org.patch \
Makefile.nmake \
make-reg-dotc \
+ make-reg-dotc.py \
manuf \
ncp2222.py \
packet-ncp2222.inc \
#dist-hook:
# @rm -f $(distdir)/register.c
-SUBDIRS = wiretap epan gtk plugins packaging @ethereal_SUBDIRS@
+SUBDIRS = tools wiretap epan plugins packaging @ethereal_SUBDIRS@
ethereal.1: ethereal doc/ethereal.pod.template
(cd doc ; \
clean-local:
rm -rf $(top_stagedir)
-