2006-05-31 19:12:15 +00:00
|
|
|
## Makefile for building wireshark.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 #########
|
|
|
|
|
2006-09-12 01:04:35 +00:00
|
|
|
CC = cl
|
|
|
|
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
|
|
|
|
2007-03-21 23:14:23 +00:00
|
|
|
CFLAGS=-WX -DHAVE_CONFIG_H $(LOCAL_CFLAGS) $(GLIB_CFLAGS) /I. /Iwiretap \
|
2003-11-07 23:27:13 +00:00
|
|
|
$(ZLIB_CFLAGS) /I$(PCAP_DIR)\include \
|
2007-09-24 06:59:40 +00:00
|
|
|
$(AIRPCAP_CFLAGS) \
|
2007-08-26 21:35:17 +00:00
|
|
|
$(ADNS_CFLAGS) $(PCRE_CFLAGS) $(GNUTLS_CFLAGS) $(LUA_CFLAGS) $(SMI_CFLAGS) \
|
2007-01-31 05:26:41 +00:00
|
|
|
-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
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark_OBJECTS = $(wireshark_SOURCES:.c=.obj)
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark_OBJECTS = $(tshark_SOURCES:.c=.obj)
|
2004-05-09 10:03:41 +00:00
|
|
|
dftest_OBJECTS = $(dftest_SOURCES:.c=.obj)
|
2005-11-28 08:54:52 +00:00
|
|
|
dumpcap_OBJECTS = $(dumpcap_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 = \
|
2007-06-11 18:26:09 +00:00
|
|
|
getopt.obj \
|
|
|
|
inet_ntop.obj \
|
|
|
|
inet_pton.obj \
|
2001-06-02 06:21:14 +00:00
|
|
|
mkstemp.obj \
|
|
|
|
strptime.obj
|
2000-01-15 00:23:13 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2006-02-13 21:25:43 +00:00
|
|
|
wsock32.lib user32.lib shell32.lib comctl32.lib \
|
2006-09-12 01:04:35 +00:00
|
|
|
$(HHC_LIBS) \
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2006-05-31 19:12:15 +00:00
|
|
|
epan\wireshark.lib \
|
2006-12-28 17:22:12 +00:00
|
|
|
epan\crypt\airpdcap.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) \
|
2006-02-06 09:09:06 +00:00
|
|
|
$(ZLIB_LIBS) \
|
|
|
|
$(GNUTLS_LIBS)
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark_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) \
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2006-05-31 19:12:15 +00:00
|
|
|
epan\wireshark.lib \
|
2006-12-28 17:22:12 +00:00
|
|
|
epan\crypt\airpdcap.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) \
|
2006-02-06 09:09:06 +00:00
|
|
|
$(ZLIB_LIBS) \
|
|
|
|
$(GNUTLS_LIBS)
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2004-10-20 18:50:58 +00:00
|
|
|
capinfos_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2007-05-25 17:22:32 +00:00
|
|
|
wsock32.lib user32.lib shell32.lib \
|
2004-07-28 20:51:29 +00:00
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
2001-03-23 02:05:29 +00:00
|
|
|
editcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2007-05-25 17:22:32 +00:00
|
|
|
wsock32.lib user32.lib shell32.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
|
|
|
|
2007-10-16 18:28:27 +00:00
|
|
|
text2pcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
2005-11-28 08:54:52 +00:00
|
|
|
dumpcap_LIBS= wiretap\wiretap-$(WTAP_VERSION).lib \
|
2005-12-05 21:28:34 +00:00
|
|
|
wsock32.lib user32.lib \
|
|
|
|
$(GLIB_LIBS)
|
2005-11-28 08:54:52 +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) \
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
epan\libwireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ELSE
|
2004-07-18 18:06:47 +00:00
|
|
|
epan\dissectors\dissectors.lib \
|
2006-05-31 19:12:15 +00:00
|
|
|
epan\wireshark.lib \
|
2004-05-09 10:03:41 +00:00
|
|
|
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) \
|
2006-02-06 09:09:06 +00:00
|
|
|
$(ZLIB_LIBS) \
|
2007-08-26 20:03:23 +00:00
|
|
|
$(SMI_LIBS) \
|
2006-02-06 09:09:06 +00:00
|
|
|
$(GNUTLS_LIBS)
|
2004-05-09 10:03:41 +00:00
|
|
|
!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 \
|
2007-09-24 06:59:40 +00:00
|
|
|
$(GLIB_LIBS)
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
EXECUTABLES=wireshark.exe wireshark-gtk2.exe tshark.exe \
|
2005-11-28 08:54:52 +00:00
|
|
|
capinfos.exe editcap.exe mergecap.exe text2pcap.exe randpkt.exe dumpcap.exe
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2006-05-31 19:12:15 +00:00
|
|
|
RESOURCES=image\wireshark.res image\libwireshark.res image\tshark.res \
|
2004-10-20 18:50:58 +00:00
|
|
|
image\capinfos.res image\editcap.res image\mergecap.res \
|
2005-11-28 08:54:52 +00:00
|
|
|
image\text2pcap.res image\wiretap.res image\dumpcap.res
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
LIBS_CHECK=_libs_check_
|
|
|
|
|
|
|
|
all: $(LIBS_CHECK) config.h tools image codecs $(ZLIB_DIR)\zlib1.dll wiretap epan $(EXECUTABLES) $(RESOURCES) doc install-deps
|
2000-04-15 04:10:50 +00:00
|
|
|
|
2004-01-26 21:12:41 +00:00
|
|
|
packaging: all
|
|
|
|
cd packaging
|
|
|
|
cd nsis
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2004-02-18 20:45:54 +00:00
|
|
|
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
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake GTK1_ONLY="USE"
|
2004-01-26 21:12:41 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake GTK2_ONLY="USE"
|
2004-01-26 21:12:41 +00:00
|
|
|
!ENDIF
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
2006-09-22 23:16:31 +00:00
|
|
|
packaging_u3: all
|
|
|
|
cd packaging
|
|
|
|
cd u3
|
|
|
|
cd win32
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2006-09-22 23:16:31 +00:00
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
cd ..
|
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
# use (info-)zip from cygwin to pack things
|
|
|
|
packaging_zip1: all
|
2007-04-10 21:30:40 +00:00
|
|
|
!IFDEF MSVCR_DLL
|
2007-09-05 23:09:39 +00:00
|
|
|
xcopy "$(MSVCR_DLL)" $(INSTALL1_DIR)
|
2007-04-10 21:30:40 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF VCREDIST_EXE
|
|
|
|
@echo Including vcredist_x86.exe -- your recipient may need to run it!
|
2007-09-05 23:09:39 +00:00
|
|
|
xcopy "$(VCREDIST_EXE)" $(INSTALL1_DIR)
|
2007-04-10 21:30:40 +00:00
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
rm -f wireshark-gtk1.zip
|
2007-04-10 21:30:40 +00:00
|
|
|
zip -r -9 wireshark-gtk1.zip $(INSTALL1_DIR)/
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
# use (info-)zip from cygwin to pack things
|
|
|
|
packaging_zip2: all
|
2007-04-10 21:30:40 +00:00
|
|
|
!IFDEF MSVCR_DLL
|
2007-09-05 23:09:39 +00:00
|
|
|
xcopy "$(MSVCR_DLL)" $(INSTALL2_DIR)
|
2007-04-10 21:30:40 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF VCREDIST_EXE
|
|
|
|
@echo Including vcredist_x86.exe -- your recipient may need to run it!
|
2007-09-05 23:09:39 +00:00
|
|
|
xcopy "$(VCREDIST_EXE)" $(INSTALL2_DIR)
|
2007-04-10 21:30:40 +00:00
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
rm -f wireshark-gtk2.zip
|
2007-04-10 21:30:40 +00:00
|
|
|
zip -r -9 wireshark-gtk2.zip $(INSTALL2_DIR)/
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
packaging_zip: packaging_zip1 packaging_zip2
|
|
|
|
|
2006-09-22 23:16:31 +00:00
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(RESOURCES): image
|
|
|
|
|
2007-01-08 07:42:26 +00:00
|
|
|
wiretap\wiretap-$(WTAP_VERSION).lib: image $(ZLIB_DIR)\zlib1.dll wiretap
|
2002-01-04 21:20:20 +00:00
|
|
|
|
2004-01-24 20:01:36 +00:00
|
|
|
!IFNDEF GTK1_DIR
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark.exe :
|
2004-01-24 20:01:36 +00:00
|
|
|
!ELSE
|
2007-09-02 20:53:15 +00:00
|
|
|
wireshark.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk\libui.lib plugins
|
2000-06-16 15:05:26 +00:00
|
|
|
@echo Linking $@
|
2000-04-12 21:52:11 +00:00
|
|
|
$(LINK) @<<
|
2007-06-11 18:26:09 +00:00
|
|
|
/OUT:wireshark.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj inet_ntop.obj inet_pton.obj $(GTK1_LIBS) codecs\codecs.lib gtk\libui.lib $(wireshark_OBJECTS) image\wireshark.res
|
2004-01-24 20:01:36 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "wireshark.exe.manifest" -outputresource:wireshark.exe;1
|
|
|
|
!ENDIF
|
2004-01-24 20:01:36 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF GTK2_DIR
|
2006-05-31 19:12:15 +00:00
|
|
|
wireshark-gtk2.exe :
|
2004-01-24 20:01:36 +00:00
|
|
|
!ELSE
|
2007-09-02 20:53:15 +00:00
|
|
|
wireshark-gtk2.exe : $(LIBS_CHECK) config.h svnversion.h $(wireshark_OBJECTS) getopt.obj inet_ntop.obj inet_pton.obj codecs epan gtk2 image\wireshark.res wiretap\wiretap-$(WTAP_VERSION).lib codecs\codecs.lib gtk2.tmp\libui.lib plugins
|
2004-01-24 20:01:36 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2007-06-11 18:26:09 +00:00
|
|
|
/OUT:wireshark-gtk2.exe $(guiflags) $(guilibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:windows $(wireshark_LIBS) getopt.obj inet_ntop.obj inet_pton.obj $(GTK2_LIBS) codecs\codecs.lib gtk2.tmp\libui.lib $(wireshark_OBJECTS) image\wireshark.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "wireshark-gtk2.exe.manifest" -outputresource:wireshark-gtk2.exe;1
|
|
|
|
!ENDIF
|
2004-01-24 20:01:36 +00:00
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
tshark.exe : $(LIBS_CHECK) config.h svnversion.h $(tshark_OBJECTS) getopt.obj inet_ntop.obj epan image\tshark.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) @<<
|
2007-06-11 18:26:09 +00:00
|
|
|
/OUT:tshark.exe $(conflags) $(conlibsdll) $(LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console $(tshark_LIBS) $(tshark_OBJECTS) getopt.obj inet_ntop.obj image\tshark.res
|
2000-04-12 21:52:11 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "tshark.exe.manifest" -outputresource:tshark.exe;1
|
|
|
|
!ENDIF
|
2000-04-12 21:52:11 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
capinfos.exe : $(LIBS_CHECK) config.h capinfos.obj getopt.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj wiretap\wiretap-$(WTAP_VERSION).lib image\capinfos.res
|
2004-07-28 20:51:29 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2007-05-25 17:22:32 +00:00
|
|
|
/OUT:capinfos.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console capinfos.obj getopt.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj $(capinfos_LIBS) image\capinfos.res
|
2004-07-28 20:51:29 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "capinfos.exe.manifest" -outputresource:capinfos.exe;1
|
|
|
|
!ENDIF
|
2004-07-28 20:51:29 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
editcap.exe : $(LIBS_CHECK) config.h editcap.obj getopt.obj strptime.obj epan\crypt\crypt-md5.obj epan/unicode-utils.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.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) @<<
|
2007-05-25 17:22:32 +00:00
|
|
|
/OUT:editcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console editcap.obj getopt.obj strptime.obj epan/unicode-utils.obj epan\crypt\crypt-md5.obj epan/plugins.obj epan/report_err.obj epan/privileges.obj epan/filesystem.obj $(editcap_LIBS) image\editcap.res
|
1999-07-21 17:40:42 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "editcap.exe.manifest" -outputresource:editcap.exe;1
|
|
|
|
!ENDIF
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
mergecap.exe : $(LIBS_CHECK) 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) @<<
|
2006-09-12 00:27:03 +00:00
|
|
|
/OUT:mergecap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console mergecap.obj merge.obj getopt.obj $(mergecap_LIBS) image\mergecap.res
|
2001-07-12 19:59:41 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "mergecap.exe.manifest" -outputresource:mergecap.exe;1
|
|
|
|
!ENDIF
|
2001-07-12 19:59:41 +00:00
|
|
|
|
2007-10-16 18:28:27 +00:00
|
|
|
text2pcap.exe : $(LIBS_CHECK) config.h text2pcap.obj text2pcap-scanner.obj getopt.obj wiretap\wiretap-$(WTAP_VERSION).lib strptime.obj image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2007-10-16 18:28:27 +00:00
|
|
|
/OUT:text2pcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console text2pcap.obj text2pcap-scanner.obj getopt.obj $(text2pcap_LIBS) strptime.obj image\text2pcap.res
|
2001-05-21 03:17:14 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "text2pcap.exe.manifest" -outputresource:text2pcap.exe;1
|
|
|
|
!ENDIF
|
2001-05-21 03:17:14 +00:00
|
|
|
|
2004-10-02 01:54:35 +00:00
|
|
|
dftest.exe : $(dftest_OBJECTS) epan
|
2005-12-05 21:28:34 +00:00
|
|
|
@echo Linking $@
|
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
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "dftest.exe.manifest" -outputresource:dftest.exe;1
|
|
|
|
!ENDIF
|
2001-02-11 03:19:45 +00:00
|
|
|
|
2006-09-12 00:27:03 +00:00
|
|
|
randpkt.exe : $(randpkt_OBJECTS) getopt.obj
|
2005-12-05 21:28:34 +00:00
|
|
|
@echo Linking $@
|
2002-10-16 14:45:27 +00:00
|
|
|
$(LINK) @<<
|
2006-09-12 00:27:03 +00:00
|
|
|
/OUT:randpkt.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(randpkt_LIBS) $(randpkt_OBJECTS) getopt.obj
|
2002-10-16 14:45:27 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "randpkt.exe.manifest" -outputresource:randpkt.exe;1
|
|
|
|
!ENDIF
|
2002-10-16 14:45:27 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
dumpcap.exe : $(LIBS_CHECK) config.h svnversion.h $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj wiretap\wiretap-$(WTAP_VERSION).lib image\dumpcap.res
|
2005-11-28 08:54:52 +00:00
|
|
|
@echo Linking $@
|
|
|
|
$(LINK) @<<
|
2007-06-11 18:26:09 +00:00
|
|
|
/OUT:dumpcap.exe $(conflags) $(conlibsdll) $(LDFLAGS) /SUBSYSTEM:console $(dumpcap_LIBS) $(dumpcap_OBJECTS) getopt.obj inet_ntop.obj mkstemp.obj image\dumpcap.res
|
2005-11-28 08:54:52 +00:00
|
|
|
<<
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
|
|
|
mt.exe -nologo -manifest "dumpcap.exe.manifest" -outputresource:dumpcap.exe;1
|
|
|
|
!ENDIF
|
2005-11-28 08:54:52 +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)/" \
|
2006-08-05 04:32:57 +00:00
|
|
|
-e "s/@HAVE_KFW@/$(KFW_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)/" \
|
2006-05-21 21:32:04 +00:00
|
|
|
-e "s/@HAVE_PCAP_BREAKLOOP@/$(PCAP_BREAKLOOP_CONFIG)/" \
|
2006-05-31 00:23:01 +00:00
|
|
|
-e "s/@HAVE_LIBWIRESHARKDLL@/$(LIBWIRESHARK_CONFIG)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
-e "s/@WPCAP_CONSTIFIED@/$(WPCAP_CONSTIFIED_CONFIG)/" \
|
2006-09-12 17:46:55 +00:00
|
|
|
-e "s/@HAVE_LIBGNUTLS@/$(GNUTLS_CONFIG)/" \
|
2006-08-09 02:00:05 +00:00
|
|
|
-e "s/@HAVE_LIBGCRYPT@/$(LIBGCRYPT_CONFIG)/" \
|
2006-03-01 21:31:07 +00:00
|
|
|
-e "s/@HAVE_LUA@/$(LUA_CONFIG)/" \
|
2006-03-15 22:58:40 +00:00
|
|
|
-e "s/@HAVE_LUA_5_1@/$(LUA_VERSION)/" \
|
2006-08-19 00:24:40 +00:00
|
|
|
-e "s/@HAVE_AIRPCAP@/$(AIRPCAP_CONFIG)/" \
|
2006-12-06 20:29:54 +00:00
|
|
|
-e "s/@HAVE_AIRPDCAP@/$(AIRPDCAP_CONFIG)/" \
|
2006-09-12 18:43:56 +00:00
|
|
|
-e "s/@HAVE_LIBPORTAUDIO@/$(PORTAUDIO_CONFIG)/" \
|
|
|
|
-e "s/@PORTAUDIO_API_1@/$(PORTAUDIO_API_CONFIG)/" \
|
2007-09-24 06:59:40 +00:00
|
|
|
-e "s/@HAVE_SMI@/$(SMI_CONFIG)/" \
|
2003-10-10 09:48:54 +00:00
|
|
|
< 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
|
|
|
|
#
|
2006-10-18 20:30:15 +00:00
|
|
|
!IF EXIST(".svn/entries")
|
|
|
|
SVNENTRIES = .svn/entries
|
|
|
|
!ELSE
|
|
|
|
SVNENTRIES =
|
|
|
|
!ENDIF
|
|
|
|
svnversion.h: $(SVNENTRIES)
|
|
|
|
rm -f 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
|
|
|
#
|
2006-05-31 17:38:42 +00:00
|
|
|
# Build "tshark-tap-register.c", which contains a function
|
2002-10-31 22:16:01 +00:00
|
|
|
# "register_all_tap_listeners()"
|
2007-01-02 09:20:27 +00:00
|
|
|
# that calls the register routines for all TShark tap listeners.
|
2002-10-31 22:16:01 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2006-05-31 17:38:42 +00:00
|
|
|
tshark-tap-register.c: $(TSHARK_TAP_SRC) make-tapreg-dotc
|
|
|
|
@echo Making tshark-tap-register.c
|
|
|
|
@$(SH) make-tapreg-dotc tshark-tap-register.c . $(TSHARK_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
|
|
|
|
|
2006-09-22 23:16:31 +00:00
|
|
|
clean_gtk2.tmp:
|
2007-03-22 02:51:21 +00:00
|
|
|
rm -rf gtk2.tmp
|
2004-01-24 20:01:36 +00:00
|
|
|
|
2007-10-15 16:44:31 +00:00
|
|
|
clean-local: clean_gtk2.tmp clean-deps
|
2007-10-11 01:24:36 +00:00
|
|
|
rm -f $(wireshark_OBJECTS) $(tshark_OBJECTS) $(dumpcap_OBJECTS) $(EXTRA_OBJECTS) \
|
2007-01-03 05:41:11 +00:00
|
|
|
$(EXECUTABLES) *.pdb *.exe.manifest \
|
2007-06-11 18:26:09 +00:00
|
|
|
capinfos.obj editcap.obj mergecap.obj text2pcap.obj \
|
2007-09-05 23:09:39 +00:00
|
|
|
nio-ie5.obj update.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 \
|
2007-09-02 20:53:15 +00:00
|
|
|
AUTHORS-SHORT-FORMAT $(LIBS_CHECK) \
|
2007-10-11 01:24:36 +00:00
|
|
|
dftest.obj dftest.exe randpkt.obj randpkt.ext \
|
2005-12-16 17:53:44 +00:00
|
|
|
doxygen.cfg \
|
2006-05-31 00:23:01 +00:00
|
|
|
$(RESOURCES) libwireshark.dll wiretap-$(WTAP_VERSION).dll
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
clean: clean-local
|
2006-02-25 09:31:35 +00:00
|
|
|
cd asn1
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
cd ..
|
2000-04-04 08:22:13 +00:00
|
|
|
cd wiretap
|
2001-03-06 13:08:13 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
2006-09-02 06:39:43 +00:00
|
|
|
cd ../codecs
|
|
|
|
$(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
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../u3/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
|
|
|
|
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.
|
2007-10-15 16:44:31 +00:00
|
|
|
distclean-local: clean-local
|
2007-01-08 02:40:06 +00:00
|
|
|
rm -f $(ZLIB_DIR)\zlib1.dll $(ZLIB_DIR)\zlib1.dll.manifest \
|
|
|
|
$(ZLIB_DIR)\include\zlib.h $(ZLIB_DIR)\include\zconf.h \
|
|
|
|
$(ZLIB_DIR)\lib\zdll.lib
|
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)
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
distclean: distclean-local
|
2003-10-10 21:31:53 +00:00
|
|
|
cd wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2006-09-02 06:39:43 +00:00
|
|
|
cd ../codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
2003-10-10 21:31:53 +00:00
|
|
|
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
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../u3/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
|
|
|
|
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.
|
2007-10-15 16:44:31 +00:00
|
|
|
maintainer-clean-local: distclean-local
|
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 $(GENERATED_FILES)
|
2007-10-15 16:44:31 +00:00
|
|
|
|
|
|
|
maintainer-clean: maintainer-clean-local
|
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
|
|
|
cd wiretap
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
2006-09-02 06:39:43 +00:00
|
|
|
cd ../codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
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
|
|
|
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
|
2006-10-04 18:08:51 +00:00
|
|
|
cd ../u3/win32
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
|
|
|
|
cd ../../..
|
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
|
|
|
|
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 ..
|
|
|
|
|
2007-01-08 02:40:06 +00:00
|
|
|
# None MSVC6 variants have to avoid indirectly using msvcrt.dll,
|
|
|
|
# therefore compile the zlib dll from source ZLIB_DIR package.
|
|
|
|
# To avoid path problems, copy the zlib sources to a temp dir,
|
|
|
|
# compile and copy the resulting files back to (source) ZLIB_DIR
|
2007-01-11 22:05:59 +00:00
|
|
|
$(ZLIB_DIR)\zlib1.dll:
|
2007-01-10 21:42:34 +00:00
|
|
|
xcopy $(ZLIB_DIR) zlib.tmp /D /I /E /Y
|
2007-01-08 02:40:06 +00:00
|
|
|
cd zlib.tmp
|
2007-01-10 21:42:34 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f win32/Makefile.msc zlib1.dll LOC="-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE"
|
2007-01-08 02:40:06 +00:00
|
|
|
if not exist $(ZLIB_DIR) mkdir $(ZLIB_DIR)
|
|
|
|
if not exist $(ZLIB_DIR)\lib mkdir $(ZLIB_DIR)\lib
|
|
|
|
if not exist $(ZLIB_DIR)\include mkdir $(ZLIB_DIR)\include
|
2007-05-06 09:17:19 +00:00
|
|
|
!IF "$(MSVC_VARIANT)" == "MSVC2005" || "$(MSVC_VARIANT)" == "MSVC2005EE" || "$(MSVC_VARIANT)" == "DOTNET20"
|
2007-05-09 06:35:13 +00:00
|
|
|
mt.exe -nologo -manifest "zlib1.dll.manifest" -outputresource:zlib1.dll;2
|
2007-05-06 09:17:19 +00:00
|
|
|
!ENDIF
|
2007-01-08 02:40:06 +00:00
|
|
|
copy zlib1.dll $(ZLIB_DIR)
|
|
|
|
copy zdll.lib $(ZLIB_DIR)\lib
|
|
|
|
copy zconf.h $(ZLIB_DIR)\include
|
|
|
|
copy zlib.h $(ZLIB_DIR)\include
|
|
|
|
cd ..
|
|
|
|
rm -r -f zlib.tmp
|
|
|
|
|
2007-01-08 07:42:26 +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 ..
|
|
|
|
|
2006-09-10 13:37:42 +00:00
|
|
|
codecs::
|
2006-09-02 06:39:43 +00:00
|
|
|
cd codecs
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
|
|
|
|
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 ..
|
|
|
|
|
2007-09-05 23:09:39 +00:00
|
|
|
epan:: $(RESOURCES) $(ZLIB_DIR)\zlib1.dll wiretap\wiretap-$(WTAP_VERSION).lib $(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
|
|
|
|
################################################################################
|
|
|
|
|
2006-10-09 02:07:44 +00:00
|
|
|
# The required tools to build Wireshark.
|
2005-12-10 11:14:36 +00:00
|
|
|
#
|
|
|
|
# The 'find' tool is available both in \WINNT\System32 and in cygwin's /usr/bin.
|
|
|
|
# We only need the cygwin version (for some shell scripts).
|
|
|
|
# In the PATH, System32 is before cygwin's dir, so explicitly check for /usr/bin/find.
|
2004-09-01 11:53:28 +00:00
|
|
|
REQUIRED_TOOLS=\
|
2005-08-05 08:34:47 +00:00
|
|
|
$(CC) \
|
|
|
|
$(LINK) \
|
|
|
|
nmake \
|
2006-12-04 05:41:53 +00:00
|
|
|
$(SH_PROG) \
|
2004-04-09 07:38:38 +00:00
|
|
|
$(YACC) \
|
|
|
|
$(LEX) \
|
2005-07-07 21:26:09 +00:00
|
|
|
env \
|
2004-04-08 20:36:09 +00:00
|
|
|
grep \
|
2005-12-10 11:14:36 +00:00
|
|
|
/usr/bin/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:
|
2006-12-04 05:41:53 +00:00
|
|
|
@$(SH) tools\win32-setup.sh --appverify $(REQUIRED_TOOLS)
|
2004-04-09 07:38:38 +00:00
|
|
|
|
2007-09-02 20:53:15 +00:00
|
|
|
# Targets and etc used to verify or download libraries
|
|
|
|
|
|
|
|
!IFNDEF WIN32_SETUP_OPT
|
|
|
|
WIN32_SETUP_OPT=--download
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# Verify that the required library 'package' (zip) files have been downloaded.
|
|
|
|
# (It seems reasonable to assume that if the files have been downloaded
|
|
|
|
# then they have been installed).
|
|
|
|
check_libs:
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
|
|
|
|
|
|
|
|
# Verify library packages only if Makefile.nmake has been updated
|
2007-09-10 14:00:12 +00:00
|
|
|
# (or dummy file doesn't exist because of 'make clean' or whatever)
|
2007-09-02 20:53:15 +00:00
|
|
|
# (To disable library verification when Makefile.nmake changes,
|
|
|
|
# comment out the commands for the following target).
|
2007-09-09 13:09:14 +00:00
|
|
|
# touch is only called if libverify succeeds
|
2007-09-02 20:53:15 +00:00
|
|
|
$(LIBS_CHECK): Makefile.nmake
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake WIN32_SETUP_OPT=--libverify process_libs
|
2007-09-09 13:09:14 +00:00
|
|
|
@touch --reference=Makefile.nmake $@
|
2007-09-02 20:53:15 +00:00
|
|
|
|
|
|
|
# Download (if needed) and install all the required libraries into WIRESHARK_LIBS.
|
2007-01-19 02:41:25 +00:00
|
|
|
# A clean_setup is done first to ensure that the target dirs don't
|
|
|
|
# contain old files remaining from a previous setup run.
|
2007-09-02 20:53:15 +00:00
|
|
|
setup: verify_tools clean_setup process_libs
|
|
|
|
|
|
|
|
|
|
|
|
# The process_libs target when invoked causes either a --libverify or a --download for all the required libraries.
|
|
|
|
# (The choice is determined by the value of the macro WIN32_SETUP_OPT).
|
|
|
|
process_libs:
|
2006-11-19 17:02:31 +00:00
|
|
|
if not exist $(WIRESHARK_LIBS) md $(WIRESHARK_LIBS)
|
2007-09-25 16:09:58 +00:00
|
|
|
!IF "$(GTK2_INST_VERSION)" == "2.12"
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-10-18 19:47:45 +00:00
|
|
|
glib gtk2.12/glib-2.14.1.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-10-18 19:47:45 +00:00
|
|
|
glib gtk2.12/glib-dev-2.14.1.zip
|
2007-09-25 16:09:58 +00:00
|
|
|
!ELSEIF "$(GTK2_INST_VERSION)" == "2.10"
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
glib gtk2.10/glib-2.12.13.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
glib gtk2.10/glib-dev-2.12.13.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
!ELSE
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
glib glib-2.2.3-20040116.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
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
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
gtk+ gtk+-1.3.0-20030717.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
gtk+ gtk+-dev-1.3.0-20030115.zip
|
2004-04-10 07:29:14 +00:00
|
|
|
!ENDIF
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
libiconv-1.9.1.bin.woe32 libiconv-1.9.1.bin.woe32.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2006-10-26 07:25:07 +00:00
|
|
|
gettext-0.14.5 gettext-0.14.5.zip
|
2006-08-08 07:52:15 +00:00
|
|
|
!IFDEF KFW_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2006-08-08 07:52:15 +00:00
|
|
|
kfw-2.5 kfw-2.5.zip
|
|
|
|
!ENDIF
|
2004-04-09 16:54:07 +00:00
|
|
|
!IFDEF PCAP_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2005-09-22 23:18:34 +00:00
|
|
|
. WpdPack_3_1.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
2007-01-05 01:35:23 +00:00
|
|
|
!IFDEF AIRPCAP_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-01-05 05:23:02 +00:00
|
|
|
AirPcap_Devpack_1_0_0_594 AirPcap_Devpack_1_0_0_594.zip
|
2007-01-05 01:35:23 +00:00
|
|
|
!ENDIF
|
2004-04-09 16:54:07 +00:00
|
|
|
!IFDEF ADNS_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2005-12-14 21:19:39 +00:00
|
|
|
. adns-1.0-win32-05.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF PCRE_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2005-12-14 21:19:39 +00:00
|
|
|
pcre-6.4 pcre-6.4-bin.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2005-12-14 21:19:39 +00:00
|
|
|
pcre-6.4 pcre-6.4-lib.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ZLIB_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-01-08 02:40:06 +00:00
|
|
|
zlib123 zlib123.zip
|
|
|
|
!ENDIF
|
2006-03-01 21:31:07 +00:00
|
|
|
!IFDEF LUA_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2006-09-27 00:45:55 +00:00
|
|
|
. lua5_1_dll.zip
|
2006-03-01 21:31:07 +00:00
|
|
|
!ENDIF
|
2007-08-26 20:03:23 +00:00
|
|
|
|
2006-08-07 19:52:18 +00:00
|
|
|
!IFDEF GNUTLS_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-01-05 01:35:23 +00:00
|
|
|
. gnutls-1.6.1-1.zip
|
2006-08-07 19:52:18 +00:00
|
|
|
!ENDIF
|
2006-08-30 21:51:31 +00:00
|
|
|
!IFDEF PORTAUDIO_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2006-12-27 22:21:46 +00:00
|
|
|
. portaudio_v19.zip
|
2006-08-30 21:51:31 +00:00
|
|
|
!ENDIF
|
2007-08-26 20:03:23 +00:00
|
|
|
!IFDEF SMI_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-08-26 20:03:23 +00:00
|
|
|
. libsmi-0.4.5.zip
|
|
|
|
!ENDIF
|
2006-08-30 21:51:31 +00:00
|
|
|
|
2004-04-09 16:54:07 +00:00
|
|
|
!IFDEF GTK2_DIR
|
2007-09-25 16:09:58 +00:00
|
|
|
!IF "$(GTK2_INST_VERSION)" == "2.12"
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-10-18 19:47:45 +00:00
|
|
|
gtk2 gtk2.12/gtk+-2.12.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-10-18 19:47:45 +00:00
|
|
|
gtk2 gtk2.12/gtk+-dev-2.12.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/cairo-1.4.10.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/cairo-dev-1.4.10.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/atk-1.20.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/atk-dev-1.20.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/libpng-1.2.8-bin.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/tiff-3.8.2-1-bin.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.12/jpeg-6b-4-bin.zip
|
|
|
|
!ELSEIF "$(GTK2_INST_VERSION)" == "2.10"
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/gtk+-2.10.14.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/gtk+-dev-2.10.14.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/cairo-1.4.8.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/cairo-dev-1.4.8.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/atk-1.18.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/atk-dev-1.18.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/libpng-1.2.8-bin.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
!ELSE
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-06-20 20:22:09 +00:00
|
|
|
gtk2 gtk2/gtk+-2.2.4-20040124.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-06-20 20:22:09 +00:00
|
|
|
gtk2 gtk2/gtk+-dev-2.2.4-20040124.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
gtk2 gtk2/atk-1.4.0.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-04-08 20:36:09 +00:00
|
|
|
gtk2 gtk2/atk-dev-1.4.0.zip
|
2004-05-14 16:23:38 +00:00
|
|
|
!ENDIF
|
2007-09-25 16:09:58 +00:00
|
|
|
!IF "$(PANGO_INST_VERSION)" == "1.18"
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-10-18 19:47:45 +00:00
|
|
|
gtk2 gtk2.12/pango-1.18.2.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-10-18 19:47:45 +00:00
|
|
|
gtk2 gtk2.12/pango-dev-1.18.2.zip
|
2007-09-25 16:09:58 +00:00
|
|
|
!ELSEIF "$(PANGO_INST_VERSION)" == "1.16"
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/pango-1.16.4.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-09-25 16:09:58 +00:00
|
|
|
gtk2 gtk2.10/pango-dev-1.16.4.zip
|
2004-06-20 20:22:09 +00:00
|
|
|
!ELSE
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-06-20 20:22:09 +00:00
|
|
|
gtk2 gtk2/pango-1.2.5-20040124.zip
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2004-06-20 20:22:09 +00:00
|
|
|
gtk2 gtk2/pango-dev-1.2.5-20040124.zip
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
2004-05-14 16:23:38 +00:00
|
|
|
!IFDEF GTK_WIMP_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2006-05-16 15:49:03 +00:00
|
|
|
gtk-wimp gtk-wimp/gtk-wimp-0.7.0-bin.zip
|
2007-01-19 01:10:59 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF HHC_DIR
|
2007-09-02 20:53:15 +00:00
|
|
|
@$(SH) tools\win32-setup.sh "$(WIN32_SETUP_OPT)" "$(WIRESHARK_LIBS)" \
|
2007-01-19 01:10:59 +00:00
|
|
|
user-guide user-guide-20494.zip
|
2004-04-09 16:54:07 +00:00
|
|
|
!ENDIF
|
|
|
|
@echo.
|
2006-05-22 08:14:01 +00:00
|
|
|
@echo Wireshark 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.
|
2007-03-17 00:36:40 +00:00
|
|
|
# WHEN UPDATING LIBRARY VERSIONS, KEEP ALSO ONE FORMER VERSION SO
|
|
|
|
# UPDATING REMOVES THE FORMER USER DIRS
|
2004-09-12 10:07:23 +00:00
|
|
|
clean_setup:
|
2006-09-12 01:04:35 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/adns-1.0-win32-05
|
2006-10-26 07:34:10 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/gettext-0.14.5
|
2006-05-30 01:26:47 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/glib
|
2007-01-05 01:35:23 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/gnutls-1.6.1-1
|
2006-09-12 01:04:35 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/gtk2
|
2006-05-30 01:26:47 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/gtk+
|
2006-09-12 01:04:35 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/gtk-wimp
|
|
|
|
rm -r -f $(WIRESHARK_LIBS)/kfw-2.5
|
2006-05-30 01:26:47 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/libiconv-1.9.1.bin.woe32
|
2006-09-27 00:45:55 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/lua5.1
|
2007-08-26 20:03:23 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/libsmi-0.4.5
|
2006-09-12 01:04:35 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/pcre-6.4
|
|
|
|
rm -r -f $(WIRESHARK_LIBS)/portaudio_v18_1
|
2006-12-27 22:21:46 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/portaudio_v19
|
2007-01-19 01:10:59 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/user-guide
|
2006-09-12 01:04:35 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/WpdPack
|
2007-01-05 05:23:02 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/AirPcap_Devpack_1_0_0_594
|
2007-03-17 00:36:40 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/zlib123
|
2006-05-30 01:26:47 +00:00
|
|
|
rm -r -f $(WIRESHARK_LIBS)/zlib123-dll
|
2004-09-12 10:07:23 +00:00
|
|
|
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
2006-09-23 01:39:07 +00:00
|
|
|
# Prepare the debug trees for running Wireshark/Tshark from there.
|
2005-05-01 23:03:45 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
# generate and install Wireshark GTK1 in INSTALL1_DIR
|
|
|
|
debug-gtk1: wireshark.exe install-files1
|
2005-05-01 23:03:45 +00:00
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
# generate and install Wireshark GTK2 in INSTALL2_DIR
|
|
|
|
debug-gtk2: wireshark-gtk2.exe install-files2
|
|
|
|
|
|
|
|
# generate and install Wireshark GTK2 in INSTALL2_DIR
|
|
|
|
debug-tshark: tshark.exe
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2006-09-23 01:39:07 +00:00
|
|
|
set INSTALL_DIR=$(INSTALL2_DIR)
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
|
2006-09-23 01:39:07 +00:00
|
|
|
|
2007-01-03 00:10:57 +00:00
|
|
|
# generate and install Wireshark GTK2 in INSTALL2_DIR
|
|
|
|
debug-dumpcap: dumpcap.exe
|
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
# "install-deps" will copy all files needed to run Wwireshark/Tshark
|
|
|
|
# to the INSTALL1_DIR/INSTALL2_DIR, so you can run/debug Wireshark/Tshark from there.
|
|
|
|
|
|
|
|
install-deps: install-deps1 install-deps2 install-files1 install-files2
|
|
|
|
|
2007-09-05 23:09:39 +00:00
|
|
|
# install Wireshark GTK1 and other generated files
|
2006-09-23 01:39:07 +00:00
|
|
|
install-files1:
|
|
|
|
!IFDEF GTK1_DIR
|
|
|
|
set copycmd=/y
|
|
|
|
set INSTALL_DIR=$(INSTALL1_DIR)
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy wireshark.exe $(INSTALL1_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist wireshark.pdb xcopy wireshark.pdb $(INSTALL1_DIR) /d
|
2006-02-10 14:13:06 +00:00
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
# install Wireshark GTK2 and other generated files
|
|
|
|
install-files2:
|
|
|
|
!IFDEF GTK2_DIR
|
|
|
|
set INSTALL_DIR=$(INSTALL2_DIR)
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-files
|
2006-09-23 01:39:07 +00:00
|
|
|
copy wireshark-gtk2.exe $(INSTALL2_DIR)\wireshark.exe
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist wireshark-gtk2.pdb copy wireshark-gtk2.pdb $(INSTALL2_DIR)\wireshark.pdb
|
2006-09-23 01:39:07 +00:00
|
|
|
if exist ".\docbook\user-guide.chm" xcopy ".\docbook\user-guide.chm" $(INSTALL2_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
install-common-files:
|
|
|
|
set copycmd=/y
|
|
|
|
if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
|
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
xcopy epan\libwireshark.dll $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
xcopy ".\wiretap\wiretap-$(WTAP_VERSION).dll" $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist ".\wiretap\wiretap-$(WTAP_VERSION).pdb" xcopy ".\wiretap\wiretap-$(WTAP_VERSION).pdb" $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\epan\libwireshark.dll" $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist ".\epan\libwireshark.pdb" xcopy ".\epan\libwireshark.pdb" $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
if exist tshark.exe xcopy tshark.exe $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist tshark.pdb xcopy tshark.pdb $(INSTALL_DIR) /d
|
|
|
|
if exist dumpcap.exe xcopy dumpcap.exe $(INSTALL_DIR) /d
|
|
|
|
if exist dumpcap.pdb xcopy dumpcap.pdb $(INSTALL_DIR) /d
|
|
|
|
if exist mergecap.exe xcopy mergecap.exe $(INSTALL_DIR) /d
|
|
|
|
if exist mergecap.pdb xcopy mergecap.pdb $(INSTALL_DIR) /d
|
|
|
|
if exist text2pcap.exe xcopy text2pcap.exe $(INSTALL_DIR) /d
|
|
|
|
if exist text2pcap.pdb xcopy text2pcap.pdb $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
if exist capinfos.exe xcopy capinfos.exe $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist capinfos.pdb xcopy capinfos.pdb $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
if exist editcap.exe xcopy editcap.exe $(INSTALL_DIR) /d
|
2007-01-03 00:10:57 +00:00
|
|
|
if exist editcap.pdb xcopy editcap.pdb $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\manuf" $(INSTALL_DIR) /d
|
2007-08-12 20:54:30 +00:00
|
|
|
xcopy ".\services" $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\FAQ" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\README" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\README.win32" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\AUTHORS-SHORT" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\COPYING" $(INSTALL_DIR) /d
|
2006-10-02 19:07:01 +00:00
|
|
|
copy ".\NEWS" $(INSTALL_DIR)\NEWS.txt
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\cfilters" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\colorfilters" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\dfilters" $(INSTALL_DIR) /d
|
2007-08-27 22:06:47 +00:00
|
|
|
xcopy ".\smi_modules" $(INSTALL_DIR) /d
|
2007-05-25 17:22:32 +00:00
|
|
|
xcopy ".\epan\wslua\init.lua" $(INSTALL_DIR) /d
|
|
|
|
xcopy ".\epan\wslua\console.lua" $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy doc\*.html $(INSTALL_DIR) /d
|
|
|
|
!IFDEF ETHEREAL_EUG_DIR
|
|
|
|
xcopy $(ETHEREAL_EUG_DIR) $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
if not exist $(INSTALL_DIR)\help mkdir $(INSTALL_DIR)\help
|
|
|
|
xcopy ".\help\*.*" $(INSTALL_DIR)\help /d
|
|
|
|
if not exist $(INSTALL_DIR)\dtds mkdir $(INSTALL_DIR)\dtds
|
|
|
|
xcopy ".\dtds\*.*" $(INSTALL_DIR)\dtds /d
|
|
|
|
if not exist $(INSTALL_DIR)\asn1 mkdir $(INSTALL_DIR)\asn1
|
|
|
|
echo create empty asn1 default.tt file to prevent problems 2> $(INSTALL_DIR)\asn1\default.tt
|
|
|
|
if not exist $(INSTALL_DIR)\radius mkdir $(INSTALL_DIR)\radius
|
|
|
|
xcopy ".\radius\*.*" $(INSTALL_DIR)\radius /d
|
|
|
|
if not exist $(INSTALL_DIR)\diameter mkdir $(INSTALL_DIR)\diameter
|
|
|
|
xcopy ".\diameter\*.dtd" $(INSTALL_DIR)\diameter /d
|
|
|
|
xcopy ".\diameter\*.xml" $(INSTALL_DIR)\diameter /d
|
|
|
|
if not exist $(INSTALL_DIR)\plugins\$(VERSION) mkdir $(INSTALL_DIR)\plugins\$(VERSION)
|
|
|
|
xcopy ".\plugins\agentx\agentx.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\artnet\artnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\asn1\asn1.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\ciscosm\ciscosm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\docsis\docsis.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\enttec\enttec.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\giop\coseventcomm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\giop\cosnaming.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\giop\parlay.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\giop\tango.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\gryphon\gryphon.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\irda\irda.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\lwres\lwres.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2007-05-25 23:40:42 +00:00
|
|
|
xcopy ".\plugins\m2m\m2m.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\plugins\mate\mate.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2007-05-14 13:58:54 +00:00
|
|
|
xcopy ".\plugins\opcua\opcua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\plugins\opsi\opsi.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\pcli\pcli.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\profinet\profinet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\rlm\rlm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\rtnet\rtnet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\rudp\rudp.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\sbus\sbus.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
|
|
|
xcopy ".\plugins\stats_tree\stats_tree.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2007-08-20 20:50:29 +00:00
|
|
|
xcopy ".\plugins\unistim\unistim.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy ".\plugins\v5ua\v5ua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2007-05-25 23:40:42 +00:00
|
|
|
xcopy ".\plugins\wimax\wimax.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
if exist custom-install.bat custom-install $(INSTALL_DIR) $(VERSION)
|
|
|
|
|
|
|
|
install-deps1: install-common-deps1
|
2005-05-01 23:03:45 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GTK1_DIR)\lib\libgtk-0.dll $(INSTALL1_DIR) /d
|
|
|
|
xcopy $(GTK1_DIR)\lib\libgdk-0.dll $(INSTALL1_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
install-deps2: install-common-deps2
|
|
|
|
!IFDEF GTK2_DIR
|
2005-09-16 16:25:53 +00:00
|
|
|
set copycmd=/y
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GTK2_DIR)\bin\libgdk-win32-2.0-0.dll $(INSTALL2_DIR) /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libgdk_pixbuf-2.0-0.dll $(INSTALL2_DIR) /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libgtk-win32-2.0-0.dll $(INSTALL2_DIR) /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libatk-1.0-0.dll $(INSTALL2_DIR) /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libpango-1.0-0.dll $(INSTALL2_DIR) /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libpangowin32-1.0-0.dll $(INSTALL2_DIR) /d
|
|
|
|
if not exist $(INSTALL2_DIR)\etc mkdir $(INSTALL2_DIR)\etc
|
|
|
|
if not exist $(INSTALL2_DIR)\etc\gtk-2.0 mkdir $(INSTALL2_DIR)\etc\gtk-2.0
|
|
|
|
if not exist $(INSTALL2_DIR)\etc\pango mkdir $(INSTALL2_DIR)\etc\pango
|
|
|
|
if not exist $(INSTALL2_DIR)\lib mkdir $(INSTALL2_DIR)\lib
|
|
|
|
if not exist $(INSTALL2_DIR)\lib\gtk-2.0 mkdir $(INSTALL2_DIR)\lib\gtk-2.0
|
|
|
|
if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR) mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)
|
|
|
|
if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders
|
|
|
|
if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules
|
2007-09-25 16:09:58 +00:00
|
|
|
if not exist $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules mkdir $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\engines
|
2006-11-12 22:18:50 +00:00
|
|
|
# if not exist $(INSTALL2_DIR)\lib\pango mkdir $(INSTALL2_DIR)\lib\pango
|
|
|
|
# if not exist $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR) mkdir $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)
|
|
|
|
# if not exist $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules mkdir $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GTK2_DIR)\etc\gtk-2.0\*.* $(INSTALL2_DIR)\etc\gtk-2.0 /d
|
|
|
|
xcopy $(GTK2_DIR)\etc\pango\pango.* $(INSTALL2_DIR)\etc\pango /d
|
2007-09-25 16:09:58 +00:00
|
|
|
# xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders\libpixbufloader-*.dll $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\loaders /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GTK2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules\im-*.dll $(INSTALL2_DIR)\lib\gtk-2.0\$(GTK2_LIB_DIR)\immodules /d
|
2006-11-12 22:18:50 +00:00
|
|
|
# xcopy $(GTK2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules\pango-*.dll $(INSTALL2_DIR)\lib\pango\$(PANGO_LIB_DIR)\modules /d
|
2006-09-23 01:39:07 +00:00
|
|
|
!IFDEF NEED_LIBPNG_DLL
|
|
|
|
xcopy $(GTK2_DIR)\bin\libpng13.dll $(INSTALL2_DIR) /d
|
|
|
|
!ENDIF
|
2007-09-25 16:09:58 +00:00
|
|
|
!IFDEF NEED_LIBTIFF_DLL
|
|
|
|
xcopy $(GTK2_DIR)\bin\libtiff3.dll $(INSTALL2_DIR) /d
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_LIBJPEG_DLL
|
|
|
|
xcopy $(GTK2_DIR)\bin\jpeg62.dll $(INSTALL2_DIR) /d
|
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
!IFDEF NEED_CAIRO_DLL
|
|
|
|
xcopy $(GTK2_DIR)\bin\libcairo-2.dll $(INSTALL2_DIR) /d
|
|
|
|
xcopy $(GTK2_DIR)\bin\libpangocairo-1.0-0.dll $(INSTALL2_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
2006-10-27 12:06:13 +00:00
|
|
|
!IFDEF GTK_WIMP_DIR
|
|
|
|
if not exist $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR) mkdir $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR)
|
|
|
|
xcopy "$(GTK_WIMP_DLLSRC_DIR)\libwimp.dll" $(INSTALL2_DIR)\$(GTK_WIMP_DLLDST_DIR) /d
|
|
|
|
if not exist $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR) mkdir $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR)
|
|
|
|
xcopy "$(GTK_WIMP_RCSRC_DIR)\gtkrc" $(INSTALL2_DIR)\$(GTK_WIMP_RCDST_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
install-common-deps1:
|
2006-10-09 02:07:44 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
set INSTALL_DIR=$(INSTALL1_DIR)
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-deps
|
2006-10-09 02:07:44 +00:00
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
install-common-deps2:
|
2006-10-09 02:07:44 +00:00
|
|
|
!IFDEF GTK2_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
set INSTALL_DIR=$(INSTALL2_DIR)
|
2006-12-04 05:41:53 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake install-common-deps
|
2006-10-09 02:07:44 +00:00
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
install-common-deps:
|
|
|
|
set copycmd=/y
|
2006-09-23 08:39:54 +00:00
|
|
|
if not exist $(INSTALL_DIR) mkdir $(INSTALL_DIR)
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GLIB_DIR)\bin\libglib-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GLIB_DIR)\bin\libgmodule-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GLIB_DIR)\bin\libgobject-2.0-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(ICONV_DIR)\bin\iconv.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GETTEXT_DIR)\bin\intl.dll $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!IFDEF ZLIB_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(ZLIB_DIR)\zlib1.dll $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF ADNS_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(ADNS_DIR)\adns_win32\LIB\adns_dll.dll $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF PCRE_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(PCRE_DIR)\bin\pcre.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(PCRE_DIR)\man\cat3\pcrepattern.3.txt $(INSTALL_DIR) /d
|
2005-05-01 23:03:45 +00:00
|
|
|
!ENDIF
|
2006-08-05 04:41:42 +00:00
|
|
|
!IFDEF KFW_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(KFW_DIR)\bin\comerr32.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(KFW_DIR)\bin\krb5_32.dll $(INSTALL_DIR) /d
|
2006-08-05 04:41:42 +00:00
|
|
|
!ENDIF
|
2006-08-07 19:52:18 +00:00
|
|
|
!IFDEF GNUTLS_DIR
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgcrypt-11.dll $(INSTALL_DIR) /d
|
2006-12-23 00:06:16 +00:00
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgnutls-13.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgnutls-extra-13.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgnutls-openssl-13.dll $(INSTALL_DIR) /d
|
2006-09-23 01:39:07 +00:00
|
|
|
xcopy $(GNUTLS_DIR)\bin\libgpg-error-0.dll $(INSTALL_DIR) /d
|
|
|
|
xcopy $(GNUTLS_DIR)\bin\libtasn1-3.dll $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
2006-09-27 00:45:55 +00:00
|
|
|
!IFDEF LUA_DIR
|
|
|
|
xcopy "$(LUA_DIR)\lib\dll\lua5.1.dll" $(INSTALL_DIR) /d
|
|
|
|
!ENDIF
|
2007-08-26 20:03:23 +00:00
|
|
|
!IFDEF SMI_DIR
|
|
|
|
if not exist $(INSTALL_DIR)\snmp mkdir $(INSTALL_DIR)\snmp
|
|
|
|
if not exist $(INSTALL_DIR)\snmp\mibs mkdir $(INSTALL_DIR)\snmp\mibs
|
|
|
|
xcopy "$(SMI_DIR)\lib\smi.dll" $(INSTALL_DIR) /d
|
|
|
|
xcopy "$(SMI_DIR)\mibs\*" $(INSTALL_DIR)\snmp\mibs /d
|
|
|
|
!ENDIF
|
2006-09-23 01:39:07 +00:00
|
|
|
|
|
|
|
clean-deps1:
|
2006-10-13 00:21:47 +00:00
|
|
|
rm -rf $(INSTALL1_DIR)
|
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
|
|
|
|
2006-09-23 01:39:07 +00:00
|
|
|
clean-deps2:
|
2006-10-13 00:21:47 +00:00
|
|
|
rm -rf $(INSTALL2_DIR)
|
2006-09-23 01:39:07 +00:00
|
|
|
cd plugins
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean-deps
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
clean-deps: clean-deps1 clean-deps2
|
|
|
|
|
2007-05-25 17:22:32 +00:00
|
|
|
|