5 include ..\..\config.nmake
8 ############### no need to modify below this line #########
10 LEMON=..\..\tools\lemon
12 CFLAGS=/WX /DHAVE_CONFIG_H /I../.. $(GLIB_CFLAGS) /I$(LEMON)\
13 /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
16 $(CC) $(CFLAGS) -Fdmate.pdb -c $<
18 LDFLAGS = $(PLUGIN_LDFLAGS)
20 !IFDEF ENABLE_LIBWIRESHARK
21 LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
22 CFLAGS=/D_NEED_VAR_IMPORT_ $(CFLAGS)
24 OBJECTS=packet-mate.obj\
32 mate.dll mate.exp mate.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
33 link -dll /out:mate.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
39 rm -f $(OBJECTS) mate.dll mate.exp mate.lib *.pdb
42 # We remove the generated files with "distclean" because one of them,
43 # "mate_parser.c", needs different #includes for UN*X and Windows
44 # (UN*X versions of Flex make it include <unistd.h>, but that's a
45 # UN*X-only header), so if you're going to build from source, you need
46 # to build "mate_parser.c" from "mate_parser.l" with Flex.
47 # This might not be necessary for "mate_grammar.{c,h}", but we handle them
51 rm -f mate_parser.c mate_grammar.c mate_grammar.h mate_grammar.out
53 maintainer-clean: distclean
55 mate_parser.c : mate_parser.l
56 $(LEX) -Pdf_ -omate_parser.c mate_parser.l
58 mate_grammar.h : mate_grammar.c
59 mate_grammar.c : mate_grammar.lemon $(LEMON)\lemon.exe
60 $(LEMON)\lemon.exe t=$(LEMON)\lempar.c mate_grammar.lemon
64 $(MAKE) /$(MAKEFLAGS) -f makefile.nmake lemon
68 $(PERL) ../../tools/checkAPIs.pl -g abort -g termoutput $(DISSECTOR_SRC) $(DISSECTOR_INCLUDES)