]>
Commit | Line | Data |
---|---|---|
a1075171 JF |
1 | ifndef base |
2 | base := .. | |
3 | endif | |
4 | ||
5 | ifndef PKG_TARG | |
6 | target := | |
7 | else | |
8 | target := $(PKG_TARG)- | |
9 | endif | |
10 | ||
11 | link := -framework CoreFoundation -framework Foundation -F${PKG_ROOT}/System/Library/PrivateFrameworks -L$(base)/../mobilesubstrate -framework SpringBoardUI -framework UIKit | |
12 | ||
13 | all: $(name)LockScreen $(control) | |
14 | ||
15 | clean: | |
16 | rm -f $(name)LockScreen | |
17 | ||
18 | $(name)LockScreen: LockScreen.mm makefile $(base)/../mobilesubstrate/substrate.h | |
19 | $(target)g++ -bundle -mthumb -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -lobjc -I$(base)/../mobilesubstrate $(link) $(flags) | |
20 | ldid -S $@ | |
21 | ||
22 | deb := $(shell grep ^Package: control | cut -d ' ' -f 2-)_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb | |
23 | ||
24 | package: $(deb) | |
25 | ||
26 | $(deb): $(name)LockScreen | |
27 | rm -rf package | |
28 | mkdir -p package/DEBIAN | |
29 | mkdir -p package/Library/MobileSubstrate/DynamicLibraries | |
30 | cp -a control $(control) package/DEBIAN | |
31 | mkdir -p package/System/Library/SpringBoardPlugins/$(name)LockScreen.bundle | |
32 | cp -a Info.plist package/System/Library/SpringBoardPlugins/$(name)LockScreen.bundle | |
33 | cp -a $(name)LockScreen package/System/Library/SpringBoardPlugins/$(name)LockScreen.bundle | |
daee0ba3 | 34 | $(MAKE) extra |
a1075171 JF |
35 | dpkg-deb -b package $(deb) |
36 | ||
37 | extra: | |
38 | ||
39 | .PHONY: all clean extra package |