2001-04-04 04:50:05 +00:00
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2001-04-04 20:08:16 +00:00
|
|
|
#
|
|
|
|
# NSIS is a free packager/installer/uninstaller program for Win32.
|
|
|
|
# It was originally written for the Winamp package, but various
|
|
|
|
# freeware and non-freeware packages are using it, too.
|
|
|
|
#
|
|
|
|
# http://www.nullsoft.com/free/nsis/
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
include ../../config.nmake
|
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
|
|
|
|
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_ONLY
|
2007-03-26 04:02:05 +00:00
|
|
|
# define installer name and undefine GTK2_DIR to get a separate
|
2006-05-30 13:19:30 +00:00
|
|
|
# installer for Wireshark GTK1 version
|
|
|
|
DEST=wireshark-gtk1
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK2_DIR
|
|
|
|
!UNDEF GTK2_DIR
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
!IFDEF GTK2_ONLY
|
2007-03-26 04:02:05 +00:00
|
|
|
# define installer name and undefine GTK1_DIR to get a separate
|
2006-05-30 13:19:30 +00:00
|
|
|
# installer for Wireshark GTK2 version
|
|
|
|
DEST=wireshark-gtk2
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
|
|
|
!UNDEF GTK1_DIR
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF DEST
|
|
|
|
# define installer name for combined GTK1 and GTK2 installer package
|
2006-05-30 13:19:30 +00:00
|
|
|
DEST=wireshark
|
2004-02-03 20:03:40 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
EXE=../../tshark.exe ../../editcap.exe \
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2006-05-31 19:12:15 +00:00
|
|
|
../../wireshark.exe \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2006-05-31 19:12:15 +00:00
|
|
|
../../wireshark-gtk2.exe \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
2007-01-30 07:16:01 +00:00
|
|
|
../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_4_0.exe
|
2001-04-04 04:50:05 +00:00
|
|
|
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
|
2006-05-31 19:12:15 +00:00
|
|
|
DOC=../../doc/wireshark.html \
|
2006-05-31 17:38:42 +00:00
|
|
|
../../doc/tshark.html \
|
2006-05-31 19:12:15 +00:00
|
|
|
../../doc/wireshark-filter.html \
|
2001-04-04 04:50:05 +00:00
|
|
|
../../doc/editcap.html \
|
2001-05-22 16:19:45 +00:00
|
|
|
../../doc/text2pcap.html \
|
2001-07-12 22:45:23 +00:00
|
|
|
../../doc/mergecap.html \
|
2004-10-20 18:50:58 +00:00
|
|
|
../../doc/capinfos.html \
|
2002-08-20 00:59:42 +00:00
|
|
|
../../FAQ \
|
2001-04-04 04:50:05 +00:00
|
|
|
../../README \
|
|
|
|
../../README.win32
|
2004-10-16 11:46:17 +00:00
|
|
|
DOC_dos=NEWS.txt
|
2004-01-05 21:47:44 +00:00
|
|
|
GPL=../../COPYING
|
|
|
|
HELP=../../help/toc \
|
|
|
|
../../help/overview.txt \
|
|
|
|
../../help/capture_filters.txt \
|
|
|
|
../../help/display_filters.txt \
|
|
|
|
../../help/faq.txt
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2006-11-07 00:56:04 +00:00
|
|
|
PLUGINS= \
|
2005-02-10 06:36:21 +00:00
|
|
|
../../plugins/agentx/agentx.dll \
|
2003-10-14 01:18:11 +00:00
|
|
|
../../plugins/artnet/artnet.dll \
|
2003-10-28 07:02:38 +00:00
|
|
|
../../plugins/asn1/asn1.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/ciscosm/ciscosm.dll \
|
2003-04-21 21:28:39 +00:00
|
|
|
../../plugins/docsis/docsis.dll \
|
2003-11-17 20:57:14 +00:00
|
|
|
../../plugins/enttec/enttec.dll \
|
2002-07-12 22:52:43 +00:00
|
|
|
../../plugins/giop/coseventcomm.dll \
|
|
|
|
../../plugins/giop/cosnaming.dll \
|
2005-07-07 19:48:06 +00:00
|
|
|
../../plugins/giop/parlay.dll \
|
|
|
|
../../plugins/giop/tango.dll \
|
2002-07-12 22:52:43 +00:00
|
|
|
../../plugins/gryphon/gryphon.dll \
|
2005-10-06 06:56:08 +00:00
|
|
|
../../plugins/h223/h223.dll \
|
2003-12-18 19:07:14 +00:00
|
|
|
../../plugins/irda/irda.dll \
|
2003-08-05 05:09:37 +00:00
|
|
|
../../plugins/lwres/lwres.dll \
|
2005-01-21 19:16:05 +00:00
|
|
|
../../plugins/mate/mate.dll \
|
2003-01-28 22:18:06 +00:00
|
|
|
../../plugins/mgcp/mgcp.dll \
|
2004-07-21 06:31:33 +00:00
|
|
|
../../plugins/opsi/opsi.dll \
|
2003-06-11 09:17:03 +00:00
|
|
|
../../plugins/pcli/pcli.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/rlm/rlm.dll \
|
2003-12-17 05:16:21 +00:00
|
|
|
../../plugins/rtnet/rtnet.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/rudp/rudp.dll \
|
2006-06-21 06:31:06 +00:00
|
|
|
../../plugins/sbus/sbus.dll \
|
2005-03-07 22:31:13 +00:00
|
|
|
../../plugins/stats_tree/stats_tree.dll \
|
2005-09-08 22:55:39 +00:00
|
|
|
../../plugins/v5ua/v5ua.dll
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2006-05-30 14:28:20 +00:00
|
|
|
NSI=wireshark.nsi \
|
2005-07-23 20:34:43 +00:00
|
|
|
GetWindowsVersion.nsh \
|
|
|
|
servicelib.nsh \
|
|
|
|
AdditionalTasksPage.ini \
|
|
|
|
WinPcapPage.ini
|
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
all: NEWS.txt $(DEST)-setup-$(VERSION).exe
|
2004-01-26 21:12:41 +00:00
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
NEWS.txt: ../../NEWS
|
|
|
|
$(UNIX2DOS) < ../../NEWS > NEWS.txt
|
2004-02-18 20:45:54 +00:00
|
|
|
|
2007-01-19 00:10:22 +00:00
|
|
|
# fetch the latest available user-guide.chm version
|
|
|
|
user-guide.chm::
|
|
|
|
if exist ..\..\docbook\user-guide.chm xcopy ..\..\docbook\user-guide.chm . /Y /D
|
|
|
|
if exist $(WIRESHARK_LIBS)\user-guide\user-guide.chm xcopy $(WIRESHARK_LIBS)\user-guide\user-guide.chm . /Y /D
|
|
|
|
|
|
|
|
$(DEST)-setup-$(VERSION).exe : user-guide.chm $(NSI) $(DELIVERABLES) Makefile.nmake
|
2003-07-22 22:00:38 +00:00
|
|
|
$(MAKENSIS) \
|
2004-02-18 20:45:54 +00:00
|
|
|
/DDEST=$(DEST) \
|
2007-01-10 21:37:52 +00:00
|
|
|
/DMSVC_VARIANT=$(MSVC_VARIANT) \
|
2007-01-13 00:59:39 +00:00
|
|
|
!IFDEF MSVCR_DLL
|
|
|
|
/DMSVCR_DLL="$(MSVCR_DLL)" \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF VCREDIST_EXE
|
|
|
|
/DVCREDIST_EXE="$(VCREDIST_EXE)" \
|
|
|
|
!ENDIF
|
2006-05-31 00:23:01 +00:00
|
|
|
!IF "$(ENABLE_LIBWIRESHARK)" != ""
|
|
|
|
/DENABLE_LIBWIRESHARK=$(ENABLE_LIBWIRESHARK) \
|
2004-05-09 10:03:41 +00:00
|
|
|
!ENDIF
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
/DGTK1_DIR=$(GTK1_DIR) \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
/DGTK2_DIR=$(GTK2_DIR) \
|
2005-12-14 21:19:39 +00:00
|
|
|
/DGTK2_LIB_DIR=$(GTK2_LIB_DIR) \
|
|
|
|
/DPANGO_LIB_DIR=$(PANGO_LIB_DIR) \
|
2005-12-15 03:36:17 +00:00
|
|
|
!IFDEF NEED_LIBPNG_DLL
|
|
|
|
/DNEED_LIBPNG_DLL=$(NEED_LIBPNG_DLL) \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_CAIRO_DLL
|
|
|
|
/DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
|
|
|
|
!ENDIF
|
2007-03-26 04:02:05 +00:00
|
|
|
!ENDIF
|
2004-02-24 18:51:40 +00:00
|
|
|
!IFDEF GTK_WIMP_DIR
|
|
|
|
/DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
|
2006-10-27 12:06:13 +00:00
|
|
|
/DGTK_WIMP_DLLDST_DIR=$(GTK_WIMP_DLLDST_DIR) \
|
|
|
|
/DGTK_WIMP_DLLSRC_DIR=$(GTK_WIMP_DLLSRC_DIR) \
|
|
|
|
/DGTK_WIMP_RCDST_DIR=$(GTK_WIMP_RCDST_DIR) \
|
|
|
|
/DGTK_WIMP_RCSRC_DIR=$(GTK_WIMP_RCSRC_DIR) \
|
2007-03-26 04:02:05 +00:00
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
/DGLIB_DIR=$(GLIB_DIR) \
|
|
|
|
/DICONV_DIR=$(ICONV_DIR) \
|
|
|
|
/DGETTEXT_DIR=$(GETTEXT_DIR) \
|
|
|
|
/DVERSION=$(VERSION) \
|
|
|
|
/DWTAP_VERSION=$(WTAP_VERSION) \
|
2006-10-20 20:06:44 +00:00
|
|
|
!IF "$(NET_SNMP_DIR)" != ""
|
2003-12-22 21:41:40 +00:00
|
|
|
/DNET_SNMP_DIR=$(NET_SNMP_DIR) \
|
2006-10-20 20:06:44 +00:00
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
!IF "$(ADNS_DIR)" != ""
|
|
|
|
/DADNS_DIR=$(ADNS_DIR) \
|
|
|
|
!ENDIF
|
2006-08-05 05:12:09 +00:00
|
|
|
!IF "$(KFW_DIR)" != ""
|
|
|
|
/DKFW_DIR=$(KFW_DIR) \
|
|
|
|
!ENDIF
|
2006-08-07 19:52:18 +00:00
|
|
|
!IF "$(GNUTLS_DIR)" != ""
|
|
|
|
/DGNUTLS_DIR=$(GNUTLS_DIR) \
|
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
!IF "$(PCRE_DIR)" != ""
|
|
|
|
/DPCRE_DIR=$(PCRE_DIR) \
|
|
|
|
!ENDIF
|
|
|
|
!IF "$(ZLIB_DIR)" != ""
|
|
|
|
/DZLIB_DIR=$(ZLIB_DIR) \
|
2006-02-07 09:12:43 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF LUA_DIR
|
|
|
|
/DLUA_DIR=$(LUA_DIR) \
|
2006-04-20 20:33:04 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF HHC_DIR
|
2007-02-04 01:33:48 +00:00
|
|
|
/DHHC_DIR="$(HHC_DIR)" \
|
2003-07-22 22:00:38 +00:00
|
|
|
!ENDIF
|
2006-05-30 14:28:20 +00:00
|
|
|
wireshark.nsi
|
2001-04-12 18:07:22 +00:00
|
|
|
|
|
|
|
clean:
|
2006-05-30 13:19:30 +00:00
|
|
|
rm -f wireshark-setup-$(VERSION).exe
|
|
|
|
rm -f wireshark-gtk1-setup-$(VERSION).exe
|
|
|
|
rm -f wireshark-gtk2-setup-$(VERSION).exe
|
2004-10-16 11:46:17 +00:00
|
|
|
rm -f NEWS.txt
|
2007-01-19 00:10:22 +00:00
|
|
|
rm -f user-guide.chm
|
2002-01-04 21:20:20 +00:00
|
|
|
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
2006-09-27 16:49:53 +00:00
|
|
|
rm -f wireshark-setup-*.exe
|
|
|
|
rm -f wireshark-gtk1-setup-*.exe
|
|
|
|
rm -f wireshark-gtk2-setup-*.exe
|
2003-10-10 21:31:53 +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
|
|
|
maintainer-clean: distclean
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(DOC):
|
|
|
|
cd ../../doc
|
2006-12-05 12:36:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2002-01-04 21:20:20 +00:00
|
|
|
cd ../packaging/nsis
|
|
|
|
|
|
|
|
$(EXE) $(DLL):
|
|
|
|
cd ../..
|
2006-12-05 12:36:06 +00:00
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
2002-01-04 21:20:20 +00:00
|
|
|
cd packaging/nsis
|