%% -*- mode: erlang;erlang-indent-level: 2;indent-tabs-mode: nil -*- | |
%% {erl_opts, [debug_info]}. | |
%% {so_specs, | |
%% [{"priv/bcrypt_nif.so", | |
%% ["c_src/*.c"]}]}. | |
{port_env, | |
[{"DRV_LDFLAGS","-shared $ERL_LDFLAGS -lpthread"}, | |
{"darwin", "DRV_LDFLAGS", "-bundle -flat_namespace -undefined suppress $ERL_LDFLAGS -lpthread"}, | |
{"DRV_CFLAGS","-Ic_src -Wall -fPIC $ERL_CFLAGS"}]}. | |
{port_specs, [{"priv/bcrypt_nif.so", ["c_src/*.c"]}]}. | |
{post_hooks, | |
[{clean, "make -C c_src clean"}, | |
{compile, "make -C c_src"}]}. |