forked from osmocom/wireshark
202 lines
4.8 KiB
Makefile
202 lines
4.8 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
|
|
|
|
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
|
|
|
|
!IFDEF GTK1_ONLY
|
|
# define installer name and undefine GTK2_DIR to get a separate
|
|
# installer for Wireshark GTK1 version
|
|
DEST=wireshark-gtk1
|
|
!IFDEF GTK2_DIR
|
|
!UNDEF GTK2_DIR
|
|
!ENDIF
|
|
!ENDIF
|
|
|
|
|
|
!IFDEF GTK2_ONLY
|
|
# define installer name and undefine GTK1_DIR to get a separate
|
|
# installer for Wireshark GTK2 version
|
|
DEST=wireshark-gtk2
|
|
!IFDEF GTK1_DIR
|
|
!UNDEF GTK1_DIR
|
|
!ENDIF
|
|
!ENDIF
|
|
|
|
!IFNDEF DEST
|
|
# define installer name for combined GTK1 and GTK2 installer package
|
|
DEST=wireshark
|
|
!ENDIF
|
|
|
|
EXE=../../tshark.exe ../../editcap.exe \
|
|
!IFDEF GTK1_DIR
|
|
../../wireshark.exe \
|
|
!ENDIF
|
|
!IFDEF GTK2_DIR
|
|
../../wireshark-gtk2.exe \
|
|
!ENDIF
|
|
../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_4_0_1.exe
|
|
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
|
|
DOC=../../doc/wireshark.html \
|
|
../../doc/tshark.html \
|
|
../../doc/wireshark-filter.html \
|
|
../../doc/editcap.html \
|
|
../../doc/text2pcap.html \
|
|
../../doc/mergecap.html \
|
|
../../doc/capinfos.html \
|
|
../../FAQ \
|
|
../../README \
|
|
../../README.win32
|
|
DOC_dos=NEWS.txt
|
|
GPL=../../COPYING
|
|
HELP=../../help/toc \
|
|
../../help/overview.txt \
|
|
../../help/capture_filters.txt \
|
|
../../help/display_filters.txt \
|
|
../../help/faq.txt
|
|
|
|
PLUGINS= \
|
|
../../plugins/agentx/agentx.dll \
|
|
../../plugins/artnet/artnet.dll \
|
|
../../plugins/asn1/asn1.dll \
|
|
../../plugins/ciscosm/ciscosm.dll \
|
|
../../plugins/docsis/docsis.dll \
|
|
../../plugins/enttec/enttec.dll \
|
|
../../plugins/giop/coseventcomm.dll \
|
|
../../plugins/giop/cosnaming.dll \
|
|
../../plugins/giop/parlay.dll \
|
|
../../plugins/giop/tango.dll \
|
|
../../plugins/gryphon/gryphon.dll \
|
|
../../plugins/irda/irda.dll \
|
|
../../plugins/lwres/lwres.dll \
|
|
../../plugins/m2m/m2m.dll \
|
|
../../plugins/mate/mate.dll \
|
|
../../plugins/mgcp/mgcp.dll \
|
|
../../plugins/opsi/opsi.dll \
|
|
../../plugins/pcli/pcli.dll \
|
|
../../plugins/rlm/rlm.dll \
|
|
../../plugins/rtnet/rtnet.dll \
|
|
../../plugins/rudp/rudp.dll \
|
|
../../plugins/sbus/sbus.dll \
|
|
../../plugins/stats_tree/stats_tree.dll \
|
|
../../plugins/unistim/unistim.dll \
|
|
../../plugins/v5ua/v5ua.dll \
|
|
../../plugins/wimax/wimax.dll
|
|
|
|
NSI=wireshark.nsi \
|
|
GetWindowsVersion.nsh \
|
|
servicelib.nsh \
|
|
AdditionalTasksPage.ini \
|
|
WinPcapPage.ini
|
|
|
|
DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
|
|
|
|
all: NEWS.txt $(DEST)-setup-$(VERSION).exe
|
|
|
|
NEWS.txt: ../../NEWS
|
|
$(UNIX2DOS) < ../../NEWS > NEWS.txt
|
|
|
|
# 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
|
|
$(MAKENSIS) \
|
|
/DDEST=$(DEST) \
|
|
/DMSVC_VARIANT=$(MSVC_VARIANT) \
|
|
!IFDEF MSVCR_DLL
|
|
/DMSVCR_DLL="$(MSVCR_DLL)" \
|
|
!ENDIF
|
|
!IFDEF VCREDIST_EXE
|
|
/DVCREDIST_EXE="$(VCREDIST_EXE)" \
|
|
!ENDIF
|
|
!IF "$(ENABLE_LIBWIRESHARK)" != ""
|
|
/DENABLE_LIBWIRESHARK=$(ENABLE_LIBWIRESHARK) \
|
|
!ENDIF
|
|
!IFDEF GTK1_DIR
|
|
/DGTK1_DIR=$(GTK1_DIR) \
|
|
!ENDIF
|
|
!IFDEF GTK2_DIR
|
|
/DGTK2_DIR=$(GTK2_DIR) \
|
|
/DGTK2_LIB_DIR=$(GTK2_LIB_DIR) \
|
|
/DPANGO_LIB_DIR=$(PANGO_LIB_DIR) \
|
|
!IFDEF NEED_LIBPNG_DLL
|
|
/DNEED_LIBPNG_DLL=$(NEED_LIBPNG_DLL) \
|
|
!ENDIF
|
|
!IFDEF NEED_CAIRO_DLL
|
|
/DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
|
|
!ENDIF
|
|
!ENDIF
|
|
!IFDEF GTK_WIMP_DIR
|
|
/DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
|
|
/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) \
|
|
!ENDIF
|
|
/DGLIB_DIR=$(GLIB_DIR) \
|
|
/DICONV_DIR=$(ICONV_DIR) \
|
|
/DGETTEXT_DIR=$(GETTEXT_DIR) \
|
|
/DVERSION=$(VERSION) \
|
|
/DWTAP_VERSION=$(WTAP_VERSION) \
|
|
!IF "$(NET_SNMP_DIR)" != ""
|
|
/DNET_SNMP_DIR=$(NET_SNMP_DIR) \
|
|
!ENDIF
|
|
!IF "$(ADNS_DIR)" != ""
|
|
/DADNS_DIR=$(ADNS_DIR) \
|
|
!ENDIF
|
|
!IF "$(KFW_DIR)" != ""
|
|
/DKFW_DIR=$(KFW_DIR) \
|
|
!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-setup-$(VERSION).exe
|
|
rm -f wireshark-gtk1-setup-$(VERSION).exe
|
|
rm -f wireshark-gtk2-setup-$(VERSION).exe
|
|
rm -f NEWS.txt
|
|
rm -f user-guide.chm
|
|
|
|
distclean: clean
|
|
rm -f wireshark-setup-*.exe
|
|
rm -f wireshark-gtk1-setup-*.exe
|
|
rm -f wireshark-gtk2-setup-*.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
|