(library
 (name        butils_freestanding)
 (public_name encore.butils.freestanding)
 (optional)
 (libraries   bigarray-compat ocaml-freestanding)
 (c_names     butils)
 (c_flags     (:include cflags.sexp)))

(rule (copy# ../butils.c butils.c))

(rule (with-stdout-to cflags.sexp (run ./cflags.sh)))
