aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/nsis/Makefile.nmake
blob: fb109597671e9134e61654f5dc5c02130a4d2a1e (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
#
# $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 ethereal GTK1 version
DEST=ethereal-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 ethereal GTK2 version
DEST=ethereal-gtk2
!IFDEF GTK1_DIR
!UNDEF GTK1_DIR
!ENDIF
!ENDIF

!IFNDEF DEST
# define installer name for combined GTK1 and GTK2 installer package
DEST=ethereal
!ENDIF

EXE=../../tethereal.exe ../../editcap.exe \
!IFDEF GTK1_DIR
	../../ethereal.exe \
!ENDIF
!IFDEF GTK2_DIR
	../../ethereal-gtk2.exe \
!ENDIF
	../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe WinPcap_3_1_beta4.exe
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
DOC=../../doc/ethereal.html		\
	../../doc/tethereal.html	\
	../../doc/ethereal-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/acn/acn.dll \
	../../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/mate/mate.dll \
	../../plugins/megaco/megaco.dll \
	../../plugins/mgcp/mgcp.dll \
	../../plugins/opsi/opsi.dll \
	../../plugins/pcli/pcli.dll \
	../../plugins/rdm/rdm.dll \
	../../plugins/rlm/rlm.dll \
	../../plugins/rtnet/rtnet.dll \
	../../plugins/rudp/rudp.dll \
	../../plugins/stats_tree/stats_tree.dll \
	../../plugins/v5ua/v5ua.dll

NSI=ethereal.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

$(DEST)-setup-$(VERSION).exe : $(NSI) $(DELIVERABLES) Makefile.nmake
	$(MAKENSIS) \
	/DDEST=$(DEST) \
!IF "$(MAKENSIS_MODERN_UI)" != ""
	/DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
!ENDIF
!IF "$(ENABLE_LIBETHEREAL)" != ""
	/DENABLE_LIBETHEREAL=$(ENABLE_LIBETHEREAL) \
!ENDIF
!IFDEF GTK1_DIR
	/DGTK1_DIR=$(GTK1_DIR) \
!ENDIF
!IFDEF GTK2_DIR
	/DGTK2_DIR=$(GTK2_DIR) \
	/DGTK2_INST_VERSION=$(GTK2_INST_VERSION) \
	/DPANGO_INST_VERSION=$(PANGO_INST_VERSION) \
!ENDIF	
!IFDEF GTK_WIMP_DIR
	/DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
!ENDIF	
	/DGLIB_DIR=$(GLIB_DIR) \
	/DICONV_DIR=$(ICONV_DIR) \
	/DGETTEXT_DIR=$(GETTEXT_DIR) \
	/DVERSION=$(VERSION) \
	/DWTAP_VERSION=$(WTAP_VERSION) \
	/DNET_SNMP_DIR=$(NET_SNMP_DIR) \
!IF "$(ADNS_DIR)" != ""
	/DADNS_DIR=$(ADNS_DIR) \
!ENDIF
!IF "$(PCRE_DIR)" != ""
	/DPCRE_DIR=$(PCRE_DIR) \
!ENDIF
!IF "$(ZLIB_DIR)" != ""
	/DZLIB_DIR=$(ZLIB_DIR) \
!ENDIF
	ethereal.nsi

clean:
	rm -f ethereal-setup-$(VERSION).exe
	rm -f ethereal-gtk1-setup-$(VERSION).exe
	rm -f ethereal-gtk2-setup-$(VERSION).exe
	rm -f NEWS.txt

distclean: clean

maintainer-clean: distclean

$(DOC):
	cd ../../doc
	$(MAKE) -f makefile.nmake
	cd ../packaging/nsis

$(EXE) $(DLL):
	cd ../..
	$(MAKE) -f makefile.nmake
	cd packaging/nsis