(library (name time_now) (public_name time_now)
 (libraries base jane-street-headers) (preprocess (pps ppx_base ppx_optcomp))
 (preprocessor_deps config.h) (c_names time_now_stubs)
 (c_flags -std=c11 -fPIC) (js_of_ocaml (javascript_files runtime.js)))

(rule (targets config.h) (deps)
 (action (copy %{lib:jst-config:config.h} config.h)))