From Erwin Rol: initial ENTTEC support and RDM support.
[obnox/wireshark/wip.git] / packaging / nsis / Makefile.nmake
index 98eaa49ae8f2542a0565a36e46361175a0e79270..ceadbb11f0a0bced48dd434d9fa7f37f4e478052 100644 (file)
@@ -1,6 +1,5 @@
 #
-# $Id: Makefile.nmake,v 1.7 2001/07/12 22:45:23 gram Exp $
-#
+# $Id: Makefile.nmake,v 1.26 2003/11/17 20:57:09 guy Exp $
 #
 # NSIS is a free packager/installer/uninstaller program for Win32.
 # It was originally written for the Winamp package, but various
@@ -12,30 +11,56 @@ include ../../config.nmake
 
 EXE=../../ethereal.exe ../../tethereal.exe ../../editcap.exe \
        ../../text2pcap.exe ../../mergecap.exe
-PDB=../../ethereal.pdb ../../tethereal.pdb ../../editcap.pdb
 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=GPL.txt
 
-PLUGINS=../../plugins/mgcp/mgcp.dll    \
-       ../../plugins/gryphon/gryphon.dll
+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/lwres/lwres.dll \
+       ../../plugins/megaco/megaco.dll \
+       ../../plugins/mgcp/mgcp.dll \
+       ../../plugins/pcli/pcli.dll \
+       ../../plugins/rdm/rdm.dll \
+       ../../plugins/rtnet/rtnet.dll
+
+DELIVERABLES=$(EXE) $(DLL) $(DOC) $(GPL) $(PLUGINS)
 
-DELIVERABLES=$(EXE) $(DLL) $(DOC) $(GPL) $(PLUGINS) $(PDB)
+ethereal-setup-$(VERSION).exe : ethereal.nsi $(DELIVERABLES)
+       $(MAKENSIS) \
+!IF "$(GTK_VERSION)" == "2.0"
+       /DGTK2 \
+!ENDIF
+!IF "$(GLIB_VERSION)" == "2.0"
+       /DGLIB2 \
+!ENDIF
+       /DVERSION=$(VERSION) /DWTAP_VERSION=$(WTAP_VERSION) /DCOMMON_FILES_GNU=$(COMMON_FILES_GNU) /DNET_SNMP_DIR=$(NET_SNMP_DIR) ethereal.nsi
 
+clean:
+       rm -f ethereal-setup-$(VERSION).exe
 
-ethereal-setup.exe : ethereal.nsi $(DELIVERABLES)
-       $(MAKENSIS) ethereal.nsi
+distclean: clean
 
-ethereal.nsi : ethereal.nsi.in
-       sed -e s/@VERSION@/$(VERSION)/ \
-               -e s/@WTAP_VERSION@/$(WTAP_VERSION)/ \
-               < ethereal.nsi.in > ethereal.nsi
+$(DOC):
+       cd ../../doc
+       $(MAKE) -f makefile.nmake
+       cd ../packaging/nsis
 
-clean:
-       rm -f ethereal.nsi ethereal-setup.exe
+$(EXE) $(DLL):
+       cd ../..
+       $(MAKE) -f makefile.nmake
+       cd packaging/nsis