aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-01 00:22:25 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-01 00:22:25 +0000
commit7d3ca7307f4ff00c3e62817f6a93d276d2405f9c (patch)
treed545e912742f01443012e279ae2687e89c72bd05 /epan
parent1d66e959133b44e9e036d9ae5377b4091c18caa8 (diff)
Use a common .l.c rule for running Flex on .l files, just as is done on
UN*X. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22434 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan')
-rw-r--r--epan/Makefile.nmake26
-rw-r--r--epan/dfilter/Makefile.nmake9
2 files changed, 18 insertions, 17 deletions
diff --git a/epan/Makefile.nmake b/epan/Makefile.nmake
index 4b37806a1c..67aaa58a62 100644
--- a/epan/Makefile.nmake
+++ b/epan/Makefile.nmake
@@ -45,9 +45,14 @@ libwireshark_LIBS = \
$(WSLUA_LIB) \
dissectors\dissectors.lib
+.SUFFIXES: .l
+
.c.obj::
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
+.l.c:
+ $(LEX) -o$@ $<
+
LIBWIRESHARK_OBJECTS = $(LIBWIRESHARK_ALL_SRC:.c=.obj)
EXTRA_OBJECTS = \
@@ -256,25 +261,20 @@ inet_ntop.c: ..\inet_ntop.c
inet_pton.c: ..\inet_pton.c
xcopy ..\inet_pton.c . /d
-radius_dict.c : radius_dict.l
- $(LEX) radius_dict.l
-
-diam_dict.c : diam_dict.l
- $(LEX) diam_dict.l
-
sminmpec.c: enterprise-numbers make-sminmpec.pl
$(PERL) make-sminmpec.pl enterprise-numbers sminmpec.c
-dtd_parse.c : dtd_parse.l
- $(LEX) -odtd_parse.c dtd_parse.l
+dtd_grammar.h: dtd_grammar.c
-dtd_preparse.c : dtd_preparse.l
- $(LEX) -odtd_preparse.c dtd_preparse.l
+radius_dict.obj : radius_dict.c
-uat_load.c : uat_load.l
- $(LEX) -ouat_load.c uat_load.l
+diam_dict.obj : diam_dict.c
-dtd_grammar.h: dtd_grammar.c
+dtd_parse.obj : dtd_parse.c
+
+dtd_preparse.obj : dtd_preparse.c
+
+uat_load.obj : uat_load.c
LEMON=..\tools\lemon
diff --git a/epan/dfilter/Makefile.nmake b/epan/dfilter/Makefile.nmake
index 218284a625..c985a6765c 100644
--- a/epan/dfilter/Makefile.nmake
+++ b/epan/dfilter/Makefile.nmake
@@ -14,10 +14,14 @@ CFLAGS=-WX -DHAVE_CONFIG_H /I. /I.. /I..\.. /I$(LEMON) \
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
+.SUFFIXES: .l
+
.c.obj::
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
-
+.l.c:
+ $(LEX) -o$@ $<
+
OBJECTS = \
dfilter.obj \
dfilter-macro.obj \
@@ -64,9 +68,6 @@ distclean: clean
maintainer-clean: distclean
-scanner.c : scanner.l
- $(LEX) -Pdf_ -oscanner.c scanner.l
-
scanner.obj : scanner.c grammar.h
grammar.h : grammar.c