On 01/23/2014 10:35 AM, Goswin von Brederlow wrote:
>> [...]
>> OCamlMakefile vs my Makefile
>> * Support for ocamlfind vs none
>
> No ocamlfind? That realy sucks. Anything non trivial will
require
> some extras, if only batteries, core or unix. You realy need
support
> for ocamlfind so adding libraries becomes easy.
If you want to use ocamlfind as a driver to ocamldep, the compilers
ocamlc and ocamlopt and the linkers, you can simply prefix the calls
to these in the Makefile like so:
instead of ${OCAMLC} ....
write ocamlfind ${OCAMLC} ...
Then use the tag files for .mli, .ml and for the two linkers
(byte-code and native-code), to pass options specific to ocamlfind
as
if they were for ocamlc, ocamlopt etc.
Adding libraries and performing queries should be done outside the
Makefile.
Hope this helps,
Christian