Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 262 Bytes
CC=gcc
# Mac OS X: use "-m64" for a 64-bit erlang
FLAGS=-m32 -O3 -fPIC -bundle -flat_namespace -undefined suppress -fno-common -Wall
# Linux
#FLAGS=-fPIC -shared
ERL_ROOT=/usr/local/lib/erlang
all:
$(CC) $(FLAGS) -o wat.so wat.c -I $(ERL_ROOT)/usr/include/