[Omake] Example OMakefile to package OCaml code as a C library
Joel Reymont
joelr1 at gmail.com
Wed Mar 28 02:00:20 PDT 2007
Does anyone have an example OMakefile that can be used to package
OCaml code as a C library?
This is along the lines of what I'm trying to accomplish, except I
have several ml and mli files that my "fib.ml" uses.
ocamlopt -output-obj -o fibcaml.o fib.ml
ocamlopt -c fibwrap.c
cp /usr/local/lib/ocaml/libasmrun.a libfib.a
ar r libfib.a fibcaml.o fibwrap.o
Thanks in advance, Joel
More information about the Omake
mailing list