Incorporate plugin dissector into build in collection.
[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 process-plugins and to install-plugins
8
9 all:
10         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET= process-plugins
11
12 clean: clean-local
13         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=clean process-plugins
14
15 distclean: distclean-local
16         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=distclean process-plugins
17
18 maintainer-clean: maintainer-clean-local
19         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake PLUGIN_TARGET=maintainer-clean process-plugins
20
21
22 clean-local:
23         rm -rf $(VERSION)
24
25 distclean-local: clean-local
26
27 maintainer-clean-local: distclean-local
28
29 checkapi: 
30         $(MAKE) -f Makefile.nmake PLUGIN_TARGET=checkapi process-plugins 
31
32 process-plugins:
33         cd agentx
34         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
35         cd ..
36         cd artnet
37         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
38         cd ..
39         cd asn1
40         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
41         cd ..
42         cd docsis
43         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
44         cd ..
45         cd ethercat
46         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
47         cd ..
48         cd giop
49         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
50         cd ..
51         cd gryphon
52         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
53         cd ..
54         cd irda
55         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
56         cd ..
57         cd m2m
58         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
59         cd ..
60         cd mate
61         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
62         cd ..
63         cd opcua
64         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
65         cd ..
66         cd profinet
67         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
68         cd ..
69         cd sercosiii
70         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
71         cd ..
72         cd stats_tree
73         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
74         cd ..
75         cd unistim
76         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
77         cd ..
78         cd wimax
79         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
80         cd ..
81         cd wimaxasncp
82         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
83         cd ..
84         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake $(PLUGIN_TARGET)
85
86 ################################################################################
87 # copy all plugins to $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
88 # started from $(INSTALL_DIR).
89 ################################################################################
90
91 install-plugins:
92 !IFDEF ENABLE_LIBWIRESHARK
93         cd..
94         xcopy plugins\agentx\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
95         xcopy plugins\artnet\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
96         xcopy plugins\asn1\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
97         xcopy plugins\docsis\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
98         xcopy plugins\ethercat\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
99         xcopy plugins\giop\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
100         xcopy plugins\gryphon\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
101         xcopy plugins\irda\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
102         xcopy plugins\m2m\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
103         xcopy plugins\mate\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
104         xcopy plugins\opcua\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
105         xcopy plugins\profinet\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
106         xcopy plugins\sercosiii\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
107         xcopy plugins\stats_tree\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
108         xcopy plugins\unistim\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
109         xcopy plugins\wimax\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
110         xcopy plugins\wimaxasncp\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
111         cd plugins
112         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
113 !ENDIF
114
115 clean-deps:
116