1 library := libpatcyh.dylib
2 package := com.saurik.patcyh
3 control := extrainst_ postrm
8 rm -f $(library) $(control)
10 .PHONY: all clean package
13 flags += -framework CoreFoundation
14 flags += -framework Foundation
18 cycc -i2.0 -o$@ -- -dynamiclib $(flags) $(filter-out %.hpp,$^) $($@) -lobjc
21 cycc -i2.0 -o$@ -- $(filter-out %.hpp,$^) $(flags) $($@)
23 package: all $(control)
25 mkdir -p _/Library/MobileSubstrate/DynamicLibraries
26 cp -a patcyh.plist _/Library/MobileSubstrate/DynamicLibraries
27 ln -s /usr/lib/libpatcyh.dylib _/Library/MobileSubstrate/DynamicLibraries/patcyh.dylib
29 cp -a $(library) _/usr/lib
31 ./control.sh _ >_/DEBIAN/control
32 cp -a extrainst_ _/DEBIAN/
33 cp -a postrm _/DEBIAN/
35 ln -sf debs/$(package)_$$(./version.sh)_iphoneos-arm.deb $(package).deb
38 dpkg-deb -b _ $(package).deb
39 readlink $(package).deb