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)
26 cp -a $(library) _/usr/lib
28 ./control.sh _ >_/DEBIAN/control
29 cp -a extrainst_ _/DEBIAN/
30 cp -a postrm _/DEBIAN/
32 ln -sf debs/$(package)_$$(./version.sh)_iphoneos-arm.deb $(package).deb
35 dpkg-deb -b _ $(package).deb
36 readlink $(package).deb