From 61dd46fa9c5ffc266ed90fdc145c129c0268c549 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 1 Aug 2007 00:22:25 +0000 Subject: Use a common .l.c rule for running Flex on .l files, just as is done on UN*X. svn path=/trunk/; revision=22434 --- plugins/mate/Makefile.nmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mate/Makefile.nmake b/plugins/mate/Makefile.nmake index 515c364687..1876b70133 100644 --- a/plugins/mate/Makefile.nmake +++ b/plugins/mate/Makefile.nmake @@ -14,8 +14,13 @@ LEMON=..\..\tools\lemon CFLAGS=/WX /DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) /I$(LEMON)\ /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS) +.SUFFIXES: .l + .c.obj:: $(CC) $(CFLAGS) -Fdmate.pdb -c $< + +.l.c: + $(LEX) -o$@ $< LDFLAGS = $(PLUGIN_LDFLAGS) @@ -109,8 +114,7 @@ distclean: clean maintainer-clean: distclean -mate_parser.c : mate_parser.l - $(LEX) -Pdf_ -omate_parser.c mate_parser.l +mate_parser.obj : mate_parser.c mate_grammar.h : mate_grammar.c mate_grammar.c : mate_grammar.lemon $(LEMON)\lemon.exe -- cgit v1.2.3