include ..\config.nmake
-############### no need to modify below this line #########
+## To add a plugin: Add entry to PLUGIN_LIST
+
+PLUGIN_LIST = \
+ asn1 \
+ docsis \
+ ethercat \
+ giop \
+ gryphon \
+ interlink \
+ irda \
+ m2m \
+ mate \
+ opcua \
+ profinet \
+ sercosiii \
+ stats_tree \
+ unistim \
+ wimax \
+ wimaxasncp
-## To add a plugin: Add entry to process-plugins and to install-plugins
all:
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET= process-plugins
checkapi:
$(MAKE) -f Makefile.nmake PLUGIN_TARGET=checkapi process-plugins
-process-plugins:
- cd agentx
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd artnet
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd asn1
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd ciscosm
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd docsis
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd enttec
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd ethercat
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd giop
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd gryphon
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd infiniband
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd irda
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd lwres
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd m2m
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd mate
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd opcua
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd opsi
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd pcli
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd profinet
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd rlm
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd rtnet
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd rudp
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd sbus
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd stats_tree
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd unistim
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd v5ua
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd wimax
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd wimaxasncp
+
+
+process-plugins : $(PLUGIN_LIST) custom
+
+$(PLUGIN_LIST) : _FORCE_ # _FORCE_ req'd since each target actually exists
+ cd $@
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
cd ..
+
+custom :
if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake $(PLUGIN_TARGET)
+
################################################################################
-# copy all plugins to /plugins/$(VERSION), so Wireshark will load them, when
-# started from within the source tree.
+# copy all plugins to $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
+# started from $(INSTALL_DIR).
################################################################################
install-plugins:
!IFDEF ENABLE_LIBWIRESHARK
- rm -rf $(VERSION)
- mkdir $(VERSION)
- xcopy agentx\*.dll $(VERSION) /d
- xcopy artnet\*.dll $(VERSION) /d
- xcopy asn1\*.dll $(VERSION) /d
- xcopy ciscosm\*.dll $(VERSION) /d
- xcopy docsis\*.dll $(VERSION) /d
- xcopy enttec\*.dll $(VERSION) /d
- xcopy ethercat\*.dll $(VERSION) /d
- xcopy giop\*.dll $(VERSION) /d
- xcopy gryphon\*.dll $(VERSION) /d
- xcopy infiniband\*.dll $(VERSION) /d
- xcopy irda\*.dll $(VERSION) /d
- xcopy lwres\*.dll $(VERSION) /d
- xcopy m2m\*.dll $(VERSION) /d
- xcopy mate\*.dll $(VERSION) /d
- xcopy opcua\*.dll $(VERSION) /d
- xcopy opsi\*.dll $(VERSION) /d
- xcopy pcli\*.dll $(VERSION) /d
- xcopy profinet\*.dll $(VERSION) /d
- xcopy rlm\*.dll $(VERSION) /d
- xcopy rtnet\*.dll $(VERSION) /d
- xcopy rudp\*.dll $(VERSION) /d
- xcopy sbus\*.dll $(VERSION) /d
- xcopy stats_tree\*.dll $(VERSION) /d
- xcopy unistim\*.dll $(VERSION) /d
- xcopy v5ua\*.dll $(VERSION) /d
- xcopy wimax\*.dll $(VERSION) /d
- xcopy wimaxasncp\*.dll $(VERSION) /d
+ cd ..
+ @for %f in ( $(PLUGIN_LIST) ) do xcopy plugins\%f\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
+ cd plugins
if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
!ENDIF
clean-deps:
- rm -rf $(VERSION)
-
-
+
+####
+_FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory