Version française
Home     About     Download     Resources     Contact us    
Browse thread
Producing a C wrapper with ocamlbuild or OMake
[ 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: Producing a C wrapper with ocamlbuild or OMake
Folks,

I'm trying to produce a C library from my OCaml code. I found these  
instructions on the net:

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

How would I accomplish the same with ocamlbuild, which I'm using now,  
or with OMake?

	Thanks in advance, Joel

--
http://wagerlabs.com/