Added dialyzer build. Modified priv/Makefile to J. Armstrong's comments.
This commit is contained in:
5
Makefile
5
Makefile
@@ -1,4 +1,6 @@
|
|||||||
ERL=erl
|
ERL=erl
|
||||||
|
OTP_TOP=/opt/local/lib/erlang/lib
|
||||||
|
PLT_SRC=$(OTP_TOP)/kernel-2.12.4/ebin $(OTP_TOP)/stdlib-1.15.4/ebin/ $(OTP_TOP)/crypto-1.5.2.1/ebin $(OTP_TOP)/compiler-4.5.4/ebin $(OTP_TOP)/hipe-3.6.8/ebin/ ebin
|
||||||
|
|
||||||
all: compile docs
|
all: compile docs
|
||||||
|
|
||||||
@@ -6,6 +8,9 @@ compile:
|
|||||||
$(ERL) -make
|
$(ERL) -make
|
||||||
cd priv && make
|
cd priv && make
|
||||||
|
|
||||||
|
static:
|
||||||
|
dialyzer --build_plt --output_plt sqlite.plt -r ebin $(PLT_SRC)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- rm ebin/*.beam
|
- rm ebin/*.beam
|
||||||
- rm doc/*
|
- rm doc/*
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
OTP_DIR=/opt/local/lib/erlang/lib/erl_interface-3.5.5.3
|
OTP_DIR=/opt/local/lib/erlang/lib/erl_interface-3.5.5.3
|
||||||
LIB=-lsqlite3 -lerl_interface -lei
|
LIB=-lsqlite3 -lerl_interface -lei
|
||||||
FLAGS=-I$(OTP_DIR)/include -L$(OTP_DIR)/lib
|
FLAGS=-I$(OTP_DIR)/include -L$(OTP_DIR)/lib
|
||||||
#GCC=/opt/local/bin/gcc-apple-4.2
|
|
||||||
GCC=/usr/bin/gcc
|
GCC=/usr/bin/gcc
|
||||||
|
|
||||||
all: obj
|
all: obj
|
||||||
$(GCC) -Wall -o sqlite_port $(FLAGS) $(LIB) erl_comm.o sqlite_port.o
|
$(GCC) -Wall erl_comm.o sqlite_port.o $(FLAGS) $(LIB) -o sqlite_port
|
||||||
|
|
||||||
obj: erl_comm.c sqlite_port.c
|
obj: erl_comm.c sqlite_port.c
|
||||||
$(GCC) -Wall -c $(FLAGS) erl_comm.c sqlite_port.c
|
$(GCC) -Wall -c $(FLAGS) erl_comm.c sqlite_port.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- rm -f *.o sqlite_port
|
- rm -f *.o sqlite_port
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user