Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ab4e4fbf89
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (20 sloc) 0.856 kb
OCAMLFIND = ocamlfind -toolchain android
OCAMLOPT = $(OCAMLFIND) ocamlopt
OCAMLC = $(OCAMLFIND) ocamlc
include Makefile.common
include Makefile.in
-include target
TARGET ?= example
so: $(TARGET).so
cp test.so android/libs/armeabi-v7a/libtest.so
ant -f android/build.xml debug
release: $(TARGET).so
cp test.so android/libs/armeabi-v7a/libtest.so
ant -f android/build.xml release
$(TARGET).so: $(MLXFILES) $(TARGET).cmx
$(OCAMLOPT) -verbose -o test.so -g \
-I ../src ../src/lightning.cmxa $(OAUTHX) $(SOCIALX) $(MOBS) $(MLXFILES) ../src/social/facebook/fbconnect.cmxa $(TARGET).cmx \
-package extlib,xmlm,ojson,bigarray -linkpkg -cclib "-L../src/android/libpng" -cclib "-L../src/android/libjpeg" -cclib "-L../src/android/libcurl" -cclib "-L../src/social/facebook" -output-obj
clean::
rm -f LightTest/*.o LighTest/*.so
.DEFAULT_GOAL = so
Jump to Line
Something went wrong with that request. Please try again.