arch := iphoneos-arm
ldid := ldid -S
-link += -framework UIKit
+console += -framework UIKit
Cycript.$(dll): Connector.o
$(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
code += ObjectiveC.o Library.o
filters += ObjC
flags += -DCY_ATTACH -DCY_EXECUTE
-flags += -lobjc -framework CoreFoundation
-link += -framework Foundation
+link += -lobjc -framework CoreFoundation
+console += -framework Foundation
library += -install_name /usr/lib/libcycript.$(dll)
library += -framework Foundation -framework CFNetwork
library += -framework JavaScriptCore -framework WebCore
+library += -lsubstrate
Struct.hpp:
$$($(target)gcc -print-prog-name=cc1obj) -print-objc-runtime-info </dev/null >$@
ldid := echo
dll := so
apr := $(shell apr-1-config --link-ld)
-library := $(apr) -lffi #-lsubstrate
-link := $(apr) -lreadline
+library := $(apr) -lffi
+console := $(apr) -lreadline
uname_s := $(shell uname -s)
uname_p := $(shell uname -p)
$(target)g++ $(flags) -c -o $@ $<
libcycript.$(dll): $(code)
- $(target)g++ $(flags) -shared -dynamiclib -o $@ $(filter %.o,$^) $(library)
+ $(target)g++ $(flags) -shared -dynamiclib -o $@ $(filter %.o,$^) $(library) $(link)
$(ldid) -S $@
cycript: Console.o libcycript.$(dll)
- $(target)g++ $(flags) -o $@ $(filter %.o,$^) -L. -lcycript $(link)
+ $(target)g++ $(flags) -o $@ $(filter %.o,$^) -L. -lcycript $(console) $(link)
$(ldid) -S cycript
package: $(deb)