diff options
Diffstat (limited to 'src/Make_cyg.mak')
-rw-r--r-- | src/Make_cyg.mak | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/Make_cyg.mak b/src/Make_cyg.mak index 9091d0946..b3650bb05 100644 --- a/src/Make_cyg.mak +++ b/src/Make_cyg.mak @@ -24,6 +24,9 @@ # MZSCHEME_VER define to version of MzScheme being used (209_000) # DYNAMIC_MZSCHEME no or yes: use yes to load the MzScheme DLLs dynamically (yes) # MZSCHEME_DLLS path to MzScheme DLLs (libmzgc and libmzsch), for "static" build. +# LUA define to path to Lua dir to get Lua support (not defined) +# LUA_VER define to version of Lua being used (51) +# DYNAMIC_LUA no or yes: use yes to load the Lua DLL dynamically (yes) # GETTEXT no or yes: set to yes for dynamic gettext support (yes) # ICONV no or yes: set to yes for dynamic iconv support (yes) # MBYTE no or yes: set to yes to include multibyte support (yes) @@ -273,6 +276,30 @@ endif endif ############################## +# DYNAMIC_LUA=yes works. +# DYNAMIC_LUA=no does not (unresolved externals on link). +############################## +ifdef LUA +DEFINES += -DFEAT_LUA +INCLUDES += -I$(LUA)/include +EXTRA_OBJS += $(OUTDIR)/if_lua.o + +ifndef DYNAMIC_LUA +DYNAMIC_LUA = yes +endif + +ifndef LUA_VER +LUA_VER = 51 +endif + +ifeq (yes, $(DYNAMIC_LUA)) +DEFINES += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\" +else +EXTRA_LIBS += $(LUA)/lib/lua$(LUA_VER).lib +endif +endif + +############################## ifeq (yes, $(GETTEXT)) DEFINES += -DDYNAMIC_GETTEXT endif |