aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.nmake
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-04-19 14:38:20 +0000
committerBill Meier <wmeier@newsguy.com>2010-04-19 14:38:20 +0000
commit17b57d46d37583b5bbce1a34e6d6418d5d43a72f (patch)
tree8fb51167ee937ea7e79d273c84ef5abd0b62ca55 /plugins/Makefile.nmake
parent6b96494a3d8d2eadd2500c4f803fcd1e08a091c2 (diff)
Simplify Makefile.nmake so that adding a new plugin to Makefile.nmake
requires only adding the plugin (directory) name to a list of plugins. svn path=/trunk/; revision=32516
Diffstat (limited to 'plugins/Makefile.nmake')
-rw-r--r--plugins/Makefile.nmake99
1 files changed, 34 insertions, 65 deletions
diff --git a/plugins/Makefile.nmake b/plugins/Makefile.nmake
index 28afef9984..c11868b542 100644
--- a/plugins/Makefile.nmake
+++ b/plugins/Makefile.nmake
@@ -4,7 +4,26 @@
include ..\config.nmake
-## To add a plugin: Add entry to process-plugins and to install-plugins
+## 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
+
all:
$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET= process-plugins
@@ -29,57 +48,19 @@ maintainer-clean-local: distclean-local
checkapi:
$(MAKE) -f Makefile.nmake PLUGIN_TARGET=checkapi process-plugins
-process-plugins:
- cd asn1
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd docsis
- $(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 interlink
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd irda
- $(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 profinet
- $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
- cd ..
- cd sercosiii
- $(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 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 $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
# started from $(INSTALL_DIR).
@@ -87,26 +68,14 @@ process-plugins:
install-plugins:
!IFDEF ENABLE_LIBWIRESHARK
- cd..
- xcopy plugins\asn1\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\docsis\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\ethercat\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\giop\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\gryphon\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\interlink\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\irda\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\m2m\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\mate\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\opcua\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\profinet\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\sercosiii\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\stats_tree\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\unistim\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\wimax\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
- xcopy plugins\wimaxasncp\*.dll $(INSTALL_DIR)\plugins\$(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:
+####
+_FORCE_: ## Assumption: no file named _FORCE_ exists in the current directory
+