]> git.saurik.com Git - patcyh.git/blame - makefile
For some reason, lsd crashes on iOS 8.3 with this.
[patcyh.git] / makefile
CommitLineData
ec4c25d4
JF
1library := libpatcyh.dylib
2package := com.saurik.patcyh
3control := extrainst_ postrm
4
5all: $(library)
6
7clean:
8 rm -f $(library) $(control)
9
10.PHONY: all clean package
11
12flags := -Os -Werror
13flags += -framework CoreFoundation
14flags += -framework Foundation
c3315f13 15flags += -marm
ec4c25d4
JF
16
17lib%.dylib: %.mm
18 cycc -i2.0 -o$@ -- -dynamiclib $(flags) $(filter-out %.hpp,$^) $($@) -lobjc
19
20%: %.mm patch.hpp
21 cycc -i2.0 -o$@ -- $(filter-out %.hpp,$^) $(flags) $($@)
22
23package: all $(control)
24 sudo rm -rf _
25 mkdir -p _/usr/lib
26 cp -a $(library) _/usr/lib
27 mkdir -p _/DEBIAN
28 ./control.sh _ >_/DEBIAN/control
29 cp -a extrainst_ _/DEBIAN/
30 cp -a postrm _/DEBIAN/
31 mkdir -p debs
32 ln -sf debs/$(package)_$$(./version.sh)_iphoneos-arm.deb $(package).deb
33 sudo chown -R 0 _
34 sudo chgrp -R 0 _
35 dpkg-deb -b _ $(package).deb
36 readlink $(package).deb