(ocamllex read)

(rule
 (targets yojson.ml)
 (deps
  (:out yojson.cppo.ml)
  monomorphic.ml
  read.ml
  write.ml
  safe.ml
  pretty.ml
  write2.ml
  common.ml
  util.ml
  type.ml)
 (action
  (run cppo %{out} -o %{targets})))

(rule
 (targets yojson.mli)
 (deps
  (:out yojson.cppo.mli)
  monomorphic.mli
  write.mli
  read.mli
  safe.mli
  write2.mli
  common.mli
  util.mli
  type.ml)
 (action
  (run cppo %{out} -o %{targets})))

(library
 (name yojson)
 (public_name yojson)
 (modules yojson)
 (synopsis "JSON parsing and printing")
 (libraries seq)
 (flags (-safe-string)))
