11 link := -framework CoreFoundation -framework Foundation -F${PKG_ROOT}/System/Library/PrivateFrameworks -L$(base)/../mobilesubstrate -framework SpringBoardUI -framework UIKit
13 all: $(name)LockScreen $(control)
16 rm -f $(name)LockScreen
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)
22 deb := $(shell grep ^Package: control | cut -d ' ' -f 2-)_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb
26 $(deb): $(name)LockScreen
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
35 dpkg-deb -b package $(deb)
39 .PHONY: all clean extra package