[Omake] How to build camlp4 extension?
Aleksey Nogin
nogin at metaprl.org
Mon Dec 11 08:13:35 PST 2006
On 28.11.2006 06:07, Dmitry Bely wrote:
> etc. But how to build the syntax extension itself? I tried the following:
>
> section
> BYTE_ENABLED = true
> NATIVE_ENABLED = false
> OCAMLFLAGS = -I +camlp4
> OCAMLPPFLAGS = -pp "camlp4o pa_extend.cmo q_MLast.cmo"
> OCAMLDEPFLAGS = $(OCAMLPPFLAGS)
> pa_ba.cmo: pa_ba.ml
Ah, I think I know what is going on - you have pa_ba.ml and no
pa_ba.mli, right? In that case, building pa_ba.cmo will also build
pa_ba.cmi and it's the pa_ba.cmi rule that escapes the "section".
You need to replace the line
pa_ba.cmo: pa_ba.ml
with something like
pa_ba.cmo pa_ba.cmi:
P.S. It's interesting (and wrong) that OMake ends up complaining about
separate targeting of .obj and .cmo while the real problem is the
separate targeting of .cmi and .cmo... I made this warning message more
verbose in 0.9.8, hopefully it will help a bit...
Aleksey
More information about the Omake
mailing list