diff options
Diffstat (limited to 'config')
-rw-r--r-- | config | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3,12 +3,14 @@ | |||
3 | # Default installation prefix | 3 | # Default installation prefix |
4 | PREFIX=/usr/local | 4 | PREFIX=/usr/local |
5 | 5 | ||
6 | LUA_VERSION = 5.1 | ||
7 | |||
6 | # System's libraries directory (where binary libraries are installed) | 8 | # System's libraries directory (where binary libraries are installed) |
7 | LUA_LIBDIR= $(PREFIX)/lib/lua/5.1 | 9 | LUA_LIBDIR= $(PREFIX)/lib/lua/$(LUA_VERSION) |
8 | 10 | ||
9 | # Lua includes directory | 11 | # Lua includes directory |
10 | LUA_INC += -I$(PREFIX)/include | 12 | LUA_INC += -I$(PREFIX)/include |
11 | LUA_INC += -I/usr/include/lua5.1 | 13 | LUA_INC += -I/usr/include/lua$(LUA_VERSION) -I/usr/include/lua/$(LUA_VERSION) |
12 | 14 | ||
13 | # OS dependent | 15 | # OS dependent |
14 | LIB_OPTION= -shared #for Linux | 16 | LIB_OPTION= -shared #for Linux |
@@ -17,8 +19,6 @@ LIB_OPTION= -shared #for Linux | |||
17 | # Minimum runtime OS version on macOS | 19 | # Minimum runtime OS version on macOS |
18 | MACOSX_DEPLOYMENT_TARGET= 10.5 | 20 | MACOSX_DEPLOYMENT_TARGET= 10.5 |
19 | 21 | ||
20 | LIBNAME= $T.so.$V | ||
21 | |||
22 | # Compilation directives | 22 | # Compilation directives |
23 | WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic | 23 | WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic |
24 | INCS= $(LUA_INC) | 24 | INCS= $(LUA_INC) |