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
|
|
|
#
|
2001-11-15 21:50:02 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.142 2001/11/15 21:50:02 guy 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 \
|
2000-10-11 07:35:02 +00:00
|
|
|
/I$(GTK_DIR) /Iepan /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
|
2000-02-09 19:18:42 +00:00
|
|
|
/I$(PCAP_DIR)/include
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
|
2000-05-29 20:11:41 +00:00
|
|
|
{$S}.c{$O}.obj::
|
2001-03-23 02:05:29 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd$O\ -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 \
|
|
|
|
packet-afs.c \
|
2000-11-05 23:45:59 +00:00
|
|
|
packet-aim.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-arp.c \
|
|
|
|
packet-ascend.c\
|
|
|
|
packet-atalk.c \
|
|
|
|
packet-atm.c \
|
|
|
|
packet-auto_rp.c \
|
2001-03-31 10:13:13 +00:00
|
|
|
packet-bacapp.c \
|
|
|
|
packet-bacnet.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-10-11 07:35:02 +00:00
|
|
|
packet-bxxp.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 \
|
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 \
|
2001-03-11 02:08:32 +00:00
|
|
|
packet-cups.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-data.c \
|
2001-03-18 02:13:33 +00:00
|
|
|
packet-dcerpc.c \
|
2001-07-11 01:25:45 +00:00
|
|
|
packet-dcerpc-conv.c \
|
|
|
|
packet-dcerpc-epm.c \
|
|
|
|
packet-dcerpc-mgmt.c \
|
|
|
|
packet-dcerpc-remact.c \
|
|
|
|
packet-dcerpc-oxid.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-ddtp.c \
|
2001-01-05 19:00:37 +00:00
|
|
|
packet-dec-bpdu.c \
|
2000-08-12 05:41:10 +00:00
|
|
|
packet-diameter.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 \
|
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 \
|
|
|
|
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 \
|
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 \
|
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 \
|
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 \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-lpd.c \
|
2001-06-21 22:25:53 +00:00
|
|
|
packet-m2pa.c \
|
2001-01-10 09:25:13 +00:00
|
|
|
packet-m3ua.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-mapi.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-11-12 08:58:45 +00:00
|
|
|
packet-msrpc-dfs.c \
|
|
|
|
packet-msrpc-lsa.c \
|
|
|
|
packet-msrpc-netlogon.c \
|
|
|
|
packet-msrpc-reg.c \
|
|
|
|
packet-msrpc-samr.c \
|
|
|
|
packet-msrpc-spoolss.c \
|
|
|
|
packet-msrpc-srvsvc.c \
|
|
|
|
packet-msrpc-wkssvc.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 \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-netbios.c \
|
|
|
|
packet-nfs.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 \
|
|
|
|
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 \
|
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 \
|
|
|
|
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-quakeworld.c \
|
|
|
|
packet-quake2.c \
|
2001-07-22 18:56:37 +00:00
|
|
|
packet-quake3.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 \
|
|
|
|
packet-rpc.c \
|
2001-02-27 19:40:58 +00:00
|
|
|
packet-rquota.c \
|
2000-08-12 05:41:10 +00:00
|
|
|
packet-rsh.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 \
|
|
|
|
packet-sap.c \
|
2000-07-21 13:18:22 +00:00
|
|
|
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 \
|
2000-12-23 08:06:16 +00:00
|
|
|
packet-sll.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 \
|
2000-11-04 03:30:41 +00:00
|
|
|
packet-smtp.c \
|
2000-04-29 07:35:07 +00:00
|
|
|
packet-sna.c \
|
|
|
|
packet-snmp.c \
|
|
|
|
packet-socks.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 \
|
|
|
|
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 \
|
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 \
|
|
|
|
packet-vlan.c \
|
|
|
|
packet-vrrp.c \
|
|
|
|
packet-vtp.c \
|
|
|
|
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 \
|
2001-02-13 00:17:55 +00:00
|
|
|
packet-wap.c \
|
|
|
|
packet-wtls.c \
|
2000-11-04 03:30:41 +00:00
|
|
|
packet-wsp.c \
|
|
|
|
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 \
|
2000-12-17 07:38:14 +00:00
|
|
|
packet-xot.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
|
|
|
|
|
|
|
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-04-03 05:26:27 +00:00
|
|
|
capture-wpcap.obj \
|
2000-01-15 00:23:13 +00:00
|
|
|
column.obj \
|
|
|
|
follow.obj \
|
2000-03-28 20:20:11 +00:00
|
|
|
getopt.obj \
|
2000-12-13 02:24:23 +00:00
|
|
|
in_cksum.obj \
|
2001-10-29 21:13:13 +00:00
|
|
|
int-64bit.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 \
|
|
|
|
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) \
|
|
|
|
tethereal.obj
|
|
|
|
|
2001-02-11 03:19:45 +00:00
|
|
|
dftest_OBJECTS = \
|
|
|
|
$(DISSECTOR_OBJECTS) \
|
|
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
|
|
dftest.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 \
|
2001-04-03 05:26:27 +00:00
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
|
|
# $(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 \
|
2001-04-03 05:26:27 +00:00
|
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).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
|
|
|
|
|
2001-02-11 03:19:45 +00:00
|
|
|
dftest_LIBS= epan\ethereal.lib \
|
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(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
|
|
|
|
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
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) 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
|
|
|
<<
|
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) 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-05-21 05:04:49 +00:00
|
|
|
text2pcap.exe : config.h text2pcap.obj text2pcap-scanner.obj getopt.obj image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2001-05-21 05:04:49 +00:00
|
|
|
/OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.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
|
|
|
<<
|
|
|
|
|
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
|
2001-01-11 07:21:35 +00:00
|
|
|
@echo Making packet-ncp2222.c
|
2000-07-28 20:03:59 +00:00
|
|
|
$(PYTHON) ncp2222.py > packet-ncp2222.c
|
|
|
|
|
2001-05-11 00:39:57 +00:00
|
|
|
register.c: $(DISSECTOR_SRC)
|
2000-04-29 07:35:07 +00:00
|
|
|
@echo Making register.c
|
2001-05-11 00:39:57 +00:00
|
|
|
@$(PYTHON) make-reg-dotc.py . $(DISSECTOR_SRC)
|
2001-01-11 07:21:35 +00:00
|
|
|
# How are ifdef's done in NMAKE? It would be nice
|
|
|
|
# to use python if PYTHON is defined, otherwise try to use shell.
|
2001-05-11 00:39:57 +00:00
|
|
|
# @sh make-reg-dotc . $(DISSECTOR_SRC)
|
2000-04-12 21:52:11 +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:
|
2000-04-29 07:35:07 +00:00
|
|
|
rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) \
|
2001-07-12 19:59:41 +00:00
|
|
|
tethereal.obj editcap.obj mergecap.obj text2pcap.obj \
|
2001-11-09 09:22:07 +00:00
|
|
|
text2pcap-scanner.obj text2pcap-scanner.c register.c \
|
|
|
|
rdps.obj config.h ps.c packet-ncp2222.c register.c
|
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
|
2001-02-02 04:03:43 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
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 ..
|