rebar.config

{pre_hooks, [{"(linux|darwin)", compile, "make V=0 -C c_src -j 8"}]}.
{post_hooks, [{"(linux|darwin)", clean, "make -C c_src clean"}]}.

{artifacts, ["priv/erl_hash_nif.so"]}.

{project_plugins, [rebar3_hex]}.

{deps, []}.

{erl_opts, [
    warn_unused_vars,
    warn_shadow_vars,
    warn_unused_import,
    warn_unused_function,
    warn_bif_clash,
    warn_unused_record,
    warn_deprecated_function,
    warn_obsolete_guard,
    strict_validation,
    warn_export_vars,
    warn_exported_vars,
    warn_export_all,
    warnings_as_errors
]}.