(library
  (public_name postgresql)
  (c_names postgresql_stubs)
  (c_flags (
    (:include c_flags.sexp) -g -O2 -fPIC -DPIC
    ; NOTE: for debugging before releases
    ; -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro
  ))
  (c_library_flags (:include c_library_flags.sexp))
  (libraries threads bigarray)
)

(rule
  (targets c_flags.sexp c_library_flags.sexp)
  (deps (:discover config/discover.exe))
  (action (run %{discover}))
)
