diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-14 23:23:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-14 23:23:17 +0200 |
commit | 0ba042961f929ff43f977c2ebdba9368f42d9c52 (patch) | |
tree | 59220f91eb954e7400bf8846ae8010dd22532029 /src/Make_cyg.mak | |
parent | 26dcc7e8df8f0f1852752b9107ba4b0408061554 (diff) | |
download | vim-git-0ba042961f929ff43f977c2ebdba9368f42d9c52.tar.gz |
Added Lua interfae. (Luis Carvalho)
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 |