X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=myocamlbuild.ml;fp=myocamlbuild.ml;h=5d04a11a8aef4ba55a883c92a0da6141c00c0d2d;hp=0000000000000000000000000000000000000000;hb=18482b8b36fbdc5b904cf44e106075af39eef912;hpb=31d45495fda9a110fd348f8b492761c28b434ec9 diff --git a/myocamlbuild.ml b/myocamlbuild.ml new file mode 100644 index 0000000..5d04a11 --- /dev/null +++ b/myocamlbuild.ml @@ -0,0 +1,14 @@ +open Ocamlbuild_plugin ;; + +let includes = [ "include/utils.ml"; "include/utils32.ml"; "include/utils64.ml"; "include/debug.ml" ] + +let () = + dispatch begin function + | After_rules -> + dep ["ocaml";"compile";] includes; + dep ["ocaml";"ocamldep"; ] includes; + pflag ["ocaml";"compile";] "ppopt" (fun s -> S [A"-ppopt"; A (s)]); + pflag ["ocaml";"ocamldep";] "ppopt" (fun s -> S [A"-ppopt"; A (s)]); + | _ -> () + +end;;