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=../../tethereal.exe ../../editcap.exe \
43 ../../ethereal-gtk2.exe \
45 ../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_3_1.exe
46 DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
47 DOC=../../doc/ethereal.html \
48 ../../doc/tethereal.html \
49 ../../doc/ethereal-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/stats_tree/stats_tree.dll \
93 ../../plugins/v5ua/v5ua.dll
96 GetWindowsVersion.nsh \
98 AdditionalTasksPage.ini \
101 DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
103 all: NEWS.txt $(DEST)-setup-$(VERSION).exe
106 $(UNIX2DOS) < ../../NEWS > NEWS.txt
108 $(DEST)-setup-$(VERSION).exe : $(NSI) $(DELIVERABLES) Makefile.nmake
111 !IF "$(MAKENSIS_MODERN_UI)" != ""
112 /DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
114 !IF "$(ENABLE_LIBETHEREAL)" != ""
115 /DENABLE_LIBETHEREAL=$(ENABLE_LIBETHEREAL) \
118 /DGTK1_DIR=$(GTK1_DIR) \
121 /DGTK2_DIR=$(GTK2_DIR) \
122 /DGTK2_LIB_DIR=$(GTK2_LIB_DIR) \
123 /DPANGO_LIB_DIR=$(PANGO_LIB_DIR) \
124 !IFDEF NEED_LIBPNG_DLL
125 /DNEED_LIBPNG_DLL=$(NEED_LIBPNG_DLL) \
127 !IFDEF NEED_CAIRO_DLL
128 /DNEED_CAIRO_DLL=$(NEED_CAIRO_DLL) \
132 /DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
133 /DGTK_THEME_DIR=$(GTK_THEME_DIR) \
135 /DGLIB_DIR=$(GLIB_DIR) \
136 /DICONV_DIR=$(ICONV_DIR) \
137 /DGETTEXT_DIR=$(GETTEXT_DIR) \
138 /DVERSION=$(VERSION) \
139 /DWTAP_VERSION=$(WTAP_VERSION) \
140 /DNET_SNMP_DIR=$(NET_SNMP_DIR) \
141 !IF "$(ADNS_DIR)" != ""
142 /DADNS_DIR=$(ADNS_DIR) \
144 !IF "$(PCRE_DIR)" != ""
145 /DPCRE_DIR=$(PCRE_DIR) \
147 !IF "$(ZLIB_DIR)" != ""
148 /DZLIB_DIR=$(ZLIB_DIR) \
151 /DLUA_DIR=$(LUA_DIR) \
154 /DHHC_DIR=$(HHC_DIR) \
159 rm -f wireshark-setup-$(VERSION).exe
160 rm -f wireshark-gtk1-setup-$(VERSION).exe
161 rm -f wireshark-gtk2-setup-$(VERSION).exe
166 maintainer-clean: distclean
170 $(MAKE) -f makefile.nmake
175 $(MAKE) -f makefile.nmake