forked from erlyaws/yaws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
23 lines (18 loc) · 904 Bytes
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ft=erlang ts=4 sw=4 et
{require_min_otp_vsn, "R14B02"}.
{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"}]}.