d3efa3ed9f
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile; a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS; b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake) (This allows disabling "Warnings as Errors" by just changing config.nmake) c. CVARSDLL definitions (not usage) have been removed from the various makefiles. XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since: -DWIN32 and -DNULL=0 do not appear to be needed (any more); -D_MT and _D_DLL are not needed since /MP causes these definitions. d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled. E.G., 4295: array is too small to include a terminating null character - config.nmake: reformat some long lines for readability; - plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile); - dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ... svn path=/trunk/; revision=35747
80 lines
1.8 KiB
Makefile
80 lines
1.8 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
include ..\config.nmake
|
|
|
|
## To add a plugin: Add entry to PLUGIN_LIST
|
|
|
|
PLUGIN_LIST = \
|
|
asn1 \
|
|
docsis \
|
|
ethercat \
|
|
giop \
|
|
gryphon \
|
|
interlink \
|
|
irda \
|
|
m2m \
|
|
mate \
|
|
opcua \
|
|
profinet \
|
|
sercosiii \
|
|
stats_tree \
|
|
unistim \
|
|
wimax \
|
|
wimaxasncp
|
|
|
|
|
|
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
|
|
|