40 lines
1.4 KiB
Erlang
40 lines
1.4 KiB
Erlang
%% Linked-in driver config
|
|
%%
|
|
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
|
|
%% ex: ft=erlang ts=4 sw=4 et
|
|
%%
|
|
|
|
{cover_enabled, true}.
|
|
{erl_opts, [warnings_as_errors]}.
|
|
|
|
{port_envs, [
|
|
{"DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/system/include"},
|
|
{"DRV_LDFLAGS", "$DRV_LDFLAGS c_src/system/lib/libdb.a"},
|
|
|
|
%% Solaris specific flags
|
|
{"solaris.*-64$", "CFLAGS", "-D_REENTRANT -m64"},
|
|
{"solaris.*-64$", "LDFLAGS", "-m64"},
|
|
|
|
%% OS X Leopard flags for 64-bit
|
|
{"darwin9.*-64$", "CFLAGS", "-m64"},
|
|
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
|
|
|
|
%% OS X Snow Leopard flags for 32-bit
|
|
{"darwin10.*-32$", "CFLAGS", "-m32"},
|
|
{"darwin10.*-32$", "LDFLAGS", "-arch i386"},
|
|
|
|
%% OS X Snow Leopard flags for 64-bit
|
|
{"darwin10.*-64$", "CFLAGS", "-m64"},
|
|
{"darwin10.*-64$", "LDFLAGS", "-arch x86_64"},
|
|
|
|
%% OS X Lion flags for 32-bit
|
|
{"darwin11.*-32$", "CFLAGS", "-m32"},
|
|
{"darwin11.*-32$", "LDFLAGS", "-arch i386"},
|
|
|
|
%% OS X Lion flags for 64-bit
|
|
{"darwin11.*-64$", "CFLAGS", "-m64"},
|
|
{"darwin11.*-64$", "LDFLAGS", "-arch x86_64"}
|
|
]}.
|
|
|
|
{pre_hooks, [{compile, "make -C c_src"}]}.
|
|
{post_hooks, [{clean, "make -C c_src clean"}]}.
|