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 asn1
37         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
38         cd ..
39         cd docsis
40         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
41         cd ..
42         cd ethercat
43         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
44         cd ..
45         cd giop
46         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
47         cd ..
48         cd gryphon
49         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
50         cd ..
51         cd irda
52         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
53         cd ..
54         cd m2m
55         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
56         cd ..
57         cd mate
58         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
59         cd ..
60         cd opcua
61         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
62         cd ..
63         cd profinet
64         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
65         cd ..
66         cd sercosiii
67         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
68         cd ..
69         cd stats_tree
70         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
71         cd ..
72         cd unistim
73         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
74         cd ..
75         cd wimax
76         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
77         cd ..
78         cd wimaxasncp
79         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
80         cd ..
81         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake $(PLUGIN_TARGET)
82
83 ################################################################################
84 # copy all plugins to $(INSTALL_DIR)/plugins/$(VERSION), so Wireshark will load them, when
85 # started from $(INSTALL_DIR).
86 ################################################################################
87
88 install-plugins:
89 !IFDEF ENABLE_LIBWIRESHARK
90         cd..
91         xcopy plugins\agentx\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
92         xcopy plugins\asn1\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
93         xcopy plugins\docsis\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
94         xcopy plugins\ethercat\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
95         xcopy plugins\giop\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
96         xcopy plugins\gryphon\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
97         xcopy plugins\irda\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
98         xcopy plugins\m2m\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
99         xcopy plugins\mate\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
100         xcopy plugins\opcua\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
101         xcopy plugins\profinet\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
102         xcopy plugins\sercosiii\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
103         xcopy plugins\stats_tree\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
104         xcopy plugins\unistim\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
105         xcopy plugins\wimax\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
106         xcopy plugins\wimaxasncp\*.dll $(INSTALL_DIR)\plugins\$(VERSION) /d
107         cd plugins
108         if exist Custom.nmake $(MAKE) /$(MAKEFLAGS) -f Custom.nmake install-plugins
109 !ENDIF
110
111 clean-deps:
112