flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks
svn := $(shell svnversion)
deb := $(shell grep ^Package: control | cut -d ' ' -f 2-)_$(shell grep ^Version: control | cut -d ' ' -f 2 | sed -e 's/\#/$(svn)/')_iphoneos-arm.deb
flags += -F${PKG_ROOT}/System/Library/PrivateFrameworks
svn := $(shell svnversion)
deb := $(shell grep ^Package: control | cut -d ' ' -f 2-)_$(shell grep ^Version: control | cut -d ' ' -f 2 | sed -e 's/\#/$(svn)/')_iphoneos-arm.deb
Cycript.dylib: Connector.o
$(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
-lobjc -lapr-1 -lsubstrate \
Cycript.dylib: Connector.o
$(target)g++ $(flags) -dynamiclib -o $@ $(filter %.o,$^) \
-lobjc -lapr-1 -lsubstrate \
mkdir -p package/Library/MobileSubstrate/DynamicLibraries
if [[ -e Settings.plist ]]; then \
mkdir -p package/Library/PreferenceLoader/Preferences; \
mkdir -p package/Library/MobileSubstrate/DynamicLibraries
if [[ -e Settings.plist ]]; then \
mkdir -p package/Library/PreferenceLoader/Preferences; \
fi
if [[ -e Tweak.plist ]]; then cp -a Tweak.plist package/Library/MobileSubstrate/DynamicLibraries/Cycript.plist; fi
cp -a Cycript.dylib package/Library/MobileSubstrate/DynamicLibraries
fi
if [[ -e Tweak.plist ]]; then cp -a Tweak.plist package/Library/MobileSubstrate/DynamicLibraries/Cycript.plist; fi
cp -a Cycript.dylib package/Library/MobileSubstrate/DynamicLibraries