diff options
author | Guy Harris <guy@alum.mit.edu> | 2007-08-01 00:22:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2007-08-01 00:22:25 +0000 |
commit | 61dd46fa9c5ffc266ed90fdc145c129c0268c549 (patch) | |
tree | d545e912742f01443012e279ae2687e89c72bd05 /plugins | |
parent | f39958d89aa20fd4635934b1c591a2526afd8afd (diff) |
Use a common .l.c rule for running Flex on .l files, just as is done on
UN*X.
svn path=/trunk/; revision=22434
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mate/Makefile.nmake | 8 |
1 files changed, 6 insertions, 2 deletions
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 |