4 # NSIS is a free packager/installer/uninstaller program for Win32.
5 # It was originally written for the Winamp package, but various
6 # freeware and non-freeware packages are using it, too.
8 # http://www.nullsoft.com/free/nsis/
10 include ../../config.nmake
12 UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
15 EXE=../../tshark.exe ../../editcap.exe \
19 ../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_4_0_2.exe
20 DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll ../../wsutil/libwsutil.dll
21 DOC=../../doc/ws.css \
22 ../../doc/capinfos.html \
23 ../../doc/dumpcap.html \
24 ../../doc/editcap.html \
25 ../../doc/idl2wrs.html \
26 ../../doc/mergecap.html \
27 ../../doc/rawshark.html \
28 ../../doc/text2pcap.html \
29 ../../doc/rawshark.html \
30 ../../doc/tshark.html \
31 ../../doc/wireshark-filter.html \
32 ../../doc/wireshark.html \
37 HELP=../../help/capture_filters.txt \
38 ../../help/capturing.txt \
39 ../../help/display_filters.txt \
41 ../../help/getting_started.txt \
42 ../../help/overview.txt \
46 ../../plugins/agentx/agentx.dll \
47 ../../plugins/asn1/asn1.dll \
48 ../../plugins/docsis/docsis.dll \
49 ../../plugins/ethercat/ethercat.dll \
50 ../../plugins/giop/coseventcomm.dll \
51 ../../plugins/giop/cosnaming.dll \
52 ../../plugins/giop/parlay.dll \
53 ../../plugins/giop/tango.dll \
54 ../../plugins/gryphon/gryphon.dll \
55 ../../plugins/irda/irda.dll \
56 ../../plugins/m2m/m2m.dll \
57 ../../plugins/mate/mate.dll \
58 ../../plugins/sercosiii/sercosiii.dll \
59 ../../plugins/stats_tree/stats_tree.dll \
60 ../../plugins/unistim/unistim.dll \
61 ../../plugins/wimax/wimax.dll \
62 ../../plugins/wimaxasncp/wimaxasncp.dll
65 GetWindowsVersion.nsh \
67 AdditionalTasksPage.ini \
70 DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
72 all: NEWS.txt wireshark-$(PLATFORM)-$(VERSION).exe
75 $(UNIX2DOS) < ../../NEWS > NEWS.txt
77 # fetch the latest available user-guide.chm version
79 if exist ..\..\docbook\user-guide.chm xcopy ..\..\docbook\user-guide.chm . /Y /D
80 if exist $(WIRESHARK_LIBS)\user-guide\user-guide.chm xcopy $(WIRESHARK_LIBS)\user-guide\user-guide.chm . /Y /D
82 wireshark-$(PLATFORM)-$(VERSION).exe : user-guide.chm $(NSI) $(DELIVERABLES) Makefile.nmake
84 /DPLATFORM=$(PLATFORM) \
85 /DMSVC_VARIANT=$(MSVC_VARIANT) \
87 /DMSVCR_DLL="$(MSVCR_DLL)" \
90 /DVCREDIST_EXE="$(VCREDIST_EXE)" \
92 !IF "$(ENABLE_LIBWIRESHARK)" != ""
93 /DENABLE_LIBWIRESHARK=$(ENABLE_LIBWIRESHARK) \
96 /DGTK_DIR=$(GTK_DIR) \
97 /DGTK_LIB_DIR=$(GTK_LIB_DIR) \
98 /DPANGO_LIB_DIR=$(PANGO_LIB_DIR) \
99 !IFDEF NEED_LIBPNG_DLL
100 /DNEED_LIBPNG_DLL=$(NEED_LIBPNG_DLL) \
102 !IFDEF NEED_LIBJPEG_DLL
103 /DNEED_LIBJPEG_DLL=$(NEED_LIBJPEG_DLL) \
105 !IFDEF NEED_LIBTIFF_DLL
106 /DNEED_LIBTIFF_DLL=$(NEED_LIBTIFF_DLL) \
108 !IFDEF NEED_CAIRO_DLL
109 /DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
112 /DGTK_WIMP_DLLDST_DIR=$(GTK_WIMP_DLLDST_DIR) \
113 /DGTK_WIMP_DLLSRC_DIR=$(GTK_WIMP_DLLSRC_DIR) \
114 /DGTK_WIMP_RCDST_DIR=$(GTK_WIMP_RCDST_DIR) \
115 /DGTK_WIMP_RCSRC_DIR=$(GTK_WIMP_RCSRC_DIR) \
116 /DGLIB_DIR=$(GLIB_DIR) \
118 /DICONV_DIR=$(ICONV_DIR) \
120 /DGETTEXT_DIR=$(GETTEXT_DIR) \
121 /DVERSION=$(VERSION) \
122 /DWTAP_VERSION=$(WTAP_VERSION) \
123 !IF "$(C_ARES_DIR)" != ""
124 /DC_ARES_DIR=$(C_ARES_DIR) \
126 !IF "$(ADNS_DIR)" != ""
127 /DADNS_DIR=$(ADNS_DIR) \
129 !IF "$(KFW_DIR)" != ""
130 /DKFW_DIR=$(KFW_DIR) \
132 !IF "$(GNUTLS_DIR)" != ""
133 /DGNUTLS_DIR=$(GNUTLS_DIR) \
135 !IF "$(PCRE_DIR)" != ""
136 /DPCRE_DIR=$(PCRE_DIR) \
138 !IF "$(ZLIB_DIR)" != ""
139 /DZLIB_DIR=$(ZLIB_DIR) \
142 /DLUA_DIR=$(LUA_DIR) \
145 /DSMI_DIR=$(SMI_DIR) \
148 /DHHC_DIR="$(HHC_DIR)" \
153 rm -f wireshark-$(PLATFORM)-$(VERSION).exe
158 rm -f wireshark-$(PLATFORM)-*.exe
160 maintainer-clean: distclean
164 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
169 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake