"Pluggable custom makefile"
[obnox/wireshark/wip.git] / plugins / Custom.nmake.example
1 #
2 # $Id$
3 #
4
5 include ..\config.nmake
6
7 #
8 # Custom plugin build template.
9 #
10 # If you need to develop a custom plugin (a plugin not yet released to the 
11 # public) this file is for you.
12 #
13 # To generate a custom plugin:
14 #
15 # 1. Create the new plugin directory and implement the plugin (at least to be 
16 #    ready for a first build try). The easiest way to do this is to copy an 
17 #    existing plugin and modify the contents.
18 # 2. Rename this file to Custom.nmake
19 # 3. Replace every appearance of foo in this file with your plugin dir name
20 # 4. Build Wireshark as usual
21 #
22
23 all: foo
24
25 foo:: 
26         cd foo
27         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
28         cd ..
29
30 clean:
31         cd ../foo
32         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
33         cd ..
34
35 distclean: clean
36         cd ../foo
37         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
38         cd ..
39
40 maintainer-clean: distclean
41         cd ../foo
42         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
43         cd ..
44
45 install-plugins:
46 !IFDEF ENABLE_LIBWIRESHARK
47         xcopy foo\*.dll $(VERSION) /d
48 !ENDIF