forked from osmocom/wireshark
351 lines
7.8 KiB
Makefile
351 lines
7.8 KiB
Makefile
## Makefile for building ethereal.exe with Microsoft C and nmake
|
|
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
#
|
|
# $Id: Makefile.nmake,v 1.93 2001/04/04 01:00:18 guy Exp $
|
|
|
|
include config.nmake
|
|
include <win32.mak>
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
CC = cl
|
|
LINK= link
|
|
|
|
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
|
|
|
|
CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) /I$(GLIB_DIR) /I$(GLIB_DIR)\gmodule \
|
|
/I$(GTK_DIR) /Iepan /Iwiretap /I$(GTK_DIR)\gdk /I$(GTK_DIR)\gdk\win32 \
|
|
/I$(PCAP_DIR)/include
|
|
|
|
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
|
|
|
|
{$S}.c{$O}.obj::
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd$O\ -c $<
|
|
|
|
DISSECTOR_SOURCES = \
|
|
packet-aarp.c \
|
|
packet-afs.c \
|
|
packet-aim.c \
|
|
packet-arp.c \
|
|
packet-ascend.c\
|
|
packet-atalk.c \
|
|
packet-atm.c \
|
|
packet-auto_rp.c \
|
|
packet-bacapp.c \
|
|
packet-bacnet.c \
|
|
packet-bgp.c \
|
|
packet-bootp.c \
|
|
packet-bootparams.c \
|
|
packet-bpdu.c \
|
|
packet-bvlc.c \
|
|
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-esis.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-gtp.c \
|
|
packet-gvrp.c \
|
|
packet-h1.c \
|
|
packet-h261.c \
|
|
packet-hclnfsd.c \
|
|
packet-hsrp.c \
|
|
packet-http.c \
|
|
packet-icmpv6.c\
|
|
packet-icp.c \
|
|
packet-icq.c \
|
|
packet-igrp.c \
|
|
packet-imap.c \
|
|
packet-ip.c \
|
|
packet-ipp.c \
|
|
packet-ipsec.c \
|
|
packet-ipv6.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-hello.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-mpls.c \
|
|
packet-msproxy.c \
|
|
packet-nbipx.c \
|
|
packet-nbns.c \
|
|
packet-ncp.c \
|
|
packet-ncp2222.c \
|
|
packet-netbios.c \
|
|
packet-nfs.c \
|
|
packet-nlm.c \
|
|
packet-nntp.c \
|
|
packet-ntp.c \
|
|
packet-null.c \
|
|
packet-osi.c \
|
|
packet-osi-options.c \
|
|
packet-ospf.c \
|
|
packet-pim.c \
|
|
packet-pop.c \
|
|
packet-portmap.c \
|
|
packet-ppp.c \
|
|
packet-pppoe.c \
|
|
packet-pptp.c \
|
|
packet-q2931.c \
|
|
packet-q931.c \
|
|
packet-quake.c \
|
|
packet-radius.c\
|
|
packet-raw.c \
|
|
packet-rip.c \
|
|
packet-ripng.c \
|
|
packet-rlogin.c \
|
|
packet-rpc.c \
|
|
packet-rquota.c \
|
|
packet-rsh.c \
|
|
packet-rsvp.c \
|
|
packet-rtcp.c \
|
|
packet-rtp.c \
|
|
packet-rtsp.c \
|
|
packet-rx.c \
|
|
packet-sap.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-smb-logon.c \
|
|
packet-smb-mailslot.c \
|
|
packet-smb-pipe.c \
|
|
packet-smtp.c \
|
|
packet-sna.c \
|
|
packet-snmp.c \
|
|
packet-socks.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-telnet.c\
|
|
packet-tftp.c \
|
|
packet-time.c \
|
|
packet-tns.c \
|
|
packet-tpkt.c \
|
|
packet-tr.c \
|
|
packet-trmac.c \
|
|
packet-udp.c \
|
|
packet-v120.c \
|
|
packet-vines.c \
|
|
packet-vlan.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-ypxfr.c \
|
|
packet-zebra.c
|
|
|
|
DISSECTOR_OBJECTS = $(DISSECTOR_SOURCES:.c=.obj)
|
|
|
|
ETHEREAL_COMMON_OBJECTS = \
|
|
asn1.obj \
|
|
capture-wpcap.obj \
|
|
column.obj \
|
|
follow.obj \
|
|
getopt.obj \
|
|
in_cksum.obj \
|
|
ipproto.obj \
|
|
prefs.obj \
|
|
print.obj \
|
|
ps.obj \
|
|
ptvcursor.obj \
|
|
register.obj \
|
|
util.obj \
|
|
xdlc.obj \
|
|
|
|
ethereal_OBJECTS = \
|
|
$(DISSECTOR_OBJECTS) \
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
capture.obj \
|
|
file.obj \
|
|
filters.obj \
|
|
proto_hier_stats.obj \
|
|
summary.obj
|
|
|
|
tethereal_OBJECTS = \
|
|
$(DISSECTOR_OBJECTS) \
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
tethereal.obj
|
|
|
|
dftest_OBJECTS = \
|
|
$(DISSECTOR_OBJECTS) \
|
|
$(ETHEREAL_COMMON_OBJECTS) \
|
|
dftest.obj
|
|
|
|
EXTRA_OBJECTS = \
|
|
# snprintf.obj \
|
|
# strerror.obj \
|
|
mkstemp.obj
|
|
|
|
ethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
gtk\libui.lib epan\ethereal.lib \
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
|
wsock32.lib user32.lib \
|
|
$(GTK_DIR)\gtk\gtk-$(GTK_VERSION).lib \
|
|
$(GTK_DIR)\gdk\gdk-$(GTK_VERSION).lib \
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
# $(PCAP_DIR)\lib\wpcap.lib
|
|
|
|
tethereal_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
epan\ethereal.lib \
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
|
wsock32.lib user32.lib \
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
|
|
editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
wsock32.lib user32.lib \
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
|
|
dftest_LIBS= epan\ethereal.lib \
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
|
wsock32.lib user32.lib \
|
|
$(GLIB_DIR)\glib-$(GLIB_VERSION).lib \
|
|
$(GLIB_DIR)\gmodule\gmodule-$(GLIB_VERSION).lib
|
|
|
|
EXECUTABLES=ethereal.exe tethereal.exe editcap.exe
|
|
|
|
RESOURCES=image\ethereal.res image\tethereal.res image\editcap.res
|
|
|
|
all: tools wiretap gtk epan $(EXECUTABLES) $(RESOURCES)
|
|
|
|
ethereal.exe : config.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk\libui.lib plugins
|
|
@echo Linking $@
|
|
$(LINK) @<<
|
|
/OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
|
|
<<
|
|
|
|
tethereal.exe : config.h $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res wiretap\wiretap-$(WTAP_VERSION).lib plugins
|
|
@echo Linking $@
|
|
$(LINK) @<<
|
|
/OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) image\tethereal.res
|
|
<<
|
|
|
|
editcap.exe : config.h editcap.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\editcap.res
|
|
@echo Linking $@
|
|
$(LINK) @<<
|
|
/OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(editcap_LIBS) image\editcap.res
|
|
<<
|
|
|
|
dftest.exe : $(dftest_OBJECTS) $(EXTRA_OBJECTS)
|
|
$(LINK) @<<
|
|
/OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS) $(EXTRA_OBJECTS)
|
|
<<
|
|
|
|
config.h : config.h.win32
|
|
copy config.h.win32 $@
|
|
|
|
ps.c : rdps.exe print.ps
|
|
rdps print.ps ps.c
|
|
|
|
packet-ncp2222.c : ncp2222.py
|
|
@echo Making packet-ncp2222.c
|
|
$(PYTHON) ncp2222.py > packet-ncp2222.c
|
|
|
|
register.c: $(DISSECTOR_SOURCES)
|
|
@echo Making register.c
|
|
@$(PYTHON) make-reg-dotc.py . $(DISSECTOR_SOURCES)
|
|
# How are ifdef's done in NMAKE? It would be nice
|
|
# to use python if PYTHON is defined, otherwise try to use shell.
|
|
# @sh make-reg-dotc . $(DISSECTOR_SOURCES)
|
|
|
|
clean:
|
|
rm -f $(ethereal_OBJECTS) $(EXTRA_OBJECTS) $(EXECUTABLES) \
|
|
tethereal.obj editcap.obj register.c rdps.obj
|
|
cd wiretap
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
cd ../gtk
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
cd ../epan
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
cd ../plugins
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
cd ../tools
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
cd ..
|
|
|
|
tools::
|
|
cd tools
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|
|
|
|
wiretap::
|
|
cd wiretap
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|
|
|
|
gtk::
|
|
cd gtk
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|
|
|
|
epan::
|
|
cd epan
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|
|
|
|
plugins::
|
|
cd plugins
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
cd ..
|