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] $<"
version=${version}~srk
fi
+define="#define CYDIA_VERSION \"${version}\""
+before=$(cat Version.h 2>/dev/null)
+
+if [[ ${before} != ${define} ]]; then
+ echo "${define}" >Version.h
+fi
+
echo "${version}"