]> git.saurik.com Git - cycript.git/blobdiff - makefile
Worked around the bug in flex 2.5.35 that causes yy_size_t/int comparison warnings.
[cycript.git] / makefile
index 7711fbd015f0421914cd7d89cafad92c2adeee82..42ba7d6e9945435b901f1c6f75198d42cdb24887 100644 (file)
--- a/makefile
+++ b/makefile
@@ -50,7 +50,6 @@ uname_m ?= $(shell uname -m)
 
 -include $(uname_s).mk
 -include $(uname_s)-$(uname_p).mk
--include $(uname_s)-$(uname_m).mk
 
 ifneq ($(shell pkg-config libffi --modversion 2>/dev/null),)
 flags += $(shell pkg-config --cflags libffi)
@@ -122,7 +121,7 @@ Cycript.tab.cc Cycript.tab.hh location.hh position.hh: Cycript.yy
        bison -v --report=state $<
 
 lex.cy.c: Cycript.l
-       flex $<
+       flex -t $< | sed -e 's/int yyl;/yy_size_t yyl;/;s/int yyleng_r;/yy_size_t yyleng_r;/' >$@
 
 #Parser.hpp: Parser.py Parser.dat
 #      ./Parser.py <Parser.dat >$@