gxx := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-$(gcc)
cycc = $(gxx) -mthumb -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=2.0 -isysroot $(sdk) -idirafter /usr/include -F{sysroot,}/Library/Frameworks
-flags += -DCYDIA_VERSION='"$(version)"'
-
dirs := Menes CyteKit Cydia SDURLCache
code := $(foreach dir,$(dirs),$(wildcard $(foreach ext,h hpp c cpp m mm,$(dir)/*.$(ext))))
@echo "[cycc] $<"
@$(cycc) -c -o $@ $< $(flags) $(xflags)
+Objects/MobileCydia.o: version.h
+
Images/%.png: %.png
@mkdir -p $(dir $@)
@echo "[pngc] $<"
CydiaAppliance: CydiaAppliance.mm
$(cycc) $(filter %.mm,$^) $(flags) -bundle $(link) $(backrow)
-debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia $(images) $(shell find MobileCydia.app)
+debs/cydia_$(version)_iphoneos-arm.deb: MobileCydia $(images) $(shell find MobileCydia.app) cydia.control
sudo rm -rf _
mkdir -p _/var/lib/cydia
+ mkdir -p _/etc/apt
+ cp -a Trusted.gpg _/etc/apt/trusted.gpg.d
+ cp -a Sources.list _/etc/apt/sources.list.d
+
mkdir -p _/usr/libexec
cp -a Library _/usr/libexec/cydia
cp -a sysroot/usr/bin/du _/usr/libexec/cydia
$(dpkg) -b _ Cydia.deb
@echo "$$(stat -L -f "%z" Cydia.deb) $$(stat -f "%Y" Cydia.deb)"
-$(lproj_deb): $(shell find MobileCydia.app -name '*.strings')
+$(lproj_deb): $(shell find MobileCydia.app -name '*.strings') cydia-lproj.control
sudo rm -rf __
mkdir -p __/Applications/Cydia.app