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
|
|
|
#
|
2004-04-23 05:19:49 +00:00
|
|
|
# $Id: Makefile.nmake,v 1.415 2004/04/23 05:19:49 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
|
|
|
|
2004-01-24 20:01:36 +00:00
|
|
|
CFLAGS=-DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
|
2003-11-07 23:27:13 +00:00
|
|
|
$(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
|
2002-10-09 03:07:34 +00:00
|
|
|
/I$(NET_SNMP_DIR)\include /I$(NET_SNMP_DIR)\win32 \
|
2003-12-07 00:04:32 +00:00
|
|
|
$(ADNS_CFLAGS) $(PCRE_CFLAGS) -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::
|
2004-03-02 01:21:56 +00:00
|
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
2000-05-29 20:11:41 +00:00
|
|
|
|
2004-02-22 08:30:41 +00:00
|
|
|
PLATFORM_SRC = capture-wpcap.c
|
|
|
|
|
2004-01-21 21:46:59 +00:00
|
|
|
include Makefile.common
|
2000-04-29 07:35:07 +00:00
|
|
|
|
2004-03-22 20:35:07 +00:00
|
|
|
include epan\Makefile.common
|
2004-02-22 08:30:41 +00:00
|
|
|
|
2004-04-23 05:19:49 +00:00
|
|
|
BUILT_SOURCES = $(BUILT_SOURCES) \
|
|
|
|
cvsversion.h
|
|
|
|
|
2004-03-22 20:35:07 +00:00
|
|
|
DISSECTOR_SRC = $(DISSECTOR_SRC:../=)
|
|
|
|
DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj)
|
2004-02-22 08:30:41 +00:00
|
|
|
|
2004-03-22 20:35:07 +00:00
|
|
|
DISSECTOR_SUPPORT_SRC = $(DISSECTOR_SUPPORT_SRC:../=)
|
|
|
|
DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
|
|
|
|
|
|
|
|
# remove register.obj from "DISSECTOR_SUPPORT_OBJECTS".
|
|
|
|
# creation and compilation of register.c has been moved to epan.
|
|
|
|
DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_OBJECTS:register.obj=)
|
|
|
|
|
|
|
|
ethereal_OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) $(ethereal_SOURCES:.c=.obj)
|
|
|
|
|
|
|
|
tethereal_OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) $(tethereal_SOURCES:.c=.obj)
|
|
|
|
|
|
|
|
dftest_OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) $(dftest_SOURCES:.c=.obj)
|
2004-02-22 08:30:41 +00:00
|
|
|
|
|
|
|
randpkt_OBJECTS = $(randpkt_SOURCES:.c=.obj)
|
2002-10-16 14:45:27 +00:00
|
|
|
|
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 \
|
2004-01-24 20:01:36 +00:00
|
|
|
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 \
|
2003-06-15 23:04:47 +00:00
|
|
|
$(ADNS_LIBS) \
|
2003-12-07 00:04:32 +00:00
|
|
|
$(PCRE_LIBS) \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2003-12-05 16:00:34 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\netsnmp.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 \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS) \
|
2003-06-15 23:04:47 +00:00
|
|
|
$(ADNS_LIBS) \
|
2003-12-07 00:04:32 +00:00
|
|
|
$(PCRE_LIBS) \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2003-12-05 16:00:34 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\netsnmp.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 \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS)
|
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 \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS)
|
2001-07-12 19:59:41 +00:00
|
|
|
|
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 \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(GLIB_LIBS) \
|
2004-02-23 22:45:24 +00:00
|
|
|
$(ADNS_LIBS) \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(PCRE_LIBS) \
|
2004-02-23 22:45:24 +00:00
|
|
|
$(ZLIB_LIBS) \
|
|
|
|
$(NET_SNMP_DIR)\win32\lib\netsnmp.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 \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS) \
|
2003-12-05 16:00:34 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\netsnmp.lib
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2004-02-06 18:47:45 +00:00
|
|
|
EXECUTABLES=ethereal.exe ethereal-gtk2.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
|
|
|
|
2004-01-24 20:01:36 +00:00
|
|
|
all: tools wiretap epan image $(EXECUTABLES) $(RESOURCES) doc
|
2000-04-15 04:10:50 +00:00
|
|
|
|
2004-01-26 21:12:41 +00:00
|
|
|
packaging: all
|
|
|
|
cd packaging
|
|
|
|
cd nsis
|
2004-02-18 20:45:54 +00:00
|
|
|
nmake -f makefile.nmake
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
seperate_packaging: all
|
|
|
|
cd packaging
|
|
|
|
cd nsis
|
2004-01-26 21:12:41 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2004-02-18 20:45:54 +00:00
|
|
|
nmake -f makefile.nmake GTK1_ONLY="USE"
|
2004-01-26 21:12:41 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2004-02-18 20:45:54 +00:00
|
|
|
nmake -f makefile.nmake GTK2_ONLY="USE"
|
2004-01-26 21:12:41 +00:00
|
|
|
!ENDIF
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(RESOURCES): image
|
|
|
|
|
|
|
|
wiretap\wiretap-$(WTAP_VERSION).lib: wiretap
|
|
|
|
|
2004-01-24 20:01:36 +00:00
|
|
|
!IFNDEF GTK1_DIR
|
|
|
|
ethereal.exe :
|
|
|
|
!ELSE
|
2004-01-17 18:52:07 +00:00
|
|
|
ethereal.exe : config.h cvsversion.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) @<<
|
2004-01-24 20:01:36 +00:00
|
|
|
/OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK1_LIBS) gtk\libui.lib $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
|
|
|
|
<<
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF GTK2_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
ethereal-gtk2.exe :
|
2004-01-24 20:01:36 +00:00
|
|
|
!ELSE
|
2004-02-06 18:47:45 +00:00
|
|
|
ethereal-gtk2.exe : config.h cvsversion.h $(ethereal_OBJECTS) $(EXTRA_OBJECTS) epan gtk2 image\ethereal.res wiretap\wiretap-$(WTAP_VERSION).lib gtk2.tmp\libui.lib plugins
|
2004-01-24 20:01:36 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2004-02-06 18:47:45 +00:00
|
|
|
/OUT:ethereal-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK2_LIBS) gtk2.tmp\libui.lib $(ethereal_OBJECTS) $(EXTRA_OBJECTS) image\ethereal.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
2004-01-24 20:01:36 +00:00
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2004-01-17 18:52:07 +00:00
|
|
|
tethereal.exe : config.h cvsversion.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
|
|
|
|
2004-01-17 18:52:07 +00:00
|
|
|
mergecap.exe : config.h cvsversion.h mergecap.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
|
2001-07-12 19:59:41 +00:00
|
|
|
@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)
|
|
|
|
<<
|
|
|
|
|
2003-06-12 09:45:42 +00:00
|
|
|
config.h : config.h.win32 config.nmake
|
2003-10-10 09:48:54 +00:00
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
-e "s/@HAVE_GNU_ADNS@/$(ADNS_CONFIG)/" \
|
2003-12-07 00:04:32 +00:00
|
|
|
-e "s/@HAVE_PCRE@/$(PCRE_CONFIG)/" \
|
2003-11-07 23:27:13 +00:00
|
|
|
-e "s/@HAVE_LIBZ@/$(ZLIB_CONFIG)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
-e "s/@HAVE_LIBPCAP@/$(WINPCAP_CONFIG)/" \
|
|
|
|
-e "s/@HAVE_PCAP_FINDALLDEVS@/$(PCAP_FINDALLDEVS_CONFIG)/" \
|
|
|
|
-e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
|
|
|
|
< config.h.win32 > $@
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
ps.c : rdps.exe print.ps
|
|
|
|
rdps print.ps ps.c
|
|
|
|
|
2004-01-17 00:26:30 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build the version string
|
|
|
|
#
|
|
|
|
cvsversion.h:
|
2004-01-17 13:09:00 +00:00
|
|
|
$(PERL) make-version.pl
|
2004-01-17 00:26:30 +00:00
|
|
|
|
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 "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
|
|
|
|
|
2004-01-24 20:01:36 +00:00
|
|
|
gtk2_distclean:
|
|
|
|
rm -f gtk2.tmp/*.*
|
|
|
|
if exist gtk2.tmp rmdir gtk2.tmp
|
|
|
|
|
|
|
|
clean: gtk2_distclean
|
2002-11-10 20:53:06 +00:00
|
|
|
rm -f $(ethereal_OBJECTS) $(tethereal_OBJECTS) $(EXTRA_OBJECTS) \
|
|
|
|
$(EXECUTABLES) $(PDB_FILE) \
|
2004-03-02 18:55:30 +00:00
|
|
|
editcap.obj mergecap.obj text2pcap.obj getopt.obj\
|
2003-10-10 21:31:53 +00:00
|
|
|
text2pcap-scanner.obj text2pcap-scanner.c 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
|
2003-11-18 23:40:12 +00:00
|
|
|
cd ../help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2003-11-24 17:41:33 +00:00
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2002-01-04 21:20:20 +00:00
|
|
|
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.
|
2004-01-24 20:01:36 +00:00
|
|
|
distclean: clean gtk2_distclean
|
2004-01-18 03:55:02 +00:00
|
|
|
rm -f $(BUILT_SOURCES) \
|
2004-03-02 01:21:56 +00:00
|
|
|
packet-ncp2222.c tethereal-tap-register.c
|
2003-10-10 21:31:53 +00:00
|
|
|
cd wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../gtk
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../epan
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../tools
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
cd ../doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-11-18 23:40:12 +00:00
|
|
|
cd ../help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-11-24 17:41:33 +00:00
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-10-10 21:31:53 +00:00
|
|
|
cd ../..
|
2002-09-10 08:28:14 +00:00
|
|
|
|
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 ..
|
|
|
|
|
2004-01-19 21:00:13 +00:00
|
|
|
gtk:: help config.h cvsversion.h
|
2000-02-09 00:41:57 +00:00
|
|
|
cd gtk
|
2004-01-24 20:01:36 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK1_CFLAGS)" GTK_LIBS="$(GTK1_LIBS)" libui.lib
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
# copy all required files to gtk2.tmp (but only when newer than existing) and compile in that dir
|
2004-01-31 12:19:58 +00:00
|
|
|
gtk2:: help config.h cvsversion.h
|
2004-01-24 20:01:36 +00:00
|
|
|
if not exist gtk2.tmp mkdir gtk2.tmp
|
|
|
|
cd gtk
|
|
|
|
cp --update --preserve Makefile.* *.c *.h ..\gtk2.tmp
|
|
|
|
cd ..\gtk2.tmp
|
|
|
|
$(MAKE) /$(MAKEFLAGS) /f Makefile.nmake GTK_CFLAGS="$(GTK2_CFLAGS)" GTK_LIBS="$(GTK2_LIBS)" libui.lib
|
2000-02-09 00:41:57 +00:00
|
|
|
cd ..
|
|
|
|
|
2004-03-02 18:55:30 +00:00
|
|
|
epan:: packet-ncp2222.c x11-declarations.h x11-register-info.h
|
2000-10-11 07:35:02 +00:00
|
|
|
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 ..
|
2003-11-18 23:40:12 +00:00
|
|
|
|
2003-12-08 22:28:53 +00:00
|
|
|
doc::
|
|
|
|
cd doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
|
|
|
|
2003-11-18 23:40:12 +00:00
|
|
|
help::
|
|
|
|
cd help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
cd ..
|
2004-04-08 20:36:09 +00:00
|
|
|
|
|
|
|
REQUIRED_APPS=\
|
2004-04-09 07:38:38 +00:00
|
|
|
$(SH) \
|
|
|
|
$(YACC) \
|
|
|
|
$(LEX) \
|
2004-04-08 20:36:09 +00:00
|
|
|
grep \
|
2004-04-09 07:38:38 +00:00
|
|
|
$(PERL) \
|
|
|
|
$(PYTHON) \
|
2004-04-08 20:36:09 +00:00
|
|
|
sed \
|
|
|
|
unzip \
|
|
|
|
wget
|
|
|
|
|
2004-04-09 07:38:38 +00:00
|
|
|
verify_apps:
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --appverify $(REQUIRED_APPS)
|
2004-04-09 07:38:38 +00:00
|
|
|
|
|
|
|
setup: verify_apps
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
glib glib-2.2.3-20040116.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
glib glib-dev-2.2.3-20040116.zip
|
2004-04-10 07:29:14 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk+ gtk+-1.3.0-20030717.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk+ gtk+-dev-1.3.0-20030115.zip
|
2004-04-10 07:29:14 +00:00
|
|
|
!ENDIF
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gettext-runtime-0.13.1 gettext-runtime-0.13.1.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!IFDEF NET_SNMP_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
. net-snmp-5.1.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF PCAP_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
. wpdpack_3_0.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ADNS_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
. adns-1.0-win32-03.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF PCRE_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
. pcre-4.4.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ZLIB_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
zlib121-dll zlib121-dll.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2/gtk+-2.2.4-20040124.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2/pango-1.2.5-20040124.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2/pango-dev-1.2.5-20040124.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2/atk-1.4.0.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2/atk-dev-1.4.0.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk-wimp gtk2/gtk-wimp-0.5.3-bin.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
@echo.
|
2004-04-08 20:36:09 +00:00
|
|
|
@echo Ethereal is ready to build.
|
2004-04-23 05:19:49 +00:00
|
|
|
|
|
|
|
update_plugin_api: config.h
|
|
|
|
cd plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake xyzzy
|
|
|
|
cd ..
|
|
|
|
|