Added install file. Improved iOS buid script to automatically detect SDK version.
+********** From Mercurial repository
+
+You must have the autoconf suite installed. Run:
+
+# autoreconf -i
+
+Then continue as if from tarball.
+
+
+********** From tarball
+
+After extracting, run:
+
+# ./configure
+
+To build for the local host, run:
+
+# make
+# sudo make install
+
+
+
+To build static libraries for Apple iOS, run:
+
+# make ios
+
+Static libraries will be output under the build/ directory.
\ No newline at end of file
clean-local:
-rm -rf build
+
+ios:
+ @./build_ios.sh
echo "Building iOS library..."
xcodebuild -project simplepgp.xcodeproj -alltargets > /dev/null
echo "Building iOS simulator library..."
-xcodebuild -project simplepgp.xcodeproj -alltargets -sdk iphonesimulator4.3 >/dev/null
+SIMSDK=`xcodebuild -showsdks |grep iphonesim |tail -1 |sed 's/.*-sdk \(.*\)/\1/'`
+xcodebuild -project simplepgp.xcodeproj -alltargets -sdk ${SIMSDK} >/dev/null
echo "Done!"