]> git.saurik.com Git - cydia.git/blame - makefile
Moved /notice/ to somewhere with more bandwidth, fixed a typo in Information, updated...
[cydia.git] / makefile
CommitLineData
ab398adf
JF
1ifndef PKG_TARG
2target :=
3else
4target := $(PKG_TARG)-
5endif
5f6bff8c 6
199d0ba5
JF
7frameworks :=
8
7d2ac47f
JF
9ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/QuartzCore.framework),)
10frameworks += -framework QuartzCore
11endif
12
199d0ba5
JF
13ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/LayerKit.framework),)
14frameworks += -framework LayerKit
15endif
16
51a1ffdf 17all: Cydia exec
dc5812ec 18
5f6bff8c
JF
19clean:
20 rm -f Cydia exec
21
51a1ffdf 22exec: exec.mm makefile
5f6bff8c 23 $(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc
49048579 24
308c0380 25Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile
a9543575 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
5f6bff8c 27
8cc774c5
JF
28sign: Cydia
29 CODESIGN_ALLOCATE=$$(which "$(target)codesign_allocate") /apl/tel/util/ldid -S Cydia
30
31.PHONY: all clean sign