2005-09-27 22:06:36 +00:00
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
|
|
|
include ..\..\config.nmake
|
|
|
|
include <win32.mak>
|
|
|
|
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
|
|
|
|
LEMON=..\..\tools\lemon
|
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
|
|
|
/I../.. $(GLIB_CFLAGS) /I$(LEMON) \
|
|
|
|
/I$(PCAP_DIR)\include
|
2008-05-22 15:46:27 +00:00
|
|
|
|
2005-09-27 22:06:36 +00:00
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CFLAGS) -Fdmate.pdb -c $<
|
2008-05-22 15:46:27 +00:00
|
|
|
|
2009-03-02 21:33:11 +00:00
|
|
|
LDFLAGS = $(PLUGIN_LDFLAGS)
|
2005-09-27 22:06:36 +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-09-27 22:06:36 +00:00
|
|
|
|
|
|
|
OBJECTS=packet-mate.obj\
|
|
|
|
mate_setup.obj\
|
|
|
|
mate_runtime.obj\
|
|
|
|
mate_util.obj\
|
|
|
|
mate_plugin.obj\
|
|
|
|
mate_grammar.obj\
|
|
|
|
mate_parser.obj
|
|
|
|
|
|
|
|
mate.dll mate.exp mate.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
|
|
|
|
link -dll /out:mate.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJECTS) mate.dll mate.exp mate.lib *.pdb
|
|
|
|
|
|
|
|
#
|
|
|
|
# We remove the generated files with "distclean" because one of them,
|
|
|
|
# "mate_parser.c", needs different #includes for UN*X and Windows
|
|
|
|
# (UN*X versions of Flex make it include <unistd.h>, but that's a
|
|
|
|
# UN*X-only header), so if you're going to build from source, you need
|
|
|
|
# to build "mate_parser.c" from "mate_parser.l" with Flex.
|
|
|
|
# This might not be necessary for "mate_grammar.{c,h}", but we handle them
|
|
|
|
# the same for now.
|
|
|
|
#
|
|
|
|
distclean: clean
|
|
|
|
rm -f mate_parser.c mate_grammar.c mate_grammar.h mate_grammar.out
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
|
|
|
|
mate_parser.c : mate_parser.l
|
|
|
|
$(LEX) -Pdf_ -omate_parser.c mate_parser.l
|
|
|
|
|
|
|
|
mate_grammar.h : mate_grammar.c
|
|
|
|
mate_grammar.c : mate_grammar.lemon $(LEMON)\lemon.exe
|
2008-05-22 15:46:27 +00:00
|
|
|
$(LEMON)\lemon.exe t=$(LEMON)\lempar.c mate_grammar.lemon
|
2005-09-27 22:06:36 +00:00
|
|
|
|
|
|
|
$(LEMON)\lemon.exe:
|
2009-03-15 22:40:29 +00:00
|
|
|
cd ../../tools
|
|
|
|
$(MAKE) /$(MAKEFLAGS) -f makefile.nmake lemon
|
|
|
|
cd ../plugins/mate
|
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 $(DISSECTOR_SRC) $(DISSECTOR_INCLUDES)
|