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 # define installer name and undefine GTK2_DIR to get a separate
16 # installer for Wireshark GTK1 version
25 # define installer name and undefine GTK1_DIR to get a separate
26 # installer for Wireshark GTK2 version
34 # define installer name for combined GTK1 and GTK2 installer package
38 EXE=../../tshark.exe ../../editcap.exe \
43 ../../wireshark-gtk2.exe \
45 ../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_3_1.exe
46 DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
47 DOC=../../doc/wireshark.html \
48 ../../doc/tshark.html \
49 ../../doc/wireshark-filter.html \
50 ../../doc/editcap.html \
51 ../../doc/text2pcap.html \
52 ../../doc/mergecap.html \
53 ../../doc/capinfos.html \
60 ../../help/overview.txt \
61 ../../help/capture_filters.txt \
62 ../../help/display_filters.txt \
65 PLUGINS=../../plugins/acn/acn.dll \
66 ../../plugins/agentx/agentx.dll \
67 ../../plugins/artnet/artnet.dll \
68 ../../plugins/asn1/asn1.dll \
69 ../../plugins/ciscosm/ciscosm.dll \
70 ../../plugins/docsis/docsis.dll \
71 ../../plugins/enttec/enttec.dll \
72 ../../plugins/giop/coseventcomm.dll \
73 ../../plugins/giop/cosnaming.dll \
74 ../../plugins/giop/parlay.dll \
75 ../../plugins/giop/tango.dll \
76 ../../plugins/gryphon/gryphon.dll \
77 ../../plugins/h223/h223.dll \
78 ../../plugins/irda/irda.dll \
80 ../../plugins/lua/lua.dll \
82 ../../plugins/lwres/lwres.dll \
83 ../../plugins/mate/mate.dll \
84 ../../plugins/megaco/megaco.dll \
85 ../../plugins/mgcp/mgcp.dll \
86 ../../plugins/opsi/opsi.dll \
87 ../../plugins/pcli/pcli.dll \
88 ../../plugins/rdm/rdm.dll \
89 ../../plugins/rlm/rlm.dll \
90 ../../plugins/rtnet/rtnet.dll \
91 ../../plugins/rudp/rudp.dll \
92 ../../plugins/sbus/sbus.dll \
93 ../../plugins/stats_tree/stats_tree.dll \
94 ../../plugins/v5ua/v5ua.dll
97 GetWindowsVersion.nsh \
99 AdditionalTasksPage.ini \
102 DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
104 all: NEWS.txt $(DEST)-setup-$(VERSION).exe
107 $(UNIX2DOS) < ../../NEWS > NEWS.txt
109 $(DEST)-setup-$(VERSION).exe : $(NSI) $(DELIVERABLES) Makefile.nmake
112 !IF "$(MAKENSIS_MODERN_UI)" != ""
113 /DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
115 !IF "$(ENABLE_LIBWIRESHARK)" != ""
116 /DENABLE_LIBWIRESHARK=$(ENABLE_LIBWIRESHARK) \
119 /DGTK1_DIR=$(GTK1_DIR) \
122 /DGTK2_DIR=$(GTK2_DIR) \
123 /DGTK2_LIB_DIR=$(GTK2_LIB_DIR) \
124 /DPANGO_LIB_DIR=$(PANGO_LIB_DIR) \
125 !IFDEF NEED_LIBPNG_DLL
126 /DNEED_LIBPNG_DLL=$(NEED_LIBPNG_DLL) \
128 !IFDEF NEED_CAIRO_DLL
129 /DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
133 /DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
134 /DGTK_THEME_DIR=$(GTK_THEME_DIR) \
136 /DGLIB_DIR=$(GLIB_DIR) \
137 /DICONV_DIR=$(ICONV_DIR) \
138 /DGETTEXT_DIR=$(GETTEXT_DIR) \
139 /DVERSION=$(VERSION) \
140 /DWTAP_VERSION=$(WTAP_VERSION) \
141 /DNET_SNMP_DIR=$(NET_SNMP_DIR) \
142 !IF "$(ADNS_DIR)" != ""
143 /DADNS_DIR=$(ADNS_DIR) \
145 !IF "$(KFW_DIR)" != ""
146 /DKFW_DIR=$(KFW_DIR) \
148 !IF "$(PCRE_DIR)" != ""
149 /DPCRE_DIR=$(PCRE_DIR) \
151 !IF "$(ZLIB_DIR)" != ""
152 /DZLIB_DIR=$(ZLIB_DIR) \
155 /DLUA_DIR=$(LUA_DIR) \
158 /DHHC_DIR=$(HHC_DIR) \
163 rm -f wireshark-setup-$(VERSION).exe
164 rm -f wireshark-gtk1-setup-$(VERSION).exe
165 rm -f wireshark-gtk2-setup-$(VERSION).exe
170 maintainer-clean: distclean
174 $(MAKE) -f makefile.nmake
179 $(MAKE) -f makefile.nmake