omake will run ocamldep in order to figure out the dependencies
between node.ml and sum.ml.
The default OMakefile generated by "omake --install" is a good place
to start if you want to figure out how omake works by example. It is
pretty thoroughly documented.
Chris
On 5/1/07, mo.deeq < mo.deeq%40yahoo.co.uk">mo.deeqyahoo.co.uk> wrote:
> Hi all,
> Could somebody please help me make sense of OMake / suggest something
> else or point me at a simple template. I have a simple (but growing)
> program and at the moment only need the following to compile it.
>
> ocamlc -I +extlib extLib.cma -c node.ml > ocamlc -I +extlib extLib.cma -pp camlp4o -c sum.ml
> ocamlc -I +extlib extLib.cma -o sum node.cmo sum.cmo >
> However i can't seem to get my head around omake's 'make object files
> then link' process. How can I get it to simply execute the above set
> of commands in order (sum.ml depends on node.ml to produce the object
> file - node.cmo) before it can be compiled.
>
> thank you very much in advance >
>
>
>
> Archives up to November 11, 2006 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
> The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
> Attachments are banned and you're asked to be polite, avoid flames etc.
> Yahoo! Groups Links
>
>
>
>
>
Hi Chris,
thank you for the pointer, i've tried using your example and still
couldn't get my program to compile. I've since used ocaml_make which
seems to compile it ok.
again, thank you very much
-deeq
--- In ocaml_beginners%40yahoogroups.com">ocaml_beginnersyahoogroups.com, "Christopher L Conway"
<cconway...> wrote:
>
> The following should do the trick.
>
> <code>
> OCAMLINCLUDES += +extLib
> OCAML_OTHER_LIBS += extLib
> OCAMLPPFLAGS = -pp camlp4o > FILES = node sum
>
> .DEFAULT: $(OCamlProgram node, $(FILES))
> </code>
>
> omake will run ocamldep in order to figure out the dependencies
> between node.ml and sum.ml. >
> The default OMakefile generated by "omake --install" is a good place
> to start if you want to figure out how omake works by example. It is
> pretty thoroughly documented.
>
> Chris
>
> On 5/1/07, mo.deeq <mo.deeq...> wrote:
> > Hi all,
> > Could somebody please help me make sense of OMake / suggest something
> > else or point me at a simple template. I have a simple (but growing)
> > program and at the moment only need the following to compile it.
> >
> > ocamlc -I +extlib extLib.cma -c node.ml > > ocamlc -I +extlib extLib.cma -pp camlp4o -c sum.ml
> > ocamlc -I +extlib extLib.cma -o sum node.cmo sum.cmo > >
> > However i can't seem to get my head around omake's 'make object files
> > then link' process. How can I get it to simply execute the above set
> > of commands in order (sum.ml depends on node.ml to produce the object
> > file - node.cmo) before it can be compiled.
> >
> > thank you very much in advance > >
> >
> >
> >
> > Archives up to November 11, 2006 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
> > The archives of the very official ocaml list (the seniors' one)
can be found at http://caml.inria.fr
> > Attachments are banned and you're asked to be polite, avoid flames
etc.
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>