Flex doesn't generate LLP64-compilable output. For the time being don't
authorGerald Combs <gerald@wireshark.org>
Wed, 11 Mar 2009 18:48:34 +0000 (18:48 -0000)
committerGerald Combs <gerald@wireshark.org>
Wed, 11 Mar 2009 18:48:34 +0000 (18:48 -0000)
use -WX when compiling ascend-scanner.c and k12text.c.

svn path=/trunk/; revision=27703

wiretap/Makefile.nmake

index a8e15b33dbfc1cb9523a270fd4e894c7f3ef285b..f9e347a9ad2163d67e8c5039011307aa876b7eca 100644 (file)
@@ -8,9 +8,11 @@ include ..\Makefile.nmake.inc
 
 include Makefile.common
 
-CFLAGS=-WX -DYYMALLOC=malloc -DYYFREE=free -DHAVE_CONFIG_H /I. /I.. \
+# We GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
+GENERATED_CFLAGS=-DYYMALLOC=malloc -DYYFREE=free -DHAVE_CONFIG_H /I. /I.. \
        $(GLIB_CFLAGS) $(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
        -D_U_="" $(LOCAL_CFLAGS)
+CFLAGS=-WX $(GENERATED_CFLAGS)
 
 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
 
@@ -41,9 +43,11 @@ RUNLEX = ..\tools\runlex.sh
 
 ascend-scanner_lex.h : ascend-scanner.c
 ascend-scanner.obj : ascend-scanner.c ascend-grammar.h
+       $(CC) $(CVARSDLL) $(GENERATED_CFLAGS) -Fd.\ -c ascend-scanner.c
 
 k12text_lex.h : k12text.c
 k12text.obj : k12text.c
+       $(CC) $(CVARSDLL) $(GENERATED_CFLAGS) -Fd.\ -c k12text.c
 
 ascend-grammar.c ascend-grammar.h : ascend-grammar.y
        $(YACC) $(YACC_OPTS) -d -p ascend ascend-grammar.y -o ascend-grammar.c