X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/9cad30fab188a57c3db8df0912a1691099468e64..c30687a7155e8c96310eaddd8213f6d3a69cab0e:/Execute.mk diff --git a/Execute.mk b/Execute.mk index 1102aa2..053d55f 100644 --- a/Execute.mk +++ b/Execute.mk @@ -1,19 +1,14 @@ -CY_EXECUTE := +CY_EXECUTE := 1 flags += -DCY_EXECUTE code += sig/ffi_type.o sig/parse.o sig/copy.o -code += Execute.o -library += $(apr) -lffi -lsqlite3 -all += libcycript.db +code += Execute.o Bridge.o +library += -lffi filters += C -extra:: - cp -pR libcycript.db package/usr/lib +Bridge.gperf: Bridge.def Bridge.sh + ./Bridge.sh Bridge.def >Bridge.gperf -libcycript.db: Bridge.def - rm -f libcycript.db - { \ - echo 'create table "bridge" ("mode" int not null, "name" text not null, "value" text null);'; \ - grep '^[CFV]' Bridge.def | sed -e 's/^C/0/;s/^F/1/;s/^V/2/' | sed -e 's/"/\\"/g;s/^\([^ ]*\) \([^ ]*\) \(.*\)$$/insert into "bridge" ("mode", "name", "value") values (\1, '"'"'\2'"'"', '"'"'\3'"'"');/'; \ - grep '^:' Bridge.def | sed -e 's/^: \([^ ]*\) \(.*\)/insert into "bridge" ("mode", "name", "value") values (-1, '"'"'\1'"'"', '"'"'\2'"'"');/'; \ - grep '^[EST]' Bridge.def | sed -e 's/^S/3/;s/^T/4/;s/^E/5/' | sed -e 's/^5\(.*\)$$/4\1 i/' | sed -e 's/^\([^ ]*\) \([^ ]*\) \(.*\)$$/insert into "bridge" ("mode", "name", "value") values (\1, '"'"'\2'"'"', '"'"'\3'"'"');/'; \ - } | tee libcycript.sql | sqlite3 libcycript.db +Bridge.hpp: Bridge.gperf + gperf $< | sed -e 's/defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__/0/' >$@ + +Bridge.o: Bridge.hpp