2007-02-26 20:39:38 +00:00
|
|
|
# Makefile.nmake
|
|
|
|
# nmake file for stats_tree plugin
|
2005-03-06 16:49:16 +00:00
|
|
|
#
|
2005-03-07 20:31:35 +00:00
|
|
|
# $Id$
|
2005-03-06 16:49:16 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include ..\..\config.nmake
|
2006-12-18 16:24:42 +00:00
|
|
|
include moduleinfo.nmake
|
2005-03-06 16:49:16 +00:00
|
|
|
|
2006-12-18 16:24:42 +00:00
|
|
|
include Makefile.common
|
2005-03-06 16:49:16 +00:00
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
|
|
|
/I../.. $(GLIB_CFLAGS) \
|
|
|
|
/I$(PCAP_DIR)\include
|
2007-02-26 20:39:38 +00:00
|
|
|
|
2005-03-06 16:49:16 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CFLAGS) -Fdstats_tree.pdb -c $<
|
2008-05-22 15:46:27 +00:00
|
|
|
|
2007-05-27 18:56:39 +00:00
|
|
|
LDFLAGS = $(PLUGIN_LDFLAGS)
|
2005-03-06 16:49:16 +00:00
|
|
|
|
2006-05-31 00:23:01 +00:00
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
|
|
LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
|
2009-09-09 14:01:57 +00:00
|
|
|
CFLAGS=/D_NEED_VAR_IMPORT_ $(CFLAGS)
|
2005-03-06 16:49:16 +00:00
|
|
|
|
2006-12-18 16:24:42 +00:00
|
|
|
TAP_OBJECTS = $(TAP_SRC:.c=.obj)
|
2005-03-06 16:49:16 +00:00
|
|
|
|
2006-12-18 16:24:42 +00:00
|
|
|
OBJECTS=$(TAP_OBJECTS)
|
|
|
|
|
|
|
|
RESOURCE=$(PLUGIN_NAME).res
|
|
|
|
|
|
|
|
all: $(PLUGIN_NAME).dll
|
|
|
|
|
|
|
|
$(PLUGIN_NAME).rc : moduleinfo.nmake
|
|
|
|
sed -e s/@PLUGIN_NAME@/$(PLUGIN_NAME)/ \
|
|
|
|
-e s/@RC_MODULE_VERSION@/$(RC_MODULE_VERSION)/ \
|
|
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
|
|
-e s/@MODULE_VERSION@/$(MODULE_VERSION)/ \
|
|
|
|
-e s/@PACKAGE@/$(PACKAGE)/ \
|
|
|
|
-e s/@VERSION@/$(VERSION)/ \
|
2007-02-26 20:39:38 +00:00
|
|
|
-e s/@MSVC_VARIANT@/$(MSVC_VARIANT)/ \
|
2006-12-18 16:24:42 +00:00
|
|
|
< plugin.rc.in > $@
|
|
|
|
|
|
|
|
$(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLUGIN_WITH) $(RESOURCE)
|
|
|
|
link -dll /out:$(PLUGIN_NAME).dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
|
|
|
|
$(GLIB_LIBS) $(RESOURCE)
|
2005-03-06 16:49:16 +00:00
|
|
|
|
2005-05-31 21:34:14 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2005-03-06 16:49:16 +00:00
|
|
|
clean:
|
2007-01-03 06:06:53 +00:00
|
|
|
rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).dll.manifest $(PLUGIN_NAME).exp \
|
2006-12-18 16:24:42 +00:00
|
|
|
$(RESOURCE) $(PLUGIN_NAME).rc $(PLUGIN_NAME).lib *.pdb
|
2005-03-06 16:49:16 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
2008-05-05 16:55:19 +00:00
|
|
|
|
2008-05-22 15:46:27 +00:00
|
|
|
checkapi:
|
2009-09-13 19:48:22 +00:00
|
|
|
$(PERL) ../../tools/checkAPIs.pl -g abort -g termoutput $(TAP_SRC) $(TAP_INCLUDES)
|