1999-07-13 02:53:26 +00:00
|
|
|
## Makefile for building ethereal.exe with Microsoft C and nmake
|
2001-03-06 13:08:13 +00:00
|
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2000-04-12 21:52:11 +00:00
|
|
|
#
|
2002-11-15 22:45:52 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.258 2002/11/15 22:45:52 sahlberg Exp $
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include config.nmake
|
2001-03-23 02:05:29 +00:00
|
|
|
include <win32.mak>
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
|
|
|
CC = cl
|
1999-07-21 17:40:42 +00:00
|
|
|
LINK= link
|
|
|
|
|
On Win32, build Ethereal as a Windows-subsystem program rather than a
console-subsystem program, so that when not run from a shell window it
doesn't cause a shell window to be popped up. (Yes, this means that any
messages it prints, when not popped up from a shell window, get lost,
but the same is true of Ethereal on UNIX/X.) Trick for doing this
shamelessly stolen from the Win32 port of the GIMP.
We do not want to build Tethereal or editcap as Windows-subsystem
programs, however, so we take the "/SUBSYSTEM" flag out of LDFLAGS and
put it into the link commands for Ethereal, Tethereal, and editcap.
svn path=/trunk/; revision=1857
2000-04-14 09:00:25 +00:00
|
|
|
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
|
2002-01-21 10:21:57 +00:00
|
|
|
/I$(GTK_DIR) /I. /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
|
2002-10-09 03:07:34 +00:00
|
|
|
/I$(ZLIB_DIR) /I$(PCAP_DIR)\include \
|
|
|
|
/I$(NET_SNMP_DIR)\include /I$(NET_SNMP_DIR)\win32 \
|
|
|
|
-D_U_=""
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2001-12-12 01:29:13 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2001-05-11 00:39:57 +00:00
|
|
|
DISSECTOR_SRC = \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-aarp.c \
|
2002-04-25 23:58:02 +00:00
|
|
|
packet-afp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-afs.c \
|
2000-11-05 23:45:59 +00:00
|
|
|
packet-aim.c \
|
2002-06-28 21:02:55 +00:00
|
|
|
packet-ajp13.c \
|
2002-04-25 23:35:52 +00:00
|
|
|
packet-aodv.c \
|
2002-05-29 21:32:23 +00:00
|
|
|
packet-aodv6.c \
|
2002-10-18 21:00:01 +00:00
|
|
|
packet-arcnet.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-arp.c \
|
2002-04-15 21:47:59 +00:00
|
|
|
packet-asap.c \
|
Add a "proto_register_dcerpc_smb()" which registers ett_ values for
"packet-dcerpc-nt.c", and registers "dcerpc_smb_init()" as an
initialization routine. Take the ett_ registration out of the latter
routine, and also take out the "do this only once" stuff.
Get rid of the initialization routines for netlogon, samr, and spoolss;
they just call "dcerpc_smb_init()", which is now an initialization
routine of its own.
The policy hash initialization should be done before every capture, so
it should be done in an initialization routine, and should not do any
"do this only once" stuff. It should also be called only once before
every capture, rather than 3 times.
The ett_ initialization should, however, be done at the same time all
other ett_ initialization is done - at protocol registration time - so
it should be done in a "proto_register_" routine.
This fixes a bug I saw wherein
1) the tree for Unicode strings was open by default
and
2) if you closed one and then exited, Ethereal would crash.
The problem is that "proto_register_subtree_array()" doesn't expand the
array, it just bumps the number of registered ett_ values; the array is
allocated in "proto_init()". As such, if you register ett_ values with
"proto_register_subtree_array()" *after* "proto_init()" is called - and,
even for the first capture, initialization routines are called after
"proto_init()" is called - you will get ett_ numbers that go past the
number of elements in the array.
Move the declaration of "ett_nt_unicode_string" to "packet-dcerpc-nt.h",
as it's exported from "packet-dcerpc-nt.c".
Get rid of the declaration of "dcerpc_smb_init()" in
"packet-dcerpc-nt.h", and make it static, as it's no longer called from
outside "packet-dcerpc-nt.c".
svn path=/trunk/; revision=5196
2002-04-18 00:29:17 +00:00
|
|
|
packet-ascend.c\
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-atalk.c \
|
|
|
|
packet-atm.c \
|
|
|
|
packet-auto_rp.c \
|
2001-03-31 10:13:13 +00:00
|
|
|
packet-bacapp.c \
|
|
|
|
packet-bacnet.c \
|
2001-12-08 01:45:36 +00:00
|
|
|
packet-beep.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-bgp.c \
|
|
|
|
packet-bootp.c \
|
|
|
|
packet-bootparams.c \
|
|
|
|
packet-bpdu.c \
|
2001-03-31 10:13:13 +00:00
|
|
|
packet-bvlc.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-cdp.c \
|
|
|
|
packet-cgmp.c \
|
Add a new Wiretap encapsulation type for Cisco HDLC. Map the NetBSD
DLT_HDLC to it.
Make a separate dissector for Cisco HDLC, and add a dissector for Cisco
SLARP. Have the PPP dissector call the Cisco HDLC dissector if the
address field is the Cisco HDLC unicast or multicast address. Use the
Cisco HDLC dissector for the Cisco HDLC Wiretap encapsulation type.
Add a new dissector table "chdlctype", for Cisco HDLC packet types
(they're *almost* the same as Ethernet types, but 0x8035 is SLARP, not
Reverse ARP, and 0x2000 is the Cisco Discovery protocol, for example),
replacing "fr.chdlc".
Have a "chdlctype()" routine, similar to "ethertype()", used both by the
Cisco HDLC and Frame Relay dissectors. Have a "chdlc_vals[]"
"value_string" table for Cisco HDLC types and protocol names. Split the
packet type field in the Frame Relay dissector into separate SNAP and
Cisco HDLC fields, and give them the Ethernet type and Cisco HDLC type
"value_string" tables, respectively.
svn path=/trunk/; revision=3133
2001-03-15 09:11:03 +00:00
|
|
|
packet-chdlc.c \
|
2002-11-15 22:45:52 +00:00
|
|
|
packet-clearcase.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-clip.c \
|
|
|
|
packet-clnp.c \
|
2000-06-07 22:57:45 +00:00
|
|
|
packet-cops.c \
|
2002-07-31 19:27:57 +00:00
|
|
|
packet-cosine.c \
|
2002-08-14 18:48:16 +00:00
|
|
|
packet-cpha.c \
|
2001-03-11 02:08:32 +00:00
|
|
|
packet-cups.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-data.c \
|
2002-05-03 15:50:11 +00:00
|
|
|
packet-dccp.c \
|
2001-03-18 02:13:33 +00:00
|
|
|
packet-dcerpc.c \
|
2002-09-13 10:36:55 +00:00
|
|
|
packet-dcerpc-afs4int.c \
|
2002-09-12 09:12:26 +00:00
|
|
|
packet-dcerpc-bossvr.c \
|
2002-05-28 12:07:59 +00:00
|
|
|
packet-dcerpc-browser.c \
|
2002-09-12 09:29:51 +00:00
|
|
|
packet-dcerpc-cds_clerkserver.c \
|
2002-09-11 09:48:01 +00:00
|
|
|
packet-dcerpc-cds_solicit.c \
|
2001-07-11 01:25:45 +00:00
|
|
|
packet-dcerpc-conv.c \
|
2002-09-12 08:43:37 +00:00
|
|
|
packet-dcerpc-cprpc_server.c \
|
2002-09-17 09:38:04 +00:00
|
|
|
packet-dcerpc-dce122.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-dfs.c \
|
2002-09-11 23:59:13 +00:00
|
|
|
packet-dcerpc-dnsserver.c \
|
2002-09-12 08:48:40 +00:00
|
|
|
packet-dcerpc-dtsprovider.c \
|
2002-09-11 09:40:33 +00:00
|
|
|
packet-dcerpc-dtsstime_req.c \
|
2001-07-11 01:25:45 +00:00
|
|
|
packet-dcerpc-epm.c \
|
2002-09-13 10:28:54 +00:00
|
|
|
packet-dcerpc-fldb.c \
|
2002-09-12 09:19:32 +00:00
|
|
|
packet-dcerpc-ftserver.c \
|
2002-09-13 09:59:21 +00:00
|
|
|
packet-dcerpc-krb5rpc.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-lsa.c \
|
2002-11-01 00:42:00 +00:00
|
|
|
packet-dcerpc-lsa-ds.c \
|
2002-05-23 10:00:19 +00:00
|
|
|
packet-dcerpc-mapi.c \
|
2001-07-11 01:25:45 +00:00
|
|
|
packet-dcerpc-mgmt.c \
|
2001-11-27 09:27:29 +00:00
|
|
|
packet-dcerpc-ndr.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-netlogon.c \
|
2002-05-23 23:45:22 +00:00
|
|
|
packet-dcerpc-nspi.c \
|
Add a "proto_register_dcerpc_smb()" which registers ett_ values for
"packet-dcerpc-nt.c", and registers "dcerpc_smb_init()" as an
initialization routine. Take the ett_ registration out of the latter
routine, and also take out the "do this only once" stuff.
Get rid of the initialization routines for netlogon, samr, and spoolss;
they just call "dcerpc_smb_init()", which is now an initialization
routine of its own.
The policy hash initialization should be done before every capture, so
it should be done in an initialization routine, and should not do any
"do this only once" stuff. It should also be called only once before
every capture, rather than 3 times.
The ett_ initialization should, however, be done at the same time all
other ett_ initialization is done - at protocol registration time - so
it should be done in a "proto_register_" routine.
This fixes a bug I saw wherein
1) the tree for Unicode strings was open by default
and
2) if you closed one and then exited, Ethereal would crash.
The problem is that "proto_register_subtree_array()" doesn't expand the
array, it just bumps the number of registered ett_ values; the array is
allocated in "proto_init()". As such, if you register ett_ values with
"proto_register_subtree_array()" *after* "proto_init()" is called - and,
even for the first capture, initialization routines are called after
"proto_init()" is called - you will get ett_ numbers that go past the
number of elements in the array.
Move the declaration of "ett_nt_unicode_string" to "packet-dcerpc-nt.h",
as it's exported from "packet-dcerpc-nt.c".
Get rid of the declaration of "dcerpc_smb_init()" in
"packet-dcerpc-nt.h", and make it static, as it's no longer called from
outside "packet-dcerpc-nt.c".
svn path=/trunk/; revision=5196
2002-04-18 00:29:17 +00:00
|
|
|
packet-dcerpc-nt.c \
|
2001-07-11 01:25:45 +00:00
|
|
|
packet-dcerpc-oxid.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-reg.c \
|
|
|
|
packet-dcerpc-remact.c \
|
2002-09-13 10:06:45 +00:00
|
|
|
packet-dcerpc-rep_proc.c \
|
2002-09-11 09:17:25 +00:00
|
|
|
packet-dcerpc-roverride.c \
|
2002-09-11 09:05:22 +00:00
|
|
|
packet-dcerpc-rpriv.c \
|
2002-09-10 11:13:19 +00:00
|
|
|
packet-dcerpc-rs_acct.c \
|
2002-09-10 11:19:18 +00:00
|
|
|
packet-dcerpc-rs_attr.c \
|
2002-09-10 11:00:36 +00:00
|
|
|
packet-dcerpc-rs_misc.c \
|
2002-09-10 10:48:36 +00:00
|
|
|
packet-dcerpc-rs_pgo.c \
|
2002-09-11 09:34:28 +00:00
|
|
|
packet-dcerpc-rs_repadm.c \
|
2002-09-10 11:26:27 +00:00
|
|
|
packet-dcerpc-rs_replist.c \
|
2002-09-10 10:28:45 +00:00
|
|
|
packet-dcerpc-rs_unix.c \
|
2002-09-10 11:33:00 +00:00
|
|
|
packet-dcerpc-rsec_login.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-samr.c \
|
2002-10-18 21:00:01 +00:00
|
|
|
packet-dcerpc-secidmap.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-spoolss.c \
|
|
|
|
packet-dcerpc-srvsvc.c \
|
2002-06-02 12:32:10 +00:00
|
|
|
packet-dcerpc-tapi.c \
|
2002-09-13 10:20:48 +00:00
|
|
|
packet-dcerpc-tkn4int.c \
|
2002-09-12 08:55:42 +00:00
|
|
|
packet-dcerpc-ubikdisk.c \
|
2002-09-12 09:06:23 +00:00
|
|
|
packet-dcerpc-ubikvote.c \
|
2002-10-22 08:47:46 +00:00
|
|
|
packet-dcerpc-update.c \
|
2001-11-21 02:08:57 +00:00
|
|
|
packet-dcerpc-wkssvc.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-ddtp.c \
|
2001-01-05 19:00:37 +00:00
|
|
|
packet-dec-bpdu.c \
|
2002-01-09 02:55:38 +00:00
|
|
|
packet-dhcpv6.c \
|
2000-08-12 05:41:10 +00:00
|
|
|
packet-diameter.c \
|
2001-12-26 21:17:49 +00:00
|
|
|
packet-dlsw.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-dns.c \
|
2001-05-24 20:25:25 +00:00
|
|
|
packet-dsi.c \
|
2001-06-12 06:21:55 +00:00
|
|
|
packet-dvmrp.c \
|
2001-11-06 20:30:40 +00:00
|
|
|
packet-eap.c \
|
2001-11-12 08:58:45 +00:00
|
|
|
packet-eapol.c \
|
2000-05-28 22:59:18 +00:00
|
|
|
packet-eigrp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-esis.c \
|
|
|
|
packet-eth.c \
|
|
|
|
packet-ethertype.c \
|
|
|
|
packet-fddi.c \
|
2002-09-16 17:49:20 +00:00
|
|
|
packet-fix.c \
|
2001-01-07 22:08:31 +00:00
|
|
|
packet-fr.c \
|
2000-10-11 07:35:02 +00:00
|
|
|
packet-frame.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-ftp.c \
|
2002-08-08 09:28:11 +00:00
|
|
|
packet-fw1.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-giop.c \
|
2001-07-23 18:21:32 +00:00
|
|
|
packet-gmrp.c \
|
2001-06-06 01:30:30 +00:00
|
|
|
packet-gnutella.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-gre.c \
|
2002-08-21 21:00:32 +00:00
|
|
|
packet-gssapi.c \
|
2001-04-04 01:00:19 +00:00
|
|
|
packet-gtp.c \
|
2000-11-30 09:31:52 +00:00
|
|
|
packet-gvrp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-h1.c \
|
2000-10-19 06:45:11 +00:00
|
|
|
packet-h261.c \
|
2001-01-27 20:33:01 +00:00
|
|
|
packet-hclnfsd.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-hsrp.c \
|
|
|
|
packet-http.c \
|
2002-11-14 08:10:51 +00:00
|
|
|
packet-hyperscsi.c \
|
2002-02-02 12:04:24 +00:00
|
|
|
packet-iapp.c \
|
2002-08-29 12:25:42 +00:00
|
|
|
packet-ib.c \
|
2001-08-18 04:27:08 +00:00
|
|
|
packet-icap.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-icmpv6.c\
|
|
|
|
packet-icp.c \
|
|
|
|
packet-icq.c \
|
2001-05-30 18:52:38 +00:00
|
|
|
packet-ieee80211.c \
|
|
|
|
packet-ieee8023.c \
|
2001-05-20 22:20:33 +00:00
|
|
|
packet-igmp.c \
|
2000-10-26 09:14:28 +00:00
|
|
|
packet-igrp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-imap.c \
|
|
|
|
packet-ip.c \
|
|
|
|
packet-ipp.c \
|
|
|
|
packet-ipsec.c \
|
|
|
|
packet-ipv6.c \
|
|
|
|
packet-ipx.c \
|
|
|
|
packet-irc.c \
|
|
|
|
packet-isakmp.c\
|
2001-05-30 18:52:38 +00:00
|
|
|
packet-iscsi.c \
|
2002-10-31 07:12:42 +00:00
|
|
|
packet-isdn.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-isis.c \
|
|
|
|
packet-isis-clv.c \
|
|
|
|
packet-isis-hello.c \
|
|
|
|
packet-isis-lsp.c \
|
|
|
|
packet-isis-snp.c \
|
|
|
|
packet-isl.c \
|
2001-05-25 16:17:45 +00:00
|
|
|
packet-isup.c \
|
2001-01-11 16:46:21 +00:00
|
|
|
packet-iua.c \
|
2000-08-11 03:32:53 +00:00
|
|
|
packet-kerberos.c \
|
2001-04-20 18:37:53 +00:00
|
|
|
packet-klm.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-l2tp.c \
|
|
|
|
packet-lapb.c \
|
2001-01-05 19:00:37 +00:00
|
|
|
packet-lapbether.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-lapd.c \
|
|
|
|
packet-ldap.c \
|
2000-11-29 13:20:06 +00:00
|
|
|
packet-ldp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-llc.c \
|
2001-03-23 21:38:56 +00:00
|
|
|
packet-lmi.c \
|
2002-04-11 09:01:52 +00:00
|
|
|
packet-lmp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-lpd.c \
|
2001-06-21 22:25:53 +00:00
|
|
|
packet-m2pa.c \
|
2001-12-16 22:30:11 +00:00
|
|
|
packet-m2tp.c \
|
2002-04-14 22:52:49 +00:00
|
|
|
packet-m2ua.c \
|
2001-01-10 09:25:13 +00:00
|
|
|
packet-m3ua.c \
|
2001-04-24 19:29:14 +00:00
|
|
|
packet-mbtcp.c \
|
2000-05-27 13:54:17 +00:00
|
|
|
packet-mip.c \
|
2001-09-25 21:32:41 +00:00
|
|
|
packet-mmse.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-mount.c \
|
2001-06-14 09:25:25 +00:00
|
|
|
packet-mpeg1.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-mpls.c \
|
2001-06-27 20:19:19 +00:00
|
|
|
packet-mrdisc.c \
|
2001-07-11 00:59:50 +00:00
|
|
|
packet-msdp.c \
|
2001-06-29 18:55:50 +00:00
|
|
|
packet-msnip.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-msproxy.c \
|
2001-12-11 03:04:26 +00:00
|
|
|
packet-mtp2.c \
|
2001-05-24 08:13:56 +00:00
|
|
|
packet-mtp3.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-nbipx.c \
|
|
|
|
packet-nbns.c \
|
|
|
|
packet-ncp.c \
|
2000-07-28 20:03:59 +00:00
|
|
|
packet-ncp2222.c \
|
2001-12-23 21:36:58 +00:00
|
|
|
packet-ndmp.c \
|
2002-09-23 17:14:54 +00:00
|
|
|
packet-ndps.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-netbios.c \
|
2002-09-04 20:23:55 +00:00
|
|
|
packet-netflow.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-nfs.c \
|
2002-05-15 07:21:41 +00:00
|
|
|
packet-nfsacl.c \
|
2002-05-16 08:50:00 +00:00
|
|
|
packet-nfsauth.c \
|
2001-05-07 20:49:48 +00:00
|
|
|
packet-nisplus.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-nlm.c \
|
|
|
|
packet-nntp.c \
|
2002-07-09 20:49:27 +00:00
|
|
|
packet-ntlmssp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-ntp.c \
|
|
|
|
packet-null.c \
|
|
|
|
packet-osi.c \
|
|
|
|
packet-osi-options.c \
|
|
|
|
packet-ospf.c \
|
2001-11-06 13:43:44 +00:00
|
|
|
packet-pcnfsd.c \
|
2002-01-29 08:44:53 +00:00
|
|
|
packet-pflog.c \
|
2001-07-12 20:16:29 +00:00
|
|
|
packet-pgm.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-pim.c \
|
|
|
|
packet-pop.c \
|
|
|
|
packet-portmap.c \
|
|
|
|
packet-ppp.c \
|
|
|
|
packet-pppoe.c \
|
|
|
|
packet-pptp.c \
|
2001-11-28 07:11:11 +00:00
|
|
|
packet-prism.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-q2931.c \
|
|
|
|
packet-q931.c \
|
2001-11-15 21:50:02 +00:00
|
|
|
packet-qllc.c \
|
2000-07-27 11:00:48 +00:00
|
|
|
packet-quake.c \
|
2001-06-21 15:16:43 +00:00
|
|
|
packet-quake2.c \
|
2001-07-22 18:56:37 +00:00
|
|
|
packet-quake3.c \
|
2002-10-18 21:00:01 +00:00
|
|
|
packet-quakeworld.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-radius.c\
|
2001-04-24 19:18:03 +00:00
|
|
|
packet-ranap.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-raw.c \
|
|
|
|
packet-rip.c \
|
|
|
|
packet-ripng.c \
|
|
|
|
packet-rlogin.c \
|
2002-05-29 18:52:28 +00:00
|
|
|
packet-rmi.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-rpc.c \
|
2002-11-02 22:23:16 +00:00
|
|
|
packet-rpl.c \
|
2001-02-27 19:40:58 +00:00
|
|
|
packet-rquota.c \
|
2000-08-12 05:41:10 +00:00
|
|
|
packet-rsh.c \
|
2002-05-15 07:21:41 +00:00
|
|
|
packet-rstat.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-rsvp.c \
|
|
|
|
packet-rtcp.c \
|
|
|
|
packet-rtp.c \
|
|
|
|
packet-rtsp.c \
|
2001-04-07 08:39:46 +00:00
|
|
|
packet-rwall.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-rx.c \
|
2002-05-15 07:21:41 +00:00
|
|
|
packet-sadmind.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-sap.c \
|
2002-03-04 22:39:22 +00:00
|
|
|
packet-sccp.c \
|
2002-09-20 09:22:46 +00:00
|
|
|
packet-sccpmg.c \
|
2002-01-10 01:28:45 +00:00
|
|
|
packet-scsi.c \
|
|
|
|
packet-sctp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-sdp.c \
|
2000-11-04 07:50:47 +00:00
|
|
|
packet-sip.c \
|
2001-10-11 16:01:10 +00:00
|
|
|
packet-skinny.c \
|
2001-12-27 20:58:35 +00:00
|
|
|
packet-slimp3.c \
|
2000-12-23 08:06:16 +00:00
|
|
|
packet-sll.c \
|
2002-06-13 07:18:49 +00:00
|
|
|
packet-slowprotocols.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-smb.c \
|
|
|
|
packet-smb-browse.c \
|
|
|
|
packet-smb-common.c \
|
|
|
|
packet-smb-logon.c \
|
|
|
|
packet-smb-mailslot.c \
|
|
|
|
packet-smb-pipe.c \
|
2001-12-03 20:18:29 +00:00
|
|
|
packet-smpp.c \
|
2000-11-04 03:30:41 +00:00
|
|
|
packet-smtp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-sna.c \
|
2002-02-17 00:16:19 +00:00
|
|
|
packet-snaeth.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-snmp.c \
|
|
|
|
packet-socks.c \
|
2002-10-18 21:00:01 +00:00
|
|
|
packet-spnego.c \
|
2001-04-21 07:57:23 +00:00
|
|
|
packet-spray.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-srvloc.c \
|
|
|
|
packet-sscop.c \
|
2001-07-11 18:19:16 +00:00
|
|
|
packet-ssl.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-stat.c \
|
2001-03-15 22:15:32 +00:00
|
|
|
packet-stat-notify.c \
|
2001-11-04 22:19:23 +00:00
|
|
|
packet-sua.c \
|
2000-06-12 02:38:13 +00:00
|
|
|
packet-syslog.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-tacacs.c \
|
|
|
|
packet-tcp.c \
|
2002-08-19 21:33:29 +00:00
|
|
|
packet-tds.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-telnet.c\
|
|
|
|
packet-tftp.c \
|
|
|
|
packet-time.c \
|
|
|
|
packet-tns.c \
|
2000-10-19 06:45:11 +00:00
|
|
|
packet-tpkt.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-tr.c \
|
|
|
|
packet-trmac.c \
|
2002-01-31 07:51:32 +00:00
|
|
|
packet-tsp.c \
|
2001-10-08 17:30:23 +00:00
|
|
|
packet-ucp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-udp.c \
|
|
|
|
packet-v120.c \
|
|
|
|
packet-vines.c \
|
2001-12-19 21:14:49 +00:00
|
|
|
packet-vj.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-vlan.c \
|
|
|
|
packet-vrrp.c \
|
|
|
|
packet-vtp.c \
|
2002-10-18 21:00:01 +00:00
|
|
|
packet-wap.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-wccp.c \
|
2001-03-23 21:38:56 +00:00
|
|
|
packet-wcp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-who.c \
|
2002-11-06 21:49:34 +00:00
|
|
|
packet-wlancap.c \
|
2000-11-04 03:30:41 +00:00
|
|
|
packet-wsp.c \
|
2002-10-18 21:00:01 +00:00
|
|
|
packet-wtls.c \
|
2000-11-04 03:30:41 +00:00
|
|
|
packet-wtp.c \
|
2000-06-12 02:30:35 +00:00
|
|
|
packet-x11.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-x25.c \
|
2002-03-16 02:25:48 +00:00
|
|
|
packet-xdmcp.c \
|
2000-12-17 07:38:14 +00:00
|
|
|
packet-xot.c \
|
2002-08-09 20:55:17 +00:00
|
|
|
packet-xyplex.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-yhoo.c \
|
|
|
|
packet-ypbind.c \
|
2001-04-18 20:41:12 +00:00
|
|
|
packet-yppasswd.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-ypserv.c \
|
2000-08-18 15:26:52 +00:00
|
|
|
packet-ypxfr.c \
|
|
|
|
packet-zebra.c
|
2000-04-29 07:35:07 +00:00
|
|
|
|
2001-05-11 00:39:57 +00:00
|
|
|
DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj)
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2002-10-31 22:16:01 +00:00
|
|
|
TETHEREAL_TAP_SRC = \
|
|
|
|
tap-dcerpcstat.c \
|
2002-11-01 01:49:40 +00:00
|
|
|
tap-iostat.c \
|
2002-11-04 12:11:01 +00:00
|
|
|
tap-protocolinfo.c \
|
2002-11-01 05:29:36 +00:00
|
|
|
tap-protohierstat.c \
|
2002-10-31 22:16:01 +00:00
|
|
|
tap-rpcstat.c \
|
|
|
|
tap-rpcprogs.c
|
|
|
|
|
|
|
|
TETHEREAL_TAP_OBJECTS = $(TETHEREAL_TAP_SRC:.c=.obj)
|
|
|
|
|
2000-01-15 00:23:13 +00:00
|
|
|
ETHEREAL_COMMON_OBJECTS = \
|
There is really no need to have the BGP dissector and the LDP dissector
have two independent "value_string" tables mapping RFC 1700 address
family numbers to names, nor is there any need to have the BGP dissector
and the PIM dissector have two independent sets of #defines for RFC 1700
address family numbers; put a single "value_string" table in "afn.c" and
put a declaration of it, and #defines for the address family numbers,
into "afn.h", and have the dissectors use that.
Move the #define for PGM into "ipproto.h", and add an entry for it in
the "value_string" table in "ipproto.c".
Have the PGM dissector use the standard Ethereal mechanisms for
resolving addresses, and have it use "value_string" tables for mapping
option types, the OPX bits, and packet types to strings. Use
"bytes_to_str()" to turn byte arrays into strings of hex digits. Pass
the packet type string to "dissect_pgmopts()" as an argument, rather
than making it a global. Don't use "proto_tree_add_XXX_format" routines
if you can possibly just use "proto_tree_add_XXX"; give various fields
the correct radix and type, and VALS() strings if necessary, to make
that happen (and to make filtering on them more pleasant). Put the
type, length, and total length of the options into the protocol tree as
separate fields. Don't have separate type, length, and OPX fields for
every type of option; one field will suffice. Don't format a string
with "sprintf()" and then pass that string to "col_add_fstr()" with a
format of "%s" and the string as an argument - "col_add_fstr()" can
format strings itself (that's what the "f" stands for). Don't byte-swap
and then un-byte-swap IPv4 address fields in the header, just leave them
network byte order to start with. Use the correct fields for
"proto_tree_add_XXX", rather than using the same field multiple times.
Quit early if an address family identifier isn't AFNUM_INET, as that
means the structure we use to dissect the header doesn't match the
actual header.
svn path=/trunk/; revision=3761
2001-07-21 10:27:13 +00:00
|
|
|
afn.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
asn1.obj \
|
2001-12-04 07:32:05 +00:00
|
|
|
capture_stop_conditions.obj \
|
|
|
|
capture-wpcap.obj \
|
2002-09-06 22:45:44 +00:00
|
|
|
cfile.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
column.obj \
|
2001-12-04 07:32:05 +00:00
|
|
|
conditions.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
follow.obj \
|
2000-03-28 20:20:11 +00:00
|
|
|
getopt.obj \
|
2000-12-13 02:24:23 +00:00
|
|
|
in_cksum.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
ipproto.obj \
|
2001-11-09 07:44:51 +00:00
|
|
|
pcap-util.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
prefs.obj \
|
|
|
|
print.obj \
|
|
|
|
ps.obj \
|
2000-07-31 03:45:53 +00:00
|
|
|
ptvcursor.obj \
|
2001-06-08 06:27:16 +00:00
|
|
|
reassemble.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
register.obj \
|
2001-12-04 08:26:00 +00:00
|
|
|
ringbuffer.obj \
|
2002-09-04 09:40:29 +00:00
|
|
|
tap.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
util.obj \
|
|
|
|
xdlc.obj \
|
2001-11-01 21:52:44 +00:00
|
|
|
xmlstub.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
|
|
|
|
ethereal_OBJECTS = \
|
|
|
|
$(DISSECTOR_OBJECTS) \
|
|
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
2001-04-03 05:26:27 +00:00
|
|
|
capture.obj \
|
|
|
|
file.obj \
|
|
|
|
filters.obj \
|
2001-03-22 23:54:47 +00:00
|
|
|
proto_hier_stats.obj \
|
2001-04-03 05:26:27 +00:00
|
|
|
summary.obj
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2000-04-12 21:52:11 +00:00
|
|
|
tethereal_OBJECTS = \
|
|
|
|
$(DISSECTOR_OBJECTS) \
|
|
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
2002-10-31 22:16:01 +00:00
|
|
|
$(TETHEREAL_TAP_OBJECTS) \
|
|
|
|
tethereal-tap-register.obj \
|
2000-04-12 21:52:11 +00:00
|
|
|
tethereal.obj
|
|
|
|
|
2001-02-11 03:19:45 +00:00
|
|
|
dftest_OBJECTS = \
|
|
|
|
$(DISSECTOR_OBJECTS) \
|
|
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
|
|
dftest.obj
|
|
|
|
|
2002-10-16 14:45:27 +00:00
|
|
|
randpkt_OBJECTS = \
|
|
|
|
randpkt.obj
|
|
|
|
|
2000-04-12 21:52:11 +00:00
|
|
|
EXTRA_OBJECTS = \
|
2001-03-23 02:05:29 +00:00
|
|
|
# snprintf.obj \
|
|
|
|
# strerror.obj \
|
2001-06-02 06:21:14 +00:00
|
|
|
mkstemp.obj \
|
|
|
|
strptime.obj
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
ethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
gtk\libui.lib epan\ethereal.lib \
|
2001-02-02 04:03:43 +00:00
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
2000-10-11 07:35:02 +00:00
|
|
|
wsock32.lib user32.lib \
|
1999-07-13 02:53:26 +00:00
|
|
|
$(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
|
2000-06-11 07:49:36 +00:00
|
|
|
$(GTK_DIR)\gdk\gdk-$(GTK_VERSION).lib \
|
1999-07-21 17:40:42 +00:00
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
2002-10-09 03:07:34 +00:00
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(NET_SNMP_DIR)\win32\lib\libsnmp.lib
|
2001-04-03 05:26:27 +00:00
|
|
|
# $(PCAP_DIR)\lib\wpcap.lib
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
tethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
epan\ethereal.lib \
|
2001-02-02 04:03:43 +00:00
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
2000-10-11 07:35:02 +00:00
|
|
|
wsock32.lib user32.lib \
|
2000-04-12 21:52:11 +00:00
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
2002-10-09 03:07:34 +00:00
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(NET_SNMP_DIR)\win32\lib\libsnmp.lib
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wsock32.lib user32.lib \
|
2000-04-12 21:52:11 +00:00
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
2000-10-14 03:20:55 +00:00
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2001-07-12 19:59:41 +00:00
|
|
|
mergecap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
|
|
|
2002-01-30 22:41:00 +00:00
|
|
|
dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib epan\ethereal.lib \
|
2001-02-11 03:19:45 +00:00
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
|
|
|
wsock32.lib user32.lib \
|
2002-03-01 06:52:14 +00:00
|
|
|
wiretap\wiretap-$(WTAP_VERSION).lib \
|
2001-02-11 03:19:45 +00:00
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
2001-04-03 05:26:27 +00:00
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
2001-02-11 03:19:45 +00:00
|
|
|
|
2002-10-16 14:45:27 +00:00
|
|
|
randpkt_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
user32.lib \
|
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(NET_SNMP_DIR)\win32\lib\libsnmp.lib
|
|
|
|
|
2001-07-12 19:59:41 +00:00
|
|
|
EXECUTABLES=ethereal.exe tethereal.exe editcap.exe mergecap.exe text2pcap.exe
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-07-12 19:59:41 +00:00
|
|
|
RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res image\mergecap.res image\text2pcap.res
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2001-04-05 04:39:29 +00:00
|
|
|
all: tools wiretap gtk epan image $(EXECUTABLES) $(RESOURCES)
|
2000-04-15 04:10:50 +00:00
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(RESOURCES): image
|
|
|
|
|
|
|
|
wiretap\wiretap-$(WTAP_VERSION).lib: wiretap
|
|
|
|
|
|
|
|
ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) epan gtk image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk\libui.lib plugins
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2001-03-23 02:05:29 +00:00
|
|
|
/OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) epan image\tethereal.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
1999-07-21 17:40:42 +00:00
|
|
|
$(LINK) @<<
|
2001-03-23 02:05:29 +00:00
|
|
|
/OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
editcap.exe : config.h editcap.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2001-03-23 02:05:29 +00:00
|
|
|
/OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(editcap_LIBS) image\editcap.res
|
1999-07-21 17:40:42 +00:00
|
|
|
<<
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-07-12 19:59:41 +00:00
|
|
|
mergecap.exe : config.h mergecap.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
|
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
|
|
|
/OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
|
|
|
|
<<
|
|
|
|
|
2001-11-24 08:14:12 +00:00
|
|
|
text2pcap.exe : config.h text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2001-11-24 21:51:40 +00:00
|
|
|
/OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
<<
|
|
|
|
|
2001-02-11 03:19:45 +00:00
|
|
|
dftest.exe : $(dftest_OBJECTS) $(EXTRA_OBJECTS)
|
|
|
|
$(LINK) @<<
|
2001-03-23 02:05:29 +00:00
|
|
|
/OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS) $(EXTRA_OBJECTS)
|
2001-02-11 03:19:45 +00:00
|
|
|
<<
|
|
|
|
|
2002-10-16 14:45:27 +00:00
|
|
|
randpkt.exe : $(randpkt_OBJECTS) $(EXTRA_OBJECTS)
|
|
|
|
$(LINK) @<<
|
|
|
|
/OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS)
|
|
|
|
<<
|
|
|
|
|
1999-07-13 02:53:26 +00:00
|
|
|
config.h : config.h.win32
|
2001-04-05 04:39:29 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ < config.h.win32 > $@
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
ps.c : rdps.exe print.ps
|
|
|
|
rdps print.ps ps.c
|
|
|
|
|
2001-04-20 04:16:19 +00:00
|
|
|
#
|
|
|
|
# The header files listed here are built from x11-fields using Perl;
|
|
|
|
# we declare a dependency here so that they get built.
|
|
|
|
#
|
|
|
|
packet-x11.obj : packet-x11.c x11-declarations.h x11-register-info.h
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build various header files for the X11 dissector.
|
|
|
|
#
|
|
|
|
x11-declarations.h x11-register-info.h: x11-fields process-x11-fields.pl
|
|
|
|
$(PERL) process-x11-fields.pl <x11-fields
|
|
|
|
|
2000-07-28 20:03:59 +00:00
|
|
|
packet-ncp2222.c : ncp2222.py
|
2002-03-01 06:52:14 +00:00
|
|
|
!IFDEF PYTHON
|
2001-01-11 07:21:35 +00:00
|
|
|
@echo Making packet-ncp2222.c
|
2002-05-09 23:50:34 +00:00
|
|
|
$(PYTHON) ncp2222.py -o packet-ncp2222.c
|
2002-03-01 06:52:14 +00:00
|
|
|
!ELSE
|
|
|
|
@echo Faking packet-ncp2222.c...
|
|
|
|
@echo Python is required to build the NCP disector
|
|
|
|
@echo Hiding packet-ncp.c...
|
|
|
|
mv packet-ncp.c packet-ncp.c.save
|
|
|
|
touch packet-ncp.c $@
|
|
|
|
!ENDIF
|
2000-07-28 20:03:59 +00:00
|
|
|
|
2002-10-31 22:16:01 +00:00
|
|
|
#
|
|
|
|
# Build "register.c", which contains a function "register_all_protocols()"
|
|
|
|
# that calls the register routines for all protocols.
|
|
|
|
#
|
|
|
|
# We do this by grepping through sources. If that turns out to be too slow,
|
|
|
|
# maybe we could just require every .o file to have an register routine
|
|
|
|
# of a given name (packet-aarp.o -> proto_register_aarp, etc.).
|
|
|
|
#
|
|
|
|
# Formatting conventions: The name of the proto_register_* routines must
|
|
|
|
# start in column zero, or must be preceded only by "void " starting in
|
|
|
|
# column zero, and must not be inside #if.
|
|
|
|
#
|
|
|
|
# We assume that all dissector routines are in "packet-XXX.c" files.
|
|
|
|
#
|
|
|
|
# For some unknown reason, having a big "for" loop in the Makefile
|
|
|
|
# to scan all the "packet-XXX.c" files doesn't work with some "make"s;
|
|
|
|
# they seem to pass only the first few names in the list to the shell,
|
|
|
|
# for some reason.
|
|
|
|
#
|
|
|
|
# Therefore, we have a script to generate the "register.c" file.
|
|
|
|
#
|
|
|
|
# The first argument is the name of the file to write.
|
|
|
|
# The second argument is the directory in which the source files live.
|
|
|
|
# All subsequent arguments are the files to scan.
|
|
|
|
#
|
|
|
|
# On Windows, however, that script runs slowly, as multiple greps
|
|
|
|
# and seds are run for each input file, so, if Python is present
|
|
|
|
# (as indicated by PYTHON being defined), we run a faster Python
|
|
|
|
# script to do that work instead. That script doesn't take the name
|
|
|
|
# of the file to write as an argument; it always writes to
|
|
|
|
# "register.c".
|
|
|
|
#
|
2001-05-11 00:39:57 +00:00
|
|
|
register.c: $(DISSECTOR_SRC)
|
2002-03-01 06:52:14 +00:00
|
|
|
!IFDEF PYTHON
|
|
|
|
@echo Making register.c (using python)
|
2001-05-11 00:39:57 +00:00
|
|
|
@$(PYTHON) make-reg-dotc.py . $(DISSECTOR_SRC)
|
2002-03-01 06:52:14 +00:00
|
|
|
!ELSE
|
|
|
|
@echo Making register.c (using sh)
|
2002-11-01 10:01:21 +00:00
|
|
|
@$(SH) make-reg-dotc register.c . $(DISSECTOR_SRC)
|
2002-03-01 06:52:14 +00:00
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2002-10-31 22:16:01 +00:00
|
|
|
#
|
|
|
|
# Build "tethereal-tap-register.c", which contains a function
|
|
|
|
# "register_all_tap_listeners()"
|
|
|
|
# that calls the register routines for all tehtereal tap listeners.
|
|
|
|
#
|
|
|
|
# We do this by grepping through sources.
|
|
|
|
#
|
|
|
|
# Formatting conventions: The name of the tap_listener_register_*
|
|
|
|
# routines must start in column zero, or must be preceded only by
|
|
|
|
# "void " starting in column zero, and must not be inside #if.
|
|
|
|
#
|
|
|
|
# The first argument is the name of the file to write.
|
|
|
|
# The second argument is the directory in which the source files live.
|
|
|
|
# All subsequent arguments are the files to scan.
|
|
|
|
#
|
2002-11-14 08:09:35 +00:00
|
|
|
tethereal-tap-register.c: $(TETHEREAL_TAP_SRC) make-tapreg-dotc
|
2002-10-31 22:16:01 +00:00
|
|
|
@echo Making tethereal-tap-register.c
|
2002-11-01 10:01:21 +00:00
|
|
|
@$(SH) make-tapreg-dotc tethereal-tap-register.c . $(TETHEREAL_TAP_SRC)
|
2002-10-31 22:16:01 +00:00
|
|
|
|
2001-05-21 03:17:14 +00:00
|
|
|
text2pcap-scanner.c : text2pcap-scanner.l
|
|
|
|
$(LEX) -otext2pcap-scanner.c text2pcap-scanner.l
|
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
clean:
|
2002-11-10 20:53:06 +00:00
|
|
|
rm -f $(ethereal_OBJECTS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) \
|
|
|
|
$(EXECUTABLES) $(PDB_FILE) \
|
|
|
|
editcap.obj mergecap.obj text2pcap.obj \
|
2001-11-09 09:22:07 +00:00
|
|
|
text2pcap-scanner.obj text2pcap-scanner.c register.c \
|
2002-09-10 08:28:14 +00:00
|
|
|
rdps.obj rdps.pdb config.h ps.c \
|
2002-10-16 14:45:27 +00:00
|
|
|
rdps.exe rdps.ilk dftest.obj dftest.exe randpkt.obj randpkt.ext \
|
|
|
|
$(RESOURCES)
|
2000-04-04 08:22:13 +00:00
|
|
|
cd wiretap
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2000-04-04 08:22:13 +00:00
|
|
|
cd ../gtk
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2000-10-11 07:35:02 +00:00
|
|
|
cd ../epan
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2000-04-04 08:22:13 +00:00
|
|
|
cd ../plugins
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ../tools
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2001-04-05 04:39:29 +00:00
|
|
|
cd ../image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2002-01-04 21:20:20 +00:00
|
|
|
cd ../doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
cd ../..
|
2001-02-02 04:03:43 +00:00
|
|
|
|
2002-09-10 08:28:14 +00:00
|
|
|
# Call distclean only, if you would like to remove ALL generated files.
|
|
|
|
# Be sure to have python and perl installed to regenerate them.
|
|
|
|
distclean: clean
|
|
|
|
rm -f x11-declarations.h x11-register-info.h packet-ncp2222.c
|
|
|
|
|
2001-02-02 04:03:43 +00:00
|
|
|
tools::
|
|
|
|
cd tools
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-04-04 08:22:13 +00:00
|
|
|
cd ..
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2001-04-05 04:39:29 +00:00
|
|
|
image::
|
|
|
|
cd image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2000-02-09 19:18:42 +00:00
|
|
|
wiretap::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd wiretap
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-02-09 00:41:57 +00:00
|
|
|
cd ..
|
|
|
|
|
2001-04-05 05:58:05 +00:00
|
|
|
gtk:: config.h
|
2000-02-09 00:41:57 +00:00
|
|
|
cd gtk
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-02-09 00:41:57 +00:00
|
|
|
cd ..
|
|
|
|
|
2000-10-11 07:35:02 +00:00
|
|
|
epan::
|
|
|
|
cd epan
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-10-11 07:35:02 +00:00
|
|
|
cd ..
|
|
|
|
|
2000-02-09 19:18:42 +00:00
|
|
|
plugins::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd plugins
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
2000-02-09 00:41:57 +00:00
|
|
|
cd ..
|