-uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma
+uikittools = uiduid uicache uiopen gssc sbdidlaunch sbreload cfversion iomfsetgamma ldrestart
all: $(uikittools)
flags += -miphoneos-version-min=2.0
flags += -arch armv6
+ldrestart := -std=c++11
gssc := -lobjc
iomfsetgamma := -I. $(private) -framework IOKit -framework IOMobileFramebuffer
sbdidlaunch := $(private) -framework SpringBoardServices
cycc -- -o $@ $^ $(flags) $($@)
ldid -S$(wildcard $@.xml) $@
+%: %.cpp
+ cycc -- -o $@ $^ $(flags) $($@)
+ ldid -S$(wildcard $@.xml) $@
+
%: %.c
cycc -- -o $@ -x c $^ $(flags) $($@)
ldid -S$(wildcard $@.xml) $@