cycc := $(gxx)
sdk := $(shell xcodebuild -sdk iphoneos -version Path)
+mac := $(shell xcodebuild -sdk macosx -version Path)
+
cycc += -isysroot $(sdk)
-cycc += -idirafter /usr/include
+cycc += -idirafter $(mac)/usr/include
cycc += -F$(sdk)/System/Library/PrivateFrameworks
cycc += -fmessage-length=0
rm -f MobileCydia postinst
rm -rf Objects/ Images/
-Objects/apt64/apt-pkg/tagfile.o: apt64/apt-pkg/tagfile-keys.cc
-Objects/apt64/apt-pkg/deb/deblistparser.o: apt64/apt-pkg/tagfile-keys.cc
+Objects/apt64/apt-pkg/tagfile.o: Objects/apt64/apt-pkg/tagfile-keys.h
+Objects/apt64/apt-pkg/deb/deblistparser.o: Objects/apt64/apt-pkg/tagfile-keys.h
-apt64/apt-pkg/tagfile-keys.cc:
+Objects/apt64/apt-pkg/tagfile-keys%h apt64/apt-pkg/tagfile-keys%cc:
mkdir -p apt64
mkdir -p Objects/apt64/apt-pkg
cd apt64 && ../apt64/triehash/triehash.pl \
--function-name pkgTagHash \
--include "<apt-pkg/tagfile.h>" \
../apt64/apt-pkg/tagfile-keys.list
- sed -i -e 's@typedef char static_assert64@//\\0@' $@
+ sed -i -e 's@typedef char static_assert64@//\\0@' apt64/apt-pkg/tagfile-keys.cc
Objects/%.o: %.cc $(header)
@mkdir -p $(dir $@)
mkdir -p _/var/lib/cydia
mkdir -p _/etc/apt
+ mkdir _/etc/apt/apt.conf.d
+ mkdir _/etc/apt/preferences.d
cp -a Trusted.gpg _/etc/apt/trusted.gpg.d
cp -a Sources.list _/etc/apt/sources.list.d