197 lines
5.1 KiB
Makefile
197 lines
5.1 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
# 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/
|
|
|
|
include ../../config.nmake
|
|
# Contains a list of custom plugins(default empty)
|
|
include Custom.nmake
|
|
|
|
|
|
EXE=../../tshark.exe ../../editcap.exe \
|
|
!IFDEF GTK_DIR
|
|
../../wireshark.exe \
|
|
!ENDIF
|
|
../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_4_1_2.exe
|
|
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll ../../wsutil/libwsutil.dll
|
|
DOC=../../doc/ws.css \
|
|
../../doc/capinfos.html \
|
|
../../doc/dumpcap.html \
|
|
../../doc/editcap.html \
|
|
../../doc/idl2wrs.html \
|
|
../../doc/mergecap.html \
|
|
../../doc/rawshark.html \
|
|
../../doc/text2pcap.html \
|
|
../../doc/rawshark.html \
|
|
../../doc/tshark.html \
|
|
../../doc/wireshark-filter.html \
|
|
../../doc/wireshark.html \
|
|
../../$(INSTALL_DIR)/COPYING.txt \
|
|
../../$(INSTALL_DIR)/NEWS.txt \
|
|
../../$(INSTALL_DIR)/README.txt \
|
|
../../$(INSTALL_DIR)/README.windows.txt
|
|
|
|
GPL=../../COPYING
|
|
HELP=../../$(INSTALL_DIR)/help/capture_filters.txt \
|
|
../../$(INSTALL_DIR)/help/capturing.txt \
|
|
../../$(INSTALL_DIR)/help/display_filters.txt \
|
|
../../$(INSTALL_DIR)/help/faq.txt \
|
|
../../$(INSTALL_DIR)/help/getting_started.txt \
|
|
../../$(INSTALL_DIR)/help/overview.txt \
|
|
../../$(INSTALL_DIR)/help/toc
|
|
|
|
PLUGINS= \
|
|
../../plugins/asn1/asn1.dll \
|
|
../../plugins/docsis/docsis.dll \
|
|
../../plugins/ethercat/ethercat.dll \
|
|
../../plugins/giop/coseventcomm.dll \
|
|
../../plugins/giop/cosnaming.dll \
|
|
../../plugins/giop/parlay.dll \
|
|
../../plugins/giop/tango.dll \
|
|
../../plugins/gryphon/gryphon.dll \
|
|
../../plugins/interlink/interlink.dll \
|
|
../../plugins/irda/irda.dll \
|
|
../../plugins/m2m/m2m.dll \
|
|
../../plugins/mate/mate.dll \
|
|
../../plugins/opcua/opcua.dll \
|
|
../../plugins/profinet/profinet.dll \
|
|
../../plugins/sercosiii/sercosiii.dll \
|
|
../../plugins/stats_tree/stats_tree.dll \
|
|
../../plugins/unistim/unistim.dll \
|
|
../../plugins/wimax/wimax.dll \
|
|
../../plugins/wimaxasncp/wimaxasncp.dll \
|
|
$(CUSTOM_PLUGINS)
|
|
|
|
NSI=wireshark.nsi \
|
|
GetWindowsVersion.nsh \
|
|
servicelib.nsh \
|
|
AdditionalTasksPage.ini \
|
|
WinPcapPage.ini
|
|
|
|
DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
|
|
|
|
!IFDEF MAKENSIS
|
|
all: wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe
|
|
!ELSE
|
|
all: _FORCE_
|
|
@echo ? NSIS not available (MAKENSIS not defined in config.nmake)
|
|
@echo.
|
|
@exit 1
|
|
!ENDIF
|
|
|
|
# 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
|
|
|
|
wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe : user-guide.chm $(NSI) $(DELIVERABLES) Makefile.nmake
|
|
$(MAKENSIS) \
|
|
/DWIRESHARK_TARGET_PLATFORM=$(WIRESHARK_TARGET_PLATFORM) \
|
|
/DMSVC_VARIANT=$(MSVC_VARIANT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_CAIRO_DLL
|
|
/DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
|
|
!ENDIF
|
|
!ENDIF
|
|
/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) \
|
|
/DINTL_DLL=$(INTL_DLL) \
|
|
/DVERSION=$(VERSION) \
|
|
/DWTAP_VERSION=$(WTAP_VERSION) \
|
|
!IF "$(C_ARES_DIR)" != ""
|
|
/DC_ARES_DIR=$(C_ARES_DIR) \
|
|
!ENDIF
|
|
!IF "$(ADNS_DIR)" != ""
|
|
/DADNS_DIR=$(ADNS_DIR) \
|
|
!ENDIF
|
|
!IF "$(KFW_DIR)" != ""
|
|
/DKFW_DIR=$(KFW_DIR) \
|
|
/DKFW_PATH=$(KFW_PATH) \
|
|
!ENDIF
|
|
!IF "$(GNUTLS_DIR)" != ""
|
|
/DGNUTLS_DIR=$(GNUTLS_DIR) \
|
|
!ENDIF
|
|
!IF "$(PCRE_DIR)" != ""
|
|
/DPCRE_DIR=$(PCRE_DIR) \
|
|
!ENDIF
|
|
!IF "$(ZLIB_DIR)" != ""
|
|
/DZLIB_DIR=$(ZLIB_DIR) \
|
|
!ENDIF
|
|
!IFDEF LUA_DIR
|
|
/DLUA_DIR=$(LUA_DIR) \
|
|
!ENDIF
|
|
!IFDEF SMI_DIR
|
|
/DSMI_DIR=$(SMI_DIR) \
|
|
!ENDIF
|
|
!IFDEF HHC_DIR
|
|
/DHHC_DIR="$(HHC_DIR)" \
|
|
!ENDIF
|
|
wireshark.nsi
|
|
|
|
clean:
|
|
rm -f wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe
|
|
rm -f NEWS.txt
|
|
rm -f user-guide.chm
|
|
|
|
distclean: clean
|
|
rm -f wireshark-$(WIRESHARK_TARGET_PLATFORM)-*.exe
|
|
|
|
maintainer-clean: distclean
|
|
|
|
$(DOC):
|
|
cd ../../doc
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
cd ../packaging/nsis
|
|
|
|
$(EXE) $(DLL):
|
|
cd ../..
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake
|
|
cd packaging/nsis
|
|
|
|
####
|
|
_FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory
|
|
|