-
Notifications
You must be signed in to change notification settings - Fork 1
/
config
42 lines (30 loc) · 986 Bytes
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# luanosql (driver)
T= unqlite
#-T= vedis #not supported now
# Installation directories
# Default prefix
PREFIX = /usr/local
# System's libraries directory (where binary libraries are installed)
LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
# System's lua directory (where Lua libraries are installed)
LUA_DIR= $(PREFIX)/share/lua/5.1
# Lua includes directory
LUA_INC= $(PREFIX)/include
# Lua version number (first and second digits of target version)
LUA_VERSION_NUM= 501
# OS dependent
LIB_OPTION= -shared #for Linux
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
LIBNAME= $T.so
# Compilation parameters
# Driver specific
######## UnQLite
DRIVER_LIBS= -L./ -lunqlite
DRIVER_INCS= -I/usr/include/lua5.1/ -I.
######## Vedis
#DRIVER_LIBS= -L./ -lvedis
#DRIVER_INCS= -I/usr/include/lua5.1/ -I.
WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi -pedantic
INCS= -I$(LUA_INC)
CFLAGS= -O2 -fPIC $(DRIVER_INCS) $(INCS) -DLUANOSQL_VERSION_NUMBER='"$V"' $(DEFS)
CC= gcc