aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
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 /wiretap
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 'wiretap')
-rw-r--r--wiretap/Makefile.nmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/wiretap/Makefile.nmake b/wiretap/Makefile.nmake
index e58a2c99b9..89619a5213 100644
--- a/wiretap/Makefile.nmake
+++ b/wiretap/Makefile.nmake
@@ -14,9 +14,14 @@ CFLAGS=-WX -DYYMALLOC=malloc -DYYFREE=free -DHAVE_CONFIG_H $(GLIB_CFLAGS) $(ZLIB
CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
+.SUFFIXES: .l
+
.c.obj::
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
+.l.c:
+ $(LEX) -o$@ $<
+
OBJECTS=$(NONGENERATED_C_FILES:.c=.obj) $(GENERATED_C_FILES:.c=.obj) file_util.obj
wiretap_LIBS = \
@@ -46,11 +51,7 @@ ascend-grammar.c ascend-grammar.h : ascend-grammar.y
ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
-ascend-scanner.c : ascend-scanner.l
- $(LEX) -Pascend -oascend-scanner.c ascend-scanner.l
-
-k12text.c : k12text.l
- $(LEX) -PK12Text -ok12text.c k12text.l
+k12text.obj : k12text.c
config.h : config.h.win32 ..\config.nmake
sed -e s/@VERSION@/$(WTAP_VERSION)/ \