[Omake] individual compilation
Anastasia Gornostaeva
ermine at ermine.pp.ru
Tue May 15 21:34:29 PDT 2007
Hello.
I just started to learn omake and translate my OCamlMakefile files into
OMakefile. Please help me to translate such OCamlMakefile:
SOURCES = a.ml b.ml
PACKS = ulex foo bar
PRE_TARGETS = c.cmx c.cmo
OCAMLNLDFLAGS = c.cmx
OCAMLBLDFLAGS = c.cmo
RESULT = something
c.cmo: c.ml
ocamlfind ocamlc -syntax camlp4o -package ulex,otherlib -c c.ml
c.cmx:c.ml
ocamlfind ocamlopt -syntax camlp4o -package ulex,otherlib -c c.ml
The problem is that i cannot use camlp4 for all *.ml but i cannot get how to
specify indifidyal compilation. I figured out only how to specify individual
generating of depedency:
.SCANNER: scan-ocaml-c.ml:
ocamlfind ocamldep -syntax camlp4o -package ulex,otherlib c.ml
Thanks.
ermine
More information about the Omake
mailing list