diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-21 18:41:55 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-04-21 18:41:55 -0300 |
| commit | 4f7e1b5a49575c77657b77bea383f79cddd768e3 (patch) | |
| tree | e8f669be9eed7fd1bca2a6eb6f04d17646bbb47a /config | |
| parent | a5336d294d27f98c38394b6ea441e68bab96bdc8 (diff) | |
| download | luafilesystem-4f7e1b5a49575c77657b77bea383f79cddd768e3.tar.gz luafilesystem-4f7e1b5a49575c77657b77bea383f79cddd768e3.tar.bz2 luafilesystem-4f7e1b5a49575c77657b77bea383f79cddd768e3.zip | |
Makefile: make it easier to switch Lua versions
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) |
