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
|
2010-01-11 14:48:28 +00:00
|
|
|
# Contains a list of custom plugins(default empty)
|
|
|
|
include Custom.nmake
|
|
|
|
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2012-06-13 21:03:54 +00:00
|
|
|
STAGING_DIR=..\..\$(INSTALL_DIR)
|
|
|
|
|
2006-05-31 17:38:42 +00:00
|
|
|
EXE=../../tshark.exe ../../editcap.exe \
|
2008-04-09 03:48:16 +00:00
|
|
|
!IFDEF GTK_DIR
|
2008-04-05 08:23:37 +00:00
|
|
|
../../wireshark.exe \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
2010-08-25 15:28:26 +00:00
|
|
|
../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_$(PCAP_VERSION).exe
|
2008-05-20 21:51:01 +00:00
|
|
|
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll ../../wsutil/libwsutil.dll
|
2010-04-09 21:42:51 +00:00
|
|
|
DOC=../../doc/ws.css \
|
|
|
|
../../doc/capinfos.html \
|
|
|
|
../../doc/dumpcap.html \
|
|
|
|
../../doc/editcap.html \
|
|
|
|
../../doc/mergecap.html \
|
|
|
|
../../doc/rawshark.html \
|
|
|
|
../../doc/text2pcap.html \
|
|
|
|
../../doc/tshark.html \
|
|
|
|
../../doc/wireshark-filter.html \
|
|
|
|
../../doc/wireshark.html \
|
2012-06-13 21:03:54 +00:00
|
|
|
$(STAGING_DIR)/COPYING.txt \
|
|
|
|
$(STAGING_DIR)/NEWS.txt \
|
|
|
|
$(STAGING_DIR)/README.txt \
|
|
|
|
$(STAGING_DIR)/README.windows.txt
|
2010-04-09 21:42:51 +00:00
|
|
|
|
2004-01-05 21:47:44 +00:00
|
|
|
GPL=../../COPYING
|
2012-06-13 21:03:54 +00:00
|
|
|
HELP=$(STAGING_DIR)/help/capture_filters.txt \
|
|
|
|
$(STAGING_DIR)/help/capturing.txt \
|
|
|
|
$(STAGING_DIR)/help/display_filters.txt \
|
|
|
|
$(STAGING_DIR)/help/faq.txt \
|
|
|
|
$(STAGING_DIR)/help/getting_started.txt \
|
|
|
|
$(STAGING_DIR)/help/overview.txt \
|
|
|
|
$(STAGING_DIR)/help/toc
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2006-11-07 00:56:04 +00:00
|
|
|
PLUGINS= \
|
2003-10-28 07:02:38 +00:00
|
|
|
../../plugins/asn1/asn1.dll \
|
2003-04-21 21:28:39 +00:00
|
|
|
../../plugins/docsis/docsis.dll \
|
2007-10-14 15:45:24 +00:00
|
|
|
../../plugins/ethercat/ethercat.dll \
|
2002-07-12 22:52:43 +00:00
|
|
|
../../plugins/gryphon/gryphon.dll \
|
2003-12-18 19:07:14 +00:00
|
|
|
../../plugins/irda/irda.dll \
|
2007-05-25 23:40:42 +00:00
|
|
|
../../plugins/m2m/m2m.dll \
|
2005-01-21 19:16:05 +00:00
|
|
|
../../plugins/mate/mate.dll \
|
2009-05-28 18:42:40 +00:00
|
|
|
../../plugins/opcua/opcua.dll \
|
|
|
|
../../plugins/profinet/profinet.dll \
|
2005-03-07 22:31:13 +00:00
|
|
|
../../plugins/stats_tree/stats_tree.dll \
|
2007-08-21 17:49:54 +00:00
|
|
|
../../plugins/unistim/unistim.dll \
|
2007-11-19 17:23:30 +00:00
|
|
|
../../plugins/wimax/wimax.dll \
|
2010-01-11 14:48:28 +00:00
|
|
|
../../plugins/wimaxasncp/wimaxasncp.dll \
|
2012-07-20 01:21:27 +00:00
|
|
|
../../plugins/wimaxmacphy/wimaxmacphy.dll \
|
2010-01-11 14:48:28 +00:00
|
|
|
$(CUSTOM_PLUGINS)
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2012-06-13 19:06:27 +00:00
|
|
|
NSI=\
|
|
|
|
wireshark.nsi \
|
|
|
|
uninstall.nsi \
|
|
|
|
common.nsh \
|
2005-07-23 20:34:43 +00:00
|
|
|
GetWindowsVersion.nsh \
|
|
|
|
servicelib.nsh \
|
|
|
|
AdditionalTasksPage.ini \
|
|
|
|
WinPcapPage.ini
|
|
|
|
|
2012-07-27 23:30:44 +00:00
|
|
|
UNINSTALL_INSTALLER = $(STAGING_DIR)\uninstall_installer.exe
|
2012-06-13 19:06:27 +00:00
|
|
|
|
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
|
|
|
|
2010-01-12 22:27:41 +00:00
|
|
|
!IFDEF MAKENSIS
|
2010-04-09 21:42:51 +00:00
|
|
|
all: wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe
|
2010-01-12 22:27:41 +00:00
|
|
|
!ELSE
|
|
|
|
all: _FORCE_
|
|
|
|
@echo ? NSIS not available (MAKENSIS not defined in config.nmake)
|
|
|
|
@echo.
|
|
|
|
@exit 1
|
|
|
|
!ENDIF
|
2004-01-26 21:12:41 +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
|
2011-07-19 18:22:46 +00:00
|
|
|
if exist $(WIRESHARK_LIB_DIR)\user-guide\user-guide.chm xcopy $(WIRESHARK_LIB_DIR)\user-guide\user-guide.chm . /Y /D
|
2007-01-19 00:10:22 +00:00
|
|
|
|
2012-06-13 19:06:27 +00:00
|
|
|
NSIS_FLAGS=\
|
|
|
|
/DMAKEDIR=$(MAKEDIR) \
|
2012-06-13 21:03:54 +00:00
|
|
|
/DSTAGING_DIR=$(STAGING_DIR) \
|
2009-03-11 22:16:35 +00:00
|
|
|
/DWIRESHARK_TARGET_PLATFORM=$(WIRESHARK_TARGET_PLATFORM) \
|
2012-07-20 17:56:16 +00:00
|
|
|
/DTARGET_MACHINE=$(TARGET_MACHINE) \
|
2007-01-10 21:37:52 +00:00
|
|
|
/DMSVC_VARIANT=$(MSVC_VARIANT) \
|
2012-07-20 17:56:16 +00:00
|
|
|
/DMSC_VER_REQUIRED=$(MSC_VER_REQUIRED) \
|
2011-07-19 18:22:46 +00:00
|
|
|
/DWIRESHARK_LIB_DIR=$(WIRESHARK_LIB_DIR) \
|
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
|
2008-04-09 03:48:16 +00:00
|
|
|
!IFDEF GTK_DIR
|
|
|
|
/DGTK_DIR=$(GTK_DIR) \
|
|
|
|
/DGTK_LIB_DIR=$(GTK_LIB_DIR) \
|
2005-12-14 21:19:39 +00:00
|
|
|
/DPANGO_LIB_DIR=$(PANGO_LIB_DIR) \
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_CAIRO_DLL
|
|
|
|
/DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_EXPAT_DLL
|
|
|
|
/DNEED_EXPAT_DLL=$(NEED_EXPAT_DLL) \
|
|
|
|
/DEXPAT_DLL=$(EXPAT_DLL) \
|
2007-09-25 16:09:58 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_FFI_DLL
|
|
|
|
/DNEED_FFI_DLL=$(NEED_FFI_DLL) \
|
|
|
|
/DFFI_DLL=$(FFI_DLL) \
|
2012-04-19 18:31:11 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_FONTCONFIG_DLL
|
|
|
|
/DNEED_FONTCONFIG_DLL=$(NEED_FONTCONFIG_DLL) \
|
|
|
|
/DFONTCONFIG_DLL=$(FONTCONFIG_DLL) \
|
2007-09-25 16:09:58 +00:00
|
|
|
!ENDIF
|
2009-09-16 13:34:37 +00:00
|
|
|
!IFDEF NEED_FREETYPE_DLL
|
2012-05-14 17:54:47 +00:00
|
|
|
/DNEED_FREETYPE_DLL=$(NEED_FREETYPE_DLL) \
|
|
|
|
/DFREETYPE_DLL=$(FREETYPE_DLL) \
|
2009-09-16 13:34:37 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_JASPER_DLL
|
|
|
|
/DNEED_JASPER_DLL=$(NEED_JASPER_DLL) \
|
|
|
|
/DJASPER_DLL=$(JASPER_DLL) \
|
2012-04-19 18:31:11 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_JPEG_DLL
|
|
|
|
/DNEED_JPEG_DLL=$(NEED_JPEG_DLL) \
|
|
|
|
/DJPEG_DLL=$(JPEG_DLL) \
|
2012-04-19 18:31:11 +00:00
|
|
|
!ENDIF
|
2012-05-14 17:54:47 +00:00
|
|
|
!IFDEF NEED_LZMA_DLL
|
|
|
|
/DNEED_LZMA_DLL=$(NEED_LZMA_DLL) \
|
|
|
|
/DLZMA_DLL=$(LZMA_DLL) \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_PIXMAN_DLL
|
|
|
|
/DNEED_PIXMAN_DLL=$(NEED_PIXMAN_DLL) \
|
|
|
|
/DPIXMAN_DLL=$(PIXMAN_DLL) \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_PNG_DLL
|
|
|
|
/DNEED_PNG_DLL=$(NEED_PNG_DLL) \
|
|
|
|
/DPNG_DLL=$(PNG_DLL) \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_TIFF_DLL
|
|
|
|
/DNEED_TIFF_DLL=$(NEED_TIFF_DLL) \
|
|
|
|
/DTIFF_DLL=$(TIFF_DLL) \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF NEED_XML_DLL
|
|
|
|
/DNEED_XML_DLL=$(NEED_XML_DLL) \
|
|
|
|
/DXML_DLL=$(XML_DLL) \
|
2005-12-15 03:36:17 +00:00
|
|
|
!ENDIF
|
2007-03-26 04:02:05 +00:00
|
|
|
!ENDIF
|
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) \
|
2009-11-19 20:27:08 +00:00
|
|
|
/DINTL_DLL=$(INTL_DLL) \
|
2003-12-22 21:41:40 +00:00
|
|
|
/DVERSION=$(VERSION) \
|
2012-04-04 00:47:21 +00:00
|
|
|
/DVERSION_MAJOR=$(VERSION_MAJOR) \
|
|
|
|
/DVERSION_MINOR=$(VERSION_MINOR) \
|
|
|
|
/DVERSION_MICRO=$(VERSION_MICRO) \
|
|
|
|
/DVERSION_BUILD=$(VERSION_BUILD) \
|
2011-03-01 19:40:51 +00:00
|
|
|
/DPRODUCT_VERSION=$(PRODUCT_VERSION) \
|
2003-12-22 21:41:40 +00:00
|
|
|
/DWTAP_VERSION=$(WTAP_VERSION) \
|
2008-08-07 21:41:48 +00:00
|
|
|
!IF "$(C_ARES_DIR)" != ""
|
|
|
|
/DC_ARES_DIR=$(C_ARES_DIR) \
|
|
|
|
!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) \
|
2009-12-23 00:22:12 +00:00
|
|
|
/DKFW_PATH=$(KFW_PATH) \
|
2006-08-05 05:12:09 +00:00
|
|
|
!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 "$(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
|
2007-08-27 06:28:20 +00:00
|
|
|
!IFDEF SMI_DIR
|
|
|
|
/DSMI_DIR=$(SMI_DIR) \
|
|
|
|
!ENDIF
|
2012-05-29 23:31:00 +00:00
|
|
|
!IFDEF GEOIP_DIR
|
|
|
|
/DGEOIP_DIR=$(GEOIP_DIR) \
|
|
|
|
!ENDIF
|
2006-04-20 20:33:04 +00:00
|
|
|
!IFDEF HHC_DIR
|
2012-06-13 19:06:27 +00:00
|
|
|
/DHHC_DIR="$(HHC_DIR)"
|
2003-07-22 22:00:38 +00:00
|
|
|
!ENDIF
|
2012-06-13 19:06:27 +00:00
|
|
|
|
2012-07-24 23:59:42 +00:00
|
|
|
$(STAGING_DIR)\uninstall.exe : $(NSI)
|
2012-06-13 19:06:27 +00:00
|
|
|
rm -f $(UNINSTALL_INSTALLER)
|
|
|
|
$(MAKENSIS) $(NSIS_FLAGS) uninstall.nsi
|
|
|
|
$(UNINSTALL_INSTALLER)
|
2012-07-24 16:30:03 +00:00
|
|
|
rm -f $(UNINSTALL_INSTALLER)
|
2012-06-13 19:06:27 +00:00
|
|
|
|
2012-07-24 23:59:42 +00:00
|
|
|
uninstall-exe : $(STAGING_DIR)\uninstall.exe
|
2012-06-13 19:06:27 +00:00
|
|
|
|
2012-07-24 23:59:42 +00:00
|
|
|
wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe : user-guide.chm $(NSI) $(DELIVERABLES) Makefile.nmake $(STAGING_DIR)\uninstall.exe
|
2012-06-13 19:06:27 +00:00
|
|
|
$(MAKENSIS) $(NSIS_FLAGS) wireshark.nsi
|
2001-04-12 18:07:22 +00:00
|
|
|
|
|
|
|
clean:
|
2009-03-11 22:16:35 +00:00
|
|
|
rm -f wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe
|
2012-06-13 19:06:27 +00:00
|
|
|
rm -f $(UNINSTALL_INSTALLER)
|
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
|
2009-03-11 22:16:35 +00:00
|
|
|
rm -f wireshark-$(WIRESHARK_TARGET_PLATFORM)-*.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
|
2010-01-12 22:27:41 +00:00
|
|
|
|
|
|
|
####
|
|
|
|
_FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory
|