Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (23 sloc) 843 Bytes
{port_specs, [
{"priv/procket.so", ["c_src/procket.c"]}
]}.
{port_env, [
{"LDFLAGS", "$LDFLAGS -Lc_src -lancillary"},
{"x86_64", "PROCKET_CFLAGS", "-m$ERLANG_ARCH"},
{"x86_64", "CFLAGS", "$CFLAGS -m$ERLANG_ARCH"},
{"x86_64", "LDFLAGS", "-m$ERLANG_ARCH $LDFLAGS"},
{"i686", "PROCKET_CFLAGS", "-m$ERLANG_ARCH"},
{"i686", "CFLAGS", "$CFLAGS -m$ERLANG_ARCH"},
{"i686", "LDFLAGS", "-m$ERLANG_ARCH $LDFLAGS"},
{"i386", "PROCKET_CFLAGS", "-m$ERLANG_ARCH"},
{"solaris", "CFLAGS", "-std=c99 -D_POSIX_C_SOURCE=200112L -lsocket -lnsl -m$ERLANG_ARCH"},
{"solaris", "PROCKET_CFLAGS", "-lsocket -lnsl -m$ERLANG_ARCH"}
]}.
{pre_hooks, [
{compile, "make -C c_src -f Makefile.ancillary -f Makefile.cmd"}
]}.
{clean_files, [
"c_src/*.a",
"c_src/*.o",
"priv/procket"
]}.
Jump to Line
Something went wrong with that request. Please try again.