summaryrefslogtreecommitdiff
path: root/myocamlbuild.ml
blob: ef286185b956270191379e485d2906990c213268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
open Ocamlbuild_plugin;;
dispatch begin function
| After_rules ->
    flag ["ocaml"; "parser"; "menhir"] (A("--explain"));

    (* libraries and syntax extensions accessed via ocamlfind *)
    flag ["ocaml"; "link"; "pkg_unix"] & S[A"-package"; A "unix"];
    flag ["ocaml"; "link"; "pkg_str"] & S[A"-package"; A "str"];
    flag ["ocaml"; "compile";  "pkg_bitstring"] & S[A"-package"; A"bitstring,bitstring.syntax"; A"-syntax"; A"bitstring.syntax,camlp4o"];
    flag ["ocaml"; "ocamldep";  "pkg_bitstring"] & S[A"-package"; A"bitstring,bitstring.syntax"; A"-syntax"; A"bitstring.syntax,camlp4o"];
    flag ["ocaml"; "link";  "pkg_bitstring"] & S[A"-package"; A"bitstring"]

| _ -> ()
end