2001-04-04 04:50:05 +00:00
|
|
|
#
|
2004-07-18 00:24:25 +00:00
|
|
|
# $Id$
|
2001-04-04 20:08:16 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2001-04-04 04:50:05 +00:00
|
|
|
|
|
|
|
include ../../config.nmake
|
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
|
|
|
|
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_ONLY
|
2004-05-13 20:54:39 +00:00
|
|
|
# define installer name and undefine GTK2_DIR to get a separate
|
2004-02-18 20:45:54 +00:00
|
|
|
# installer for ethereal GTK1 version
|
|
|
|
DEST=ethereal-gtk1
|
|
|
|
!IFDEF GTK2_DIR
|
|
|
|
!UNDEF GTK2_DIR
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
|
|
|
!IFDEF GTK2_ONLY
|
2004-05-13 20:54:39 +00:00
|
|
|
# define installer name and undefine GTK1_DIR to get a separate
|
2004-02-18 20:45:54 +00:00
|
|
|
# installer for ethereal GTK2 version
|
2004-02-06 18:47:45 +00:00
|
|
|
DEST=ethereal-gtk2
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
|
|
|
!UNDEF GTK1_DIR
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF DEST
|
|
|
|
# define installer name for combined GTK1 and GTK2 installer package
|
|
|
|
DEST=ethereal
|
2004-02-03 20:03:40 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2004-02-18 20:45:54 +00:00
|
|
|
EXE=../../tethereal.exe ../../editcap.exe \
|
|
|
|
!IFDEF GTK1_DIR
|
|
|
|
../../ethereal.exe \
|
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
|
|
|
../../ethereal-gtk2.exe \
|
|
|
|
!ENDIF
|
2004-10-20 18:50:58 +00:00
|
|
|
../../text2pcap.exe ../../mergecap.exe ../../capinfos.exe
|
2001-04-04 04:50:05 +00:00
|
|
|
DLL=../../wiretap/wiretap-$(WTAP_VERSION).dll
|
|
|
|
DOC=../../doc/ethereal.html \
|
|
|
|
../../doc/tethereal.html \
|
2003-10-02 22:28:04 +00:00
|
|
|
../../doc/ethereal-filter.html \
|
2001-04-04 04:50:05 +00:00
|
|
|
../../doc/editcap.html \
|
2001-05-22 16:19:45 +00:00
|
|
|
../../doc/text2pcap.html \
|
2001-07-12 22:45:23 +00:00
|
|
|
../../doc/mergecap.html \
|
2004-10-20 18:50:58 +00:00
|
|
|
../../doc/capinfos.html \
|
2002-08-20 00:59:42 +00:00
|
|
|
../../FAQ \
|
2001-04-04 04:50:05 +00:00
|
|
|
../../README \
|
|
|
|
../../README.win32
|
2004-10-16 11:46:17 +00:00
|
|
|
DOC_dos=NEWS.txt
|
2004-01-05 21:47:44 +00:00
|
|
|
GPL=../../COPYING
|
|
|
|
HELP=../../help/toc \
|
|
|
|
../../help/overview.txt \
|
|
|
|
../../help/capture_filters.txt \
|
|
|
|
../../help/display_filters.txt \
|
|
|
|
../../help/faq.txt
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2003-10-27 22:29:52 +00:00
|
|
|
PLUGINS=../../plugins/acn/acn.dll \
|
2005-02-10 06:36:21 +00:00
|
|
|
../../plugins/agentx/agentx.dll \
|
2003-10-14 01:18:11 +00:00
|
|
|
../../plugins/artnet/artnet.dll \
|
2003-10-28 07:02:38 +00:00
|
|
|
../../plugins/asn1/asn1.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/ciscosm/ciscosm.dll \
|
2003-04-21 21:28:39 +00:00
|
|
|
../../plugins/docsis/docsis.dll \
|
2003-11-17 20:57:14 +00:00
|
|
|
../../plugins/enttec/enttec.dll \
|
2002-07-12 22:52:43 +00:00
|
|
|
../../plugins/giop/coseventcomm.dll \
|
|
|
|
../../plugins/giop/cosnaming.dll \
|
|
|
|
../../plugins/gryphon/gryphon.dll \
|
2003-12-18 19:07:14 +00:00
|
|
|
../../plugins/irda/irda.dll \
|
2003-08-05 05:09:37 +00:00
|
|
|
../../plugins/lwres/lwres.dll \
|
2005-01-21 19:16:05 +00:00
|
|
|
../../plugins/mate/mate.dll \
|
2003-01-28 22:18:06 +00:00
|
|
|
../../plugins/megaco/megaco.dll \
|
|
|
|
../../plugins/mgcp/mgcp.dll \
|
2004-07-21 06:31:33 +00:00
|
|
|
../../plugins/opsi/opsi.dll \
|
2003-06-11 09:17:03 +00:00
|
|
|
../../plugins/pcli/pcli.dll \
|
2003-11-17 20:57:14 +00:00
|
|
|
../../plugins/rdm/rdm.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/rlm/rlm.dll \
|
2003-12-17 05:16:21 +00:00
|
|
|
../../plugins/rtnet/rtnet.dll \
|
2004-03-25 11:21:07 +00:00
|
|
|
../../plugins/rudp/rudp.dll \
|
2003-12-17 05:16:21 +00:00
|
|
|
../../plugins/v5ua/v5ua.dll
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
DELIVERABLES=$(EXE) $(DLL) $(DOC) $(DOC_dos) $(GPL) $(HELP) $(PLUGINS)
|
2001-04-04 04:50:05 +00:00
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
all: NEWS.txt $(DEST)-setup-$(VERSION).exe
|
2004-01-26 21:12:41 +00:00
|
|
|
|
2004-10-16 11:46:17 +00:00
|
|
|
NEWS.txt: ../../NEWS
|
|
|
|
$(UNIX2DOS) < ../../NEWS > NEWS.txt
|
2004-02-18 20:45:54 +00:00
|
|
|
|
2004-01-26 21:12:41 +00:00
|
|
|
$(DEST)-setup-$(VERSION).exe : ethereal.nsi $(DELIVERABLES) Makefile.nmake
|
2003-07-22 22:00:38 +00:00
|
|
|
$(MAKENSIS) \
|
2004-02-18 20:45:54 +00:00
|
|
|
/DDEST=$(DEST) \
|
2003-12-26 12:27:47 +00:00
|
|
|
!IF "$(MAKENSIS_MODERN_UI)" != ""
|
|
|
|
/DMAKENSIS_MODERN_UI=$(MAKENSIS_MODERN_UI) \
|
|
|
|
!ENDIF
|
2004-05-09 10:03:41 +00:00
|
|
|
!IF "$(ENABLE_LIBETHEREAL)" != ""
|
|
|
|
/DENABLE_LIBETHEREAL=$(ENABLE_LIBETHEREAL) \
|
|
|
|
!ENDIF
|
2004-02-18 20:45:54 +00:00
|
|
|
!IFDEF GTK1_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
/DGTK1_DIR=$(GTK1_DIR) \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK2_DIR
|
2004-02-06 18:47:45 +00:00
|
|
|
/DGTK2_DIR=$(GTK2_DIR) \
|
From Lars Roland: define an "installation" version of GTK+ 2.x and Pango
in "config.nmake", and use that in the NSIS script when generating the
NSIS installer, so it puts GTK+ and Pango in the appropriate
subdirectories. Also, when uninstalling, remove both of the sets of
subdirectories.
As per his suggestion, get rid of the "GTK1_VERSION" and "GTK2_VERSION"
macros, and just directly insert the values where those macros were used
- "GTK1_VERSION" wasn't used at all, and "GTK2_VERSION" was only used
immediately below where it was defined, and stuff elsewhere, such as in
the NSIS script, didn't use them and would break if you changed them
anyway.
svn path=/trunk/; revision=10976
2004-05-23 22:21:30 +00:00
|
|
|
/DGTK2_INST_VERSION=$(GTK2_INST_VERSION) \
|
|
|
|
/DPANGO_INST_VERSION=$(PANGO_INST_VERSION) \
|
2004-02-24 18:51:40 +00:00
|
|
|
!ENDIF
|
|
|
|
!IFDEF GTK_WIMP_DIR
|
|
|
|
/DGTK_WIMP_DIR=$(GTK_WIMP_DIR) \
|
2004-02-18 20:45:54 +00:00
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
/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) \
|
2003-07-22 22:00:38 +00:00
|
|
|
!ENDIF
|
2003-12-22 21:41:40 +00:00
|
|
|
ethereal.nsi
|
2001-04-12 18:07:22 +00:00
|
|
|
|
|
|
|
clean:
|
2002-08-19 15:48:28 +00:00
|
|
|
rm -f ethereal-setup-$(VERSION).exe
|
2004-02-18 20:45:54 +00:00
|
|
|
rm -f ethereal-gtk1-setup-$(VERSION).exe
|
2004-02-06 18:47:45 +00:00
|
|
|
rm -f ethereal-gtk2-setup-$(VERSION).exe
|
2004-10-16 11:46:17 +00:00
|
|
|
rm -f NEWS.txt
|
2002-01-04 21:20:20 +00:00
|
|
|
|
2003-10-10 21:31:53 +00:00
|
|
|
distclean: clean
|
|
|
|
|
Make the "maintainer-clean" rules get rid of some additional generated
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.
Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.
Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files. In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).
Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.
svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
|
|
|
maintainer-clean: distclean
|
|
|
|
|
2002-01-04 21:20:20 +00:00
|
|
|
$(DOC):
|
|
|
|
cd ../../doc
|
|
|
|
$(MAKE) -f makefile.nmake
|
|
|
|
cd ../packaging/nsis
|
|
|
|
|
|
|
|
$(EXE) $(DLL):
|
|
|
|
cd ../..
|
|
|
|
$(MAKE) -f makefile.nmake
|
|
|
|
cd packaging/nsis
|