1999-07-13 02:53:26 +00:00
|
|
|
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
|
|
## Use: nmake -f makefile.nmake
|
2000-04-12 21:52:11 +00:00
|
|
|
#
|
2000-04-21 01:45:58 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.32 2000/04/21 01:45:58 guy Exp $
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
include config.nmake
|
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
|
|
|
|
2000-04-04 08:22:13 +00:00
|
|
|
CFLAGS=/MT -DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
|
2000-02-09 19:18:42 +00:00
|
|
|
/I$(GTK_DIR) /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
|
|
|
|
/I$(PCAP_DIR)/include
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-01-15 00:23:13 +00:00
|
|
|
DISSECTOR_OBJECTS = \
|
|
|
|
packet-aarp.obj \
|
|
|
|
packet-afs.obj \
|
|
|
|
packet-arp.obj \
|
|
|
|
packet-ascend.obj\
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-atalk.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-atm.obj \
|
|
|
|
packet-auto_rp.obj \
|
|
|
|
packet-bgp.obj \
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-bootp.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-bootparams.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-bpdu.obj \
|
|
|
|
packet-cdp.obj \
|
2000-02-05 05:54:17 +00:00
|
|
|
packet-cgmp.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-clip.obj \
|
2000-04-16 08:58:55 +00:00
|
|
|
packet-clnp.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-data.obj \
|
2000-04-13 21:08:16 +00:00
|
|
|
packet-ddtp.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-dns.obj \
|
2000-04-16 08:58:55 +00:00
|
|
|
packet-esis.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-eth.obj \
|
Change the sub-dissector handoff registration routines so that the
sub-dissector table is not stored in the header_field_info struct, but
in a separate namespace. Dissector tables are now registered by name
and not by field ID. For example:
udp_dissector_table = register_dissector_table("udp.port");
Because of this different namespace, dissector tables can have names
that are not field names. This is useful for ethertype, since multiple
fields are "ethertypes".
packet-ethertype.c replaces ethertype.c (the name was changed so that it
would be named in the same fashion as all the filenames passed to make-reg-dotc)
Although it registers no protocol or field, it registers one dissector table:
ethertype_dissector_table = register_dissector_table("ethertype");
All protocols that can be called because of an ethertype field now register
that fact with dissector_add() calls.
In this way, one dissector_table services all ethertype fields
(hf_eth_type, hf_llc_type, hf_null_etype, hf_vlan_etype)
Furthermore, the code allows for names of protocols to exist in the
etype_vals, yet a dissector for that protocol doesn't exist. The name
of the dissector is printed in COL_INFO. You're welcome, Richard. :-)
svn path=/trunk/; revision=1848
2000-04-13 18:18:56 +00:00
|
|
|
packet-ethertype.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-fddi.obj \
|
|
|
|
packet-ftp.obj \
|
|
|
|
packet-giop.obj \
|
|
|
|
packet-gre.obj \
|
2000-03-02 07:27:05 +00:00
|
|
|
packet-h1.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-hsrp.obj \
|
|
|
|
packet-http.obj \
|
|
|
|
packet-icmpv6.obj\
|
|
|
|
packet-icp.obj \
|
|
|
|
packet-icq.obj \
|
|
|
|
packet-imap.obj \
|
|
|
|
packet-ip.obj \
|
|
|
|
packet-ipp.obj \
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-ipsec.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-ipv6.obj \
|
|
|
|
packet-ipx.obj \
|
|
|
|
packet-irc.obj \
|
|
|
|
packet-isakmp.obj\
|
|
|
|
packet-isis.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-isis-clv.obj \
|
|
|
|
packet-isis-hello.obj \
|
|
|
|
packet-isis-lsp.obj \
|
|
|
|
packet-isis-snp.obj \
|
2000-01-25 00:18:26 +00:00
|
|
|
packet-isl.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-l2tp.obj \
|
|
|
|
packet-lapb.obj \
|
|
|
|
packet-lapd.obj \
|
|
|
|
packet-ldap.obj \
|
|
|
|
packet-llc.obj \
|
|
|
|
packet-lpd.obj \
|
|
|
|
packet-mapi.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-mount.obj \
|
2000-03-09 18:31:51 +00:00
|
|
|
packet-mpls.obj \
|
2000-04-20 02:18:53 +00:00
|
|
|
packet-msproxy.obj \
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-nbipx.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-nbns.obj \
|
|
|
|
packet-ncp.obj \
|
1999-08-18 22:49:48 +00:00
|
|
|
packet-netbios.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-nfs.obj \
|
|
|
|
packet-nlm.obj \
|
|
|
|
packet-nntp.obj \
|
|
|
|
packet-ntp.obj \
|
|
|
|
packet-null.obj \
|
|
|
|
packet-osi.obj \
|
2000-04-16 08:58:55 +00:00
|
|
|
packet-osi-options.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-ospf.obj \
|
|
|
|
packet-pim.obj \
|
|
|
|
packet-pop.obj \
|
|
|
|
packet-portmap.obj \
|
|
|
|
packet-ppp.obj \
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-pppoe.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-pptp.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-q2931.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-q931.obj \
|
|
|
|
packet-radius.obj\
|
|
|
|
packet-raw.obj \
|
|
|
|
packet-rip.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-ripng.obj \
|
2000-04-12 21:52:11 +00:00
|
|
|
packet-rlogin.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-rpc.obj \
|
|
|
|
packet-rsvp.obj \
|
2000-04-21 01:45:58 +00:00
|
|
|
packet-rtcp.obj \
|
|
|
|
packet-rtp.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-rtsp.obj \
|
|
|
|
packet-rx.obj \
|
|
|
|
packet-sap.obj \
|
|
|
|
packet-sdp.obj \
|
|
|
|
packet-smb.obj \
|
2000-02-14 04:02:21 +00:00
|
|
|
packet-smb-browse.obj \
|
|
|
|
packet-smb-common.obj \
|
|
|
|
packet-smb-logon.obj \
|
|
|
|
packet-smb-mailslot.obj \
|
|
|
|
packet-smb-pipe.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-sna.obj \
|
|
|
|
packet-snmp.obj \
|
2000-04-13 11:11:38 +00:00
|
|
|
packet-socks.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-srvloc.obj \
|
|
|
|
packet-sscop.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-stat.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-tacacs.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-tcp.obj \
|
|
|
|
packet-telnet.obj\
|
|
|
|
packet-tftp.obj \
|
2000-02-09 17:15:59 +00:00
|
|
|
packet-time.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-tns.obj \
|
|
|
|
packet-tr.obj \
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-trmac.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-udp.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-v120.obj \
|
1999-07-29 05:47:07 +00:00
|
|
|
packet-vines.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-vlan.obj \
|
|
|
|
packet-vrrp.obj \
|
2000-02-05 09:19:06 +00:00
|
|
|
packet-vtp.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
packet-wccp.obj\
|
|
|
|
packet-who.obj\
|
|
|
|
packet-x25.obj \
|
|
|
|
packet-yhoo.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
packet-ypbind.obj \
|
|
|
|
packet-ypserv.obj \
|
|
|
|
packet-ypxfr.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
|
|
|
|
ETHEREAL_COMMON_OBJECTS = \
|
|
|
|
asn1.obj \
|
|
|
|
column.obj \
|
1999-12-15 07:58:23 +00:00
|
|
|
conversation.obj \
|
|
|
|
dfilter-grammar.obj \
|
|
|
|
dfilter-scanner.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
dfilter.obj \
|
|
|
|
follow.obj \
|
2000-03-28 20:20:11 +00:00
|
|
|
getopt.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
ipproto.obj \
|
|
|
|
ipv4.obj \
|
|
|
|
packet.obj \
|
|
|
|
plugins.obj \
|
|
|
|
prefs.obj \
|
|
|
|
print.obj \
|
|
|
|
proto.obj \
|
|
|
|
ps.obj \
|
|
|
|
register.obj \
|
|
|
|
resolv.obj \
|
|
|
|
util.obj \
|
|
|
|
xdlc.obj \
|
|
|
|
|
|
|
|
ethereal_OBJECTS = \
|
|
|
|
$(DISSECTOR_OBJECTS) \
|
|
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
|
|
capture.obj \
|
|
|
|
file.obj \
|
|
|
|
summary.obj \
|
|
|
|
|
2000-04-12 21:52:11 +00:00
|
|
|
tethereal_OBJECTS = \
|
|
|
|
$(DISSECTOR_OBJECTS) \
|
|
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
|
|
tethereal.obj
|
|
|
|
|
|
|
|
EXTRA_OBJECTS = \
|
2000-01-15 00:23:13 +00:00
|
|
|
snprintf.obj \
|
|
|
|
strerror.obj \
|
|
|
|
mkstemp.obj \
|
|
|
|
inet_aton.obj \
|
|
|
|
inet_pton.obj \
|
|
|
|
inet_ntop.obj
|
|
|
|
|
2000-04-12 21:52:11 +00:00
|
|
|
ethereal_LIBS= wiretap\libwtap.lib gtk\libui.lib wsock32.lib user32.lib \
|
1999-07-13 02:53:26 +00:00
|
|
|
$(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
|
2000-02-09 00:41:57 +00:00
|
|
|
$(GTK_DIR)\gdk\win32\gdk-$(GTK_VERSION).lib \
|
1999-07-21 17:40:42 +00:00
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
2000-02-09 19:18:42 +00:00
|
|
|
$(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(PCAP_DIR)\lib\libpcap.lib
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-04-12 21:52:11 +00:00
|
|
|
tethereal_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
|
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
|
|
$(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib \
|
|
|
|
$(PCAP_DIR)\lib\libpcap.lib
|
|
|
|
|
|
|
|
editcap_LIBS= wiretap\libwtap.lib wsock32.lib user32.lib \
|
|
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
|
|
$(GLIB_DIR)\gmodule-$(GLIB_VERSION).lib
|
|
|
|
|
|
|
|
EXECUTABLES=ethereal.exe tethereal.exe editcap.exe
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-04-15 04:10:50 +00:00
|
|
|
RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2000-04-15 04:10:50 +00:00
|
|
|
all: $(EXECUTABLES) $(RESOURCES)
|
|
|
|
|
|
|
|
ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res wiretap gtk plugins
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2000-04-15 04:10:50 +00:00
|
|
|
/OUT:ethereal.exe $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
|
|
|
|
2000-04-15 04:10:50 +00:00
|
|
|
tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res wiretap plugins
|
1999-07-21 17:40:42 +00:00
|
|
|
$(LINK) @<<
|
2000-04-15 04:10:50 +00:00
|
|
|
/OUT:tethereal.exe $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
|
|
|
|
2000-04-15 04:10:50 +00:00
|
|
|
editcap.exe : config.h editcap.obj getopt.obj wiretap image\editcap.res
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2000-04-15 04:10:50 +00:00
|
|
|
/OUT:editcap.exe $(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
|
|
|
|
|
|
|
config.h : config.h.win32
|
|
|
|
copy config.h.win32 $@
|
|
|
|
|
|
|
|
ps.c : rdps.exe print.ps
|
|
|
|
rdps print.ps ps.c
|
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
dfilter-scanner.obj : dfilter-scanner.c dfilter-grammar.h
|
|
|
|
|
|
|
|
dfilter-scanner.c : dfilter-scanner.l
|
2000-04-06 06:18:50 +00:00
|
|
|
$(LEX) -Pdfilter_ -odfilter-scanner.c dfilter-scanner.l
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2000-04-06 06:18:50 +00:00
|
|
|
dfilter-grammar.c dfilter-grammar.h : dfilter-grammar.y
|
2000-02-09 00:41:57 +00:00
|
|
|
$(YACC) $(YACC_OPTS) -d -p dfilter_ dfilter-grammar.y -o dfilter-grammar.c
|
|
|
|
|
2000-04-12 21:52:11 +00:00
|
|
|
#
|
|
|
|
# TODO: Create register.c
|
|
|
|
#
|
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
clean:
|
2000-04-12 21:52:11 +00:00
|
|
|
rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) tethereal.obj editcap.obj
|
2000-04-04 08:22:13 +00:00
|
|
|
cd wiretap
|
|
|
|
nmake -f Makefile.nmake clean
|
|
|
|
cd ../gtk
|
|
|
|
nmake -f Makefile.nmake clean
|
|
|
|
cd ../plugins
|
|
|
|
nmake -f Makefile.nmake clean
|
|
|
|
cd ..
|
2000-02-09 00:41:57 +00:00
|
|
|
|
2000-02-09 19:18:42 +00:00
|
|
|
wiretap::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd wiretap
|
|
|
|
nmake -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2000-02-09 19:18:42 +00:00
|
|
|
gtk::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd gtk
|
|
|
|
nmake -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2000-02-09 19:18:42 +00:00
|
|
|
plugins::
|
2000-02-09 00:41:57 +00:00
|
|
|
cd plugins
|
|
|
|
nmake -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|