Permalink
ea7940a Sep 20, 2016
@vinoski @tuncer @capflam
24 lines (18 sloc) 904 Bytes
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
{require_min_otp_vsn, "R16B01"}.
{sub_dirs, ["rel"]}.
{erl_opts, [{platform_define,
"(linux|solaris|freebsd|darwin)", 'HAVE_SENDFILE'},
{src_dirs, ["src", "examples/src"]},
warnings_as_errors]}.
{port_env, [{"CFLAGS", "$CFLAGS -g -O3 -Wall -I/usr/include/security"},
{"x86_64", "CFLAGS", "$CFLAGS -m$ERLANG_ARCH"},
{"x86_64", "LDFLAGS", "-m$ERLANG_ARCH $LDFLAGS"},
{"i[36]86", "CFLAGS", "$CFLAGS -m$ERLANG_ARCH"},
{"i[36]86", "LDFLAGS", "-m$ERLANG_ARCH $LDFLAGS"}
]}.
{port_specs, [{"priv/lib/epam.so", ["c_src/epam.c"]},
{"priv/lib/setuid_drv.so", ["c_src/setuid_drv.c"]}]}.
{pre_hooks, [{compile, "./scripts/rebar-pre-script"},
{clean, "./scripts/rebar-pre-script clean"}]}.