Simply use %c for printing char.
[obnox/wireshark/wip.git] / plugins / Makefile.nmake
1 #
2 # $Id$
3 #
4
5 include ..\config.nmake
6
7 ## To add a plugin: Add entry to PLUGIN_LIST
8
9 PLUGIN_LIST = \
10         asn1        \
11         docsis      \
12         ethercat    \
13         giop        \
14         gryphon     \
15         interlink   \
16         irda        \
17         m2m         \
18         mate        \
19         opcua       \
20         profinet    \
21         sercosiii   \
22         stats_tree  \
23         unistim     \
24         wimax       \
25         wimaxasncp
26
27
28 all:
29         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET= process-plugins
30
31 clean: clean-local
32         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=clean process-plugins
33
34 distclean: distclean-local
35         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=distclean process-plugins
36
37 maintainer-clean: maintainer-clean-local
38         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=maintainer-clean process-plugins
39
40
41 clean-local:
42         rm -rf $(VERSION)
43
44 distclean-local: clean-local
45
46 maintainer-clean-local: distclean-local
47
48 checkapi:
49         $(MAKE) -f Makefile.nmake PLUGIN_TARGET=checkapi process-plugins 
50
51
52
53 process-plugins : $(PLUGIN_LIST) custom
54
55 $(PLUGIN_LIST) : _FORCE_   # _FORCE_ req'd since each target actually exists
56         cd $@
57         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
58         cd ..
59
60 custom :
61         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake $(PLUGIN_TARGET)
62
63
64 ################################################################################
65 # copy all plugins to $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
66 # started from $(INSTALL_DIR).
67 ################################################################################
68
69 install-plugins:
70 !IFDEF ENABLE_LIBWIRESHARK
71         cd ..
72         @for %f in ( $(PLUGIN_LIST) ) do xcopy plugins\%f\*.dll  $(INSTALL_DIR)\plugins\$(VERSION) /d
73         cd plugins
74         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
75 !ENDIF
76
77 clean-deps:
78         
79 ####
80 _FORCE_:  ## Assumption: no file named _FORCE_ exists in the current directory
81