tar jxf ocaml-3.12.0.tar.bz2 mv ocaml-3.12.0 ocaml-host cd ocaml-host ./configure -cc "gcc -m32" -as "as -arch i386" -aspp "gcc -m32 -c" # Snow Leopardの場合。 pushd . && cd byterun && make all && cp ocamlrun ../.. && cd ../yacc && make all && cp ocamlyacc ../.. && popd
tar jxf ocaml-3.12.0.tar.bz2 mv ocaml-3.12.0 ocaml-target cd ocaml-target patch -p1 <../ocaml-android-3.12.0.diff
vi config/Makefile
pushd . && cd byterun && make all && mv ocamlrun ocamlrun.target && cd ../yacc && make all && mv ocamlyacc ocamlyacc.target && popd cp ../ocamlrun byterun/ && cp ../ocamlyacc yacc/
make world make opt
make install
adb shell mkdir /data/local/tmp/ocaml adb push byterun/ocamlrun.target /data/local/tmp/ocaml adb push ocaml /data/local/tmp/ocaml for FILE in stdlib/*.cm[ia]; do adb push $FILE /data/local/tmp/ocaml; done
adb shell cd /data/local/tmp/ocaml ./ocamlrun.target ./ocaml Objective Caml version 3.12.0 # 1. +. 1.;; - : float = 2. #