モジュール

mzp2006-08-28

(* wiki.ml *)
module Wiki = struct
  let read name = "hoge"
end;;
(* index.ml *)
let _ = Wiki.read "FrontPage";

という2つのファイルをコンパイルする方法をだれか教えてください。
あ、できた。http://www.ocaml-tutorial.org/compiling_with_gnu_makeをマネしただけで、意味はわかんない。

RESULT = index.cgi
SOURCES = wiki.ml index.ml
PACKS = cgi
PP = camlp4find $(PACKS)
export PP
CREATE_LIB = yes # ???
OCAMLMAKEFILE = OCamlMakefile
include $(OCAMLMAKEFILE)