List Info

Thread: Re: "ocaml_beginners"::[] omake




Re: "ocaml_beginners"::[] omake
country flaguser name
United States
2007-05-01 20:43:28

The following should do the trick.

<code&gt;
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&quot; 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:
&gt; 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
&gt; 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
&gt; 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
&gt; file - node.cmo) before it can be compiled.
>
&gt; thank you very much in advance
>
>
>
&gt;
> 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
&gt;
>
>
>;
>

__._,_.___
.

__,_._,___
"ocaml_beginners"::[] Re: omake
country flaguser name
United States
2007-05-02 14:23:24

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&quot;
<cconway...> wrote:
&gt;
> The following should do the trick.
&gt;
> <code&gt;
> OCAMLINCLUDES += +extLib
> OCAML_OTHER_LIBS += extLib
&gt; OCAMLPPFLAGS = -pp camlp4o
> FILES = node sum
>
> .DEFAULT: $(OCamlProgram node, $(FILES))
> </code&gt;
>
> omake will run ocamldep in order to figure out the dependencies
> between node.ml and sum.ml.
>
> The default OMakefile generated by "omake --install&quot; is a good place
&gt; to start if you want to figure out how omake works by example. It is
> pretty thoroughly documented.
>
> Chris
&gt;
> On 5/1/07, mo.deeq <mo.deeq...> wrote:
&gt; > 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
&gt; > 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
&gt; > 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
&gt; > 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
&gt; >
>; >
>; >
>; >
>; >
>;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )