]> git.saurik.com Git - cydia.git/blame - makefile
Fixes for 1.0.2.
[cydia.git] / makefile
CommitLineData
ab398adf
JF
1ifndef PKG_TARG
2target :=
3else
4target := $(PKG_TARG)-
5endif
5f6bff8c 6
199d0ba5
JF
7frameworks :=
8
9ifneq ($(wildcard $(PKG_ROOT)/System/Library/*Frameworks/LayerKit.framework),)
10frameworks += -framework LayerKit
11endif
12
51a1ffdf 13all: Cydia exec
dc5812ec 14
5f6bff8c
JF
15clean:
16 rm -f Cydia exec
17
51a1ffdf 18exec: exec.mm makefile
5f6bff8c 19 $(target)g++ -Wall -Werror -o $@ $< -framework Foundation -framework CoreFoundation -lobjc
49048579 20
308c0380 21Cydia: Cydia.mm ../uicaboodle.m/*.mm *.h makefile
199d0ba5 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
795d26fc 23 #CODESIGN_ALLOCATE=$$(which "$(target)codesign_allocate") /apl/tel/util/ldid -S Cydia
5f6bff8c 24
ab398adf 25.PHONY: all clean