From d6fa558b5f73efffd84d0b8c68e5bc3fc7034e11 Mon Sep 17 00:00:00 2001 From: Luis Ontanon Date: Mon, 16 May 2005 14:59:14 +0000 Subject: [PATCH] Forgot this one in the last checkin! svn path=/trunk/; revision=14374 --- plugins/mate/Makefile.nmake | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/plugins/mate/Makefile.nmake b/plugins/mate/Makefile.nmake index c439e2ac5a..10c66278f6 100644 --- a/plugins/mate/Makefile.nmake +++ b/plugins/mate/Makefile.nmake @@ -7,7 +7,9 @@ include ############### no need to modify below this line ######### -CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \ +LEMON=..\..\tools\lemon + +CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) /I$(LEMON)\ /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS) .c.obj:: @@ -19,7 +21,13 @@ LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS) LINK_PLUGIN_WITH=..\..\epan\libethereal.lib CFLAGS=/DHAVE_WIN32_LIBETHEREAL_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS) -OBJECTS=packet-mate.obj mate_setup.obj mate_runtime.obj mate_util.obj mate_plugin.obj +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) \ @@ -31,5 +39,18 @@ clean: rm -f $(OBJECTS) mate.dll mate.exp mate.lib *.pdb 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 + $(LEMON)\lemon.exe t=$(LEMON)\lempar.c mate_grammar.lemon + +$(LEMON)\lemon.exe: + cd ../../tools/lemon + $(MAKE) -f makefile.nmake + cd ../../epan/dfilter