CMake and OCaml
Carsten Niehaus
cniehaus at gmx.de
Wed Mar 29 09:58:29 CEST 2006
Hi
I will give you the whole set of commands we are currently performing to
"compile" the ocaml-file. OCaml is very c-like...
ocamldep -I +facile *.mli *.ml > .depend
ocamlc -I +facile -c chemset.mli
ocamlopt -I +facile -c chemset.ml
ocamlc -I +facile -c parser.mli
ocamlopt -I +facile -c parser.ml
ocamlopt -I +facile -c lexer.ml
ocamlc -I +facile -c datastruct.mli
ocamlopt -I +facile -c datastruct.ml
ocamlc -I +facile -c chem.mli
ocamlopt -I +facile -c chem.ml
ocamlc -I +facile -c calc.mli
ocamlopt -I +facile -c calc.ml
ocamlopt -I +facile -c modwrap.c
ocamlopt -output-obj -o solver.o `ocamlc -where`/facile/facile.cmxa
chemset.cmx parser.cmx lexer.cmx datastruct.cmx chem.cmx calc.cmx
cp -f solver.o modwrap.o ../
ocamlopt - The Objective Caml native-code compiler
ocamlopt [ -acivS ] [ -cclib libname ] [ -ccopt option ] [ -compact ]
[ -unsafe ] [ -o exec-file ] [ -I lib-dir ] filename ...
ocamlc - The Objective Caml bytecode compiler
ocamlc [ -aciv ] [ -cclib libname ] [ -ccopt option ] [ -custom ] [ -unsafe
] [ -o exec-file ] [ -I lib-dir ] filename ...
ocamldep - Dependency generator for Objective Caml
ocamldep [ -I lib-dir ] filename ...
I hope this is what you want....
If not, this is a nice walk-through
http://www.ocaml-tutorial.org/compiling_ocaml_projects
Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060329/c16e70fa/attachment.pgp
More information about the Kde-buildsystem
mailing list