]> git.saurik.com Git - cycript.git/blobdiff - makefile
Attempting to abstract 64-bit Mac.
[cycript.git] / makefile
index 792f14cc85e625bcf4b11b5e456b180426ae1714..7711fbd015f0421914cd7d89cafad92c2adeee82 100644 (file)
--- a/makefile
+++ b/makefile
@@ -46,9 +46,15 @@ depends :=
 restart ?= $(MAKE)
 uname_s ?= $(shell uname -s)
 uname_p ?= $(shell uname -p)
+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)
+endif
 
 ifdef CY_EXECUTE
 ifeq ($(filter ObjectiveC,$(filters)),)