]> git.saurik.com Git - cydia.git/blame - makefile
Fixed stupid mutability bug.
[cydia.git] / makefile
CommitLineData
59efd93a
JF
1ifndef PKG_TARG
2target :=
3else
4target := $(PKG_TARG)-
5endif
b0d03ade 6
b27f0a94
JF
7frameworks :=
8
853d14d3
JF
9ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/QuartzCore.framework),)
10frameworks += -framework QuartzCore
11endif
12
b27f0a94
JF
13ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/LayerKit.framework),)
14frameworks += -framework LayerKit
15endif
16
584f58f8 17all: Cydia exec
a75f53e7 18
b0d03ade
JF
19clean:
20 rm -f Cydia exec
21
584f58f8 22exec: exec.mm makefile
b0d03ade 23 $(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc
242bcc6d 24
423f8cb9 25Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile
87c76914 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 -F"$${PKG_ROOT}"/System/Library/PrivateFrameworks
b0d03ade 27
23bcd525
JF
28sign: Cydia
29 CODESIGN_ALLOCATE=$$(which "$(target)codesign_allocate") /apl/tel/util/ldid -S Cydia
30
31.PHONY: all clean sign