]> git.saurik.com Git - cydia.git/blob - makefile
6763d1d5931cb10a1a08a07da3f447ddca80975a
[cydia.git] / makefile
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/QuartzCore.framework),)
10 frameworks += -framework QuartzCore
11 endif
12
13 ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/LayerKit.framework),)
14 frameworks += -framework LayerKit
15 endif
16
17 all: Cydia exec
18
19 clean:
20 rm -f Cydia exec
21
22 exec: exec.mm makefile
23 $(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc
24
25 Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile
26 $(target)g++ -march=armv6 -mcpu=arm1176jzf-s -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/inc/iPhoneOS-2.0 -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks
27
28 sign: Cydia
29 CODESIGN_ALLOCATE=$$(which "$(target)codesign_allocate") /apl/tel/util/ldid -S Cydia
30
31 .PHONY: all clean sign