[Omake] Generating byte code and native executables (OCaml)

Nikhil Dinesh nikhild at seas.upenn.edu
Mon Nov 12 09:48:15 PST 2007


Hi,

I have a bunch of unit tests in each subdir of a project, and would like
to generate both byte code (for use with -b) and native code (for
performance tests). While setting the BYTE_ENABLED and NATIVE_ENABLED
flags lets me build .cma and .cmxa libs, it generates only native code.
I've looked through the docs, but haven't found any variables to ask it
to generate both. I could write my own rule...but was wondering if there
is a built in way to do this. (Omake version 0.9.8.5)

Thanks,
-Nikhil

PS  My OMakefile reads as follows:

.....
LIB = foo

OCamlLibrary($(LIB),$(LIBFILES))

OCamlProgram(fooTest, fooTest $(LIB))

all: foo.cma  foo.cmxa  fooTest$(EXE)



More information about the Omake mailing list