34 lines
1.3 KiB
Erlang
34 lines
1.3 KiB
Erlang
{erl_opts, [{i, "src"},
|
|
warnings_as_errors,
|
|
{w, all},
|
|
warn_export_all]}.
|
|
|
|
{clean_files, [".eunit",
|
|
"ebin/*.beam"]}.
|
|
|
|
{port_env, [{"CFLAGS", "$CFLAGS -O2 -finline-functions -fomit-frame-pointer -fno-strict-aliasing -Wmissing-prototypes -Wall -std=c99"}]}.
|
|
|
|
{port_specs, [
|
|
% TODO: support optimization
|
|
% {"i386", "priv/sha3_nif.so", ["c_src/sha3_nif.c",
|
|
% "c_src/KeccakNISTInterface.c",
|
|
% "c_src/KeccakSponge.c",
|
|
% "c_src/KeccakF-1600-opt32.c",
|
|
% "c_src/displayIntermediateValues.c"]},
|
|
% {"x86_64", "priv/sha3_nif.so", ["c_src/sha3_nif.c",
|
|
% "c_src/KeccakNISTInterface.c",
|
|
% "c_src/KeccakSponge.c",
|
|
% "c_src/KeccakF-1600-opt64.c",
|
|
% "c_src/displayIntermediateValues.c"]},
|
|
{"priv/sha3_nif.so", ["c_src/sha3_nif.c",
|
|
"c_src/KeccakNISTInterface.c",
|
|
"c_src/KeccakSponge.c",
|
|
"c_src/KeccakF-1600-reference.c",
|
|
"c_src/displayIntermediateValues.c"]}
|
|
]}.
|
|
|
|
{eunit_opts, [{report,{eunit_surefire,[{dir,"."}]}}]}.
|
|
|
|
{xref_checks, [fail_on_warning, undefined_function_calls]}.
|
|
|