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