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
17 cycc -i2.0 -o$@ -- -dynamiclib $(flags) $(filter-out %.hpp,$^) $($@) -lobjc
20 cycc -i2.0 -o$@ -- $(filter-out %.hpp,$^) $(flags) $($@)
22 package: all $(control)
25 cp -a $(library) _/usr/lib
27 ./control.sh _ >_/DEBIAN/control
28 cp -a extrainst_ _/DEBIAN/
29 cp -a postrm _/DEBIAN/
31 ln -sf debs/$(package)_$$(./version.sh)_iphoneos-arm.deb $(package).deb
34 dpkg-deb -b _ $(package).deb
35 readlink $(package).deb