summaryrefslogtreecommitdiff
path: root/wiretap/Makefile.nmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-08-01 00:22:25 +0000
committerGuy Harris <guy@alum.mit.edu>2007-08-01 00:22:25 +0000
commit61dd46fa9c5ffc266ed90fdc145c129c0268c549 (patch)
treed545e912742f01443012e279ae2687e89c72bd05 /wiretap/Makefile.nmake
parentf39958d89aa20fd4635934b1c591a2526afd8afd (diff)
downloadwireshark-61dd46fa9c5ffc266ed90fdc145c129c0268c549.tar.gz
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 'wiretap/Makefile.nmake')
-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)/ \