]>
Commit | Line | Data |
---|---|---|
1 | ifndef PKG_TARG | |
2 | target := | |
3 | else | |
4 | target := $(PKG_TARG)- | |
5 | endif | |
6 | ||
7 | frameworks := | |
8 | ||
9 | ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/LayerKit.framework),) | |
10 | frameworks += -framework LayerKit | |
11 | endif | |
12 | ||
13 | all: Cydia exec | |
14 | ||
15 | clean: | |
16 | rm -f Cydia exec | |
17 | ||
18 | exec: exec.mm makefile | |
19 | $(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc | |
20 | ||
21 | Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile | |
22 | $(target)g++ -I../uicaboodle.m -fobjc-call-cxx-cdtors -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework IOKit -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices $(frameworks) -lobjc -lapt-pkg -lpcre -fobjc-exceptions -I/apl/i20 -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks | |
23 | ||
24 | sign: Cydia | |
25 | CODESIGN_ALLOCATE=$$(which "$(target)codesign_allocate") /apl/tel/util/ldid -S Cydia | |
26 | ||
27 | .PHONY: all clean sign |