aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/nsis/Makefile.nmake
blob: e55effc631d32a3b37896d211aa19e902a8fa60e (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
#
# $Id: Makefile.nmake,v 1.35 2004/02/03 20:03:40 ulfl Exp $
#
# 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

!IFDEF GTK1
DEST=ethereal
GTK_DIR=$(GTK1_DIR)
!ELSE
DEST=ethereal2
GTK_DIR=$(GTK2_DIR)
!ENDIF

EXE=../../$(DEST).exe ../../tethereal.exe ../../editcap.exe \
	../../text2pcap.exe ../../mergecap.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 	\
	../../FAQ			\
	../../README			\
	../../README.win32
GPL=../../COPYING
HELP=../../help/toc \
	../../help/overview.txt \
	../../help/capture_filters.txt \
	../../help/display_filters.txt \
	../../help/well_known.txt \
	../../help/faq.txt

PLUGINS=../../plugins/acn/acn.dll \
	../../plugins/artnet/artnet.dll \
	../../plugins/asn1/asn1.dll \
	../../plugins/docsis/docsis.dll \
	../../plugins/enttec/enttec.dll \
	../../plugins/giop/coseventcomm.dll \
	../../plugins/giop/cosnaming.dll \
	../../plugins/gryphon/gryphon.dll \
	../../plugins/irda/irda.dll \
	../../plugins/lwres/lwres.dll \
	../../plugins/megaco/megaco.dll \
	../../plugins/mgcp/mgcp.dll \
	../../plugins/pcli/pcli.dll \
	../../plugins/rdm/rdm.dll \
	../../plugins/rtnet/rtnet.dll \
	../../plugins/v5ua/v5ua.dll

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


$(DEST)-setup-$(VERSION).exe : ethereal.nsi $(DELIVERABLES) Makefile.nmake
	$(MAKENSIS) \
!IF "$(MAKENSIS_MODERN_UI)" != ""
	/DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
!ENDIF
!IFDEF GTK2
	/DGTK2 \
!ENDIF
	/DDEST=$(DEST) \
	/DGTK_DIR=$(GTK_DIR) \
	/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 ethereal2-setup-$(VERSION).exe

distclean: clean

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

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