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-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
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 \
|
2005-02-13 00:10:15 +00:00
|
|
|
$(ADNS_CFLAGS) $(PCRE_CFLAGS) -D_U_="" -D_NEED_VAR_IMPORT_
|
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
|
|
|
|
2005-05-20 22:16:47 +00:00
|
|
|
PLATFORM_SRC = capture-wpcap.c capture_wpcap_packet.c
|
2004-02-22 08:30:41 +00:00
|
|
|
|
2004-01-21 21:46:59 +00:00
|
|
|
include Makefile.common
|
2000-04-29 07:35:07 +00:00
|
|
|
|
2004-05-09 10:03:41 +00:00
|
|
|
ethereal_OBJECTS = $(ethereal_SOURCES:.c=.obj)
|
|
|
|
tethereal_OBJECTS = $(tethereal_SOURCES:.c=.obj)
|
|
|
|
dftest_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
|
|
|
|
2004-12-01 11:35:27 +00:00
|
|
|
command_line_OBJECTS = setargv.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 \
|
2004-06-21 17:27:35 +00:00
|
|
|
wsock32.lib user32.lib shell32.lib \
|
2004-10-15 18:30:05 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!IFDEF ENABLE_LIBETHEREAL
|
|
|
|
epan\libethereal.lib \
|
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.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 \
|
2003-06-15 23:04:47 +00:00
|
|
|
$(ADNS_LIBS) \
|
2003-12-07 00:04:32 +00:00
|
|
|
$(PCRE_LIBS) \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(ZLIB_LIBS)
|
|
|
|
!ENDIF
|
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 \
|
2000-10-11 07:35:02 +00:00
|
|
|
wsock32.lib user32.lib \
|
2003-06-14 20:45:29 +00:00
|
|
|
$(GLIB_LIBS) \
|
2004-10-15 18:30:05 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!IFDEF ENABLE_LIBETHEREAL
|
|
|
|
epan\libethereal.lib \
|
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
epan\ethereal.lib \
|
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
2003-06-15 23:04:47 +00:00
|
|
|
$(ADNS_LIBS) \
|
2003-12-07 00:04:32 +00:00
|
|
|
$(PCRE_LIBS) \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(ZLIB_LIBS)
|
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2004-10-20 18:50:58 +00:00
|
|
|
capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2004-07-28 20:51:29 +00:00
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
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
|
|
|
|
2004-05-09 10:03:41 +00:00
|
|
|
dftest_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2001-02-11 03:19:45 +00:00
|
|
|
wsock32.lib user32.lib \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(GLIB_LIBS) \
|
2004-10-15 18:30:05 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!IFDEF ENABLE_LIBETHEREAL
|
|
|
|
epan\libethereal.lib \
|
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
epan\ethereal.lib \
|
|
|
|
epan\dfilter\dfilter.lib epan\ftypes\ftypes.lib \
|
2004-02-23 22:45:24 +00:00
|
|
|
$(ADNS_LIBS) \
|
2004-02-13 02:03:14 +00:00
|
|
|
$(PCRE_LIBS) \
|
2004-05-09 10:03:41 +00:00
|
|
|
$(ZLIB_LIBS)
|
|
|
|
!ENDIF
|
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) \
|
2004-10-15 18:30:05 +00:00
|
|
|
$(NET_SNMP_DIR)\win32\lib\release\netsnmp.lib
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2004-07-28 21:13:27 +00:00
|
|
|
EXECUTABLES=ethereal.exe ethereal-gtk2.exe tethereal.exe \
|
2005-07-26 16:54:08 +00:00
|
|
|
capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2004-07-28 21:13:27 +00:00
|
|
|
RESOURCES=image\ethereal.res image\libethereal.res image\tethereal.res \
|
2004-10-20 18:50:58 +00:00
|
|
|
image\capinfos.res image\editcap.res image\mergecap.res \
|
2004-07-28 21:13:27 +00:00
|
|
|
image\text2pcap.res image\wiretap.res
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2004-07-17 12:49:34 +00:00
|
|
|
all: config.h tools image wiretap epan $(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 ..
|
|
|
|
|
2004-05-13 20:54:39 +00:00
|
|
|
separate_packaging: all
|
2004-02-18 20:45:54 +00:00
|
|
|
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-10-02 01:54:35 +00:00
|
|
|
ethereal.exe : config.h svnversion.h $(ethereal_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-10-02 01:54:35 +00:00
|
|
|
/OUT:ethereal.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK1_LIBS) gtk\libui.lib $(ethereal_OBJECTS) image\ethereal.res
|
2004-01-24 20:01:36 +00:00
|
|
|
<<
|
|
|
|
!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-10-02 01:54:35 +00:00
|
|
|
ethereal-gtk2.exe : config.h svnversion.h $(ethereal_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-10-02 01:54:35 +00:00
|
|
|
/OUT:ethereal-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /SUBSYSTEM:windows $(ethereal_LIBS) $(GTK2_LIBS) gtk2.tmp\libui.lib $(ethereal_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-10-02 01:54:35 +00:00
|
|
|
tethereal.exe : config.h svnversion.h $(tethereal_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) @<<
|
2004-12-01 11:35:27 +00:00
|
|
|
/OUT:tethereal.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(tethereal_LIBS) $(tethereal_OBJECTS) $(command_line_OBJECTS) image\tethereal.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
|
|
|
|
2004-10-20 18:50:58 +00:00
|
|
|
capinfos.exe : config.h capinfos.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
|
2004-07-28 20:51:29 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2004-12-01 11:35:27 +00:00
|
|
|
/OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj $(command_line_OBJECTS) $(capinfos_LIBS) image\capinfos.res
|
2004-07-28 20:51:29 +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) @<<
|
2004-12-01 11:35:27 +00:00
|
|
|
/OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj $(command_line_OBJECTS) $(editcap_LIBS) image\editcap.res
|
1999-07-21 17:40:42 +00:00
|
|
|
<<
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2004-07-15 21:09:33 +00:00
|
|
|
mergecap.exe : config.h svnversion.h mergecap.obj merge.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib image\mergecap.res
|
2001-07-12 19:59:41 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2004-12-01 11:35:27 +00:00
|
|
|
/OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(command_line_OBJECTS) $(mergecap_LIBS) image\mergecap.res
|
2001-07-12 19:59:41 +00:00
|
|
|
<<
|
|
|
|
|
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) @<<
|
2004-12-01 11:35:27 +00:00
|
|
|
/OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj strptime.obj $(command_line_OBJECTS) image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
<<
|
|
|
|
|
2004-10-02 01:54:35 +00:00
|
|
|
dftest.exe : $(dftest_OBJECTS) epan
|
2001-02-11 03:19:45 +00:00
|
|
|
$(LINK) @<<
|
2004-10-02 01:54:35 +00:00
|
|
|
/OUT:dftest.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dftest_LIBS) $(dftest_OBJECTS)
|
2001-02-11 03:19:45 +00:00
|
|
|
<<
|
|
|
|
|
2004-10-02 01:54:35 +00:00
|
|
|
randpkt.exe : $(randpkt_OBJECTS)
|
2002-10-16 14:45:27 +00:00
|
|
|
$(LINK) @<<
|
2004-12-01 11:35:27 +00:00
|
|
|
/OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) $(command_line_OBJECTS)
|
2002-10-16 14:45:27 +00:00
|
|
|
<<
|
|
|
|
|
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)/" \
|
2004-10-15 15:36:12 +00:00
|
|
|
-e "s/@HAVE_NETTLE@/$(NETTLE_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)/" \
|
2004-09-23 17:54:49 +00:00
|
|
|
-e "s/@HAVE_PCAP_DATALINK_NAME_TO_VAL@/$(PCAP_DATALINK_NAME_TO_VAL_CONFIG)/" \
|
|
|
|
-e "s/@HAVE_PCAP_DATALINK_VAL_TO_NAME@/$(PCAP_DATALINK_VAL_TO_NAME_CONFIG)/" \
|
2004-05-09 10:03:41 +00:00
|
|
|
-e "s/@HAVE_LIBETHEREALDLL@/$(LIBETHEREAL_CONFIG)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
-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
|
|
|
|
#
|
2004-07-15 21:09:33 +00:00
|
|
|
svnversion.h:
|
2004-01-17 13:09:00 +00:00
|
|
|
$(PERL) make-version.pl
|
2004-01-17 00:26:30 +00:00
|
|
|
|
2004-05-21 17:25:32 +00:00
|
|
|
#
|
|
|
|
# Build the short version of the authors file for the about dialog
|
|
|
|
#
|
2004-10-17 23:03:11 +00:00
|
|
|
AUTHORS-SHORT: AUTHORS make-authors-short.pl
|
|
|
|
$(PERL) perlnoutf.pl make-authors-short.pl < AUTHORS > AUTHORS-SHORT
|
2004-05-21 17:25:32 +00:00
|
|
|
|
2004-10-17 23:03:11 +00:00
|
|
|
#
|
|
|
|
# Build the short version of the authors file with formatting codes for
|
|
|
|
# the man page
|
|
|
|
#
|
|
|
|
AUTHORS-SHORT-FORMAT: AUTHORS-SHORT make-authors-format.pl
|
|
|
|
$(PERL) perlnoutf.pl make-authors-format.pl < AUTHORS-SHORT > AUTHORS-SHORT-FORMAT
|
2004-05-21 17:25:32 +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-10-20 18:50:58 +00:00
|
|
|
capinfos.obj editcap.obj mergecap.obj text2pcap.obj getopt.obj\
|
2003-10-10 21:31:53 +00:00
|
|
|
text2pcap-scanner.obj text2pcap-scanner.c rdps.obj \
|
2004-07-21 22:12:49 +00:00
|
|
|
rdps.pdb rdps.exe rdps.ilk config.h ps.c AUTHORS-SHORT \
|
2004-10-17 23:03:11 +00:00
|
|
|
AUTHORS-SHORT-FORMAT \
|
2004-07-21 22:12:49 +00:00
|
|
|
dftest.obj dftest.exe randpkt.obj randpkt.ext doxygen.cfg \
|
2005-05-31 20:42:15 +00:00
|
|
|
$(RESOURCES) libethereal.dll wiretap-$(WTAP_VERSION).dll
|
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
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
# "distclean" removes all files not part of the distribution.
|
|
|
|
# It does not remove generated files that are part of the distribution.
|
2004-01-24 20:01:36 +00:00
|
|
|
distclean: clean gtk2_distclean
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
rm -f config.h $(BUILT_SOURCES)
|
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
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
# Make "maintainer-clean" only if you would like to remove ALL generated
|
|
|
|
# files.
|
|
|
|
# Be sure to have python and perl installed to regenerate them.
|
|
|
|
maintainer-clean: distclean
|
|
|
|
rm -f $(GENERATED_FILES)
|
|
|
|
cd wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../gtk
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../epan
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../tools
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../image
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../doc
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../help
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../packaging/nsis
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../..
|
|
|
|
|
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-07-15 21:09:33 +00:00
|
|
|
gtk:: help config.h svnversion.h AUTHORS-SHORT doxygen
|
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-07-15 21:09:33 +00:00
|
|
|
gtk2:: help config.h svnversion.h AUTHORS-SHORT
|
2004-01-24 20:01:36 +00:00
|
|
|
if not exist gtk2.tmp mkdir gtk2.tmp
|
|
|
|
cd gtk
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy Makefile.* ..\gtk2.tmp /d
|
|
|
|
xcopy *.c ..\gtk2.tmp /d
|
|
|
|
xcopy *.h ..\gtk2.tmp /d
|
2004-01-24 20:01:36 +00:00
|
|
|
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 ..
|
|
|
|
|
2005-02-13 00:10:15 +00:00
|
|
|
epan:: $(RESOURCES) $(BUILT_SOURCES) doxygen
|
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
|
|
|
|
2004-07-13 19:30:02 +00:00
|
|
|
doxygen.cfg: config.nmake doxygen.cfg.in
|
|
|
|
sed -e s/@VERSION@/$(VERSION)/ \
|
|
|
|
< doxygen.cfg.in > $@
|
|
|
|
|
|
|
|
doxygen-run:
|
|
|
|
!IFDEF DOXYGEN
|
|
|
|
$(DOXYGEN) doxygen.cfg
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
doxygen: doxygen.cfg doxygen-run
|
|
|
|
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
|
|
|
# Prepare build environment by downloading and installing required libraries
|
|
|
|
################################################################################
|
|
|
|
|
2004-09-01 11:53:28 +00:00
|
|
|
REQUIRED_TOOLS=\
|
2005-08-05 08:34:47 +00:00
|
|
|
$(CC) \
|
|
|
|
$(LINK) \
|
|
|
|
nmake \
|
2004-04-09 07:38:38 +00:00
|
|
|
$(SH) \
|
|
|
|
$(YACC) \
|
|
|
|
$(LEX) \
|
2005-07-07 21:26:09 +00:00
|
|
|
env \
|
2004-04-08 20:36:09 +00:00
|
|
|
grep \
|
2005-08-05 08:34:47 +00:00
|
|
|
find \
|
2004-04-09 07:38:38 +00:00
|
|
|
$(PERL) \
|
|
|
|
$(PYTHON) \
|
2004-04-08 20:36:09 +00:00
|
|
|
sed \
|
|
|
|
unzip \
|
|
|
|
wget
|
|
|
|
|
2004-09-01 11:53:28 +00:00
|
|
|
verify_tools:
|
|
|
|
@$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
|
2004-04-09 07:38:38 +00:00
|
|
|
|
2004-09-12 10:07:23 +00:00
|
|
|
# Download and install all the required libraries into ETHEREAL_LIBS.
|
|
|
|
# If you used this setup target before, consider doing a clean_setup.
|
2004-09-01 11:53:28 +00:00
|
|
|
setup: verify_tools
|
2005-10-21 18:47:04 +00:00
|
|
|
!IF "$(GTK2_INST_VERSION)" == "2.6"
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
glib gtk2.6/glib-2.6.6.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
glib gtk2.6/glib-dev-2.6.6.zip
|
|
|
|
!ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
|
2004-06-20 20:22:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2004-10-16 11:17:57 +00:00
|
|
|
glib gtk2.4/glib-2.4.7.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2004-10-16 11:17:57 +00:00
|
|
|
glib gtk2.4/glib-dev-2.4.7.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
!ELSE
|
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-06-20 20:22:09 +00:00
|
|
|
!ENDIF
|
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)" \
|
2005-07-15 20:50:34 +00:00
|
|
|
. net-snmp-5.2.1.2.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)" \
|
2005-09-22 23:18:34 +00:00
|
|
|
. WpdPack_3_1.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)" \
|
2004-10-16 11:17:57 +00:00
|
|
|
. adns-1.0-win32-04.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)" \
|
2005-09-06 19:48:57 +00:00
|
|
|
pcre-6.3 pcre-6.3-bin.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
pcre-6.3 pcre-6.3-lib.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)" \
|
2005-07-24 13:54:19 +00:00
|
|
|
zlib123-dll zlib123-dll.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2005-10-21 18:47:04 +00:00
|
|
|
!IF "$(GTK2_INST_VERSION)" == "2.6"
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2.6/gtk+-2.6.9.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2.6/gtk+-dev-2.6.9.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2.6/atk-1.9.0.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2.6/atk-dev-1.9.0.zip
|
|
|
|
!ELSEIF "$(GTK2_INST_VERSION)" == "2.4"
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2005-01-17 16:45:15 +00:00
|
|
|
gtk2 gtk2.4/gtk+-2.4.14.zip
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2005-01-17 16:45:15 +00:00
|
|
|
gtk2 gtk2.4/gtk+-dev-2.4.14.zip
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2004-06-20 20:22:09 +00:00
|
|
|
gtk2 gtk2.4/atk-1.6.0.zip
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2004-06-20 20:22:09 +00:00
|
|
|
gtk2 gtk2.4/atk-dev-1.6.0.zip
|
|
|
|
!ELSE
|
|
|
|
@$(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
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(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
|
2004-05-14 16:23:38 +00:00
|
|
|
!ENDIF
|
2005-10-21 18:47:04 +00:00
|
|
|
!IF "$(PANGO_INST_VERSION)" == "1.8"
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2.6/pango-1.8.2.zip
|
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
|
|
|
gtk2 gtk2.6/pango-dev-1.8.2.zip
|
|
|
|
!ELSEIF "$(PANGO_INST_VERSION)" == "1.4"
|
2004-06-20 20:22:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2004-08-06 16:25:59 +00:00
|
|
|
gtk2 gtk2.4/pango-1.4.1.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2004-08-06 16:25:59 +00:00
|
|
|
gtk2 gtk2.4/pango-dev-1.4.1.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
!ELSE
|
|
|
|
@$(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
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2004-05-14 16:23:38 +00:00
|
|
|
!IFDEF GTK_WIMP_DIR
|
2004-04-08 20:36:09 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --download "$(ETHEREAL_LIBS)" \
|
2005-07-26 16:44:57 +00:00
|
|
|
gtk-wimp gtk-wimp/gtk-wimp-0.6.2-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
|
|
|
|
2004-09-12 10:07:23 +00:00
|
|
|
# Cleanup files installed by the setup target. It will not remove the
|
|
|
|
# downloaded zip files.
|
|
|
|
clean_setup:
|
|
|
|
rm -r -f $(ETHEREAL_LIBS)/glib
|
|
|
|
rm -r -f $(ETHEREAL_LIBS)/gtk+
|
|
|
|
rm -r -f $(ETHEREAL_LIBS)/libiconv-1.9.1.bin.woe32
|
|
|
|
rm -r -f $(ETHEREAL_LIBS)/gettext-runtime-0.13.1
|
2005-07-24 13:54:19 +00:00
|
|
|
rm -r -f $(ETHEREAL_LIBS)/zlib123-dll
|
2004-09-12 10:07:23 +00:00
|
|
|
rm -r -f $(ETHEREAL_LIBS)/gtk2
|
|
|
|
rm -r -f $(ETHEREAL_LIBS)/gtk-wimp
|
|
|
|
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
|
|
|
# Prepare the source tree for running (t)ethereal directly from there.
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# "install-deps" will copy all dlls needed to run (t)ethereal
|
|
|
|
# to the source tree, so you can run (t)ethereal directly from there.
|
|
|
|
# Note that the gtk2 version of ethereal is called ethereal-gtk2.exe
|
|
|
|
|
2005-09-06 18:41:25 +00:00
|
|
|
install-deps: clean-deps install-gtk1-deps install-gtk2-deps
|
2005-05-03 01:03:33 +00:00
|
|
|
cd plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-plugins
|
|
|
|
cd ..
|
2005-05-01 23:03:45 +00:00
|
|
|
|
|
|
|
install-gtk2-deps: install-required-deps
|
|
|
|
!IFDEF GTK2_DIR
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(GTK2_DIR)\bin\libgdk-win32-2.0-0.dll . /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libgdk_pixbuf-2.0-0.dll . /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libgtk-win32-2.0-0.dll . /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libatk-1.0-0.dll . /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libpango-1.0-0.dll . /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libpangowin32-1.0-0.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
mkdir etc
|
|
|
|
mkdir etc\gtk-2.0
|
|
|
|
mkdir etc\pango
|
|
|
|
mkdir lib
|
|
|
|
mkdir lib\gtk-2.0
|
2005-10-21 18:47:04 +00:00
|
|
|
mkdir lib\gtk-2.0\$(GTK2_LIB_DIR)
|
|
|
|
mkdir lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders
|
|
|
|
mkdir lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules
|
2005-05-01 23:03:45 +00:00
|
|
|
mkdir lib\pango
|
2005-10-21 18:47:04 +00:00
|
|
|
mkdir lib\pango\$(PANGO_LIB_DIR)
|
|
|
|
mkdir lib\pango\$(PANGO_LIB_DIR)\modules
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(GTK2_DIR)\etc\gtk-2.0\*.* etc\gtk-2.0 /d
|
|
|
|
xcopy $(GTK2_DIR)\etc\pango\pango.* etc\pango /d
|
2005-10-21 18:47:04 +00:00
|
|
|
xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders\libpixbufloader-*.dll lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders /d
|
|
|
|
xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules\im-*.dll lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules /d
|
|
|
|
xcopy $(GTK2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll lib\pango\$(PANGO_LIB_DIR)\modules /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
install-gtk1-deps: install-required-deps
|
|
|
|
!IFDEF GTK1_DIR
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(GTK1_DIR)\lib\libgtk-0.dll . /d
|
|
|
|
xcopy $(GTK1_DIR)\lib\libgdk-0.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
install-required-deps:
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy wiretap\wiretap-$(WTAP_VERSION).dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!IFDEF ENABLE_LIBETHEREAL
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy epan\libethereal.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll . /d
|
|
|
|
xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll . /d
|
|
|
|
xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll . /d
|
|
|
|
xcopy $(ICONV_DIR)\bin\iconv.dll . /d
|
|
|
|
xcopy $(GETTEXT_DIR)\bin\intl.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(ZLIB_DIR)\zlib1.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ADNS_DIR
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(ADNS_DIR)\adns_win32\LIB\adns_dll.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF PCRE_DIR
|
2005-09-07 13:26:23 +00:00
|
|
|
xcopy $(PCRE_DIR)\bin\pcre.dll . /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2005-09-06 18:41:25 +00:00
|
|
|
clean-deps:
|
2005-05-01 23:03:45 +00:00
|
|
|
rm -f *.dll
|
|
|
|
rm -rf etc
|
|
|
|
rm -rf lib
|
2005-05-03 01:03:33 +00:00
|
|
|
cd plugins
|
2005-09-06 18:41:25 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
|
2005-05-03 01:03:33 +00:00
|
|
|
cd ..
|
2005-05-01 23:03:45 +00:00
|
|
|
|
|
|
|
|