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