b0fb6796457a1ecba7f1b559f9f4ba386fb31662
[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         irda        \
16         m2m         \
17         mate        \
18         opcua       \
19         profinet    \
20         stats_tree  \
21         unistim     \
22         wimax       \
23         wimaxasncp
24
25
26 all:
27         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET= process-plugins
28
29 clean: clean-local
30         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=clean process-plugins
31
32 distclean: distclean-local
33         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=distclean process-plugins
34
35 maintainer-clean: maintainer-clean-local
36         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=maintainer-clean process-plugins
37
38
39 clean-local:
40         rm -rf $(VERSION)
41
42 distclean-local: clean-local
43
44 maintainer-clean-local: distclean-local
45
46 checkapi:
47         $(MAKE) -f Makefile.nmake PLUGIN_TARGET=checkapi process-plugins 
48
49
50
51 process-plugins : $(PLUGIN_LIST) custom
52
53 $(PLUGIN_LIST) : _FORCE_   # _FORCE_ req'd since each target actually exists
54         cd $@
55         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
56         cd ..
57
58 custom :
59         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake $(PLUGIN_TARGET)
60
61
62 ################################################################################
63 # copy all plugins to $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
64 # started from $(INSTALL_DIR).
65 ################################################################################
66
67 install-plugins:
68 !IFDEF ENABLE_LIBWIRESHARK
69         cd ..
70         @for %f in ( $(PLUGIN_LIST) ) do xcopy plugins\%f\*.dll  $(INSTALL_DIR)\plugins\$(VERSION) /d
71         cd plugins
72         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
73 !ENDIF
74
75 ####
76 _FORCE_:  ## Assumption: no file named _FORCE_ exists in the current directory
77