aboutsummaryrefslogtreecommitdiff
path: root/Shared.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Shared.mk')
-rw-r--r--Shared.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/Shared.mk b/Shared.mk
index 56c951c..f6941e1 100644
--- a/Shared.mk
+++ b/Shared.mk
@@ -10,12 +10,12 @@ OPT_FLAGS=-O2
10ifeq "$(findstring MINGW,$(shell uname -s))" "MINGW" 10ifeq "$(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
16else 16else
17 _SO=so 17 _SO:=so
18 _LUAEXT= 18 _LUAEXT:=
19endif 19endif
20 20
21ifeq "$(LUAROCKS)" "" 21ifeq "$(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