diff options
Diffstat (limited to 'Shared.mk')
-rw-r--r-- | Shared.mk | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -10,12 +10,12 @@ OPT_FLAGS=-O2 | |||
10 | ifeq "$(findstring MINGW,$(shell uname -s))" "MINGW" | 10 | ifeq "$(findstring MINGW,$(shell uname -s))" "MINGW" |
11 | # MinGW MSYS on Windows | 11 | # MinGW MSYS on Windows |
12 | # | 12 | # |
13 | _SO=dll | 13 | _SO:=dll |
14 | _LUAEXT=.exe | 14 | _LUAEXT:=.exe |
15 | TIME=timeit.exe | 15 | TIME:=timeit.exe |
16 | else | 16 | else |
17 | _SO=so | 17 | _SO:=so |
18 | _LUAEXT= | 18 | _LUAEXT:= |
19 | endif | 19 | endif |
20 | 20 | ||
21 | ifeq "$(LUAROCKS)" "" | 21 | ifeq "$(LUAROCKS)" "" |
@@ -30,7 +30,7 @@ ifeq "$(LUAROCKS)" "" | |||
30 | $(warning LUA_DEV not defined - try i.e. 'make LUA_DEV=/c/Program\ Files/Lua/5.1') | 30 | $(warning LUA_DEV not defined - try i.e. 'make LUA_DEV=/c/Program\ Files/Lua/5.1') |
31 | # this assumes Lua was built and installed from source and everything is located in default folders (/usr/local/include and /usr/local/bin) | 31 | # this assumes Lua was built and installed from source and everything is located in default folders (/usr/local/include and /usr/local/bin) |
32 | LUA_FLAGS:=-I "/usr/local/include" | 32 | LUA_FLAGS:=-I "/usr/local/include" |
33 | LUA_LIBS:=$(word 1,$(shell which lua54.$(_SO)) $(shell which lua53.$(_SO)) $(shell which lua52.$(_SO)) $(shell which lua51$(_SO))) | 33 | LUA_LIBS:=$(word 1,$(shell which lua54.$(_SO) 2>/dev/null) $(shell which lua53.$(_SO) 2>/dev/null) $(shell which lua52.$(_SO) 2>/dev/null) $(shell which lua51$(_SO) 2>/dev/null)) |
34 | else | 34 | else |
35 | LUA_FLAGS:=-I "$(LUA_DEV)/include" | 35 | LUA_FLAGS:=-I "$(LUA_DEV)/include" |
36 | LUA_LIBS:="$(LUA_DEV)/lua5.1.dll" -lgcc | 36 | LUA_LIBS:="$(LUA_DEV)/lua5.1.dll" -lgcc |