X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d3c599036d40f9aa454e06006fba16bd4c8ff68d..64058139d1bdd0e44a7e1c5fc12692e0e8760624:/makefile diff --git a/makefile b/makefile index 792f14c..c359b58 100644 --- a/makefile +++ b/makefile @@ -50,6 +50,10 @@ uname_p ?= $(shell uname -p) -include $(uname_s).mk -include $(uname_s)-$(uname_p).mk +ifneq ($(shell pkg-config libffi --modversion 2>/dev/null),) +flags += $(shell pkg-config --cflags libffi) +endif + ifdef CY_EXECUTE ifeq ($(filter ObjectiveC,$(filters)),) ifneq ($(shell which gnustep-config 2>/dev/null),) @@ -103,7 +107,7 @@ endif all: $(all) -clean: +clean:: rm -f *.o $(lib)cycript.$(dll) $(all) Struct.hpp lex.cy.c Cycript.tab.cc Cycript.tab.hh location.hh position.hh stack.hh cyrver Cycript.yy Cycript.l control Bridge.hpp %.yy: %.yy.in @@ -116,7 +120,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 $@