Skip to content
This repository

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

file 28 lines (20 sloc) 0.856 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
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
Something went wrong with that request. Please try again.