Skip to content

Commit

Permalink
Change binary directories
Browse files Browse the repository at this point in the history
  • Loading branch information
vouillon committed Jan 16, 2013
1 parent 2cd7b47 commit 01ee00a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ stamp-install: stamp-build
# Install the compiler
cd $(SRC) && make install
# Put links to binaries in $ANDROID_BINDIR
for i in $(ANDROID_PREFIX)/bin/*; do \
for i in $(ANDROID_BINDIR)/arm-linux-androideabi/*; do \
ln -sf $$i $(ANDROID_BINDIR)/arm-linux-androideabi-`basename $$i`; \
done
# Install the Android ocamlrun binary
mkdir -p $(ANDROID_PREFIX)/arm-linux-androideabi/bin
mkdir -p $(ANDROID_PREFIX)/bin
cd $(SRC) && \
cp byterun/ocamlrun.target $(ANDROID_PREFIX)/arm-linux-androideabi/bin/ocamlrun
cp byterun/ocamlrun.target $(ANDROID_PREFIX)/bin/ocamlrun
# Add a link to camlp4 libraries
ln -sf $(shell $(ANDROID_BINDIR)/ocamlfind query stdlib)/camlp4 \
$(ANDROID_PREFIX)/lib/ocaml/camlp4
touch stamp-install
Expand Down Expand Up @@ -67,7 +68,9 @@ stamp-core: stamp-configure
stamp-configure: stamp-copy
# Configuration...
cd $(SRC) && \
./configure -prefix $(ANDROID_PREFIX) -host armv5te-unknown-linux-gnueabi \
./configure -prefix $(ANDROID_PREFIX) \
-bindir $(ANDROID_BINDIR)/arm-linux-androideabi \
-host armv5te-unknown-linux-gnueabi \
-cc "gcc -m32" -as "as --32" -aspp "gcc -m32 -c" \
-no-pthread -no-camlp4
touch stamp-configure
Expand Down

0 comments on commit 01ee00a

Please sign in to comment.