Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (23 sloc) 0.586 kb
bf7db6a @ngerakines Initial commit.
ngerakines authored
1
2 ERL=erl
3 APP=syslog
4
5 CC=gcc
6
7 #Mac OS X: use "-m64" for a 64-bit erlang
8 ARCH=-m64
9
10 # By default, use the system crypt(3), which is DES only
11 FLAGS=$(ARCH) -O3 -fPIC -shared
12
13 # Linux
14 #FLAGS=-fPIC -shared -lcrypt
15
16 ERL_ROOT=/usr/local/lib/erlang
17 CFLAGS=-g -Wall
18
19
20 all: dir erl nif
21
22 dir:
23 -@mkdir -p priv ebin
24
25 erl:
26 @$(ERL) -noinput +B \
27 -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
28
29 nif:
30 (cd c_src && \
31 $(CC) -g -Wall $(FLAGS) -o ../priv/$(APP).so \
32 $(APP).c -I $(ERL_ROOT)/usr/include/ )
33
34 clean:
35 @rm -fv ebin/*.beam priv/$(APP).so c_src/*.a c_src/*.o
36
Something went wrong with that request. Please try again.