; Copyright (c) Facebook, Inc. and its affiliates.
;
; This source code is licensed under the MIT license found in the
; LICENSE file in the root directory of this source tree.

(rule
 (targets cxxabi.bc)
 (deps cxxabi.cpp Makefile llair_intrinsics.h)
 (action
  (run make ROOT=../../.. cxxabi.bc)))

(rule
 (targets lib_fuzzer_main.bc)
 (deps lib_fuzzer_main.c Makefile)
 (action
  (run make ROOT=../../.. lib_fuzzer_main.bc)))

(rule
 (targets model.ml)
 (deps cxxabi.bc lib_fuzzer_main.bc)
 (action
  (run ocaml-crunch -m plain -e bc -o model.ml .)))

(library
 (name model)
 (public_name sledge.model))