aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/nsis/Makefile.nmake
blob: 5fb9ee137712e496363e013670b72f5d429fa629 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#
# $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


EXE=../../tshark.exe ../../editcap.exe \
!IFDEF GTK_DIR
	../../wireshark.exe \
!ENDIF
	../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_4_0_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	\
	../../README			\
	../../README.win32
DOC_dos=NEWS.txt
GPL=../../COPYING
HELP=../../help/capture_filters.txt \
	../../help/capturing.txt \
	../../help/display_filters.txt \
	../../help/faq.txt \
	../../help/getting_started.txt \
	../../help/overview.txt \
	../../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/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

NSI=wireshark.nsi \
	GetWindowsVersion.nsh \
	servicelib.nsh \
	AdditionalTasksPage.ini \
	WinPcapPage.ini

DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)

all: NEWS.txt wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(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

wireshark-$(WIRESHARK_TARGET_PLATFORM)-$(VERSION).exe : user-guide.chm $(NSI) $(DELIVERABLES) Makefile.nmake
	$(MAKENSIS) \
	/DWIRESHARK_TARGET_PLATFORM=$(WIRESHARK_TARGET_PLATFORM) \
	/DMSVC_VARIANT=$(MSVC_VARIANT) \
!IFDEF MSVCR_DLL
	/DMSVCR_DLL="$(MSVCR_DLL)" \
!ENDIF
!IFDEF VCREDIST_EXE
	/DVCREDIST_EXE="$(VCREDIST_EXE)" \
!ENDIF
!IF "$(ENABLE_LIBWIRESHARK)" != ""
	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E_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