Version française
Home     About     Download     Resources     Contact us    
Browse thread
Example OMakefile to package OCaml code as a C library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Example OMakefile to package OCaml code as a C library
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:

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, Joel

--
http://wagerlabs.com/