aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/makefile b/src/makefile
index 25b293c..868f98c 100644
--- a/src/makefile
+++ b/src/makefile
@@ -74,6 +74,13 @@ LUAPREFIX_mingw?=/usr
74CDIR_mingw?=lua/$(LUAV) 74CDIR_mingw?=lua/$(LUAV)
75LDIR_mingw?=lua/$(LUAV)/lua 75LDIR_mingw?=lua/$(LUAV)/lua
76 76
77# where lua headers are found for ucrt64 builds
78# LUAINC_ucrt64:
79LUAINC_ucrt64?=/ucrt64/include
80LUALIB_ucrt64?=/ucrt64/bin/lua$(subst .,,$(LUAV)).dll
81LUAPREFIX_ucrt64?=/ucrt64
82CDIR_ucrt64?=lib/lua/$(LUAV)
83LDIR_ucrt64?=share/lua/$(LUAV)
77 84
78# LUAINC_win32: 85# LUAINC_win32:
79# LUALIB_win32: 86# LUALIB_win32:
@@ -153,7 +160,7 @@ print:
153#------ 160#------
154# Supported platforms 161# Supported platforms
155# 162#
156PLATS= macosx linux win32 win64 mingw solaris 163PLATS= macosx linux win32 win64 mingw solaris ucrt64
157 164
158#------ 165#------
159# Compiler and linker settings 166# Compiler and linker settings
@@ -219,6 +226,21 @@ LDFLAGS_mingw= $(LUALIB) -shared -Wl,-s -lws2_32 -o
219LD_mingw=gcc 226LD_mingw=gcc
220SOCKET_mingw=wsocket.o 227SOCKET_mingw=wsocket.o
221 228
229#------
230# Compiler and linker settings
231# for ucrt64
232SO_ucrt64=dll
233O_ucrt64=o
234CC_ucrt64=gcc
235DEF_ucrt64= -DLUASOCKET_$(DEBUG) \
236 -DWINVER=0x0501
237CFLAGS_ucrt64= -I$(LUAINC) $(DEF) -Wall -O2 -fno-common
238# \
239 -fvisibility=hidden
240LDFLAGS_ucrt64= $(LUALIB) -shared -Wl,-s -lws2_32 -o
241LD_ucrt64=gcc
242SOCKET_ucrt64=wsocket.o
243
222 244
223#------ 245#------
224# Compiler and linker settings 246# Compiler and linker settings
@@ -384,6 +406,9 @@ linux:
384mingw: 406mingw:
385 $(MAKE) all PLAT=mingw 407 $(MAKE) all PLAT=mingw
386 408
409ucrt64:
410 $(MAKE) all PLAT=ucrt64
411
387solaris: 412solaris:
388 $(MAKE) all-unix PLAT=solaris 413 $(MAKE) all-unix PLAT=solaris
389 414