Thanks! On Jan 10, 2008 3:05 AM, Matthieu Dubuget wrote: > ---- myocamlbuild.ml ------ > > open Ocamlopen Ocamlbuild_plugin > open Command > ;; > dispatch begin function > | After_rules -> > flag ["link"; "ocaml"; "byte"] (A"-custom"); > dep ["link"; "ocaml"; "use_my_math"] ["avg.o"]; > | _ -> () > end > > ---- _tags ----- (do not forget the endline before end of file) > : use_my_math > > ++++++++++++++++ > > Works for me. > > Salutations > > P.S. > > I had to modify the beginning of > > > ---- avg.c --- > #include > #include > #include > #include > > into > > ---- avg.c --- > > #include > #include > #include >